# /host/laps/boot/loader.conf S3 # See Also /etc/sysctl.conf # autoboot_delay="3" # # boot_mute="yes" # acpi_toshiba_load="YES" # For laps 6.2 RELEASE # I compile it in on 8.2, so I do not need it here, else dmesg shows: # 8.2 dmesg reports module_register: module acpi/acpi_toshiba_video already exists!" #### hw.cardbus.debug=255 #### hw.cardbus.cis_debug=255 if_zyd_load=YES # /boot/modules/if_zyd.ko # SEE ALSO kld kldconfig kldload kldstat kldunload kldxref # zyd0: flags=108802 metric 0 mtu 1500 # ether 00:14:d1:c0:ab:9c # media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) # status: no carrier # ssid "" channel 1 (2412 Mhz 11b) # authmode OPEN privacy OFF bmiss 7 scanvalid 60 bgscan bgscanintvl 300 # bgscanidle 250 roam:rssi11b 7 roam:rate11b 1 bintval 0 vboxdrv_load=YES # For ports/emulators/virtualbox # vboxnetflt_load=YES # For bridged networking for ports/emulators/virtualbox # apm_load="YES" # suggested by Ian Smith # # Variable not shown by sysctl -a. # # boot_verbose="yes" # Collect more info to later tune ata # # Variable not shown by sysctl -a. # # debug.bootverbose="1" # Variable shown by sysctl -a. # # debug.acpi.disabled=all # Variable not shown by sysctl -a. # # hint.acpi.0.disabled="1" # Turn off whole of acpi NEW # # Variable not shown by sysctl -a. # # ACPI spec 2003, this laptop Much older # # Not Needed to boot, came from sysinstall. # # # hint.apic.0.disabled="1" # Not Needed to boot. # # Variable not shown by sysctl -a. # # # hint.apm.0.disabled="1" # Not Needed to boot. # # Variable not shown by sysctl -a. # # # hint.cbb.0.disabled="1" # pccard0 Top layer, lower slot. # # Variable not shown by sysctl -a. # # hint.cbb.1.disabled="1" # pccard1 Top layer, top slot. # # Variable not shown by sysctl -a. # # hint.cbb.2.disabled="1" # pccard2 Lower layer, lower slot. # # Variable not shown by sysctl -a. # # hint.cbb.3.disabled="1" # pccard3 Lower layer, top slot. # # Variable not shown by sysctl -a. # # hint.cbb.4.disabled="1" # pccard4 Maybe modem bay on right ? # # Variable not shown by sysctl -a. # # # It would be nice to disable slots to save IRQs as they eat irq 7 needed # # for parallel ppc. But hint.cbb.*.disabled= does not disable them. # # CardBus # # Common to top layer only or both layers with 7.0BETA3 Generic: # # cbb0: irq 9 at device 7.0 on pci0 # # cardbus0: on cbb0 # # pccard0: <16-bit PCCard bus> on cbb0 # # cbb0: [ITHREAD] # # cbb1: irq 10 at device 7.1 on pci0 # # cardbus1: on cbb1 # # pccard1: <16-bit PCCard bus> on cbb1 # # cbb1: [ITHREAD] # # If Top layer only 7.0BETA3 Generic: # # cbb2: at port 0x3e0-0x3e1 irq 5 # # pnpid PNP0e01 on isa0 # # device_attach: cbb2 attach returned 12 # # If Both layers 7.0BETA3 Generic: # # cbb2: irq 9 at device 14.0 on pci0 # # cardbus2: on cbb2 # # pccard2: <16-bit PCCard bus> on cbb2 # # cbb2: [ITHREAD] # # cbb3: irq 10 at device 14.1 on pci0 # # cardbus3: on cbb3 # # pccard3: <16-bit PCCard bus> on cbb3 # # cbb3: [ITHREAD] # # cbb4: at port 0x3e0-0x3e1 irq 7 # # pnpid PNP0e01 on isa0 # # device_attach: cbb4 attach returned 12 # # # hint.pcm.0.irq="5" # Not needed, found in man 4 sound # # Variable not shown by sysctl -a. # # # hint.sbc.0.at="isa" # Not needed (if no machdep.bios.pnp="disable"). # # Variable not shown by sysctl -a. # # # hint.sbc.0.drq="1" # Not needed (if no machdep.bios.pnp="disable"). # # Variable not shown by sysctl -a. # # # hint.sbc.0.flags="0x15" # Not needed (if no machdep.bios.pnp="disable"). # # Variable not shown by sysctl -a. # # # hint.sbc.0.irq="5" # Not needed (if no machdep.bios.pnp="disable"). # # Variable not shown by sysctl -a. # # # hint.sbc.0.port="0x220" # Not needed (if no machdep.bios.pnp="disable"). # # Variable not shown by sysctl -a. # # # hint.pcm.0.at="isa" # Not needed, found in man 4 sound # # Variable not shown by sysctl -a. # # # hint.pcm.0.drq="1" # Not needed, found in man 4 sound # # Variable not shown by sysctl -a. # # # hint.pcm.0.flags="0x0" # Not needed, found in man 4 sound # # Variable not shown by sysctl -a. # # hint.pcm.0.vol="100" # Sound Volume # # Variable not shown by sysctl -a. # # # hint.sio.1.disabled="1" # Uncomment if BIOS Infra Red != COM2 # # Variable not shown by sysctl -a. # # Disable to free an irq # # Enabling sio.1 killed sound on 1 laptop. # # # hw.acpi.disable_on_reboot="1" # Not Needed to boot. # # Variable not shown by sysctl -a. # # hw.acpi.verbose="1" # Variable not shown by sysctl -a. # # hw.ata.ata_dma="0" # Essential else disk access fails. # # Variable shown by sysctl -a. # # Can I use these to tune ATA ? Generic boot dmesg reports: # # atapci0: port 0x1f0-0x1f7,0x3f6,0xfe00-0xfe0f # # irq 14 at device 8.0 on pci0 # # ata0: on atapci0 # # ata0: [ITHREAD] # # ata1: on atapci0 # # ata1: [ITHREAD] # # atapci1: at device 15.0 on pci0 # # atapci1: unable to map interrupt # # device_attach: atapci1 attach returned 6 # # ad0: 4769MB at ata0-master PIO4 # # See Also output of xs pciconf -lv > /tmp/t # # # hw.ata.atapi_dma=0 # Not Needed to boot. # # Variable shown by sysctl -a. Default=1 # # # hw.ata.wc=0 # Not Needed to boot. # # Variable shown by sysctl -a. Default=1 # # # hw.cardbus.cis_debug="1" # JJLATER for a better understanding. # # Variable shown by sysctl -a. Default=1 # # # # hw.pci.enable_io_modes=0 # Not Needed to boot. # # Variable shown by sysctl -a. Default=1 # # # hw.pcic.ignore_pci="1" # Not Needed to boot. # # Variable not shown by sysctl -a. # # # hw.pcic.intr_path="1" # Not needed for pcmcia ep0 # # Variable not shown by sysctl -a. # # # hw.pcic.irq="0" # Not needed for pcmcia ep0 # # Variable not shown by sysctl -a. # # # hw.pcic.pd6729_intr_path # # Variable not shown by sysctl -a. # # hw.snd.latency="10" # 5 by default, max 10, jhs hacked to max 40. # # Variable shown by sysctl -a. # # # hw.snd.latency_profile="1" # 1 by default, doesnt accept 2, so prob binary # # Variable shown by sysctl -a. Default=1 # # hw.snd.feeder_buffersize=131072 # default 16384, read only after boot. # # dev/sound/pcm/feeder.h:#define FEEDBUFSZ_MAX 131072 # # Variable shown by sysctl -a. # # hw.snd.verbose=2 # Suggested by Ian Smith # # Variable shown by sysctl -a. # # # if_ed_load="YES" # Ethernet card currently in host=lapl # # Variable not shown by sysctl -a. # # kern.hz="100" # # Variable not shown by sysctl -a. # # sysctl -a | grep kern.clockrate # read only # Rate and period of kernel clocks # # Default: { hz = 1000, tick = 1000, profhz = 1024, stathz = 128 } # # From Ian Smith # # I figured, on a few wet-finger-in-the-wind trials a year or so ago, # # that 1000Hz slicing was too busy for my 300MHz machine; I recall it # # adding about 10% to idle load. It works fine at 200Hz. 1000Hz is of # # course fine for modern machines that run 10-20 times faster than your # # 133MHz, so I'd suggest trying maybe kern.hz="100" in loader.conf? # # See also `man cpufreq` & kernel options cpufreq. # # # OLD kern.msgbuf=64000 # # From: Oliver Fromme # # Date: Wed, 6 Feb 2008 16:17:54 +0100 (CET) # # To: freebsd-stable@FreeBSD.ORG, jhs@ # # I think it must be a multiple of the pages size, i,e, 4K = # # 4096 on FreeBSD/i386. I usually set it to 65536 or 131072. # # I jhs see on 7.0-PRERELEASE: sysctl -a | grep msgbuf # # kern.msgbuf_clear: 0 # # kern.msgbuf: y # # kern.consmsgbuf_size: 8192 # # security.bsd.unprivileged_read_msgbuf: 1 # # kern.consmsgbuf_size="16384" # kern.consmsgbuf_size=4096 # # # kern.polling.enable=1 # # to try: ifconfig ad0 polling # # # loader.acpi_disabled_by_user="1"# Not Needed to boot. # # Variable not shown by sysctl -a. # # machdep.bios.pci="disable" # Needed else pcmcia ep0 times out. # # Variable not shown by sysctl -a. # # # machdep.bios.pnp="disable" # Not needed for pcmcia ep0 # # Variable not shown by sysctl -a. # # # machdep.pccard.pcic_irq="0" # Not needed for pcmcia ep0 # # Variable not shown by sysctl -a. # # # sound_load="YES" # Now in my custom kernel # # Variable not shown by sysctl -a. # # # snd_ess_load="YES" # Now in my custom kernel # # Variable not shown by sysctl -a. # # snd_ess was discovered by: kldload snd_driver ; cat /dev/sndstat # # pcm1: at io 0x220 irq 5 drq 1:5 bufsz # # 4096 kld snd_ess [GIANT] (1p:1v/1r:1v channels default) # # .mp3 sound is horribly distorted, break up gaps, # # http://www.berklix.com/~jhs/hardware/digital/#sound # # Kernel linking failed without 'device "snd_sbc"', with: # # ../../../dev/sound/isa/ess.c:141: undefined reference to `sbc_lock' # # so maybe sbc needs to be, or is automatically loaded ? # # http://freebsd.org/doc/en_US.ISO8859-1/books/handbook/sound-setup.html # # # snd_sbc_load="YES" # Now in my custom kernel # # kldstat will show if sbc auto loads # # verbose_loading="yes" # Variable not shown by sysctl -a. # # # ============================================================================= # # ETHERNET CARD & SLOTS # # ep in low slot of top layer: Top layer only 7.0BETA3 Generic: # # ep0: <3Com OfficeConnect 572B> at port 0x100-0x11f irq 9 \ # # function 0 config 1 on pccard0 # # ep in top slot of top layer: Top layer only 7.0BETA3 Generic: # # ep0: <3Com OfficeConnect 572B> at port 0x100-0x11f irq 10 \ # # function 0 config 1 on pccard1 # # ep in low slot of lower layer # # ep0: <3Com OfficeConnect 572B> at port 0x100-0x11f irq 9 \ # # function 0 config 1 on pccard2 # # ep in top slot of lower layer # # ep0: <3Com OfficeConnect 572B> at port 0x100-0x11f irq 10 \ # # function 0 config 1 on pccard3 # # The right hand hidden PCMCIA # inbuilt modem slot: # # Used to house a WinLose modem, routing to back of laptop, # # long removed. The slot dint recognise any of 3 different # # ethernet cards. # # # PARALLEL PORT # # Common to top layer only or both layers with 7.0BETA3 Generic: # # ppc0: cannot reserve I/O port range # # Background numbers for searching why ppc is not allocated: # # park: ppc0: at port 0x378-0x37f irq 7 on isa0 # # # pciconf -lv shows: # # vendor = 'Silicon Image Inc (Was: CMD Technology Inc)' # # device = 'USB0670 USB Controller' hw.physmem=268435456 # hw.physmem=268,435,456 #------------- 2009.03.uk below # hw.ata.atapi_dma: ATAPI device DMA mode control hw.ata.atapi_dma=0 # 1 to 0, 2009.03.29 with 7.1-RELEASE, else vobcopy /dev/cd0 fails with # acd0: setting up DMA failed # ata1: FAILURE - non aligned DMA transfer attempted #------------- # I need more to stop this: # kernel: umass1: Unsupported ATAPI command 0xa3 - trying anyway # kernel: umass1: Unsupported ATAPI command 0xa4 - trying anyway linux_load=YES # cd /boot/kernel ; ln -s /usr/local/modules/fuse.ko # No fuse.ko.symbols fuse_load=YES # For /usr/ports/sysutils/fusefs-ntfs ; man ntfs-3g