Subject: Re: Spelling Error, was Boot Test Offer
To: Dan Winship <danw@MIT.EDU>
From: Bill Studenmund <wrstuden@nas.nasa.gov>
List: port-macppc
Date: 07/16/1999 14:16:45
On Fri, 16 Jul 1999, Dan Winship wrote:

> > Is our order determined by the OF device list order, or by the kernel
> > config file, or what?
> 
> Device configuration is done as a depth-first search from the mainbus,
> where the order of nodes within a bus is bus-dependent. On macppc, the
> mainbus attaches the main PCI bus first, and then any other PCI
> busses. PCI attaches its children in order of increasing PCI device
> ID. So either your external SCSI controller has a lower device ID than
> the internal one, or one or both of them are on other busses (eg obio)
> attached to the PCI bus, and the external is on a bus whose bridge has
> a lower device ID, or whatever.

Turns out we're doing the obio search in OF order. We find the obio
controller (either gc, ohare, Heathrow, or Paddington) and then step
through the children OF passes us. Evidently we get the external SCSI
before the internal one.

> There's not much you can do to change the order. But you can build
> your own kernel with the drive numbers hardwired. eg:
> 
> sd0 at scsibus1 target 4 lun 0
> sd1 at scsibus0 target 2 lun 0

The only thing we could do would be to hack in a probe for mesh before we
itterate, and then skip mesh if it's been found. But that's kinda gross.

Take care,

Bill