Subject: config problem
To: None <current-users@NetBSD.ORG>
From: NetBSD <netbsd@gate.ene.UnB.br>
List: current-users
Date: 06/26/1996 20:50:28
I have just installed NetBSD-curretn i386 on a machine which has two scsi 
controllers. The first is a Buslogic 445C VL-bus with two barracuda 
drives. The second is an ADAPTEC-1542CF ISA card.

Now that NetBSD has bounce-buffers everything should be fine but it 
inverts the autoconfig order of the devices so I end up having to wire 
things on their right places.

Has someone noticed this before?

Here follows the config file section that should work but doesn't:

.....

mainbus0 at root
isa0	at mainbus0
npx0	at isa? port 0xf0 irq 13	# math coprocessor
pc0	at isa? port 0x60 irq 1		# generic PC console device
com0	at isa? port 0x3f8 irq 4	# standard PC serial ports
com1	at isa? port 0x2f8 irq 3
lpt0	at isa? port 0x378 irq 7	# standard PC parallel ports
bt0	at isa? port 0x330 irq ? drq ?
scsibus* at bt0
aha0	at isa? port 0x334 irq ? drq ?	# Adaptec 154[02] SCSI controllers
scsibus* at aha0
sd*	at scsibus? target ? lun ?
st*	at scsibus? target ? lun ?
cd*	at scsibus? target ? lun ?
.....

>From what I understand, sd0 should be lowest numbered target at bt0, 
isn't that right?

Even if I wire the scsibuses like:

scsibus0 at bt0
scsibus1 at aha0

aha0 is still probed first and sd0 becomes the disk on it. I had to end 
up wiring the disks also, like:

scsibus0 at bt0
scsibus1 at aha0
sd0 at scsibus0 target ? lun ?
sd1 at scsibus0 target ? lun ?
sd2 at scsibus1 target ? lun ?

and it works.