Gigabyte F2A85XM-HD3 - NetBSD
Hardware info on main page.
This machine runs the amd64 version of NetBSD.
The first sata hard drive (ad4) is sliced up as follows:
slice 1 - 116 GB - a FreeBSD install - RELENG_7 - currently 7.4-stable slice 2 - 116 GB - a FreeBSD install - RELENG_8 - currently 8.4-stable slice 3 - 112 GB - NetBSD (currently 6.1.2) slice 4 - 121 GB - Xubuntu (currently 10.04.4)
Because of Xubuntu, grub is used as the main bootloader.
Work log
2013-11-15: wd0a - NetBSD 6.1.2. dmesg output: normal, verbose:
tingo@kg-v2$ uname -a NetBSD kg-v2.kg4.no 6.1.2 NetBSD 6.1.2 (GENERIC) amd64
PS: dmesg files are kept in /var/tmp becuse /tmp is cleared on every boot:
tingo@kg-v2$ ll /var/tmp/v2* -rw-r--r-- 1 tingo wheel 9825 Nov 16 02:11 /var/tmp/v2-nbsd-dmesg-6.1.2-20131115.txt -rw-r--r-- 1 tingo wheel 11614 Nov 16 02:12 /var/tmp/v2-nbsd-dmesg-6.1.2-20131115_verb.txt
All for now.
2013-11-15: verify the file system type of root:
kg-v2# dumpfs / | more file system: /dev/rwd0a format FFSv1 endian little-endian magic 11954 time Sat Nov 16 01:30:20 2013 superblock location 8192 id [ 497a52b7 15562b7 ] cylgrp dynamic inodes 4.4BSD sblock FFSv2 fslevel 4 nbfree 7073073 ndir 47003 nifree 14350699 nffree 11064 ncg 634 size 59805978 blocks 58872717 bsize 16384 shift 14 mask 0xffffc000 fsize 2048 shift 11 mask 0xfffff800 frag 8 shift 3 fsbtodb 2 bpg 11792 fpg 94336 ipg 23296 minfree 5% optim time maxcontig 4 maxbpg 4096 symlinklen 60 contigsumsize 4 maxfilesize 0x000400400402ffff nindir 4096 inopb 128 avgfilesize 16384 avgfpdir 64 sblkno 8 cblkno 16 iblkno 24 dblkno 1480 sbsize 2048 cgsize 16384 csaddr 1480 cssize 10240 cgrotor 0 fmod 0 ronly 0 clean 0x02 wapbl version 0x0 location 0 flags 0x0 wapbl loc0 0 loc1 0 loc2 0 loc3 0 flags none fsmnt / volname swuid 0
Ok, it's FFSv1. Try to install new boot blocks: dry run:
kg-v2# installboot -nv /dev/rwd0a /usr/mdec/bootxx_ffsv1 File system: /dev/rwd0a Primary bootstrap: /usr/mdec/bootxx_ffsv1 Boot options: timeout 5, flags 0, speed 9600, ioaddr 0, console pc
for real:
kg-v2# installboot -v /dev/rwd0a /usr/mdec/bootxx_ffsv1 File system: /dev/rwd0a Primary bootstrap: /usr/mdec/bootxx_ffsv1 Boot options: timeout 5, flags 0, speed 9600, ioaddr 0, console pc
Next, try to boot again. Yes - booting from grub works!
2013-11-15: NetBSD 6.1.2 - booting from the CD worked (I used my Plextor USB DVD-writer), so I selected upgrade, full install, leave boot blocks unchanged. That last part didn't work out to well, grub doesn't want to boot NetBSD. Booting from cd, escaping to the boot loader and then specifying boot hd0a:netbsd works. After fixing /etc/fstab by changing wd1a to wd0a for root and wd1j to wd0j for swap, the machine came up:
$ uname -a NetBSD kg-v2.kg4.no 6.1.2 NetBSD 6.1.2 (GENERIC) amd64 $ id uid=1000(tingo) gid=100(users) groups=100(users),0(wheel)
disk and swap:
$ df -h Filesystem Size Used Avail %Cap Mounted on /dev/wd0a 112G 4.3G 102G 4% / kernfs 1.0K 1.0K 0B 100% /kern ptyfs 1.0K 1.0K 0B 100% /dev/pts $ swapctl -l -g Device 1G-blocks Used Avail Capacity Priority /dev/wd0j 4 0 4 0% 0
fdisk
kg-v2# fdisk Disk: /dev/rwd0d NetBSD disklabel disk geometry: cylinders: 969021, heads: 16, sectors/track: 63 (1008 sectors/cylinder) total sectors: 976773168 BIOS disk geometry: cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder) total sectors: 976773168 Partitions aligned to 16065 sector boundaries, offset 63 Partition table: 0: FreeBSD or 386BSD or old NetBSD (sysid 165) start 63, size 245360682 (119805 MB, Cyls 0-15272), Active 1: FreeBSD or 386BSD or old NetBSD (sysid 165) start 245360745, size 243256230 (118777 MB, Cyls 15273-30414) 2: NetBSD (sysid 169) start 488616975, size 239223915 (116809 MB, Cyls 30415-45305) 3: Extended partition (sysid 5) start 727840890, size 248927175 (121546 MB, Cyls 45306-60800) Extended partition table: E0: Linux native (sysid 131) start 727840953, size 238725837 (116565 MB, Cyls 45306-60165) PBR is not bootable: All bytes are identical (0x00) E1: Linux swap or Prime or Solaris (sysid 130) start 966566853, size 10201212 (4981 MB, Cyls 60166-60800) PBR is not bootable: All bytes are identical (0x00) First active partition: 0 Drive serial number: 2407530673 (0x8f8000b1)
pci buses: pci0
kg-v2# pcictl pci0 list 000:00:0: AMD product 0x1410 (host bridge) 000:00:2: AMD product 0x1419 (system, subclass 0x06) 000:02:0: AMD product 0x1412 (PCI bridge) 000:04:0: AMD product 0x1414 (PCI bridge) 000:16:0: AMD Hudson USB xHCI Controller (USB serial bus, interface 0x30, revision 0x03) 000:16:1: AMD Hudson USB xHCI Controller (USB serial bus, interface 0x30, revision 0x03) 000:17:0: AMD Hudson AHCI SATA Controller (SATA mass storage, interface 0x01, revision 0x40) 000:18:0: AMD Hudson USB OHCI Controller (USB serial bus, interface 0x10, revision 0x11) 000:18:2: AMD Hudson USB EHCI Controller (USB serial bus, interface 0x20, revision 0x11) 000:19:0: AMD Hudson USB OHCI Controller (USB serial bus, interface 0x10, revision 0x11) 000:19:2: AMD Hudson USB EHCI Controller (USB serial bus, interface 0x20, revision 0x11) 000:20:0: AMD Hudson SMBus Controller (SMBus serial bus, revision 0x14) 000:20:2: AMD Hudson HD Audio Controller (multimedia, subclass 0x03, revision 0x01) 000:20:3: AMD Hudson LPC Bridge (ISA bridge, revision 0x11) 000:20:4: AMD Hudson PCI Bridge (PCI bridge, interface 0x01, revision 0x40) 000:20:5: AMD Hudson USB OHCI Controller (USB serial bus, interface 0x10, revision 0x11) 000:24:0: AMD product 0x1400 (host bridge) 000:24:1: AMD product 0x1401 (host bridge) 000:24:2: AMD product 0x1402 (host bridge) 000:24:3: AMD product 0x1403 (host bridge) 000:24:4: AMD product 0x1404 (host bridge) 000:24:5: AMD product 0x1405 (host bridge) 001:00:0: NVIDIA GeForce 8500 GT (VGA display, revision 0xa1) 002:00:0: Realtek Semiconductor 8168/8111 10/100/1000 Ethernet (ethernet network, revision 0x06)
pci1
000:00:0: AMD product 0x1410 (host bridge) 000:00:2: AMD product 0x1419 (system, subclass 0x06) 000:02:0: AMD product 0x1412 (PCI bridge) 000:04:0: AMD product 0x1414 (PCI bridge) 000:16:0: AMD Hudson USB xHCI Controller (USB serial bus, interface 0x30, revision 0x03) 000:16:1: AMD Hudson USB xHCI Controller (USB serial bus, interface 0x30, revision 0x03) 000:17:0: AMD Hudson AHCI SATA Controller (SATA mass storage, interface 0x01, revision 0x40) 000:18:0: AMD Hudson USB OHCI Controller (USB serial bus, interface 0x10, revision 0x11) 000:18:2: AMD Hudson USB EHCI Controller (USB serial bus, interface 0x20, revision 0x11) 000:19:0: AMD Hudson USB OHCI Controller (USB serial bus, interface 0x10, revision 0x11) 000:19:2: AMD Hudson USB EHCI Controller (USB serial bus, interface 0x20, revision 0x11) 000:20:0: AMD Hudson SMBus Controller (SMBus serial bus, revision 0x14) 000:20:2: AMD Hudson HD Audio Controller (multimedia, subclass 0x03, revision 0x01) 000:20:3: AMD Hudson LPC Bridge (ISA bridge, revision 0x11) 000:20:4: AMD Hudson PCI Bridge (PCI bridge, interface 0x01, revision 0x40) 000:20:5: AMD Hudson USB OHCI Controller (USB serial bus, interface 0x10, revision 0x11) 000:24:0: AMD product 0x1400 (host bridge) 000:24:1: AMD product 0x1401 (host bridge) 000:24:2: AMD product 0x1402 (host bridge) 000:24:3: AMD product 0x1403 (host bridge) 000:24:4: AMD product 0x1404 (host bridge) 000:24:5: AMD product 0x1405 (host bridge) 001:00:0: NVIDIA GeForce 8500 GT (VGA display, revision 0xa1) 002:00:0: Realtek Semiconductor 8168/8111 10/100/1000 Ethernet (ethernet network, revision 0x06)
pci2 pci3 all are the same. Other info
2013-11-15: booting from the usb stick with NetBSD 6.1.2 install image works, but the image only has an "install" options, not an "upgrade" option. Let me try a different image.
tingo@kg-core1$ su Password: root@kg-core1# dd if=./NetBSD-6.1.2-amd64.iso of=/dev/da0 bs=64k 5293+1 records in 5293+1 records out 346927104 bytes transferred in 49.981649 secs (6941090 bytes/sec)
Wow, only about 50 secs - but the image is only about 330M. info from disktype:
root@kg-core1# disktype /dev/da0 --- /dev/da0 Character device, size 3.740 GiB (4016045568 bytes) ISO9660 file system Volume name "NETBSD_612" Publisher "THE_NETBSD_PROJECT" Data size 330.6 MiB (346619904 bytes, 169248 blocks of 2 KiB) El Torito boot record, catalog at 19 Bootable non-emulated image, starts at 20, preloads 2 KiB Platform 0x00 (x86), System Type 0x00 (Empty)
Nice to know. But booting doesn't seem to work - which is unfortunate. I'll try writing to a real CD next.
2013-11-15: I downloaded the NetBSD 6.1.2 image (NetBSD-6.1.2-amd64-install.img.gz), going to put it on a usb memory stick. I'm using my workstation:
tingo@kg-core1$ uname -a FreeBSD kg-core1.kg4.no 8.4-STABLE FreeBSD 8.4-STABLE #0 r253646: Thu Jul 25 10:12:31 UTC 2013 root@kg-core1.kg4.no:/usr/obj/usr/src/sys/GENERIC amd64
Unpack
tingo@kg-core1$ pwd /usr/home/tingo/dl/bsd/nbsd/6.1.2 tingo@kg-core1$ gunzip -k NetBSD-6.1.2-amd64-install.img.gz sizes: tingo@kg-core1$ ll -h N* -rw-r--r-- 1 tingo users - 550M Sep 28 02:58 NetBSD-6.1.2-amd64-install.img -rw-r--r-- 1 tingo users - 334M Sep 28 02:58 NetBSD-6.1.2-amd64-install.img.gz
I've inserted a usb stick (4 GB), it shows up as /dev/da0. Write image to stick:
tingo@kg-core1$ su Password: root@kg-core1# dd if=./NetBSD-6.1.2-amd64-install.img of=/dev/da0 bs=64k 8800+0 records in 8800+0 records out 576716800 bytes transferred in 84.899905 secs (6792903 bytes/sec)
about 1m25s. Not bad. disktype shows:
root@kg-core1# disktype /dev/da0 --- /dev/da0 Character device, size 3.740 GiB (4016045568 bytes) DOS/MBR partition map Partition 1: 549 MiB (575668224 bytes, 1124352 sectors from 2048, bootable) Type 0xA9 (NetBSD) BSD disklabel (at sector 1), 8 partitions Partition a: 549 MiB (575668224 bytes, 1124352 sectors from 2048) Type 7 (4.2BSD fast file system) Includes the disklabel and boot code UFS file system, 8 KiB offset, little-endian Partition c: 549 MiB (575668224 bytes, 1124352 sectors from 2048) Type 0 (Unused)
Good to know.
2013-11-15: s3 - I tried booting NetBSD 5.0 BETA. Unfortunately it doesn't work. The hard drive isn't being recognized correctly, it says /dev/rwd1 not configured when it tries to mount root multiuser, the re0 network card is an unsupported revision, and the keyboard doesn't work in multiuser. Perhaps NetBSD 5.0 is way too old for this hardware?