Subject: Re: new boot device finding code
To: Dan Winship <danw@MIT.EDU>
From: Tsubai Masanari <tsubai@iri.co.jp>
List: port-macppc
Date: 02/01/2000 17:27:42
>I redid the macppc boot device finding code to be more clever. I've
>tested booting from ahc, pciide, cd, and bm. Given that those work,
>pretty much anything else we support should, too, but let me know if
>it doesn't work for you. (Especially if it did work before. :-)

On OF-1.x (at least),

	node = OF_finddevice("scsi/sd@1:0);
	OF_package_to_path(node, bootpath, sizeof(bootpath));

returns "/.../sd@0,0".  (ID number is always 0)

And on the G4, all of three pci busses has bus == 0.

uninorth0 at mainbus0
pci0 at uninorth0 bus 0
...
uninorth1 at mainbus0
pci1 at uninorth1 bus 0
...
uninorth2 at mainbus0
pci3 at uninorth2 bus 0
...

Don't they cause problem?
(Sorry, I can't test now... because of G4 support :-)