MSI RS480M2-IL - FreeBSD

Hardware info on main page.

This machine runs the amd64 version of FreeBSD.

The new primary hard drive (ad0 - WD 160 Gb) is sliced up like this:

slice 1 - 37 GB - a FreeBSD install (currently RELENG_7)
slice 2 - 37 GB - a FreeBSD install (currently RELENG_6)
slice 3 - 37 GB - a FreeBSD install (currently RELENG_8)
slice 4 - 37 GB -

The old primary hard drive (ad0 - Seagate 120 GB) was sliced up as follows:

slice 1 - 30 GB - a FreeBSD install (currently RELENG_7)
slice 2 - 29 GB - a FreeBSD install (currently RELENG_6)
slice 3 -   4 GB - swap
slice 4 - 45 GB - extra storage (/dev/ad0s4d - mounted as /extra)

Work log

2013-01-17: slice 3 - I had a power outage (an incandescent light bulb blew and tripped the circuit breaker too), adn afterwards aMule wouldn't start, giving this error:

tingo@kg-quiet$ amule
 2013-01-17 20:52:37: Initialising aMule 2.3.1 compiled with wxGTK2 v2.8.12
 2013-01-17 20:52:37: Checking if there is an instance already running...
 2013-01-17 20:52:37: No other instances are running.
    aMule Version: aMule 2.3.1 compiled with wxGTK2 v2.8.12

Terminated after throwing an instance of 'CEOFException'
    what(): SafeIO::EOF: Attempt to read past end of file.
--== no BACKTRACE for your platform ==--

    backtrace:

Abort trap (core dumped)
tingo@kg-quiet$ amule
 2013-01-17 20:53:14: Initialising aMule 2.3.1 compiled with wxGTK2 v2.8.12
 2013-01-17 20:53:14: Checking if there is an instance already running...
 2013-01-17 20:53:14: No other instances are running.
    aMule Version: aMule 2.3.1 compiled with wxGTK2 v2.8.12

Terminated after throwing an instance of 'CEOFException'
    what(): SafeIO::EOF: Attempt to read past end of file.
--== no BACKTRACE for your platform ==--

    backtrace:

Abort trap (core dumped)

First point: it doesn't dump core, even if it says so. However, I found on the forum ("Bugs" on amuleforumer.com) the following advice: "Delete statistics.dat from the config dir (.amule)". Let's try it:

tingo@kg-quiet$ rm ~/.aMule/statistics.dat
(the file was zero bytes)

and now aMule works again. Good.

2013-01-04: slice 3 - I upgraded to latest FreeBSD 8.3-stable, via csup and make world (probably the last time via csup, since cvs mirrors are deprecated now). dmesg output: normal, verbose.

root@kg-quiet# uname -a
FreeBSD kg-quiet.kg4.no 8.3-STABLE FreeBSD 8.3-STABLE #2: Fri Jan  4 19:18:15 CET 2013     root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

I also rebuilt the cuse4bsd-kmod and fusefs-kmod ports. I also reinstalled the pvr250 port, because it puts its files in /boot/kernel, and the upgrade procedure had moved the files to /boot/kernel.old. After doing

root@kg-quiet# kldload cxm_iic;kldload cxm

I get the following lines in /var/log/messages:

Jan  4 21:03:45 kg-quiet kernel: cxm0: <Conexant iTVC15 MPEG Coder> mem 0xf8000000-0xfbffffff irq 20 at device 0.0 on pci2
Jan  4 21:03:45 kg-quiet kernel: cxm_iic0: <Conexant iTVC15 / iTVC16 I2C controller> on cxm0
Jan  4 21:03:45 kg-quiet kernel: iicbb0: <I2C bit-banging driver> on cxm_iic0
Jan  4 21:03:45 kg-quiet kernel: iicbus0: <Philips I2C bus> on iicbb0 master-only
Jan  4 21:03:45 kg-quiet kernel: cxm0: Philips FM1216ME MK3 tuner
Jan  4 21:03:45 kg-quiet kernel: cxm0: SAA7115 rev 1 video decoder
Jan  4 21:03:45 kg-quiet kernel: cxm0: MSP4418G-B3 audio decoder
Jan  4 21:03:45 kg-quiet kernel: cxm0: IR Remote
Jan  4 21:03:45 kg-quiet kernel: cxm0: [GIANT-LOCKED]
Jan  4 21:03:45 kg-quiet kernel: cxm0: [ITHREAD]
Jan  4 21:03:45 kg-quiet kernel: cxm0: encoder firmware version 0x2050032
Jan  4 21:03:45 kg-quiet kernel: cxm0: decoder firmware version 0x2020023

That's it.

2012-12-19: slice 3 - after drive replacement, dmesg says this:

root@kg-quiet# dmesg | grep ^ad
ad0: 152627MB <WDC WD1600AVJB-63J5A0 01.03E01> at ata0-master UDMA133
ad4: DMA limited to UDMA33, device found non-ATA66 cable
ad4: 953869MB <Seagate ST31000340AS SD1A> at ata2-master UDMA33
ad6: DMA limited to UDMA33, device found non-ATA66 cable
ad6: 953869MB <Seagate ST31000528AS CC49> at ata3-master UDMA33
ad8: DMA limited to UDMA33, device found non-ATA66 cable
ad8: 1907729MB <SAMSUNG HD204UI 1AQ10001> at ata4-master UDMA33

and atacontrol:

root@kg-quiet# atacontrol list
ATA channel 0:
    Master:  ad0 <WDC WD1600AVJB-63J5A0/01.03E01> ATA/ATAPI revision 8
    Slave:       no device present
ATA channel 1:
    Master: acd0 <NEC DVD RW ND-3540A/1.01> ATA/ATAPI revision 0
    Slave:       no device present
ATA channel 2:
    Master:  ad4 <ST31000340AS/SD1A> SATA revision 1.x
    Slave:       no device present
ATA channel 3:
    Master:  ad6 <ST31000528AS/CC49> SATA revision 2.x
    Slave:       no device present
ATA channel 4:
    Master:  ad8 <SAMSUNG HD204UI/1AQ10001> SATA revision 2.x
    Slave:       no device present
ATA channel 5:
    Master:      no device present
    Slave:       no device present

Now it is just partitioning the new drive:

root@kg-quiet# gpart show ad6
gpart: No such geom: ad6.
root@kg-quiet# gpart create -s GPT ad6
ad6 created
root@kg-quiet# gpart show ad6
=>        34  1953525101  ad6  GPT  (931G)
          34  1953525101       - free -  (931G)
root@kg-quiet# gpart add -t freebsd-ufs ad6
ad6p1 added

create a new filesystem:

root@kg-quiet# newfs -U /dev/ad6p1
Reduced frags per cylinder group from 94064 to 94056 to enlarge last cyl group
/dev/ad6p1: 953869.7MB (1953525100 sectors) block size 16384, fragment size 2048
    using 5193 cylinder groups of 183.70MB, 11757 blks, 23552 inodes.
    with soft updates
super-block backups (for fsck -b #) at:
[lots of boring output snipped]

and I'm ready to mount the new filesystem (I edited /etc/fstab first):

root@kg-quiet# mount /d1

Time to create directories and copy stuff from the old drive (I connected the old drive via the sata-to-usb adapter).

2012-12-19: slice 3 - preparing for drive replacement. Currently drives look like this:

root@kg-quiet# atacontrol list
ATA channel 0:
    Master:  ad0 <WDC WD1600AVJB-63J5A0/01.03E01> ATA/ATAPI revision 8
    Slave:       no device present
ATA channel 1:
    Master: acd0 <NEC DVD RW ND-3540A/1.01> ATA/ATAPI revision 0
    Slave:       no device present
ATA channel 2:
    Master:  ad4 <ST31000340AS/SD1A> SATA revision 1.x
    Slave:       no device present
ATA channel 3:
    Master:  ad6 <ST3200822AS/3.01> SATA revision 1.x
    Slave:       no device present
ATA channel 4:
    Master:  ad8 <SAMSUNG HD204UI/1AQ10001> SATA revision 2.x
    Slave:       no device present
ATA channel 5:
    Master:      no device present
    Slave:       no device present

and filesystems:

root@kg-quiet# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad0s3a    989M    340M    569M    37%    /
devfs          1.0k    1.0k      0B   100%    /dev
/dev/ad0s3e    495M    336k    455M     0%    /tmp
/dev/ad0s3f     30G     20G    8.3G    71%    /usr
/dev/ad0s3d    3.9G    124M    3.4G     3%    /var
procfs         4.0k    4.0k      0B   100%    /proc
/dev/ad6s1d    180G    155G     10G    94%    /d1
/dev/ad4s1d    902G    817G     12G    98%    /d2
/dev/ad8p1     1.8T    659G      1T    40%    /d4
/dev/fuse0      12T      4T    8.7T    31%    /usr/home/tingo/mpoint

So, terminate all applications, unmount that sshfs, exit. Xorg. Then I unmount /d1, commented it out in /etc/fstab, and shutdown the machine.

2012-12-15: slice 3 - I booted the machine (it has been in hiatus a while) today, after connecting it to the BenQ GL2450H monitor. First I commented out all the external drives from /etc/fstab. Next I edited /etc/X11/xorg.conf and removed monitor-specific settings (which were for another monitor. Still when Xorg is started the machine comes up with mode 1280x1024:

tingo@kg-quiet$ xrandr
Screen 0: minimum 320 x 200, current 1280 x 1024, maximum 1920 x 1920
VGA-0 connected 1280x1024+0+0 (normal left inverted right x axis y axis) 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 
DVI-0 disconnected (normal left inverted right x axis y axis)
S-video disconnected (normal left inverted right x axis y axis)

easily fixed:

tingo@kg-quiet$ xrandr --output VGA-0 --mode 1920x1080

result:

tingo@kg-quiet$ xrandr
Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 1920 x 1920
VGA-0 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 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 
DVI-0 disconnected (normal left inverted right x axis y axis)
S-video disconnected (normal left inverted right x axis y axis)

that's all.

2012-07-13: slice 3 - enable soft updates on /d4 (ad8p1):

root@kg-quiet# umount /d4
root@kg-quiet# tunefs -n enable ad8p1
tunefs: soft updates set
root@kg-quiet# tunefs -p ad8p1
tunefs: POSIX.1e ACLs: (-a)                                disabled
tunefs: NFSv4 ACLs: (-N)                                   disabled
tunefs: MAC multilabel: (-l)                               disabled
tunefs: soft updates: (-n)                                 enabled
tunefs: gjournal: (-J)                                     disabled
tunefs: trim: (-t)                                         disabled
tunefs: maximum blocks per file in a cylinder group: (-e)  2048
tunefs: average file size: (-f)                            16384
tunefs: average number of files in a directory: (-s)       64
tunefs: minimum percentage of free space: (-m)             8%
tunefs: optimization preference: (-o)                      time
tunefs: volume label: (-L)          

and mount it

root@kg-quiet# mount /d4

That is all.

2012-07-11: slice 3 - setting up the a partition on the new drive:

root@kg-quiet# gpart show ad8
=>        34  3907029101  ad8  GPT  (1.8T)
          34  3907029101    1  freebsd-ufs  (1.8T)

partitioned ok, now newfs it:

root@kg-quiet# newfs /dev/ad8p1
(lots of output deleted)

I edited /etc/fstab so that /dev/ad8p1 would be mounted at /d4. The only remaining thing is to temporary mount the old hard drive (via a sata-to-usb adapter) and copy off the files. Oh, one more thing: I forgot to enable soft updates:

root@kg-quiet# tunefs -p /d4
tunefs: POSIX.1e ACLs: (-a)                                disabled
tunefs: NFSv4 ACLs: (-N)                                   disabled
tunefs: MAC multilabel: (-l)                               disabled
tunefs: soft updates: (-n)                                 disabled
tunefs: gjournal: (-J)                                     disabled
tunefs: trim: (-t)                                         disabled
tunefs: maximum blocks per file in a cylinder group: (-e)  2048
tunefs: average file size: (-f)                            16384
tunefs: average number of files in a directory: (-s)       64
tunefs: minimum percentage of free space: (-m)             8%
tunefs: optimization preference: (-o)                      time
tunefs: volume label: (-L)                                

Compare with /d2:

root@kg-quiet# tunefs -p /d2
tunefs: POSIX.1e ACLs: (-a)                                disabled
tunefs: NFSv4 ACLs: (-N)                                   disabled
tunefs: MAC multilabel: (-l)                               disabled
tunefs: soft updates: (-n)                                 enabled
tunefs: gjournal: (-J)                                     disabled
tunefs: trim: (-t)                                         disabled
tunefs: maximum blocks per file in a cylinder group: (-e)  2048
tunefs: average file size: (-f)                            16384
tunefs: average number of files in a directory: (-s)       64
tunefs: minimum percentage of free space: (-m)             8%
tunefs: optimization preference: (-o)                      time
tunefs: volume label: (-L)                                

I must fix that after the copy is finished.

2012-06-02: slice 3 - upgraded a bunch of ports: Xorg 7.5.2, Xfce 4.10,

2012-06-02: slice 3 - I had an sshfs mount from my user to the virtual music machine (v5), and the music machine hung and had to be restarted. No errors on this (quiet) machine, but the sshfs process blocked periodic weekly and any new process I tried starting from the desktop. After I killed the offending sshfs process with pkill -HUP sshfs, everything continued normally. Good to know.

2012-01-07: slice 3 - upgraded to latest FreeBSD 8.2-stable, via csup and make world. dmesg output: normal, verbose.

root@kg-quiet# uname -a
FreeBSD kg-quiet.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #1: Sat Jan  7 14:05:57 CET 2012     root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64

I had to reinstall the multimedia/pvr250 port, as the kernel modules are installed in /boot/kernel, they had been moved to /boot/kernel.old by the upgrade. dmesg output after loading the driver:

Jan  7 18:46:10 kg-quiet kernel: cxm0: <Conexant iTVC15 MPEG Coder> mem 0xf8000000-0xfbffffff irq 20 at device 0.0 on pci2
Jan  7 18:46:10 kg-quiet kernel: cxm0: Reserved 0x4000000 bytes for rid 0x10 type 3 at 0xf8000000
Jan  7 18:46:10 kg-quiet kernel: cxm_iic0: <Conexant iTVC15 / iTVC16 I2C controller> on cxm0
Jan  7 18:46:10 kg-quiet kernel: iicbb0: <I2C bit-banging driver> on cxm_iic0
Jan  7 18:46:10 kg-quiet kernel: iicbus0: <Philips I2C bus> on iicbb0 master-only
Jan  7 18:46:10 kg-quiet kernel: cxm0: Philips FM1216ME MK3 tuner
Jan  7 18:46:10 kg-quiet kernel: cxm0: SAA7115 rev 1 video decoder
Jan  7 18:46:10 kg-quiet kernel: cxm0: MSP4418G-B3 audio decoder
Jan  7 18:46:10 kg-quiet kernel: cxm0: IR Remote
Jan  7 18:46:10 kg-quiet kernel: cxm0: [GIANT-LOCKED]
Jan  7 18:46:10 kg-quiet kernel: cxm0: [ITHREAD]
Jan  7 18:46:10 kg-quiet kernel: cxm0: encoder firmware version 0x2050032
Jan  7 18:46:10 kg-quiet kernel: cxm0: decoder firmware version 0x2020023
Jan  7 18:46:10 kg-quiet kernel: found->    vendor=0x1131, dev=0x7134, revid=0x01
Jan  7 18:46:10 kg-quiet kernel: domain=0, bus=2, slot=1, func=0
Jan  7 18:46:10 kg-quiet kernel: class=04-80-00, hdrtype=0x00, mfdev=0
Jan  7 18:46:10 kg-quiet kernel: cmdreg=0x0006, statreg=0x0290, cachelnsz=0 (dwords)
Jan  7 18:46:10 kg-quiet kernel: lattimer=0x40 (1920 ns), mingnt=0xf8 (62000 ns), maxlat=0xce (51500 ns)
Jan  7 18:46:10 kg-quiet kernel: intpin=a, irq=21
Jan  7 18:46:10 kg-quiet kernel: powerspec 1  supports D0 D1 D2 D3  current D0
Jan  7 18:46:10 kg-quiet kernel: pci0:2:1:0: reprobing on driver added

That's it.

2011-08-28: slice 3 - A new external hard drive needs to be partitioned, labeled and newfs'ed. Here is what it shows up as in /var/log/messages when connectd to a usb port:

Aug 28 19:20:00 kg-quiet root: Unknown USB device: vendor 0x1058 product 0x1023 bus uhub2
Aug 28 19:20:00 kg-quiet kernel: ugen2.7: <Western Digital> at usbus2
Aug 28 19:20:00 kg-quiet kernel: umass5: <Western Digital Elements 1023, class 0/0, rev 2.00/20.05, addr 7> on usbus2
Aug 28 19:20:00 kg-quiet kernel: umass5:  SCSI over Bulk-Only; quirks = 0x0000
Aug 28 19:20:01 kg-quiet kernel: umass5:11:5:-1: Attached to scbus11
Aug 28 19:20:01 kg-quiet kernel: da6 at umass-sim5 bus 5 scbus11 target 0 lun 0
Aug 28 19:20:01 kg-quiet kernel: da6: <WD Elements 1023 2005> Fixed Direct Access SCSI-4 device
Aug 28 19:20:01 kg-quiet kernel: da6: 40.000MB/s transfers
Aug 28 19:20:01 kg-quiet kernel: da6: 953867MB (1953519616 512 byte sectors: 255H 63S/T 121600C)
Aug 28 19:20:01 kg-quiet kernel: GEOM: da6: partition 1 does not start on a track boundary.
Aug 28 19:20:01 kg-quiet kernel: GEOM: da6: partition 1 does not end on a track boundary.

gpart says

root@kg-quiet# gpart show da6
=>        63  1953519498  da6  MBR  (932G)
          63        1985       - free -  (993K)
        2048  1953517568    1  ntfs  (932G)

let's try to mount it, just for fun:

root@kg-quiet# mount -t msdosfs /dev/da6s1 /media
mount_msdosfs: /dev/da6s1: Invalid argument

No? Well, it is ntfs, let's try that:

root@kg-quiet# mount -r -t ntfs /dev/da6s1 /media

worked better. Let us check....

root@kg-quiet# ls -la /media
total 29946
-rwxrwxr-x   1 root  wheel      2560 Jan  1  1601 $AttrDef
-rwxrwxr-x   1 root  wheel         0 Jan  1  1601 $BadClus
-rwxrwxr-x   1 root  wheel  30523712 Jan  1  1601 $Bitmap
-rwxrwxr-x   1 root  wheel         0 Jan  1  1601 $Boot
drwxrwxr-x   1 root  wheel         0 Mar  1  2010 $Extend
-rwxrwxr-x   1 root  wheel         0 Jan  1  1601 $LogFile
-rwxrwxr-x   1 root  wheel         0 Jan  1  1601 $MFTMirr
-rwxrwxr-x   1 root  wheel         0 Mar  1  2010 $Secure
-rwxrwxr-x   1 root  wheel    131072 Jan  1  1601 $UpCase
-rwxrwxr-x   1 root  wheel         0 Jan  1  1601 $Volume
drwxrwxr-x   1 root  wheel         0 Jan  1  1601 .
drwxr-xr-x  30 root  wheel      1024 Aug 28 19:03 ..
drwxrwxr-x   1 root  wheel         0 Mar  1  2010 autorun
-rwxrwxr-x   1 root  wheel        36 Oct 16  2002 autorun.inf

Ok, there is something on it, but nothing I need.

root@kg-quiet# umount /media

Let's fix it for my use:

root@kg-quiet# gpart delete -i 1 da6
da6s1 deleted
root@kg-quiet# gpart add -t freebsd-ufs da6
gpart: Invalid argument

OK, you can't add GPT partitions to a MBR disk. Try with legacy instead:

root@kg-quiet# gpart add -t freebsd da6
da6s1 added

That worked. hmm, but then I need to label it, too:

root@kg-quiet# bsdlabel -e da6s1
bsdlabel: /dev/da6s1: no valid label found

No label, create one

root@kg-quiet# bsdlabel -w da6s1

what does it look like?

root@kg-quiet# bsdlabel da6s1
# /dev/da6s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a: 1953519482       16    unused        0     0      
  c: 1953519498        0    unused        0     0         # "raw" part, don't edit
OK, that must be changed. bsdlabel -e da6s1 takes care of that:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 1953519498        0    unused        0     0         # "raw" part, don't edit
  d: *  *       4.2BSD  0       0       0

after the change:

root@kg-quiet# bsdlabel da6s1
# /dev/da6s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 1953519498        0    unused        0     0         # "raw" part, don't edit
  d: 1953519482       16    4.2BSD        0     0     0

Good. Finally, newfs it newfs -U /dev/da6s1d:

root@kg-quiet# newfs -U /dev/da6s1d
/dev/da6s1d: 953866.9MB (1953519480 sectors) block size 16384, fragment size 2048
    using 5192 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, 77885152, 78261408, 78637664, 79013920, 79390176,
 79766432, 80142688, 80518944, 80895200, 81271456, 81647712, 82023968, 82400224, 82776480, 83152736, 83528992,
 83905248, 84281504, 84657760, 85034016, 85410272, 85786528, 86162784, 86539040, 86915296, 87291552, 87667808,
 88044064, 88420320, 88796576, 89172832, 89549088, 89925344, 90301600, 90677856, 91054112, 91430368, 91806624,
 92182880, 92559136, 92935392, 93311648, 93687904, 94064160, 94440416, 94816672, 95192928, 95569184, 95945440,
 96321696, 96697952, 97074208, 97450464, 97826720, 98202976, 98579232, 98955488, 99331744, 99708000, 100084256,

[... cut for brevity...]

 1924173344, 1924549600, 1924925856, 1925302112, 1925678368, 1926054624, 1926430880, 1926807136, 1927183392,
 1927559648, 1927935904, 1928312160, 1928688416, 1929064672, 1929440928, 1929817184, 1930193440, 1930569696,
 1930945952, 1931322208, 1931698464, 1932074720, 1932450976, 1932827232, 1933203488, 1933579744, 1933956000,
 1934332256, 1934708512, 1935084768, 1935461024, 1935837280, 1936213536, 1936589792, 1936966048, 1937342304,
 1937718560, 1938094816, 1938471072, 1938847328, 1939223584, 1939599840, 1939976096, 1940352352, 1940728608,
 1941104864, 1941481120, 1941857376, 1942233632, 1942609888, 1942986144, 1943362400, 1943738656, 1944114912,
 1944491168, 1944867424, 1945243680, 1945619936, 1945996192, 1946372448, 1946748704, 1947124960, 1947501216,
 1947877472, 1948253728, 1948629984, 1949006240, 1949382496, 1949758752, 1950135008, 1950511264, 1950887520,
 1951263776, 1951640032, 1952016288, 1952392544, 1952768800, 1953145056

Then we can mount it:

root@kg-quiet# mount /dev/da6s1d /media
root@kg-quiet# df -h /media
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/da6s1d    902G    4.0K    830G     0%    /media

Done. The new disk can now be used.

2011-08-07: slice 3 - I managed to get Squeezeslave 1.1-253 to compile by changing the supplied file contrib/makefile.freebsd. My version: makefile.freebsd.

2011-08-05: slice 3 - edited /etc/sysctl.conf, added the line vfs.usermount=1 so that users can use sshfs to mount directories from remote machines.

2011-06-05: slice 3 - initial testing with MythTV 0.23.1 from ports (I used portdowngrade). Unfortunately, it seems mythtv-setup has problems upgrading the database schema. It hangs here:

2011-06-05 22:07:51.171 Inserting MythTV initial database information.

2011-06-05 22:07:51.171 New DB connection, total: 3

2011-06-05 22:07:51.172 Connected to database 'mythconverg' at host: localhost

2011-06-05 22:07:51.172 Upgrading to MythTV schema version 1226 mythtv-setup doesn't actually "hang" it just sits there, doing nothing:

root@kg-quiet# ls -l /var/db/mysql/mythconverg
total 12
-rw-rw----  1 mysql  mysql    61 Jun  5 22:07 db.opt
-rw-rw----  1 mysql  mysql  8572 Jun  5 22:01 schemalock.frm
root@kg-quiet# date
Sun Jun  5 22:30:20 CEST 2011

Don't know how to fix that one.

2011-05-23: slice 3 - initial testing with MythTV (0.24.1_1 from ports). The result was the same as for the test done at 2011-04-18.

2011-04-18: slice 3 - initial testing with MythTV (0.24_1 from ports). mythtv-setup works, and in the capture card setup screen I can select the type "IVTV MPEG-2 encoder card" from the list, but "Probed info:" reads "Failed to probe". In the shell (where I started mythtv-setup from, I get messages like this:

"2011-04-18 17:53:55.949 Could not query inputs.
                         eno: Inappropriate ioctl for device (25)"

repeated four times, followed by:

"2011-04-18 17:54:17.986 ProbeAudioInputs(/dev/cxm0,HDPVR)
 2011-04-18 17:54:17.986 ProbeV4LAudioInputs(/dev/cxm0)"

bummer.

2011-04-18: slice 3 - installed MythTV initial database:

root@kg-quiet# mysql -u root -p < /usr/local/share/mythtv/database/mc.sql
Enter password:
root@kg-quiet#

2011-04-18: slice 3 - installed mysql-server 5.5 from ports, secured initial accounts (password for root accounts, deleted anonymous accounts).

2011-04-18: slice 3 - testing the pvr250 port:

$ pvr250-setchannel -m 4
$ pvr250-setchannel 147.25

then I just fire up mplayer:

$ gmplayer -cache 8192 /dev/cxm0

OK, it works. I've tested all channels, and it is ok.

2011-04-16: slice 3 - the machine just had a panic:

panic: bad pte
cpuid = 0
KDB: stack backtrace:
#0 0xffffffff80603f6e at kdb_backtrace+0x5e
#1 0xffffffff805d1ae7 at panic+0x187
#2 0xffffffff808b5c08 at pmap_remove_pages+0x408
#3 0xffffffff805a3435 at exec_new_vmspace+0x285
#4 0xffffffff80589d20 at exec_elf64_imgact+0x3f0
#5 0xffffffff805a3813 at kern_execve+0x3b3
#6 0xffffffff805a4bed at execve+0x3d
#7 0xffffffff8060ff55 at syscallenter+0x1e5
#8 0xffffffff808bce6b at syscall+0x4b
#9 0xffffffff808a5642 at Xfast_syscall+0xe2
Uptime: 1d0h10m39s

I wonder why?

2011-04-15: slice 3 - I installed the pvr250 port (currently at version pvr250-20101010_1). It detects my PVR-350 just fine:

root@kg-quiet# uname -a
FreeBSD kg-quiet.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #0: Sun Apr  3 19:49:05 CEST 2011     root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
root@kg-quiet# tail -13 /var/log/messages
Apr 15 22:08:02 kg-quiet smartd[59521]: Device: /dev/da1 [SAT], 1 Currently unreadable (pending) sectors
Apr 15 22:12:08 kg-quiet kernel: cxm0: <Conexant iTVC15 MPEG Coder> mem 0xf8000000-0xfbffffff irq 20 at device 0.0 on pci2
Apr 15 22:12:08 kg-quiet kernel: cxm_iic0: <Conexant iTVC15 / iTVC16 I2C controller> on cxm0
Apr 15 22:12:08 kg-quiet kernel: iicbb0: <I2C bit-banging driver> on cxm_iic0
Apr 15 22:12:08 kg-quiet kernel: iicbus0: <Philips I2C bus> on iicbb0 master-only
Apr 15 22:12:08 kg-quiet kernel: cxm0: Philips FM1216ME MK3 tuner
Apr 15 22:12:08 kg-quiet kernel: cxm0: SAA7115 rev 1 video decoder
Apr 15 22:12:08 kg-quiet kernel: cxm0: MSP4418G-B3 audio decoder
Apr 15 22:12:08 kg-quiet kernel: cxm0: IR Remote
Apr 15 22:12:08 kg-quiet kernel: cxm0: [GIANT-LOCKED]
Apr 15 22:12:08 kg-quiet kernel: cxm0: [ITHREAD]
Apr 15 22:12:08 kg-quiet kernel: cxm0: encoder firmware version 0x2050032
Apr 15 22:12:08 kg-quiet kernel: cxm0: decoder firmware version 0x2020023

I haven't tested if it actuallly works yet (need to install Xorg ++ first).

2011-04-04: slice 1 - I upgraded to FreeBSD 7.4-stable, via csup and make world. dmesg output: normal, verbose.

root@kg-quiet# uname -a
FreeBSD kg-quiet.kg4.no 7.4-STABLE FreeBSD 7.4-STABLE #9: Mon Apr  4 00:59:26 CEST 2011     root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET  amd64
root@kg-quiet# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad0s1a    989M    291M    619M    32%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad0s1e    496M    6.3M    450M     1%    /tmp
/dev/ad0s1f     25G     19G    3.9G    83%    /usr
/dev/ad0s1d    3.9G     97M    3.4G     3%    /var
/dev/ad6s1d    180G    148G     18G    89%    /d1
/dev/ad4s1d    902G    801G     29G    96%    /d2
/dev/da4s1d    1.8T    1.1T    488G    71%    /d3
/dev/ad8s1d    902G    828G    2.4G   100%    /d4
/dev/da0s1d    451G    362G     53G    87%    /d5
/dev/da2s1d    451G    414G    1.3G   100%    /d6
/dev/da3s1d    451G     49M    415G     0%    /d7
/dev/da5s1d    271G     18G    231G     7%    /d8
/dev/da1s1d    451G     42K    415G     0%    /d9

2011-04-03: slice 3 - I upgraded to FreeBSD 8.2-stable, using csup and make world. dmesg output: normal, verbose. The external disk drives (fiirewire and usb) moved around a bit, so /etc/fstab had to be changed, compared to FreeBSD 7.x. Now the layout looks like this:

root@kg-quiet# uname -a
FreeBSD kg-quiet.kg4.no 8.2-STABLE FreeBSD 8.2-STABLE #0: Sun Apr  3 19:49:05 CEST 2011     root@kg-quiet.kg4.no:/usr/obj/usr/src/sys/GENERIC  amd64
root@kg-quiet# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/ad0s3a    989M    522M    388M    57%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/ad0s3e    496M     68K    456M     0%    /tmp
/dev/ad0s3f     31G    2.4G     26G     9%    /usr
/dev/ad0s3d    3.9G     14M    3.5G     0%    /var
/dev/ad6s1d    180G    148G     18G    89%    /d1
/dev/ad4s1d    902G    801G     29G    96%    /d2
/dev/da5s1d    1.8T    1.1T    488G    71%    /d3
/dev/ad8s1d    902G    828G    2.4G   100%    /d4
/dev/da1s1d    451G    362G     53G    87%    /d5
/dev/da3s1d    451G    414G    1.3G   100%    /d6
/dev/da4s1d    451G     49M    415G     0%    /d7
/dev/da0s1d    271G     18G    231G     7%    /d8
/dev/da2s1d    451G     42K    415G     0%    /d9

2011-04-03: slice 3 - I added sbp_load="YES" to /boot/loader.conf so that my external firewire-connectd disk would be recognized. From /var/log/messages:

Apr  3 18:10:40 kg-quiet kernel: sbp0: <SBP-2/SCSI over FireWire> on firewire0
Apr  3 18:10:40 kg-quiet kernel: sbp0: sbp_show_sdev_info: sbp0:0:0: ordered:1 type:0 EUI:0010b9210060eb23 node:0 speed:2 maxrec:8
Apr  3 18:10:40 kg-quiet kernel: sbp0: sbp_show_sdev_info: sbp0:0:0 'Maxtor' 'OneTouch II' '020310'
Apr  3 18:10:45 kg-quiet kernel: da5 at sbp0 bus 0 scbus10 target 0 lun 0
Apr  3 18:10:45 kg-quiet kernel: da5: <Maxtor OneTouch II 0310> Fixed Direct Access SCSI-4 device
Apr  3 18:10:45 kg-quiet kernel: da5: 50.000MB/s transfers
Apr  3 18:10:45 kg-quiet kernel: da5: 286188MB (586114704 512 byte sectors: 255H 63S/T 36483C)

Good.

2011-02-19: slice 1 - As it turns out, I forgot one thing in my rescue operation: the old drive had a swap partition on ad0s3b. On the new one it is ad0s1b. Simple fix: modify /etc/fstab and run swapon -a. I also did this for slices 2 and 3. Now swapinfo reports this:

root@kg-quiet# swapinfo -h
Device          1K-blocks     Used    Avail Capacity
/dev/ad0s1b       6291456       0B     6.0G     0%

Good.

2011-01-12: Today I'm copying slice 1 from old to new hard drive, and I haven't given up on dump yet. First I used newfs on the destination partitions, since they were "dirty" with a failed 8.1 install. just 'newfs' on the root partition, and 'newfs -U' on the rest. And now the copy operation: I'm trying dump from unmounted partitions, I got a tip about that.

#--- mounting destination ---
root@kg-quiet# mount /dev/ad0s1a /mnt
root@kg-quiet# mkdir -p /mnt/var
root@kg-quiet# mount /dev/ad0s1d /mnt/var
root@kg-quiet# mkdir -p /mnt/tmp
root@kg-quiet# mount /dev/ad0s1e /mnt/tmp
root@kg-quiet# mkdir -p /mnt/usr
root@kg-quiet# mount /dev/ad0s1f /mnt/usr

and here is what happens when I don'r pay attention to the instructions:

root@kg-quiet# dump -C16 -0af /dev/ad2s1a | ( cd /mnt; restore -rf - )
Must specify disk or file system
Tape is not a dump tape
root@kg-quiet# dump -C16 -0f /dev/ad2s1a | ( cd /mnt; restore -rf - )
Must specify disk or file system
Tape is not a dump tape

in other words: "operator error". Move on, nothing to see here.

#--- copy using dump and restore ---
root@kg-quiet# dump -C16 -0af - /dev/ad2s1a | ( cd /mnt; restore -rf - )
  DUMP: Date of this level 0 dump: Wed Jan 12 19:48:19 2011
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/ad2s1a to standard output
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 113009 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
warning: ./.snap: File exists
warning: ./tmp: File exists
warning: ./usr: File exists
warning: ./var: File exists
  DUMP: DUMP: 113008 tape blocks
  DUMP: finished in 23 seconds, throughput 4913 KBytes/sec
  DUMP: DUMP IS DONE

the /var partition:

root@kg-quiet# dump -C16 -0af - /dev/ad2s1d | ( cd /mnt/var; restore -rf - )
  DUMP: Date of this level 0 dump: Wed Jan 12 19:50:29 2011
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/ad2s1d to standard output
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 95820 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
warning: ./.snap: File exists
  DUMP: DUMP: 95754 tape blocks
  DUMP: finished in 112 seconds, throughput 854 KBytes/sec
  DUMP: DUMP IS DONE

the /tmp partition:

root@kg-quiet# dump -C16 -0af - /dev/ad2s1e | ( cd /mnt/tmp; restore -rf - )
  DUMP: Date of this level 0 dump: Wed Jan 12 19:54:40 2011
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/ad2s1e to standard output
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 6336 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
warning: ./.snap: File exists
  DUMP: DUMP: 6327 tape blocks
  DUMP: finished in 2 seconds, throughput 3163 KBytes/sec
  DUMP: DUMP IS DONE

and finally, the /usr partition. I already knew this has errors on it, I hope that it isn't a problem and that I will be able to rescue most of it.

root@kg-quiet# dump -C16 -0af - /dev/ad2s1f | ( cd /mnt/usr; restore -rf - )
  DUMP: Date of this level 0 dump: Wed Jan 12 19:55:45 2011
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping /dev/ad2s1f to standard output
  DUMP: mapping (Pass I) [regular files]
  DUMP: Cache 16 MB, blocksize = 65536
  DUMP: read error from /dev/ad2s1f: Input/output error: [block 22952992]: count=16384
  DUMP: read error from /dev/ad2s1f: Input/output error: [sector 22952992]: count=512
  DUMP: read error from /dev/ad2s1f: Input/output error: [block 38378336]: count=16384
  DUMP: read error from /dev/ad2s1f: Input/output error: [sector 38378339]: count=512
  DUMP: read error from /dev/ad2s1f: Input/output error: [block 39131296]: count=16384
  DUMP: read error from /dev/ad2s1f: Input/output error: [sector 39131315]: count=512
  DUMP: read error from /dev/ad2s1f: Input/output error: [block 39132064]: count=16384
  DUMP: read error from /dev/ad2s1f: Input/output error: [sector 39132072]: count=512
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 15634782 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: read error from /dev/ad2s1f: Input/output error: [block 22952992]: count=16384
  DUMP: read error from /dev/ad2s1f: Input/output error: [sector 22952992]: count=512
  DUMP: read error from /dev/ad2s1f: Input/output error: [block 38378336]: count=16384
  DUMP: read error from /dev/ad2s1f: Input/output error: [sector 38378339]: count=512
  DUMP: 0.48% done, finished in 17:22 at Thu Jan 13 13:26:10 2011
  DUMP: dumping (Pass IV) [regular files]
warning: ./.snap: File exists
./local/share/examples/python2.6/tkinter/matt/printing-coords-of-items.py: (inode 1438976) not found on tape
./local/share/examples/python2.6/tkinter/matt/slider-demo-1.py: (inode 1438977) not found on tape
./local/share/texmf-config/doc/knuth/errata: (inode 2402310) not found on tape
./local/share/texmf-config/doc/images: (inode 2402311) not found on tape
  DUMP: 2.44% done, finished in 6:40 at Thu Jan 13 02:49:23 2011
  DUMP: 10.61% done, finished in 2:06 at Wed Jan 12 22:20:26 2011
  DUMP: 22.54% done, finished in 1:08 at Wed Jan 12 21:27:51 2011
  DUMP: 30.51% done, finished in 0:56 at Wed Jan 12 21:21:03 2011
  DUMP: read error from /dev/ad2s1f: Input/output error: [block 22952992]: count=16384
  DUMP: read error from /dev/ad2s1f: Input/output error: [sector 22952992]: count=512
  DUMP: 37.01% done, finished in 0:51 at Wed Jan 12 21:20:10 2011
  DUMP: 48.10% done, finished in 0:37 at Wed Jan 12 21:11:52 2011
  DUMP: read error from /dev/ad2s1f: Input/output error: [block 39131296]: count=16384
  DUMP: read error from /dev/ad2s1f: Input/output error: [sector 39131315]: count=512
expected next file 2896983, got 2896982
  DUMP: 59.28% done, finished in 0:27 at Wed Jan 12 21:06:35 2011
  DUMP: 80.03% done, finished in 0:11 at Wed Jan 12 20:55:20 2011
  DUMP: 96.72% done, finished in 0:01 at Wed Jan 12 20:50:48 2011
  DUMP: DUMP: 15643140 tape blocks
  DUMP: finished in 3236 seconds, throughput 4834 KBytes/sec
  DUMP: DUMP IS DONE

That was it, not too bad. Later - it appears that the rescue operation was a success! The machine boots, fsck is ok, and things seems to work.

2011-01-11: I replaced hard drive ad0 in the machine because it was failing. The new ad0 is a WD 160GB. To move the data, I temporarily disconnected the CDROM drive, and connected the old hard drive there instead. It showed up as ad2. I sliced up the new ad0 into four equal size slices, created a 1G root partition, a 6G swap and "auto" on the rest, and did a minimal install of FreeBSD 8.1-release on slice 3, using a memory stick, dmesg output: normal. I also used sysinstall to prepare the partitions on slice 1 and slice 2 for their installs (1G root, "auto" on the rest). After booting that I prepared for the data copy:

root@kg-quiet# # --- source ---
root@kg-quiet# mount /dev/ad2s2a /media
root@kg-quiet# mount /dev/ad2s2d /media/var
root@kg-quiet# mount /dev/ad2s2e /media/tmp
root@kg-quiet# mount /dev/ad2s2f /media/usr
root@kg-quiet# # -- destination --
root@kg-quiet# mount /dev/ad0s2a /mnt
root@kg-quiet# mount /dev/ad0s2d /mnt/var
root@kg-quiet# mount /dev/ad0s2e /mnt/tmp
root@kg-quiet# mount /dev/ad0s2f /mnt/usr

First I tried dump and restore:

root@kg-quiet# cd /mnt
root@kg-quiet# dump 0af - /media | restore rf -
dump: /media: unknown file system
Tape is not a dump tape
root@kg-quiet# dump 0f - /media | restore rf -
dump: /media: unknown file system
Tape is not a dump tape
root@kg-quiet# ( dump 0f - /media ) | ( cd /mnt; restore rf - )
dump: /media: unknown file system
Tape is not a dump tape

Note: I tried the '-0f' and '-rf' variants too. Finally I tired of that, and tried pax instead:

root@kg-quiet# cd /media; pax -p e -X -rw . /mnt
root@kg-quiet# cd /media/tmp; pax -p e -X -rw . /mnt/tmp
pax: /mnt/tmp/./jpsock.150_14.5919 skipped. Sockets cannot be copied or extracted
pax: /mnt/tmp/./lost+found/#32913 skipped. Sockets cannot be copied or extracted
pax: /mnt/tmp/./ssh-1Qvt3E7hq4/agent.1314 skipped. Sockets cannot be copied or extracted
root@kg-quiet# cd /media/var; pax -p e -X -rw . /mnt/var

(some file errors skipped; nothing important), and finally:

root@kg-quiet# cd /media/usr; pax -p e -X -rw . /mnt/usr

which took a long time (it was 22 G). I didn't check if pax has a buffer option.

2010-12-16: slice 1 - upgraded all ports (took a couple of days), and changed the apache (2.2.17) configuration in /usr/local/etc/apache22/httpd.conf, added the following directives:

StartServers    2
MinSpareServers 1
MaxSpareServers 5

To conserve memory on this machine.

2010-04-05: slice 1 - upgraded to latest FreeBSD 7.3-stable. dmesg output: normal, verbose.

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

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

2009-05-04: slice 1: upgraded to FreeBSD 7.2-stable. dmesg output: normal, verbose.

2009-05-01: slice 1: upgraded to latest FreeBSD 7.2-prerelease as of today. dmesg output: normal, verbose.

2009-03-29: slice 1: upgraded to latest FreeBSD 7.2-prerelease as of today. dmesg output: normal.

2009-03-17: slice 1: upgraded to FreeBSD 7.2-prerelease as of today. dmesg output: normal, verbose.

2009-03-15: slice 2: upgraded to latest FreeBSD 6.4-stable, including rebuild of the cxm driver (pvrxxx port) and the kgemu-kmod port. dmesg output: normal, verbose.

2008-12-31: while running FreeBSD 6.4-stable (slice 2) the machine had a panic. Here is the backtrace.

2008-12-23: while running FreeBSD 6.4-stable (slice 2) the machine had a panic. Here is the backtrace.

2008-12-17: slice 1: upgraded to latest FreeBSD 7.1-prerelease. dmesg output: normal.

2008-12-05: slice 2: I upgraded to FreeBSD 6.4-stable. Everything works as before. dmesg output: normal.

2008-11-02: slice 2: I added the pvr-xxx port (fetched from here) for my Hauppauge PVR-350 card. Here is the dmesg output after kldload'ing cxm_iic and cxm:

Nov  2 12:48:49 kg-quiet kernel: kldload: /boot/modules/cxm_iic.ko: Unsupported file type
Nov  2 12:48:54 kg-quiet kernel: kldload: /boot/modules/cxm.ko: Unsupported file type
Nov  2 12:48:54 kg-quiet kernel: kldload: /boot/kernel/firmware.ko: Unsupported file type
Nov  2 12:48:54 kg-quiet kernel: cxm0: <Conexant iTVC15 MPEG Coder> mem 0xf8000000-0xfbffffff irq 20 at device 0.0 on pci2
Nov  2 12:48:54 kg-quiet kernel: cxm_iic0: <Conexant iTVC15 / iTVC16 I2C controller> on cxm0
Nov  2 12:48:54 kg-quiet kernel: iicbb0: <I2C bit-banging driver> on cxm_iic0
Nov  2 12:48:54 kg-quiet kernel: iicbus1: <Philips I2C bus> on iicbb0 master-only
Nov  2 12:48:54 kg-quiet kernel: iic1: <I2C generic I/O> on iicbus1
Nov  2 12:48:54 kg-quiet kernel: <2>tveeprom: ivtv version
Nov  2 12:48:54 kg-quiet kernel: <2>tveeprom: Hauppauge: model = 48139, rev = K257, serial# = 8317819
Nov  2 12:48:54 kg-quiet kernel: <2>tveeprom: tuner = Philips FM1216 ME MK3 (idx = 57, type = 38)
Nov  2 12:48:54 kg-quiet kernel: <2>tveeprom: tuner fmt = PAL(B/G) PAL(I) SECAM(L/L') PAL(D/K) (eeprom = 0x74, v4l2 = 0x00400e17)
Nov  2 12:48:54 kg-quiet kernel: <2>tveeprom: audio processor = MSP4418 (type = 19)
Nov  2 12:48:54 kg-quiet kernel: <2>tveeprom: decoder processor = SAA7115 (type = 13)
Nov  2 12:48:54 kg-quiet kernel: tuner type: 38
Nov  2 12:48:54 kg-quiet kernel: cxm0: Eeprom PAL
Nov  2 12:48:54 kg-quiet kernel: tuner: type set to 38 (Philips PAL/SECAM multi (FM1216ME MK3)) by cxm
Nov  2 12:48:54 kg-quiet kernel: tuner: switching to v4l2
Nov  2 12:48:54 kg-quiet kernel: before tuner_command!
Nov  2 12:48:54 kg-quiet kernel: tuner: tv freq set to 55.25
Nov  2 12:48:54 kg-quiet kernel: tuner: tv 0x05 0xe3 0x8e 0x01
Nov  2 12:48:56 kg-quiet kernel: cxm0: SAA7115 rev 1 video decoder
Nov  2 12:48:56 kg-quiet kernel: cxm0: MSP4418G-B3 audio decoder
Nov  2 12:48:56 kg-quiet kernel: cxm0: IR Remote
Nov  2 12:48:56 kg-quiet kernel: kldload: /boot/modules/cxm_encfw.ko: Unsupported file type
Nov  2 12:48:58 kg-quiet kernel: kldload: /boot/modules/cxm_decfw.ko: Unsupported file type
Nov  2 12:48:58 kg-quiet kernel: cxm0: encoder firmware version 0x2060039
Nov  2 12:48:58 kg-quiet kernel: cxm0: decoder firmware version 0x2020023

And here is output from pciconf -lv:

root@kg-quiet# pciconf -lv | grep cxm -A 4
cxm0@pci2:0:0:  class=0x040000 card=0x40000070 chip=0x08034444 rev=0x01 hdr=0x00
    vendor     = 'Conexant Inc (Was: Globespan, ICompression Inc)'
    device     = 'iTVC15/CX23415 MPEG Codec'
    class      = multimedia
    subclass   = video

Note to self: remember to do 'make patch-iicbb' in the port directory before making a new kernel.

2008-11-01: slice 1: upgraded to latest FreeBSD 7.1-prerelease. dmesg output: normal.

2008-11-01: slice 2: upgraded to FreeBSD 6.4-prerelease. dmesg output: normal.

2008-10-26: I installed FreeBSD 7.1-beta2 (amd64) on slice 1. dmesg output: normal, verbose. No time for more, but that will come later.

2008-07-21: slice 2: upgraded to latest FreeBSD 6.3-stable. Normal dmesg.

2008-01-24: upgraded to FreeBSD 6.3-stable. Normal dmesg.

2007-10-25: upgraded to FreeBSD 6.3-prerelease. Normal dmesg.

2007-01-21: upgraded to FreeBSD 6.2-stable. Normal dmesg.

2006-12-30: upgraded to FreeBSD 6.2-prerelease. Normal dmesg.

2006-05-10: upgraded to FreeBSD 6.1-stable. Normal dmesg.

2006-03-11: upgraded to FreeBSD 6.1-prerelease. Normal dmesg.

2006-03-11: Slice 2: upgraded to FreeBSD 6.0-stable. Normal dmesg.

2005-05-25: Slice 1: upgraded to FreeBSD 5.4-stable. Normal dmesg.