# /host/lapn/boot/loader.conf # CAUTION: Any syntax error will prevent rest of file being used. # Keep format aligned with /host/lapd/boot/loader.conf. # Occasionally manually run: # cp /boot/loader.conf \ # ~jhs/public_html/hardware/laptops/dell_latitude_xpi_p133st/loader.conf # By jhs@@berklix.com # apm_load="YES" # suggested by Ian Smith boot_verbose="yes" # Collect more info to later tune ata debug.bootverbose=1 # debug.acpi.disabled=all hint.acpi.0.disabled=1 # Turn off whole of acpi NEW # ACPI spec 2003, this laptop Much older # Not Needed to boot, came from sysinstall. # hint.apic.0.disabled="1" # Not Needed to boot. hint.apm.0.disabled="1" # Not Needed to boot. hint.cbb.0.disabled="0" # not even shown by sysctl -a, # maybe cos bios keeps reverting to Off. hint.cbb.1.disabled="0" # not even shown by sysctl -a # maybe cos bios keeps reverting to Off. # hint.cbb.2.disabled="1" # hint.cbb.3.disabled="1" # hint.cbb.4.disabled="1" # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # hint.pcm.0.irq="5" # Not needed, found in man 4 sound # hint.sbc.0.at="isa" # Not needed (if no machdep.bios.pnp="disable"). # hint.sbc.0.drq="1" # Not needed (if no machdep.bios.pnp="disable"). # hint.sbc.0.flags="0x15" # Not needed (if no machdep.bios.pnp="disable"). # hint.sbc.0.irq="5" # Not needed (if no machdep.bios.pnp="disable"). # hint.sbc.0.port="0x220" # Not needed (if no machdep.bios.pnp="disable"). # hint.pcm.0.at="isa" # Not needed, found in man 4 sound # hint.pcm.0.drq="1" # Not needed, found in man 4 sound # hint.pcm.0.flags="0x0" # Not needed, found in man 4 sound hint.pcm.0.vol="100" # Sound Volume hint.sio.1.disabled="1" # Disable if BIOS Infra Red != COM2 # Disable to free an irq # Enabling sio.1 kills sound. # filler # filler hw.acpi.disable_on_reboot=1 # Not Needed to boot.. but maybe it will make # laptop look again & realise pccard has changed hw.acpi.verbose=1 # hw.ata.ata_dma="0" # Essential else disk access fails. # Can I use these to tune ATA ? Generic boot dmesg reports: # ata0-master: pio=PIO4 wdma=WDMA2 udma=UDMA33 cable=40 wire # ad0: 3909MB at ata0-master PIO4 # ad0: 8007552 sectors [7944C/16H/63S] 16 sectors/interrupt 1 depth queue # ad0: Silicon Image check1 failed # ad0: Adaptec check1 failed # ad0: LSI (v3) check1 failed # ad0: LSI (v2) check1 failed # ad0: FreeBSD check1 failed # filler # filler # xs pciconf -lv > /tmp/t # hostb0@pci0:0:0:0: class=0x060000 card=0x00000000 chip=0x00011066 rev=0x04 hdr=0x00 # vendor = 'Picopower Technology (A division of National)' # device = 'PT86C521 Vesuvius V1-LS System Controller' # class = bridge # subclass = HOST-PCI # isab0@pci0:0:6:0: class=0x060100 card=0x00000000 chip=0x80021066 rev=0x00 hdr=0x00 # vendor = 'Picopower Technology (A division of National)' # device = 'PT86C523 Vesuvius V3-LS ISA Bridge' # class = bridge # subclass = PCI-ISA # vgapci0@pci0:0:7:0: class=0x030000 card=0x00000000 chip=0x000110c8 rev=0x01 hdr=0x00 # vendor = 'Neomagic Corporation' # device = 'NM2070 MagicGraph 128' # class = display # subclass = VGA # atapci0@pci0:0:8:0: class=0x010180 card=0x00000000 chip=0x06431095 rev=0x00 hdr=0x00 # vendor = 'Silicon Image Inc (Was: CMD Technology Inc)' # device = 'PCI0643 PCI EIDE controller' # class = mass storage # subclass = ATA # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # filler # hw.ata.atapi_dma=0 # Not Needed to boot. # hw.ata.wc=0 # Not Needed to boot. hw.cardbus.cis_debug=1 # Debug non working pccard slot hw.cardbus.debug=1 # Debug non working pccard slot # hw.cbb.debug=1 # Debug non working pccard slot hw.pccard.cis_debug=1 # Debug non working pccard slot hw.pccard.debug=1 # Debug non working pccard slot # hw.pci.enable_io_modes=0 # Not Needed to boot. # hw.pcic.ignore_pci=1 # Not Needed to boot. # hw.pcic.intr_path="1" # Not needed for pcmcia ep0 # hw.pcic.irq="0" # Not needed for pcmcia ep0 # hw.pcic.pd6729_intr_path # hw.snd.latency=10 # 5 by default, max 10, jhs hacked to max 40. # hw.snd.latency_profile=1 # 1 by default, doesnt accept 2, so prob binary hw.snd.feeder_buffersize=131072 # default 16384, read only after boot. # dev/sound/pcm/feeder.h:#define FEEDBUFSZ_MAX 131072 hw.snd.verbose=2 # Suggested by Ian Smith # if_ed_load="YES" # Ethernet card currently in host=lapl kern.hz="100" # 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. # loader.acpi_disabled_by_user=1# Not Needed to boot. # machdep.bios.pci="disable" # Not Needed by lapn to boot. # But lapd ep0 times out without it. # machdep.bios.pnp="disable" # Not Needed to boot. # machdep.pccard.pcic_irq="0" # Not Needed to boot. # sound_load="YES" # Now in my custom kernel # snd_ess_load="YES" # Now in my custom kernel # snd_ess was discovered by: kldload snd_driver ; cat /dev/sndstat # pcm0: at io 0x230 irq 5 drq 0:3 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"