Subject: 2.0 can't nail down devices??
To: None <tech-kern@netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: tech-kern
Date: 02/09/2005 23:36:48
Okay, I have a SPARCstation LX.  I've put 2.0 on it (in support of
porting some kernel code to 2.0).

I have an hme/fas combo card in it, with a disk attached.  The OS is on
this disk.  But for temporary reasons I also have disks connected to
the onboard (narrow) SCSI.  With the default kernel setup, the
temporary disks get probed first, something I didn't want.  I also have
the "boot partition isn't root" issue on this machine.

So I built a kernel with

iommu0 at mainbus0
sbus0 at iommu0
esp0 at sbus0 slot 1 offset 0x8800000
scsibus0 at esp0
sd0 at scsibus0 target 0 lun 0

config netbsd root on sd0e type ?

Yet when I boot that kernel (and yes, uname -a confirms that I've
booted the newly-built kernel), I still get the default device probe
order - the fas, which is indeed "at sbus0 slot 1 offset 0x8800000"
according to dmesg - is esp1, not esp0, and is scsibus1, not scsibus0.

I checked the kernel build directory, and ioconf.c certainly seems to
have reasonable-looking stuff in it, though I didn't walk the whole
thing by hand to make sure it was right.

What am I doing wrong?  How do I nail sd0 down to
/iommu/sbus/SUNW,fas/sd@0,0?

/~\ The ASCII				der Mouse
\ / Ribbon Campaign
 X  Against HTML	       mouse@rodents.montreal.qc.ca
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B