Subject: Re: Weird scsibus on a 7300?
To: Martin Nilsson <doedzloek@telia.com>
From: Daniel Eggert <danieleggert@mac.com>
List: port-macppc
Date: 01/26/2003 21:27:12
On s=F8ndag, jan 26, 2003, at 18:30 Europe/Copenhagen, Martin Nilsson=20
wrote:

> 03-01-26 12.52, skrev Daniel Eggert p=E5 danieleggert@mac.com =
f=F6ljande:
>
>>
>> On s=F8ndag, jan 26, 2003, at 11:59 Europe/Copenhagen, Martin Nilsson
>> wrote:
>>
>>> 1.6 running on a Power Mac 7300 with 2 internal scsi disks.
>>> The weird thing (at least I think so) is that the internal disks are=20=

>>> on
>>> scsibus1, and if I connect an external scsi device, it shows up on
>>> scsibus0.
>>> Shouldn't scsibus0 be the internal and scsibus1 be the external?
>>> That seems most right to me...
>>
>> Unless you 'hardwire' things in your kernel configuration, the
>> numbering of scsibus (and all other devices) depends on the probe=20
>> order
>> of the kernel. If you do a dmesg, you'll see, that scsibus0 is=20
>> detected
>> befor scsibus1.
>>
>> Daniel
>>
>>
>
> How do I do that?
> It's pretty annoying that if I connect an external harddrive it=20
> becomes sd0
> and the boot disk becomes sd1.
>
> /Martin

First of all you need to get the sources, and you need to know how to=20
compile a kernel. Check
	http://www.mclink.it/personal/MG2508/nbsdeng/chap-kernel.html
if you're new to this. Commands have changed slightly in 1.6: Look at
	http://www.dk.netbsd.org/Documentation/current/#updating
to see how to compile a kernel in 1.6. (Run point 1-3. Don't do the=20
'./build.sh' at the end!)

Make a copy of the GENERIC:
	cd /sys/arch/macppc/conf/
	cp GENERIC PM7300
then edit the PM7300 with your favourite editor. The exact thing you=20
have to do inside depends on your system config. Look at the output of=20=

'dmesg'.

Let's say you get something like
	scsibus0 at esp0: 8 targets, 8 luns per target
from dmesg, then you need to 'fix' the scsibus by replacing
	scsibus* at esp?
with
	scsibus0 at esp0
	scsibus* at esp?
inside you kernel config (the PM7300), and in turn fix the esp0. I=20
havn't dont this myself, but this is the way it's supposed to work.=20
Once you run the configure command you'll see if somethings wrong.

Daniel