Re: Open Firmware gurus?
On Tue, Jul 01, 2003 at 04:54:44PM +0200, svallet@inapg.inra.fr wrote:
> No guru, but maybe some help :-)
>
> > I found the script to alter boot-floppies. My oldworld
> > powerbook (wallstreet) now boots. But it would be nice
> > to get it booting off the internal internal drive.
> > When I do ofpath from Linux, it says
> > /pci/mac-io/ata0/ata-disk@0:2 for the device path of
> > /dev/hda2, my root partition, but that is not working
> > as a boot device from OF.
>
> As far as I know, the 'boot-device' setting doesn't care about the
> partition number, it just wants your device, i.e.
> "/pci/mac-io/ata0/disk@0,0" , if that's what you get from OF
> (maybe try "@0:0" also ?)
0:0 is the good one. However 0:2 can work also.
> On the other hand, the 'boot-file' setting requires the root partition
> and the path to the kernel, but you can usually just put the label you
> defined in quik.conf (e.g. 'Linux').
Yes, this should work reliably. quik seems to like getting its
settings from the config file better than from OF.
> If that doesn't work, you should
> try filling in the full path : e.g.
> "/pci/mac-io/ata0/disk@0,2/boot/vmlinux"
> (or maybe "/pci/mac-io/ata0/disk@0:2/boot/vmlinux")
>
> > I've tried manually
> > exploring the device tree, and it seems like that
> > device path just does not exist there to OF (ver.
> > 2.0.1, btw). For example, I do a 'dev
> > /pci/mac-io/ata0', then I ls that, and only
> > /ata0@20000/disk@0,0 are there.
>
> that's your device, right ?
>
> > pwd shows I'm on the
> > pci bus:
> > /pci@80000000/mac-io@10/ata0@20000/disk@0,0
>
> and that's the full path... i don't get the issue
>
The significant change (error in ofpath output) is
s/ata-disk/disk/. So I think if you set boot-device to
/pci/mac-io/ata0/disk@0:0
it will work.
--
Debian GNU/Linux Operating System
By the People, For the People
Chris Tillman (a people instance)
toff1@cox.net
Reply to: