This article is kindly linked by:
|
Barely finished my last article about FreeBSD (PRERELEASE at that time) on Compaq laptops, and my computer was replaced (as part of Company refresh policy). I was upgraded to a laptop Compaq NC 6400.
As any good lazy Unix sysadmin (and clever), I just recovered a backup from my previous model (nc 6220). It worked *almost fine*. Just a few adjustments were needed.
Previously I wrote about my quest, getting FreeBSD up and running. As such, let me start describing a little better this laptop hardware:
- CPU Intel Centrino Dual Core 1.66 GHz
- 2 GB of RAM
- 80 GB of Hard Disk SATA (faster!!! And kernel says 76319 MB instead)
- Built-in bluetooth
- Built-in Wireless Intel 3945ABG
- 3 USB ports
- VGA and S/Video outputs
- CD/DVD-RW unity (finally!!!)
- SD Memory card reader
- Gigabit Ethernet interface (Broadcom)
- Internal Modem
- Smart Card reader
- Fingerprint sensor
- Sound system Intel 82801G
Getting hands dirty
First thing, I had to move my partitions from /dev/ad0 to /dev/ad4since they use the new SATA interface. A boot with recovery disk was enough to achieve this.
First boot was ok, but far from fine. Screen came up weirdly, caused by xorg.conf, due the chipset swap from i810 to i915. And also the physical screen size was different from old 14".
Seeking in google, I found the following links:
Last resource was really handy. I could realize screen was 1280x800 instead. And some Linux procedures (not so few nowadays) helped me to make a roadmap to have FreeBSD successfully installed.
Graphical card 945GM
To achieve an optimal usage, add the following lines in /boot/loader.conf:
i915_load="YES"
It'll load all required modules (drm and so on).
Through ports, install package sysutils/915resolution. Then add the following lines to /etc/rc.conf:
i915resolution_enable="YES"
i915resolution_modes="3c"
i915resolution_width=1280
i915resolution_height=800
This will be enough to fix the poorly effect from xorg usage only.
Sound card Intel 82801G
Just add the following line to /boot/loader.conf:
snd_hda_load="YES"
Wireless 3945ABG (wpi0)
This one was a little bit trick. I had to add the following lines to /boot/loader.conf:
wlan_wep_load="YES"
wlan_scan_sta_load="YES"
if_ath_load="YES"
legal.intel_wpi.license_ack=1
wpifw_load="YES"
if_wpi_load="YES"
wlan_load="YES"
wlan_amrr_load="YES"
firmware_load="YES"
The last statement, firmware_load isn't needed since legal.intel_wpi.license_ack is in place, but it didn't hurt me to include there :-)
Internet Keys
As a plus, I added package sysutils/lineakd to make all internet keys useful (they were dead before). I configured /usr/local/etc/lineakkb.def as described in Linux article, just appending the following lines:
[HP-NC6400]
brandname = "Hewlett Packard"
modelname = "Compaq NC6400"
[KEYS]
Information = 245
Wireless = 133
Presentation = 205
Mute = 160
VolumeDown = 174
VolumeUp = 176
[END KEYS]
[END HP-NC6400]
It worked fine.
Dual Core CPU
It works by default once ACPI is enabled. Just check the following line in your boot messages:
SMP: AP CPU #1 Launched!
I've seen lately a lot of kernel messages as below:
acpi_tz0: _CRT value is absurd, ignored (256.0C)
acpi_tz0: _CRT value is absurd, ignored (256.0C)
acpi_tz0: _CRT value is absurd, ignored (256.0C)
acpi_tz0: _CRT value is absurd, ignored (256.0C)
acpi_tz0: _CRT value is absurd, ignored (256.0C)
acpi_tz0: _CRT value is absurd, ignored (256.0C)
acpi_tz0: _CRT value is absurd, ignored (256.0C)
It's harmless, but annoying. I tried to remove it setting sysctl with hw.acpi.thermal.polling_rate=0, but it didn't work...
Gigabit ethernet (bge0)
Just loaded as before, as bge0.
ACPI and sleep mode
Remains as a dream. Not working and crashing everything, as before. Some day it'll be fixed... For now, I need to shutdown my laptop every time. At least it isn't crashing on boot as before.
Card reader, fingerprint sensor and others
Not working and just detected as generic USB. Since I don't use so much those things, I really don't care about it. Maybe it would useful for internal modem, but since wireless broadband is becoming popular, I really don't think I'll need it soon.
Status Brief
- Dual core CPU: Working (requires ACPI)
- Sound system Intel 82801G: Working (requires snd_hda)
- Video card Mobile 945GM: Working (requires i915 module and i915resolution)
- Gigabit Ethernet: Working (requires if_bge)
- Bluetooth: Working
- Wireless 3945ABG: Working (requires wpifw, if_wpi andlegal.intel_wpi.license_ack=1 )
- SD Memory card reader: Not working
- Internal Modem: Not working
- Smart Card reader: Not working
- Fingerprint sensor: Not working
dmesg
Copyright (c) 1992-2008 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.0-STABLE #8: Fri Apr 18 10:57:25 BRT 2008
This email address is being protected from spambots. You need JavaScript enabled to view it. :/usr/obj/usr/src/sys/MUSASHI
module_register: module vgapci/i915 already exists!
Module vgapci/i915 failed to register: 17
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM)2 CPU T5500 @ 1.66GHz (1662.52-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x6f2 Stepping = 2
Features=0xbfebfbff
Features2=0xe3bd
AMD Features=0x20100000
AMD Features2=0x1
Cores per package: 2
real memory = 1602027520 (1527 MB)
avail memory = 1559875584 (1487 MB)
ACPI APIC Table:
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID: 0
cpu1 (AP): APIC ID: 1
ioapic0: Changing APIC ID to 1
ioapic0 irqs 0-23 on motherboard
kbd1 at kbdmux0
kqemu version 0x00010300
kqemu: KQEMU installed, max_locked_mem=777868kB.
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a0000 (3) failed
acpi0: reservation of 100000, 5f700000 (3) failed
Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000
acpi_timer0: port 0x1008-0x100b on acpi0
acpi_ec0: port 0x62,0x66 on acpi0
acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
cpu0: on acpi0
est0: on cpu0
est0: Setting 1667 MHz
p4tcc0: on cpu0
cpu1: on acpi0
est1: on cpu1
est1: Setting 1667 MHz
p4tcc1: on cpu1
pcib0: port 0xcf8-0xcff on acpi0
pci0: on pcib0
vgapci0: port 0x4000-0x4007 mem 0xf4600000-0xf467ffff,0xe0000000-0xefffffff,0xf4680000-0xf46bffff irq 16 at device 2.0 on pci0
agp0: on vgapci0
agp0: detected 7932k stolen memory
agp0: aperture size is 256M
drm0: on vgapci0
info: [drm] AGP at 0xe0000000 256MB
info: [drm] Initialized i915 1.5.0 20060119
vgapci1: mem 0xf4700000-0xf477ffff at device 2.1 on pci0
pcm0: mem 0xf4780000-0xf4783fff irq 16 at device 27.0 on pci0
pcm0: [ITHREAD]
pcib1: irq 16 at device 28.0 on pci0
pci8: on pcib1
pci0:8:0:0: invalid VPD data, remain 0xffff
bge0: mem 0xf4100000-0xf410ffff irq 16 at device 0.0 on pci8
miibus0: on bge0
brgphy0: PHY 1 on miibus0
brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
bge0: Ethernet address: 00:1b:38:36:e0:3f
bge0: [ITHREAD]
pcib2: irq 17 at device 28.1 on pci0
pci16: on pcib2
wpi0: mem 0xf4000000-0xf4000fff irq 17 at device 0.0 on pci16
wpi0: Ethernet address: 00:1b:77:5d:bd:9f
wpi0: [ITHREAD]
pcib3: irq 19 at device 28.3 on pci0
pci32: on pcib3
uhci0: port 0x4020-0x403f irq 20 at device 29.0 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: on uhci0
usb0: USB revision 1.0
uhub0: on usb0
uhub0: 2 ports with 2 removable, self powered
uhci1: port 0x4040-0x405f irq 22 at device 29.1 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: on uhci1
usb1: USB revision 1.0
uhub1: on usb1
uhub1: 2 ports with 2 removable, self powered
uhci2: port 0x4060-0x407f irq 18 at device 29.2 on pci0
uhci2: [GIANT-LOCKED]
uhci2: [ITHREAD]
usb2: on uhci2
usb2: USB revision 1.0
uhub2: on usb2
uhub2: 2 ports with 2 removable, self powered
uhci3: port 0x4080-0x409f irq 19 at device 29.3 on pci0
uhci3: [GIANT-LOCKED]
uhci3: [ITHREAD]
usb3: on uhci3
usb3: USB revision 1.0
uhub3: on usb3
uhub3: 2 ports with 2 removable, self powered
ehci0: mem 0xf4784000-0xf47843ff irq 20 at device 29.7 on pci0
ehci0: [GIANT-LOCKED]
ehci0: [ITHREAD]
usb4: EHCI version 1.0
usb4: companion controllers, 2 ports each: usb0 usb1 usb2 usb3
usb4: on ehci0
usb4: USB revision 2.0
uhub4: on usb4
uhub4: 8 ports with 8 removable, self powered
pcib4: at device 30.0 on pci0
pci2: on pcib4
cbb0: mem 0xf4200000-0xf4200fff irq 18 at device 6.0 on pci2
cardbus0: on cbb0
pccard0: on cbb0
cbb0: [ITHREAD]
pci2: at device 6.2 (no driver attached)
pci2: at device 6.3 (no driver attached)
pci2: at device 6.4 (no driver attached)
isab0: at device 31.0 on pci0
isa0: on isab0
atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x40a0-0x40af irq 16 at device 31.1 on pci0
ata0: on atapci0
ata0: [ITHREAD]
ata1: on atapci0
ata1: [ITHREAD]
atapci1: port 0x13f0-0x13f7,0x15f4-0x15f7,0x1370-0x1377,0x1574-0x1577,0x40d0-0x40df mem 0xf4785000-0xf47853ff irq 21 at device 31.2 on pci0
atapci1: [ITHREAD]
atapci1: AHCI Version 01.10 controller with 4 ports detected
ata2: on atapci1
ata2: [ITHREAD]
ata3: on atapci1
ata3: port not implemented
ata3: [ITHREAD]
ata4: on atapci1
ata4: port not implemented
ata4: [ITHREAD]
ata5: on atapci1
ata5: port not implemented
ata5: [ITHREAD]
battery0: on acpi0
battery1: on acpi0
acpi_acad0: on acpi0
acpi_button0: on acpi0
acpi_lid0: on acpi0
acpi_tz0: on acpi0
acpi_tz0: _CRT value is absurd, ignored (256.0C)
acpi_tz1: on acpi0
acpi_tz2: on acpi0
acpi_tz3: on acpi0
acpi_tz4: on acpi0
atkbdc0: port 0x60,0x64 irq 1 on acpi0
atkbd0: irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model IntelliMouse, device ID 3
sio0: port 0x3e8-0x3ef,0x100-0x10f irq 7 drq 3 flags 0x10 on acpi0
sio0: type 16550A
sio0: [FILTER]
pmtimer0 on isa0
orm0: at iomem 0xc0000-0xcffff pnpid ORM0000 on isa0
sc0: at flags 0x100 on isa0
sc0: VGA
vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ppc0: at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: on ppc0
lpt0: on ppbus0
lpt0: Polled port
ppi0: on ppbus0
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
ugen0: on uhub1
ums0: on uhub1
ums0: 8 buttons and Z dir.
uhid0: on uhub1
Timecounters tick every 1.000 msec
acd0: DVDR at ata0-master PIO4
ad4: 76319MB at ata2-master SATA150
pcm0:
pcm0:
SMP: AP CPU #1 Launched!
pciconf
hostb0@pci0:0:0:0: class=0x060000 card=0x30ad103c chip=0x27a08086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = '955XM/945GM/PM/GMS/940GML Express Processor to DRAM Controller'
class = bridge
subclass = HOST-PCI
vgapci0@pci0:0:2:0: class=0x030000 card=0x30ad103c chip=0x27a28086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = 'Mobile 945GM/GU Express Integrated Graphics Controller'
class = display
subclass = VGA
vgapci1@pci0:0:2:1: class=0x038000 card=0x30ad103c chip=0x27a68086 rev=0x03 hdr=0x00
vendor = 'Intel Corporation'
device = 'Mobile 945GM/GU Express Integrated Graphics Controller'
class = display
pcm0@pci0:0:27:0: class=0x040300 card=0x30ad103c chip=0x27d88086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) High Definition Audio'
class = multimedia
pcib1@pci0:0:28:0: class=0x060400 card=0x30ad103c chip=0x27d08086 rev=0x01 hdr=0x01
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) PCIe Root Port'
class = bridge
subclass = PCI-PCI
pcib2@pci0:0:28:1: class=0x060400 card=0x30ad103c chip=0x27d28086 rev=0x01 hdr=0x01
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) PCIe Root Port'
class = bridge
subclass = PCI-PCI
pcib3@pci0:0:28:3: class=0x060400 card=0x30ad103c chip=0x27d68086 rev=0x01 hdr=0x01
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) PCIe Root Port'
class = bridge
subclass = PCI-PCI
uhci0@pci0:0:29:0: class=0x0c0300 card=0x30ad103c chip=0x27c88086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class = serial bus
subclass = USB
uhci1@pci0:0:29:1: class=0x0c0300 card=0x30ad103c chip=0x27c98086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class = serial bus
subclass = USB
uhci2@pci0:0:29:2: class=0x0c0300 card=0x30ad103c chip=0x27ca8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class = serial bus
subclass = USB
uhci3@pci0:0:29:3: class=0x0c0300 card=0x30ad103c chip=0x27cb8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB Universal Host Controller'
class = serial bus
subclass = USB
ehci0@pci0:0:29:7: class=0x0c0320 card=0x30ad103c chip=0x27cc8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) USB 2.0 Enhanced Host Controller'
class = serial bus
subclass = USB
pcib4@pci0:0:30:0: class=0x060401 card=0x30ad103c chip=0x24488086 rev=0xe1 hdr=0x01
vendor = 'Intel Corporation'
device = '82801BAM/CAM/DBM (ICH2-M/3-M/4-M) Hub Interface to PCI Bridge'
class = bridge
subclass = PCI-PCI
isab0@pci0:0:31:0: class=0x060100 card=0x30ad103c chip=0x27b98086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801GBM (ICH7-M) LPC Interface Controller'
class = bridge
subclass = PCI-ISA
atapci0@pci0:0:31:1: class=0x01018a card=0x30ad103c chip=0x27df8086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801G (ICH7 Family) Ultra ATA Storage Controller'
class = mass storage
subclass = ATA
atapci1@pci0:0:31:2: class=0x010601 card=0x30ad103c chip=0x27c58086 rev=0x01 hdr=0x00
vendor = 'Intel Corporation'
device = '82801GB Mobile I/O Controller Hub SATA cc=AHCI'
class = mass storage
bge0@pci0:8:0:0: class=0x020000 card=0x30ad103c chip=0x16fd14e4 rev=0x21 hdr=0x00
vendor = 'Broadcom Corporation'
device = 'BCM5753M NetXtreme Gigabit Ethernet PciXpress'
class = network
subclass = ethernet
wpi0@pci0:16:0:0: class=0x028000 card=0x135c103c chip=0x42228086 rev=0x02 hdr=0x00
vendor = 'Intel Corporation'
device = '10418086 Intel 3945ABG Wireless LAN controller'
class = network
cbb0@pci0:2:6:0: class=0x060700 card=0x30ad103c chip=0x8039104c rev=0x00 hdr=0x02
vendor = 'Texas Instruments (TI)'
device = 'PCIxx12 Cardbus Controller'
class = bridge
subclass = PCI-CardBus
none0@pci0:2:6:2: class=0x018000 card=0x30ad103c chip=0x803b104c rev=0x00 hdr=0x00
vendor = 'Texas Instruments (TI)'
device = 'PCIxx12 Integrated Flash Media Controller'
class = mass storage
none1@pci0:2:6:3: class=0x080500 card=0x30ad103c chip=0x803c104c rev=0x00 hdr=0x00
vendor = 'Texas Instruments (TI)'
device = 'PCIxx12 SDA Standard Compliant SD Host Controller'
class = base peripheral
none2@pci0:2:6:4: class=0x078000 card=0x30ad103c chip=0x803d104c rev=0x00 hdr=0x00
vendor = 'Texas Instruments (TI)'
device = 'N/A Texas Instruments PCI GemCore based SmartCard controller'
class = simple comms
xorg.conf
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection
Section "Files"
RgbPath "/usr/local/share/X11/rgb"
ModulePath "/usr/local/lib/xorg/modules"
FontPath "/usr/local/lib/X11/fonts/misc"
FontPath "/usr/local/lib/X11/fonts/TTF"
FontPath "/usr/local/lib/X11/fonts/OTF"
FontPath "/usr/local/lib/X11/fonts/Type1"
FontPath "/usr/local/lib/X11/fonts/100dpi"
FontPath "/usr/local/lib/X11/fonts/75dpi"
FontPath "/usr/local/share/fonts"
EndSection
Section "Module"
Load "GLcore"
Load "dbe"
Load "dri"
Load "extmod"
Load "glx"
Load "record"
Load "xtrap"
Load "freetype"
Load "type1"
EndSection
Section "Extensions"
Option "Composite" "Enable"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbRules" "xorg"
Option "XkbModel" "abnt2"
Option "XkbLayout" "br"
EndSection
Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "ZAxisMapping" "4 5 6 7"
EndSection
Section "Device"
### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # []
#Option "SWcursor" # []
#Option "ColorKey" #
#Option "CacheLines" #
#Option "Dac6Bit" # []
#Option "DRI" # []
Option "NoDDC"
Option "DRI" "true"
#Option "NoDDC" # []
#Option "ShowCache" # []
#Option "XvMCSurfaces" #
#Option "PageFlip" # []
Option "XAANoOffscreenPixmaps" "true"
Identifier "Card0"
Driver "i810"
VendorName "Intel Corporation"
BoardName "Mobile 915GM/GMS/910GML Express Graphics Controller"
BusID "PCI:0:2:0"
VideoRam 64000
EndSection
Section "Device"
Identifier "Card1"
Driver "i810"
BusID "PCI:0:2:0"
# activate maximum supported througput thrue AGP
Option "AGPMode" "4"
# activate fast writes
Option "AGPFastWrite" "yes"
# needed for OpenGL support
Option "ColorTiling" "on"
# Advanced 3D option
Option "EnablePageFlip" "yes"
# Must be enabled to support dual monitor
#Option "MergedFB" "true"
# Modes for the second minitor
#Option "MetaModes" "1024x768"
# What monitor is connect where: 1: LCD, 2: CRT
#Option "MonitorLayout" "LVDS, CRT"
# Advanced power saving option.
Option "DynamicClocks" "true"
# Allow Fn-F4
Option "BIOSHotkeys" "true"
EndSection
Section "Monitor"
Identifier "Monitor0"
ModelName "1280X1024@60HZ"
#Option "DPMS"
EndSection
Section "Monitor"
DisplaySize 300 230
HorizSync 28-82
Identifier "Monitor1"
ModelName "1280X1024@60HZ"
Option "DPMS"
VendorName "--> LCD"
VertRefresh 50-60
#UseModes "MyModes"
EndSection
Section "Modes"
Identifier "MyModes"
Modeline "1280x1024" 105.15 1280 1360 1496 1712 1024 1025 1028 1059
Modeline "1280x960" 97.68 1280 1352 1488 1696 960 961 964 993
Modeline "1280x800" 80.58 1280 1344 1480 1680 800 801 804 827
Modeline "1152x864" 78.82 1152 1216 1336 1520 864 865 868 894
Modeline "1280x768" 77.37 1280 1344 1480 1680 768 769 772 794
Modeline "1024x768" 61.89 1024 1080 1184 1344 768 769 772 794
Modeline "800x600" 36.88 800 832 912 1024 600 601 604 621
Modeline "768x576" 33.74 768 792 872 976 576 577 580 596
Modeline "640x480" 23.06 640 656 720 800 480 481 484 497
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card1"
Monitor "Monitor1"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1280x800" "1280x1024" "1280x960" "1280x800" "1152x864" "1280x768" "1024x768" "800x600" "768x576" "640x480"
Virtual 1600 1200
EndSubSection
EndSection
Section "DRI"
Group 0
Mode 0666
EndSection