Subject: Rooting from a specified device on a Qube2?
To: 'port-cobalt@netbsd.org' <port-cobalt@netbsd.org>
From: Robert Thille <rthille@gte.net>
List: port-cobalt
Date: 04/16/2002 11:05:44
Ok, I didn't get any replies about setting the boot device, so I'm going 
to try again...

When trying to set the boot device, the boot just hangs:

Cobalt Microserver Diagnostics - 'We serve it, you surf it'
Built Tue May 25 15:58:41 PDT 1999
[MUNCH]
13.Ethernet Test...........................PASS
16.RTC Test................................PASS

Cobalt: bfd /boot/vmlinux.gz root=/dev/hd1a
Decompressing done
Executing bootloader kernel...
^^^^^^^^^^^^^^^^^^^^^^^^^
Hangs here ^
Doesn't seem to matter which boot device I use.

Cobalt: bfd /boot/vmlinux.gz root=/dev/wd1a
Decompressing done
Executing bootloader kernel...
^^^^ Hangs ^^^^

Cobalt: bfd /boot/vmlinux.gz root=/dev/wd0a
Decompressing done
Executing bootloader kernel...
^^^^ Hangs ^^^^


If I boot without the root=/dev/XXX
It boots, but wants to root off the wrong device.  If I make the drive I 
want to root the 'master' (/dev/wd0), it roots off of /dev/wd1, if I 
make the drive I want to root the 'slave' (/dev/wd1), it roots off the 
master (/dev/wd0).  Doh!

Here, the desired root device is the master:

BOOTLOADER ramcode: selected partition /dev/hda1
Decompressing done
Executing bootloader kernel...
Decompressing -\ done.
Copyright (c) 1996, 1997, 1998, 1999, 2000
     The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.

NetBSD 1.5 (rthille_ipfilter) #0: Thu Jul  5 16:58:50 PDT 2001
     
rthille@bluesky.thille.org:/home/rthille/test/usr/src/sys/arch/cobalt/compile/
rthille_ipfilter
144 MB memory, 131 MB free, 7472 KB in 1868 buffers
...
pciide0 at pci0 dev 9 function 1: VIA Tech VT82C586A IDE Controller 
(rev. 0x06)
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <Maxtor 91728D8>
wd0: drive supports 16-sector pio transfers, lba addressing
wd0: 16479 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 33750864 
sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
wd1 at pciide0 channel 0 drive 1: <ST320423A>
wd1: drive supports 32-sector pio transfers, lba addressing
wd1: 19536 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 40011300 
sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data 
transfers)
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 (using DMA data 
transfers)
pciide0: secondary channel configured to compatibility mode
pciide0: disabling secondary channel (no drives)
...
boot device: wd1
root on wd1a dumps on wd1b
root file system type: ffs
warning: no /dev/console


Here, the desired root device is the slave:

BOOTLOADER ramcode: selected partition /dev/hda1
Decompressing -- done.
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001
     The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
     The Regents of the University of California.  All rights reserved.

NetBSD 1.5.2 (GENERIC) #4: Mon Nov 25 10:51:34 CET 1963
     root@raq:/usr/1-5-release/src/sys/arch/cobalt/compile/GENERIC
144 MB memory, 131 MB free, 7472 KB in 1868 buffers
...
pciide0 at pci0 dev 9 function 1: VIA Technologies VT82C586 (Apollo VP) 
ATA33 controller
pciide0: bus-master DMA support present
pciide0: primary channel configured to compatibility mode
wd0 at pciide0 channel 0 drive 0: <ST320423A>
wd0: drive supports 32-sector pio transfers, lba addressing
wd0: 19536 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 40011300 
sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 4
wd1 at pciide0 channel 0 drive 1: <Maxtor 91728D8>
wd1: drive supports 16-sector pio transfers, lba addressing
wd1: 16479 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 33750864 
sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 (using DMA data 
transfers)
wd1(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2 (using DMA data 
transfers)
pciide0: secondary channel configured to compatibility mode
pciide0: disabling secondary channel (no drives)
...
boot device: wd0
root on wd0a dumps on wd0b
root file system type: ffs
warning: no /dev/console


I see that the kernel is coming off the 'master', which on the drive I 
want to root from is my 1.5.0 ipfilter enabled kernel, and on the other 
drive that I'm trying to get cleanly setup for the other Qube2 I've got 
is 1.5.2 GENERIC.

If anyone has any ideas, I'd appreciate it greatly.

Thanks,

Robert