Asus V2-M3N8200 - FreeBSD

Hardware info on main page.

This machine runs the amd64 version of FreeBSD.

The first sata hard drive (ad4) is sliced up as follows:

slice 1 - 116 GB - a FreeBSD install (currently RELENG_7)
slice 2 - 116 GB - a FreeBSD install - RELENG_8 - currently 8.3-stable
slice 3 - 112 GB - NetBSD (currently 5.0 BETA)
slice 4 - 121 GB - Xubuntu (currently 8.10)

Because of Xubuntu, grub is used as the main bootloader.

Work log

2013-07-15: v7-as-v2 - slice 2 - after the latest upgrade of perl, the perl-after-upgrade script is gone. Now I have to do:

root@kg-v2# portupgrade -rf lang/perl5.12

which takes forever, updates a lot of non perl stuff - generally a much poorer solution, INMNSHO. Fallout:

** Listing the failed packages (-:ignored / *:skipped / !:failed)
- deskutils/alexandria (port deleted)
- emulators/basiliskII (port deleted)
- graphics/ruby-gnomecanvas2 (port deleted)
- devel/p5-Goo-Canvas (marked as IGNORE)
- devel/ruby-gconf2 (port deleted)
- devel/gnome-vfs1 (port deleted)
- devel/ruby-libglade2 (port deleted)
! devel/ruby-glib2 (ruby18-glib2-1.1.5) (new compiler error)
* devel/ruby-gio2 (ruby18-gio2-1.1.5)
* accessibility/ruby-atk (ruby18-atk-1.1.5)
* x11-toolkits/ruby-gstreamer (ruby18-gstreamer-1.1.5)
! graphics/ruby-cairo (ruby18-cairo-1.12.2) (unknown build error)
! x11-toolkits/ruby-poppler (ruby18-poppler-1.1.5) (unknown build error)
* x11-toolkits/ruby-pango (ruby18-pango-1.1.5)
* graphics/ruby-gdk_pixbuf2 (ruby18-gdk_pixbuf2-1.1.5)
* x11-toolkits/ruby-gtk2 (ruby18-gtk2-1.1.5)
* x11-toolkits/ruby-gtksourceview2 (ruby18-gtksourceview2-1.1.5)
* graphics/ruby-rsvg2 (ruby18-rsvg2-1.1.5)
! x11-toolkits/ruby-vte (ruby18-vte-1.1.5) (unknown build error)
* x11-toolkits/ruby-goocanvas (ruby18-goocanvas-1.1.5)
* x11/ruby-gnome2 (ruby18-gnome2-1.1.5)
! www/firefox (firefox-17.0.1,1) (unknown build error)
! editors/openoffice-3 (apache-openoffice-3.4.1) (clean error)
! mail/thunderbird (thunderbird-10.0.12) (unknown build error)

(some of these I aborted).

2013-07-14: v7-as-v2 - slice 2 - updating ports again, using portsnap fetch; portsnap update.

2013-05-27: v7-as-v2 - slice 2 - this morning the machine had rebooted. No reason found in logs or otherwise.

2013-05-11: v7-as-v2 - slice 2 - today I got these in /var/log/messages:

May 11 09:13:36 kg-v2 kernel: kern.maxfiles limit exceeded by uid 1001, please see tuning(7).
May 11 09:14:06 kg-v2 last message repeated 30 times
May 11 09:16:06 kg-v2 last message repeated 120 times
May 11 09:21:20 kg-v2 last message repeated 203 times
May 11 09:22:00 kg-v2 kernel: kern.maxfiles limit exceeded by uid 2, please see tuning(7).
May 11 09:25:22 kg-v2 sm-msp-queue[97497]: r4B7PMxP097497: SYSERR(UID0): gatherq: cannot open "/var/spool/clientmqueue": Too many open files in system
May 11 09:25:22 kg-v2 kernel: kern.maxfiles limit exceeded by uid 25, please see tuning(7).
May 11 09:26:20 kg-v2 kernel: kern.maxfiles limit exceeded by uid 1001, please see tuning(7).
May 11 09:31:20 kg-v2 kernel: kern.maxfiles limit exceeded by uid 1001, please see tuning(7).
May 11 09:33:00 kg-v2 kernel: kern.maxfiles limit exceeded by uid 2, please see tuning(7).
May 11 09:36:20 kg-v2 kernel: kern.maxfiles limit exceeded by uid 1001, please see tuning(7).

I didn't find out why, in the end I just quit XFce / Xorg and started it again. After a fresh start of Xfce and all programs I normally have open on my workstation, the files situation is like this:

tingo@kg-v2$ sysctl kern.maxfiles
kern.maxfiles: 12328
tingo@kg-v2$ sysctl kern.openfiles
kern.openfiles: 7736
tingo@kg-v2$ expr 12328 - 7736
4592

That's it.

2013-04-28: v7-as-v2 - slice 2 - updating ports again, using portsnap fetch; portsnap update.

2013-04-19: ada0p2 - after fixing /etc/X11/xorg.conf_nvidia (and linking it to /etc/X11/xorg.conf), i did 'startx'. In /var/log/Xorg.0.log I get this:

(II) NVIDIA GLX Module  304.64  Tue Oct 30 11:13:12 PDT 2012

(II) Module nvidia: vendor="NVIDIA Corporation"
        compiled for 4.0.2, module version = 1.0.0
        Module class: X.Org Video Driver

(II) NVIDIA dlloader X Driver  304.64  Tue Oct 30 10:55:56 PDT 2012
(II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
(II) Primary Device is: PCI 02@00:00:0

(II) NVIDIA GLX Module  304.64  Tue Oct 30 11:13:12 PDT 2012
(II) Loading extension GLX

(==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
(==) NVIDIA(0): RGB weight 888
(==) NVIDIA(0): Default visual is TrueColor
(==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
(**) Apr 19 18:30:42 NVIDIA(0): Enabling 2D acceleration
(II) Apr 19 18:30:42 NVIDIA(0): NVIDIA GPU GeForce 8200 (C77) at PCI:2:0:0 (GPU-0)
(--) Apr 19 18:30:42 NVIDIA(0): Memory: 524288 kBytes
(--) Apr 19 18:30:42 NVIDIA(0): VideoBIOS: 62.77.2f.00.00
(--) Apr 19 18:30:42 NVIDIA(0): Interlaced video modes are supported on this GPU
(--) Apr 19 18:30:42 NVIDIA(0): Valid display device(s) on GeForce 8200 at PCI:2:0:0
(--) Apr 19 18:30:42 NVIDIA(0):     BenQ GL2450H (CRT-0) (connected)
(--) Apr 19 18:30:42 NVIDIA(0):     DFP-0
(--) Apr 19 18:30:42 NVIDIA(0): BenQ GL2450H (CRT-0): 300.0 MHz maximum pixel clock
(--) Apr 19 18:30:42 NVIDIA(0): DFP-0: 165.0 MHz maximum pixel clock
(--) Apr 19 18:30:42 NVIDIA(0): DFP-0: Internal Single Link TMDS
(**) Apr 19 18:30:42 NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
(**) Apr 19 18:30:42 NVIDIA(0):     device BenQ GL2450H (CRT-0) (Using EDID frequencies has
(**) Apr 19 18:30:42 NVIDIA(0):     been enabled on all display devices.)
(==) Apr 19 18:30:42 NVIDIA(0):
(==) Apr 19 18:30:42 NVIDIA(0): No modes were requested; the default mode "nvidia-auto-select"
(==) Apr 19 18:30:42 NVIDIA(0):     will be used as the requested mode.
(==) Apr 19 18:30:42 NVIDIA(0):
(II) Apr 19 18:30:42 NVIDIA(0): Validated MetaModes:
(II) Apr 19 18:30:42 NVIDIA(0):     "CRT-0:nvidia-auto-select"
(II) Apr 19 18:30:42 NVIDIA(0): Virtual screen size determined to be 1920 x 1080
(--) Apr 19 18:30:43 NVIDIA(0): DPI set to (92, 91); computed from "UseEdidDpi" X config
(--) Apr 19 18:30:43 NVIDIA(0):     option
(--) Depth 24 pixmap format is 32 bpp
(II) Apr 19 18:30:43 NVIDIA: Reserving 768.00 MB of virtual memory for indirect memory
(II) Apr 19 18:30:43 NVIDIA:     access.
(II) Apr 19 18:30:43 NVIDIA(0): Setting mode "CRT-0:nvidia-auto-select"
(II) Loading extension NV-GLX
(==) NVIDIA(0): Disabling shared memory pixmaps
(==) NVIDIA(0): Backing store disabled
(==) NVIDIA(0): Silken mouse enabled
(==) NVIDIA(0): DPMS enabled
(II) Loading extension NV-CONTROL
(II) Loading extension XINERAMA

(**) Apr 19 18:30:54 NVIDIA(0): Using HorizSync/VertRefresh ranges from the EDID for display
(**) Apr 19 18:30:54 NVIDIA(0):     device BenQ GL2450H (CRT-0) (Using EDID frequencies has
(**) Apr 19 18:30:54 NVIDIA(0):     been enabled on all display devices.)

and my monitor is happy :-) xrandr report:

tingo@kg-v7$ DISPLAY=:0.0 xrandr
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 8192 x 8192
VGA-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 531mm x 298mm
   1920x1080      60.0*+
   1680x1050      60.0 
   1600x900       60.0 
   1280x1024      75.0     60.0 
   1280x800       59.8 
   1280x720       60.0 
   1024x768       75.0     60.0 
   800x600        75.0     60.3 
   640x480        75.0     59.9 
HDMI-0 disconnected (normal left inverted right x axis y axis)

and this time it is correct.

2013-04-19: ada0p2 - install the nvidia-driver:

root@kg-v7# pv nvid*
nvidia-driver-304.64        =  up-to-date with port

this also install a couple of other ports:

root@kg-v7# pv rpm* linux_bas*
linux_base-f10-10_5         =  up-to-date with port
rpm-3.0.6_15                =  up-to-date with port

Ok, now set up and test.

2013-04-19: ada0p2 - preparing to install the nvidia-driver, enable the linux kernel module:

root@kg-v7# grep linux /etc/rc.conf
# enable linux kernel module
linux_enable="YES"

and

root@kg-v7# kldload linux
root@kg-v7# kldstat
Id Refs Address            Size     Name
 1   12 0xffffffff80200000 133a770  kernel
 2    1 0xffffffff8153b000 2a20     coretemp.ko
 3    1 0xffffffff8153e000 29a0     aibs.ko
 4    1 0xffffffff81612000 aa23     fuse.ko
 5    1 0xffffffff8161d000 1f459    linux.ko

Done.

2013-04-14: ada0p2 - Xorg, funny, Xorg says that it is running in 1920x1080:

tingo@kg-v7$ DISPLAY=:0.0 xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 1920 x 1920
VGA0 connected 1920x1080+0+0 531mm x 298mm
   1920x1080      60.0*+   60.0 
   1680x1050      60.0 
   1600x900       60.0 
   1280x1024      75.0     60.0 
   1280x800       59.8 
   1152x864       75.0 
   1280x720       60.0 
   1024x768       75.0     60.0 
   832x624        74.6 
   800x600        75.0     60.3 
   640x480        75.0     59.9 
   720x400        70.1 
DVI0 disconnected

But my monitor disagrees, the real mode is 1680x1050. When I check /var/log/Xorg.0.log, I find the gfx chip:

(--) NV: Found NVIDIA GeForce 8200 at 02@00:00:0
my monitor seems to be detected ok:
(--) NV(0): DDC detected a CRT:
(II) NV(0): Manufacturer: BNQ  Model: 78a6  Serial#: 21573
(II) NV(0): Year: 2012  Week: 30
(II) NV(0): EDID Version: 1.3
(II) NV(0): Analog Display Input,  Input Voltage Level: 0.700/0.300 V
(II) NV(0): Sync:  Separate  Composite  SyncOnGreen
(II) NV(0): Max Image Size [cm]: horiz.: 53  vert.: 30
(II) NV(0): Gamma: 2.20
(II) NV(0): DPMS capabilities: Off; RGB/Color Display
(II) NV(0): Default color space is primary color space
(II) NV(0): First detailed timing is preferred mode
(II) NV(0): redX: 0.631 redY: 0.351   greenX: 0.334 greenY: 0.615
(II) NV(0): blueX: 0.157 blueY: 0.051   whiteX: 0.313 whiteY: 0.329
(II) NV(0): Supported established timings:
(II) NV(0): 720x400@70Hz
(II) NV(0): 640x480@60Hz
(II) NV(0): 640x480@75Hz
(II) NV(0): 800x600@60Hz
(II) NV(0): 800x600@75Hz
(II) NV(0): 832x624@75Hz
(II) NV(0): 1024x768@60Hz
(II) NV(0): 1024x768@75Hz
(II) NV(0): 1280x1024@75Hz
(II) NV(0): 1152x864@75Hz
(II) NV(0): Manufacturer's mask: 0
(II) NV(0): Supported standard timings:
(II) NV(0): #0: hsize: 1280  vsize 800  refresh: 60  vid: 129
(II) NV(0): #1: hsize: 1280  vsize 720  refresh: 60  vid: 49281
(II) NV(0): #2: hsize: 1280  vsize 1024  refresh: 60  vid: 32897
(II) NV(0): #3: hsize: 1600  vsize 900  refresh: 60  vid: 49321
(II) NV(0): #4: hsize: 1680  vsize 1050  refresh: 60  vid: 179
(II) NV(0): #5: hsize: 1920  vsize 1080  refresh: 60  vid: 49361
(II) NV(0): Supported detailed timing:
(II) NV(0): clock: 148.5 MHz   Image Size:  531 x 298 mm
(II) NV(0): h_active: 1920  h_sync: 2008  h_sync_end 2052 h_blank_end 2200 h_border: 0
(II) NV(0): v_active: 1080  v_sync: 1084  v_sync_end 1089 v_blanking: 1125 v_border: 0
(II) NV(0): Serial No: P7C08203019
(II) NV(0): Ranges: V min: 50 V max: 76 Hz, H min: 30 H max: 83 kHz, PixClock max 210 MHz
(II) NV(0): Monitor name: BenQ GL2450H
(II) NV(0): EDID (in hex):
(II) NV(0):     00ffffffffffff0009d1a67845540000
(II) NV(0):     1e1601030e351e782eba45a159559d28
(II) NV(0):     0d5054a56b80810081c08180a9c0b300
(II) NV(0):     d1c001010101023a801871382d40582c
(II) NV(0):     4500132a2100001e000000ff00503743
(II) NV(0):     30383230333031390a20000000fd0032
(II) NV(0):     4c1e5315000a202020202020000000fc
(II) NV(0):     0042656e5120474c32343530480a00b8
(--) NV(0): Trying load detection on VGA0 ... found one!
(II) NV(0): EDID vendor "BNQ", prod id 30886
(II) NV(0): Using EDID range info for horizontal sync
(II) NV(0): Using EDID range info for vertical refresh
(II) NV(0): Printing DDC gathered Modelines:
(II) NV(0): Modeline "1920x1080"x0.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz)
(II) NV(0): Modeline "800x600"x0.0   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz)
(II) NV(0): Modeline "640x480"x0.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz)
(II) NV(0): Modeline "640x480"x0.0   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz)
(II) NV(0): Modeline "720x400"x0.0   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz)
(II) NV(0): Modeline "1280x1024"x0.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz)
(II) NV(0): Modeline "1024x768"x0.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz)
(II) NV(0): Modeline "1024x768"x0.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz)
(II) NV(0): Modeline "832x624"x0.0   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz)
(II) NV(0): Modeline "800x600"x0.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz)
(II) NV(0): Modeline "1152x864"x0.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz)
(II) NV(0): Modeline "1280x800"x0.0   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz)
(II) NV(0): Modeline "1280x720"x60.0   74.48  1280 1336 1472 1664  720 721 724 746 -hsync +vsync (44.8 kHz)
(II) NV(0): Modeline "1280x1024"x0.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz)
(II) NV(0): Modeline "1600x900"x60.0  119.00  1600 1696 1864 2128  900 901 904 932 -hsync +vsync (55.9 kHz)
(II) NV(0): Modeline "1680x1050"x0.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz)
(II) NV(0): Modeline "1920x1080"x60.0  172.80  1920 2040 2248 2576  1080 1081 1084 1118 -hsync +vsync (67.1 kHz)
(II) NV(0): EDID vendor "BNQ", prod id 30886
(II) NV(0): Probing for EDID on I2C bus 2...
(II) NV(0): I2C device "I2C2:ddc2" registered at address 0xA0.
(II) NV(0):   ... none found
(II) NV(0): Output VGA0 connected
(II) NV(0): Output DVI0 disconnected
(II) NV(0): Using exact sizes for initial modes
(II) NV(0): Output VGA0 using initial mode 1920x1080
(II) NV(0): Using default gamma of (1.0, 1.0, 1.0) unless otherwise stated.
(--) NV(0): Virtual size is 1920x1920 (pitch 2048)
(**) NV(0):  Driver mode "1920x1080": 148.5 MHz (scaled from 0.0 MHz), 67.5 kHz, 60.0 Hz
(II) NV(0): Modeline "1920x1080"x60.0  148.50  1920 2008 2052 2200  1080 1084 1089 1125 +hsync +vsync (67.5 kHz)
(**) NV(0):  Driver mode "1920x1080": 172.8 MHz (scaled from 0.0 MHz), 67.1 kHz, 60.0 Hz
(II) NV(0): Modeline "1920x1080"x60.0  172.80  1920 2040 2248 2576  1080 1081 1084 1118 -hsync +vsync (67.1 kHz)
(**) NV(0):  Driver mode "1680x1050": 146.2 MHz (scaled from 0.0 MHz), 65.3 kHz, 60.0 Hz
(II) NV(0): Modeline "1680x1050"x60.0  146.25  1680 1784 1960 2240  1050 1053 1059 1089 -hsync +vsync (65.3 kHz)
(**) NV(0):  Driver mode "1600x900": 119.0 MHz (scaled from 0.0 MHz), 55.9 kHz, 60.0 Hz
(II) NV(0): Modeline "1600x900"x60.0  119.00  1600 1696 1864 2128  900 901 904 932 -hsync +vsync (55.9 kHz)
(**) NV(0):  Driver mode "1280x1024": 135.0 MHz (scaled from 0.0 MHz), 80.0 kHz, 75.0 Hz
(II) NV(0): Modeline "1280x1024"x75.0  135.00  1280 1296 1440 1688  1024 1025 1028 1066 +hsync +vsync (80.0 kHz)
(**) NV(0):  Driver mode "1280x1024": 108.0 MHz (scaled from 0.0 MHz), 64.0 kHz, 60.0 Hz
(II) NV(0): Modeline "1280x1024"x60.0  108.00  1280 1328 1440 1688  1024 1025 1028 1066 +hsync +vsync (64.0 kHz)
(**) NV(0):  Driver mode "1280x800": 83.5 MHz (scaled from 0.0 MHz), 49.7 kHz, 59.8 Hz
(II) NV(0): Modeline "1280x800"x59.8   83.50  1280 1352 1480 1680  800 803 809 831 -hsync +vsync (49.7 kHz)
(**) NV(0):  Driver mode "1152x864": 108.0 MHz (scaled from 0.0 MHz), 67.5 kHz, 75.0 Hz
(II) NV(0): Modeline "1152x864"x75.0  108.00  1152 1216 1344 1600  864 865 868 900 +hsync +vsync (67.5 kHz)
(**) NV(0):  Driver mode "1280x720": 74.5 MHz (scaled from 0.0 MHz), 44.8 kHz, 60.0 Hz
(II) NV(0): Modeline "1280x720"x60.0   74.48  1280 1336 1472 1664  720 721 724 746 -hsync +vsync (44.8 kHz)
(**) NV(0):  Driver mode "1024x768": 78.8 MHz (scaled from 0.0 MHz), 60.0 kHz, 75.0 Hz
(II) NV(0): Modeline "1024x768"x75.0   78.75  1024 1040 1136 1312  768 769 772 800 +hsync +vsync (60.0 kHz)
(**) NV(0):  Driver mode "1024x768": 65.0 MHz (scaled from 0.0 MHz), 48.4 kHz, 60.0 Hz
(II) NV(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz)
(**) NV(0):  Driver mode "832x624": 57.3 MHz (scaled from 0.0 MHz), 49.7 kHz, 74.6 Hz
(II) NV(0): Modeline "832x624"x74.6   57.28  832 864 928 1152  624 625 628 667 -hsync -vsync (49.7 kHz)
(**) NV(0):  Driver mode "800x600": 49.5 MHz (scaled from 0.0 MHz), 46.9 kHz, 75.0 Hz
(II) NV(0): Modeline "800x600"x75.0   49.50  800 816 896 1056  600 601 604 625 +hsync +vsync (46.9 kHz)
(**) NV(0):  Driver mode "800x600": 40.0 MHz (scaled from 0.0 MHz), 37.9 kHz, 60.3 Hz
(II) NV(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz)
(**) NV(0):  Driver mode "640x480": 31.5 MHz (scaled from 0.0 MHz), 37.5 kHz, 75.0 Hz
(II) NV(0): Modeline "640x480"x75.0   31.50  640 656 720 840  480 481 484 500 -hsync -vsync (37.5 kHz)
(**) NV(0):  Driver mode "640x480": 25.2 MHz (scaled from 0.0 MHz), 31.5 kHz, 59.9 Hz
(II) NV(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz)
(**) NV(0):  Driver mode "720x400": 28.3 MHz (scaled from 0.0 MHz), 31.5 kHz, 70.1 Hz
(II) NV(0): Modeline "720x400"x70.1   28.32  720 738 846 900  400 412 414 449 -hsync +vsync (31.5 kHz)
(**) NV(0): Display dimensions: (530, 300) mm
(**) NV(0): DPI set to (92, 162)

Hmm, the "virtual size" line looks suspicious.

2013-04-14: ada0p2 - Xorg - install the nv driver:

root@kg-v7# portinstall -R xf86-video-nv
[...]

2013-04-14: ada0p2 - the temporary hard drive looks like this:

root@kg-v7# uname -a
FreeBSD kg-v7.kg4.no 9.1-STABLE FreeBSD 9.1-STABLE #0: Sun Jan  6 20:09:55 CET 2013     root@kg-v7.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
root@kg-v7# gpart show -p
=>       34  312581741    ada0  GPT  (149G)
         34        128  ada0p1  freebsd-boot  (64k)
        162   77594624  ada0p2  freebsd-ufs  (37G)
   77594786   16777216  ada0p3  freebsd-swap  (8.0G)
   94372002  218209773          - free -  (104G)

and the filesystem layout:

root@kg-v7# swapinfo -h;df -h
Device          1K-blocks     Used    Avail Capacity
/dev/ada0p3       8388608       0B     8.0G     0%
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ada0p2     35G    6.1G     26G    19%    /
devfs          1.0k    1.0k      0B   100%    /dev

2013-04-14: well, it didn't boot, because I forgot to put the first boot stage onto the drive. Fix everything now:

root@kg-v7# gpart bootcode -b /boot/pmbr ada0
bootcode written to ada0
root@kg-v7# gpart bootcode -p /boot/gptboot -i 1 ada0

Try to boot again. Yes, that worked.

2013-04-14: slice 2 - using my temporary workstation (which is actually the v7 hardware with the v2 hard drive), I'm going to make a test hard drive for the v2 hardware. First I connect a WD 160 GB IDE / PATA hard drive, using a usb-to-ide/sata adapter (Deltaco SATA-61): It shows up like this in /var/log/messages:

Apr 14 17:26:12 kg-v2 kernel: ugen0.3: <JMicron> at usbus0
Apr 14 17:26:12 kg-v2 kernel: umass0: <MSC Bulk-Only Transfer> on usbus0
Apr 14 17:26:12 kg-v2 kernel: umass0:  SCSI over Bulk-Only; quirks = 0x4000
Apr 14 17:26:12 kg-v2 kernel: umass0:0:0:-1: Attached to scbus0
Apr 14 17:26:12 kg-v2 kernel: da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
Apr 14 17:26:12 kg-v2 kernel: da0: <WDC WD16 00AVJB-63J5A0 > Fixed Direct Access SCSI-2 device
Apr 14 17:26:12 kg-v2 kernel: da0: 40.000MB/s transfers
Apr 14 17:26:12 kg-v2 kernel: da0: 152627MB (312581808 512 byte sectors: 255H 63S/T 19457C)
Apr 14 17:26:12 kg-v2 kernel: GEOM: da0s1: geometry does not match label (16h,63s != 255h,63s).
Apr 14 17:26:12 kg-v2 kernel: GEOM: da0s2: geometry does not match label (16h,63s != 255h,63s).
Apr 14 17:26:12 kg-v2 kernel: GEOM: da0s3: geometry does not match label (16h,63s != 255h,63s).
Apr 14 17:26:12 kg-v2 kernel: GEOM: da0s4: geometry does not match label (16h,63s != 255h,63s).

But it is marked "ready for reuse". This was the boot drive for the old "quiet" machine. Layout is like this:

root@kg-v2# ls /dev/da0*
/dev/da0    /dev/da0s1b    /dev/da0s1f    /dev/da0s2d    /dev/da0s3    /dev/da0s3e
/dev/da0s1    /dev/da0s1d    /dev/da0s2    /dev/da0s2e    /dev/da0s3a    /dev/da0s3f
/dev/da0s1a    /dev/da0s1e    /dev/da0s2a    /dev/da0s2f    /dev/da0s3d    /dev/da0s4

Nothing I need. Use gpart to delete old, and create new stuff:

root@kg-v2# gpart show -p da0
=>       63  312581745    da0  MBR  (149G)
         63   78140097  da0s1  freebsd  [active]  (37G)
   78140160   78140160  da0s2  freebsd  (37G)
  156280320   78140160  da0s3  freebsd  (37G)
  234420480   78156225  da0s4  freebsd  (37G)
  312576705       5103         - free -  (2.5M)

Destroy it:

root@kg-v2# gpart destroy da0
gpart: Device busy
root@kg-v2# gpart destroy -F da0
da0 destroyed

verify

root@kg-v2# gpart show da0
gpart: No such geom: da0.

OK, next create a gpart GPT:

root@kg-v2# gpart create -s GPT da0
da0 created
root@kg-v2# gpart show da0
=>       34  312581741  da0  GPT  (149G)
         34  312581741       - free -  (149G)

Good. I need a freebsd-boot partition, a swap partition and at least one ufs partition:

root@kg-v2# gpart add -t freebsd-boot -s 64k da0
da0p1 added
root@kg-v2# gpart add -t freebsd-ufs -s 37G da0
da0p2 added
root@kg-v2# gpart add -t freebsd-swap -s 8G da0
da0p3 added

It all looks like this:

root@kg-v2# gpart show -p da0
=>       34  312581741    da0  GPT  (149G)
         34        128  da0p1  freebsd-boot  (64k)
        162   77594624  da0p2  freebsd-ufs  (37G)
   77594786   16777216  da0p3  freebsd-swap  (8.0G)
   94372002  218209773         - free -  (104G)

Next, put bootcode on the boot partition:

root@kg-v2# gpart bootcode -p /boot/gptboot -i 1 da0

Hmm, no indication that this worked? Oh well. Create a filesystem:

root@kg-v2# newfs -U /dev/da0p2
/dev/da0p2: 37888.0MB (77594624 sectors) block size 16384, fragment size 2048
    using 207 cylinder groups of 183.72MB, 11758 blks, 23552 inodes.
    with soft updates
super-block backups (for fsck -b #) at:
 160, 376416, 752672, 1128928, 1505184, 1881440, 2257696, 2633952, 3010208, 3386464, 3762720, 4138976, 4515232,
 4891488, 5267744, 5644000, 6020256, 6396512, 6772768, 7149024, 7525280, 7901536, 8277792, 8654048, 9030304,
 9406560, 9782816, 10159072, 10535328, 10911584, 11287840, 11664096, 12040352, 12416608, 12792864, 13169120,
 13545376, 13921632, 14297888, 14674144, 15050400, 15426656, 15802912, 16179168, 16555424, 16931680, 17307936,
 17684192, 18060448, 18436704, 18812960, 19189216, 19565472, 19941728, 20317984, 20694240, 21070496, 21446752,
 21823008, 22199264, 22575520, 22951776, 23328032, 23704288, 24080544, 24456800, 24833056, 25209312, 25585568,
 25961824, 26338080, 26714336, 27090592, 27466848, 27843104, 28219360, 28595616, 28971872, 29348128, 29724384,
 30100640, 30476896, 30853152, 31229408, 31605664, 31981920, 32358176, 32734432, 33110688, 33486944, 33863200,
 34239456, 34615712, 34991968, 35368224, 35744480, 36120736, 36496992, 36873248, 37249504, 37625760, 38002016,
 38378272, 38754528, 39130784, 39507040, 39883296, 40259552, 40635808, 41012064, 41388320, 41764576, 42140832,
 42517088, 42893344, 43269600, 43645856, 44022112, 44398368, 44774624, 45150880, 45527136, 45903392, 46279648,
 46655904, 47032160, 47408416, 47784672, 48160928, 48537184, 48913440, 49289696, 49665952, 50042208, 50418464,
 50794720, 51170976, 51547232, 51923488, 52299744, 52676000, 53052256, 53428512, 53804768, 54181024, 54557280,
 54933536, 55309792, 55686048, 56062304, 56438560, 56814816, 57191072, 57567328, 57943584, 58319840, 58696096,
 59072352, 59448608, 59824864, 60201120, 60577376, 60953632, 61329888, 61706144, 62082400, 62458656, 62834912,
 63211168, 63587424, 63963680, 64339936, 64716192, 65092448, 65468704, 65844960, 66221216, 66597472, 66973728,
 67349984, 67726240, 68102496, 68478752, 68855008, 69231264, 69607520, 69983776, 70360032, 70736288, 71112544,
 71488800, 71865056, 72241312, 72617568, 72993824, 73370080, 73746336, 74122592, 74498848, 74875104, 75251360,
 75627616, 76003872, 76380128, 76756384, 77132640, 77508896

Next, mount the source:

root@kg-v2# mount /dev/ad6p2 /mnt

mount the destination:

root@kg-v2# mount /dev/da0p2 /media

copy contents (yes, I know this is not the recommended way):

root@kg-v2# cd /mnt
root@kg-v2# find . | cpio -pdumv /media
[...]
/media/./COPYRIGHT
/media/./home
/media/./entropy
/media/./.sujournal
11656106 blocks

The only remaining thing is to umount, install in the v2 hardware and test.

2013-03-30: slice 2 - updating ports again, using portsnap fetch; portsnap update.

2013-03-30: slice 2 - currently using the v7 machine with the gfx-card and hard drive from this one (v2), since it stopped working today. dmesg output: normal. Still running 8.2-stable:

tingo@kg-v2$ uname -a
FreeBSD kg-v2.kg4.no 8.3-STABLE FreeBSD 8.3-STABLE #6: Fri Apr 27 23:50:55 CEST 2012     root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

Fixes needed: the network card is re0, not nfe0. /etc/rc.conf updated accordingly: ifconfig_re0="DHCP" I created a new xorg.conf:

root@kg-v2# ls -l /etc/X11
total 8
lrwxr-xr-x  1 root  wheel    12 Mar 30 17:19 xorg.conf -> xorg.conf_v7
-rw-r--r--  1 root  wheel  2821 Mar 26  2011 xorg.conf_org
-rw-r--r--  1 root  wheel  2821 Mar 30 16:58 xorg.conf_v7

changes from the old one is:

root@kg-v2# diff -u /etc/X11/xorg.conf_org /etc/X11/xorg.conf_v7
--- /etc/X11/xorg.conf_org    2011-03-26 21:28:19.000000000 +0100
+++ /etc/X11/xorg.conf_v7    2013-03-30 16:58:09.000000000 +0100
@@ -71,7 +71,7 @@
     Driver      "nv"
     VendorName  "nVidia Corporation"
     BoardName   "G86 [GeForce 8500 GT]"
-    BusID       "PCI:2:0:0"
+    BusID       "PCI:1:0:0"
 EndSection

 Section "Screen"

I also had to remove the ~/.cache directory of my user (I renamed it, and made a new one), because xfce4 was crashing all the time before I did that. That's it.

2013-03-09: slice 2 - updating ports again, using portsnap fetch; portsnap update.

2013-02-25: slice 2 - I followed /usr/ports/UPDATING entry 20121211 about devel/pcre, and did a portupgrade -fr devel/pcre (which took several days), the result was:

** Listing the failed packages (-:ignored / *:skipped / !:failed)
    - devel/ruby-libglade2 (port deleted)
    - deskutils/alexandria (port deleted)
    - www/firefox (marked as IGNORE)
    - graphics/ruby-gnomecanvas2 (port deleted)
    - devel/ruby-gconf2 (port deleted)
    - emulators/basiliskII (port deleted)
    ! editors/openoffice-3 (apache-openoffice-3.4.0_3)    (interrupted by user)
    ! graphics/gegl (gegl-0.1.8_6)    (unknown build error)
    * graphics/gimp-app (gimp-app-2.6.12_1,1)
    * graphics/xsane (xsane-0.998_3)
    * print/gimp-gutenprint (gimp-gutenprint-5.2.8)
    * graphics/py-gimp (py27-gimp-app-2.6.12_1)
    * graphics/gimp (gimp-2.6.12,2)
    * graphics/sane-frontends (sane-frontends-1.0.14_8)
    * graphics/gscan2pdf (gscan2pdf-1.0.4_1)

I hope this will fix the problems I have with sshfs doing a core dump when I connect to other servers.

2013-01-17: slice 2 - I switched from acpi_aiboost(4) to aibs(4) - it is a newer version - by replacing the acpi_aiboost_load="YES" in /boot/loader.conf with this one:

aibs_load="YES"

Descriptions:

root@kg-v2# sysctl -d dev.aibs.0
dev.aibs.0:
dev.aibs.0.volt.0: Vcore Voltage
dev.aibs.0.volt.1:  +3.3 Voltage
dev.aibs.0.volt.2:  +5 Voltage
dev.aibs.0.volt.3:  +12 Voltage
dev.aibs.0.temp.0: CPU Temperature
dev.aibs.0.temp.1: MB Temperature
dev.aibs.0.fan.0: CPU FAN Speed
dev.aibs.0.fan.1: CHASSIS FAN Speed
dev.aibs.0.fan.2: POWER FAN Speed
dev.aibs.0.%desc: device description
dev.aibs.0.%driver: device driver name
dev.aibs.0.%location: device location relative to parent
dev.aibs.0.%pnpinfo: device identification
dev.aibs.0.%parent: parent device

values:

root@kg-v2# sysctl dev.aibs.0
dev.aibs.0.volt.0: 1184 800 1800
dev.aibs.0.volt.1: 3328 2970 3630
dev.aibs.0.volt.2: 4966 4500 5500
dev.aibs.0.volt.3: 11912 10200 13800
dev.aibs.0.temp.0: 36.0C 60.0C 95.0C
dev.aibs.0.temp.1: 46.0C 45.0C 95.0C
dev.aibs.0.fan.0: 2083 600 7200
dev.aibs.0.fan.1: 0 600 7200
dev.aibs.0.fan.2: 0 600 7200
dev.aibs.0.%desc: ASUSTeK AI Booster (ACPI ASOC ATK0110)
dev.aibs.0.%driver: aibs
dev.aibs.0.%location: handle=\_SB_.PCI0.SBRG.ASOC
dev.aibs.0.%pnpinfo: _HID=ATK0110 _UID=16843024
dev.aibs.0.%parent: acpi0

That's all.

2012-12-30: slice 2 - I switched to portsnap for getting ports onto this machine. First portsnap fetch, then portsnap extract.

root@kg-v2# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 6 mirrors found.
Fetching snapshot tag from ec2-eu-west-1.portsnap.freebsd.org... done.
Fetching snapshot metadata... done.
Updating from Sat Dec 15 11:14:51 CET 2012 to Sun Dec 30 12:27:43 CET 2012.
Fetching 4 metadata patches... done.
Applying metadata patches... done.
Fetching 4 metadata files... done.
Fetching 1498 patches.....10....20....30....40....50....60....70....80....90....100....110....120....130....140....150....160....170....180....190....200....210....220....230....240....250....260....270....280....290....300....310....320....330....340....350....360....370....380....390....400....410....420....430....440....450....460....470....480....490....500....510....520....530....540....550....560....570....580....590....600....610....620....630....640....650....660....670....680....690....700....710....720....730....740....750....760....770....780....790....800....810....820....830....840....850....860....870....880....890....900....910....920....930....940....950....960....970....980....990....1000....1010....1020....1030....1040....1050....1060....1070....1080....1090....1100....1110....1120....1130....1140....1150....1160....1170....1180....1190....1200....1210....1220....1230....1240....1250....1260....1270....1280....1290....1300....1310....1320....1330....1340....1350....1360....1370....1380....1390....1400....1410....1420....1430....1440....1450....1460....1470....1480....1490.... done.
Applying patches... done.
Fetching 122 new ports or files... done.

I renamed the current ports directory before I did the extract.

2012-12-08: slice 2 - suddenly, sshfs crashes when I am copying files. No core dumps. From/var/log/messages:

Dec  8 14:04:32 kg-v2 kernel: pid 25378 (sshfs), uid 1001: exited on signal 11
Dec  8 14:13:40 kg-v2 kernel: pid 25533 (sshfs), uid 1001: exited on signal 11
Dec  8 14:13:58 kg-v2 kernel: pid 25558 (sshfs), uid 1001: exited on signal 10

Other programs don't crash, so I don't think it is bad RAM.

2012-10-01: slice 2 - this machine has a built-in card reader. Can I "reboot" that reader using power_off / power_on? Without ill side-effects (like the machine hanging)? The reader:

root@kg-v2# usbconfig -u 1 -a 2
ugen1.2: <USB 2.0 Reader Generic> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON

Try to power it off:

root@kg-v2# usbconfig -u 1 -a 2 power_off
root@kg-v2# usbconfig -u 1 -a 2
ugen1.2: <USB 2.0 Reader Generic> at usbus1, cfg=255 md=HOST spd=HIGH (480Mbps) pwr=OFF

Ok, looks like that worked. Now, try to power it on again, and see what happens:

root@kg-v2# usbconfig -u 1 -a 2 power_on
root@kg-v2# usbconfig -u 1 -a 2
ugen1.2: <USB 2.0 Reader Generic> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON

Looks like that worked too. Now, check /var/log/messages:

Oct  1 22:45:32 kg-v2 kernel: da1 at umass-sim0 bus 0 scbus0 target 0 lun 1
Oct  1 22:45:32 kg-v2 kernel: da1: <Generic 2.0 Reader    -1 1.00> Removable Direct Access SCSI-0 device
Oct  1 22:45:32 kg-v2 kernel: da1: 40.000MB/s transfers
Oct  1 22:45:32 kg-v2 kernel: da1: 7580MB (15523840 512 byte sectors: 255H 63S/T 966C)

Ok, the 8 GB microSD card (in a SDcard adapter) seems to be detected:

root@kg-v2# ls /dev/da1*
/dev/da1    /dev/da1s1

Cool. Check the partition:

root@kg-v2# disktype /dev/da1

--- /dev/da1
Character device, size 7.402 GiB (7948206080 bytes)
DOS/MBR partition map
Partition 1: 7.398 GiB (7944011776 bytes, 15515648 sectors from 8192)
  Type 0x0B (Win95 FAT32)
  FAT32 file system (hints score 4 of 5)
    Volume size 7.395 GiB (7939817472 bytes, 242304 clusters of 32 KiB)

root@kg-v2# disktype /dev/da1s1

--- /dev/da1s1
Character device, size 7.398 GiB (7944011776 bytes)
FAT32 file system (hints score 4 of 5)
  Volume size 7.395 GiB (7939817472 bytes, 242304 clusters of 32 KiB)

Hmm, let's try to mount it, see if there is anything on it:

root@kg-v2# mount -t msdosfs /dev/da1s1 /media
root@kg-v2# df -h /media
Filesystem    Size    Used   Avail Capacity  Mounted on
/dev/da1s1    7.4G     96k    7.4G     0%    /media
root@kg-v2# ls -la /media
total 34
drwxrwxr-x   1 root  wheel  32768 Dec 31  1979 .
drwxr-xr-x  20 root  wheel    512 Sep 21 16:37 ..

Nope - empty.

root@kg-v2# umount /media

That's it.

2012-08-19: I upgraded ports. New stuff: Opera 12.01, xfce4-netload-plugin 1.2.0.

2012-06-17: slice 2 - adding a few things for my usb-based cd / dvd burner. In /etc/devfs.conf:

link    cd0     cdrom

in /etc/devfs.rules:

add path 'cd*' mode 0660
add path 'cd*' group operator

That's it.

2012-05-28: slice 2 - after the upgrade, I forgot to disable the built-in lp* commands. Fixing that now:

root@kg-v2# ls -l /usr/bin/lp*
-r-xr-xr-x  1 root  wheel    2747 Apr 28 00:30 /usr/bin/lp
-r-xr-xr-x  1 root  wheel    2747 Jul 17  2011 /usr/bin/lp.bsd
-r-sr-sr-x  1 root  daemon  34264 Apr 28 00:30 /usr/bin/lpq
-r-sr-sr-x  1 root  daemon  34288 Jul 17  2011 /usr/bin/lpq.bsd
-r-sr-sr-x  1 root  daemon  38296 Apr 28 00:30 /usr/bin/lpr
-r-sr-sr-x  1 root  daemon  38320 Jul 17  2011 /usr/bin/lpr.bsd
-r-sr-sr-x  1 root  daemon  30280 Apr 28 00:30 /usr/bin/lprm
-r-sr-sr-x  1 root  daemon  30304 Jul 17  2011 /usr/bin/lprm.bsd

remove the old ones:

root@kg-v2# rm /usr/bin/lp.bsd /usr/bin/lpq.bsd /usr/bin/lpr.bsd /usr/bin/lprm.bsd

and rename the new ones:

root@kg-v2# mv /usr/bin/lp /usr/bin/lp.bsd; mv /usr/bin/lpq /usr/bin/lpq.bsd; mv /usr/bin/lpr /usr/bin/lpr.bsd; mv /usr/bin/lprm /usr/bin/lprm.bsd

Verify:

root@kg-v2# ls -l /usr/bin/lp*
-r-xr-xr-x  1 root  wheel    2747 Apr 28 00:30 /usr/bin/lp.bsd
-r-sr-sr-x  1 root  daemon  34264 Apr 28 00:30 /usr/bin/lpq.bsd
-r-sr-sr-x  1 root  daemon  38296 Apr 28 00:30 /usr/bin/lpr.bsd
-r-sr-sr-x  1 root  daemon  30280 Apr 28 00:30 /usr/bin/lprm.bsd

All done.

2012-04-27: slice 2 - upgraded to FreeBSD 8.3-stable via csup / make world. dmesg output: normal, verbose (part 1, part 2):

tingo@kg-v2$ uname -a
FreeBSD kg-v2.kg4.no 8.3-STABLE FreeBSD 8.3-STABLE #6: Fri Apr 27 23:50:55 CEST 2012     root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

After the build, I rebuilt a few ports: cuse4bsd-kmod, fusefs-kmod, virtualbox-ose-kmod. That's all.

2012-04-06: slice 2 - upgraded to FreeBSD 8.3-prerelease via csup / make world. dmesg output: normal, verbose (part 1, part 2).

tingo@kg-v2$ uname -a
FreeBSD kg-v2.kg4.no 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #5: Fri Apr  6 21:35:20 CEST 2012     root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

That's it.

2011-07-18: slice 2 - the port umcs7840-kmod would not build on FreeBSD 8.2-stable, due to some ABI change. But the umcs(4) kernel module is included in the base os now, so I'm all set, just kldload umcs when I need to use the 4-port serial adapter. Cool!

2011-07-17: slice 2 - I upgraded to Xfce 4.8. After the upgrade I had to reinstall the sysutils/garcon port, in order for the Xfce menu to work.

2011-07-16: slice 2 - upgraded to FreeBSD 8.2-stable via csup, make world. dmesg output: normal, verbose (part 1, part 2). Rebuilt the following ports: cuse4bsd-kmod, fusefs-kmod, virtualbox-ose-kmod.

tingo@kg-v2$ uname -a
FreeBSD kg-v2.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #4: Sat Jul 16 02:07:14 CEST 2011     root@kg-v2.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

2010-09-16: slice 2 - upgraded to FreeBSD 8.1-stable via csup. dmesg output: normal, verbose. Rebuilt the fusefs-kmod and cuse4bsd-kmod ports.

2010-04-11: slice 2 - upgraded to latest FreeBSD 8.0-stable via csup. dmesg output: normal, verbose.

2010-01-07: slice 2 - added the following to /boot/loader.conf:

tingo@kg-v2$ more /boot/loader.conf
acpi_aiboost_load="YES"
amdtemp_load="YES"
#ichsmb_load="YES"
snd_hda_load="YES"

ichsmb is commented out because it doesn't work anymore. Nor does nfsmb.

2010-01-06: slice 2 - quickly updated to latest FreeBSD 8.0-stable via csup; this is now my working environment. dmesg output: normal, verbose (part 1, part 2).

2010-01-06: slice 2 - upgraded to FreeBSD 8.0-release, using a cd (disc1). dmesg output: normal, verbose (part 1, part 2).

2009-10-31: slice 1 - output from lspci, lspci -v, pciconf -lv.

2009-10-31: slice 2 - upgraded to FreeBSD 8.0-RC2, using a cd (disc1). dmesg output: normal, verbose.

2009-10-30: slice 1 - upgraded to latest FreeBSD 7.2-stable. dmesg output: normal, verbose.

2009-07-18: slice 1 - upgraded to latest FreeBSD 7.2-stable. dmesg output: normal. No mergemaster issues this time. I also built a custom kernel (without the umass and ulpt devices) in order to use my printer with hplip..

2009-05-17: I found out that the acpi_aiboost module works on this machine. After loading, this shows up in /var/log/messages:

May 17 01:13:33 kg-v2 kernel: acpi_aiboost0: <ASUStek AIBOOSTER> on acpi0

and I get data with:

tingo@kg-v2$ sysctl dev.acpi_aiboost
dev.acpi_aiboost.0.%desc: ASUStek AIBOOSTER
dev.acpi_aiboost.0.%driver: acpi_aiboost
dev.acpi_aiboost.0.%location: handle=\_SB_.PCI0.SBRG.ASOC
dev.acpi_aiboost.0.%pnpinfo: _HID=ATK0110 _UID=16843024
dev.acpi_aiboost.0.%parent: acpi0
dev.acpi_aiboost.0.temp0: 410
dev.acpi_aiboost.0.temp1: 470
dev.acpi_aiboost.0.volt0: 1248
dev.acpi_aiboost.0.volt1: 3312
dev.acpi_aiboost.0.volt2: 5017
dev.acpi_aiboost.0.volt3: 11912
dev.acpi_aiboost.0.fan0: 2205
dev.acpi_aiboost.0.fan1: 0
dev.acpi_aiboost.0.fan2: 0

Very nice.

2009-05-10: slice 1 - upgraded to FreeBSD 7.2-stable. dmesg output: normal, verbose (part 1, part2). mergemaster overwrote my /etc/motd file, I had to restore it from backup.

2009-04-04: slice 1 - upgraded to FreeBSD 7.2-prerelease. dmesg output: normal, verbose (part 1, part 2). Note to self: do not use the '-F' option to mergemaster, it "upgrades" far more files than it should.

2009-02-01: slice 2 - I upgraded to latest FreeBSD 8.0-current (via csup). dmesg output: normal, verbose.

2009-01-31: disklabel backups: in case of emergency, I did disklabel slice > file.txt for the FreeBSD slices. disklabel backup for ad4s1, ad4s2.

2009-01-16: slice 1 - upgraded to latest FreeBSD 7.1-stable again. dmesg output normal, verbose (part 1, part 2).

2009-01-10: slice 1 - added a patch for snd_hda (from Alexander Motin, on the freebsd-mobile mailinglist) to not cross mix some channels. With the patch, dmesg output from snd_hda looks a bit different: output.

2009-01-09: slice 1 - I upgraded to latest FreeBSD 7.1-stable again. This has a new snd_hda version. dmesg output: normal, verbose (part 1, part 2). I noticed that the buffer couldn't hold all lines when I loaded snd_hda, so the output from snd_hda is in "part 2".. 'cat /dv/sndstat' now shows:

root@kg-v2# cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2007061600/amd64)
Installed devices:
pcm0: <HDA VIA VT1708B_1 PCM #0 Analog> at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex default)
pcm1: <HDA VIA VT1708B_1 PCM #1 Digital> at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/0r:0v channels)
pcm2: <HDA NVidia (Unknown) PCM #0 Digital> at cad 3 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/0r:0v channels)

2009-01-07: slice 1 - I added the drm-patch from here and built a new kernel. dmesg output: normal, verbose.

2009-01-06: slice 1 - I upgraded to FreeBSD 7.1-stable. dmesg output: normal, verbose.

2009-01-02: I had a nVidia GeForce 8500 GT gfx card laying about, so I added that. At least the Xorg 'nv' driver detects it and uses it. Is it any better than using the 'vesa' driver? I don't know.

2009-01-02: I changed SATA mode in BIOS from 'SATA' to 'AHCI'. Now the ata parts are detected like this:

root@kg-v2# dmesg | grep ata
atapci0: <nVidia nForce MCP77 UDMA133 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 6.0 on pci0
ata0: <ATA channel 0> on atapci0
ata0: [ITHREAD]
ata1: <ATA channel 1> on atapci0
ata1: [ITHREAD]
atapci1: <nVidia AHCI controller> port 0xd480-0xd487,0xd400-0xd403,0xd080-0xd087,0xd000-0xd003,0xcc00-0xcc0f mem 0xfcf76000-0xfcf77fff irq 23 at device 9.0 on pci0
atapci1: [ITHREAD]
atapci1: AHCI Version 01.20 controller with 6 ports detected
ata2: <ATA channel 0> on atapci1
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci1
ata3: [ITHREAD]
ata4: <ATA channel 2> on atapci1
ata4: [ITHREAD]
ata5: <ATA channel 3> on atapci1
ata5: [ITHREAD]
ata6: <ATA channel 4> on atapci1
ata6: [ITHREAD]
ata7: <ATA channel 5> on atapci1
ata7: [ITHREAD]
ad4: 476940MB <SAMSUNG HD501LJ CR100-13> at ata2-master SATA300

Obviously, the UDMA133 controller hasn't changed.

2009-01-01: slice 2: I installed the 200812 snapshot of FreeBSD 8.0-current. dmesg output: normal, verbose.

2008-12-26: slice 1: output from pciconf -lv, lspci and lspci -v.

2008-12-26: slice 1: with Alexander Motin's latest snd_hda UAA patch, I get this in /var/log/messages:

Dec 26 20:28:57 kg-v2 kernel: hdac0: <NVidia (Unknown) High Definition Audio Controller> mem 0xfcf78000-0xfcf7bfff irq 22 at device 7.0 on pci0
Dec 26 20:28:57 kg-v2 kernel: hdac0: HDA Driver Revision: 20081030_0115
Dec 26 20:28:57 kg-v2 kernel: hdac0: [ITHREAD]
Dec 26 20:28:57 kg-v2 kernel: hdac0: HDA Codec #0: VIA (Unknown)
Dec 26 20:28:57 kg-v2 kernel: hdac0: HDA Codec #3: NVidia (Unknown)
Dec 26 20:28:57 kg-v2 kernel: pcm0: <HDA VIA (Unknown) PCM #0> at cad 0 nid 1 on hdac0
Dec 26 20:28:57 kg-v2 kernel: pcm1: <HDA VIA (Unknown) PCM #1> at cad 0 nid 1 on hdac0
Dec 26 20:28:57 kg-v2 kernel: pcm2: <HDA NVidia (Unknown) PCM #0> at cad 3 nid 1 on hdac0

and this is the output from cat /dev/sndstat:

root@kg-v2# cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2007061600/amd64)
Installed devices:
pcm0: <HDA VIA (Unknown) PCM #0> at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/1r:1v channels duplex default)
pcm1: <HDA VIA (Unknown) PCM #1> at cad 0 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/0r:0v channels)
pcm2: <HDA NVidia (Unknown) PCM #0> at cad 3 nid 1 on hdac0 kld snd_hda [MPSAFE] (1p:1v/0r:0v channels)

2008-12-25: slice 1: I upgraded to latest RELENG_7 (FreeBSD 7.1-prerelease). dmesg output: normal, verbose. When I kldload snd_hda, it reports like this in /var/log/messages:

Dec 25 16:33:27 kg-v2 kernel: pcm0: <NVidia (Unknown) High Definition Audio Controller> mem 0xfcf78000-0xfcf7bfff irq 22 at device 7.0 on pci0
Dec 25 16:33:27 kg-v2 kernel: pcm0: [ITHREAD]
Dec 25 16:33:27 kg-v2 kernel: pcm0: <HDA Codec: VIA (Unknown)>
Dec 25 16:33:27 kg-v2 kernel: pcm0: <HDA Driver Revision: 20080420_0052>

and cat /dev/sndstat reports like this:

root@kg-v2# cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2007061600/amd64)
Installed devices:
pcm0: <NVidia (Unknown) High Definition Audio Controller> at memory 0xfcf78000 irq 22 kld snd_hda [20080420_0052] [MPSAFE] (1p:1v/1r:1v channels duplex default)

Output from pciconf -lv is here.

2008-12-25: slice 1: I installed FreeBSD 7.1-RC2. dmesg output: normal, verbose. I turned on ACPI 2.0 support in bios to see if it made any difference. dmesg output: normal, verbose.

2008-12-24: I got the machine.