Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Yaboot problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Tuxi
n00b
n00b


Joined: 17 Mar 2004
Posts: 31

PostPosted: Tue Sep 27, 2005 5:03 pm    Post subject: [SOLVED] Yaboot problem Reply with quote

Hi,
I am reinstalling Gentoo, I still have Mac installed on a partition. I have problems configuring yaboot.

If I do:
yabootconfig --chroot /mnt/gentoo
I get the error:
Yabootconfig: Unable to locate bootstrap partition on /dev/hda...
Yabootconfig: You must create an 800k type: Apple_Bootstrap partition to make the disk bootable.
But I still have this partition from my previous install (it is listed by mac-fdisk -l).

If I instead try with "mkofboot -v" or "ybin -v" I get this error:
ybin: Finding OpenFirmwire device path to `/dev/hda2'...
ofpath: unable to determine sysfs mountpoint
ybin: Unable to find OpenFirmwire path for boot=/dev/hda2
ybin: Please add ofboot=<path> where <path> is the OpenFirmwire path to /dev/hda2 to /etc/yaboot.conf
ybin: Finding OpenFirmwire device path to `/dev/hda8'...
ofpath: Unable to determine sysfs mountpoint
ybin: Unable to find OpenFirmwire path for macosx=/dev/hda8
ybin: Try specifying the real OpenFirmwire for macosx=/dev/hda8 in /etc/yaboot.conf

My /etc/yaboot.conf is this
boot=/dev/hda2
#ofboot=hd:2 # I have tried uncommenting this
device=hd:
partition=4
delay=10
timeout=40
install=/usr/lib/yaboot/yaboot
magicboot=/usr/lib/yaboot/ofboot
default=Gentoo-2.6.12-r10
defaultos=linux
image=/boot/kernel-2.6.12-gentoo-r10
label=Gentoo-2.6.12-r10
root=/dev/hda4
read-only
macosx=/dev/hda8
enablecdboot
enableofboot

I read in an old post that ofboot doesn't work when I'm chrooted.

Does anybody have an idea of what I am doing wrong?


Last edited by Tuxi on Sun Oct 02, 2005 3:59 pm; edited 1 time in total
Back to top
View user's profile Send private message
hare
n00b
n00b


Joined: 30 Apr 2004
Posts: 28

PostPosted: Tue Sep 27, 2005 5:57 pm    Post subject: Re: Yaboot problem Reply with quote

Tuxi wrote:
Hi,
I am reinstalling Gentoo, I still have Mac installed on a partition. I have problems configuring yaboot.

If I do:
yabootconfig --chroot /mnt/gentoo
I get the error:
Yabootconfig: Unable to locate bootstrap partition on /dev/hda...
Yabootconfig: You must create an 800k type: Apple_Bootstrap partition to make the disk bootable.
But I still have this partition from my previous install (it is listed by mac-fdisk -l).

...



Ok,

is your bootstrap-partition on /dev/hda2, so you can tell yabootconfig
where your bootstrap partition is.

yabootconfig -b /dev/hda2 --chroot /mnt/gentoo

But yabootconfig create a new yaboot.conf file (without overwrite) and start
mkofboot to create the filesystem and copy yaboot to the bootstrap-partition.

Good luck

hare
Back to top
View user's profile Send private message
Tuxi
n00b
n00b


Joined: 17 Mar 2004
Posts: 31

PostPosted: Tue Sep 27, 2005 8:05 pm    Post subject: Re: Yaboot problem Reply with quote

hare wrote:

Ok,

is your bootstrap-partition on /dev/hda2, so you can tell yabootconfig
where your bootstrap partition is.

yabootconfig -b /dev/hda2 --chroot /mnt/gentoo


When I do this it can't find my kernel:
Install yaboot bootstrap on /dev/hda2 to boot linux from /dev/hda4 [YES] y
Creating a simple /mnt/gentoo/etc/yaboot.conf...
Yabootconfig: Cannot find a kernel please locate one
Enter path to a kernel image: hd:4,/boot/kernel-2.6.12-gentoo-r10
yabootconfig: hd:4,/boot/kernel-2.6.12-gentoo-r10: No such file or directory

I have tried with other paths like "hd:4,/mnt/gentoo/boot/kernel-2.6.12-gentoo-r10" but it doesn't help. What do I do wrong?
Back to top
View user's profile Send private message
hare
n00b
n00b


Joined: 30 Apr 2004
Posts: 28

PostPosted: Wed Sep 28, 2005 4:02 pm    Post subject: Re: Yaboot problem Reply with quote

Tuxi wrote:
hare wrote:

Ok,

is your bootstrap-partition on /dev/hda2, so you can tell yabootconfig
where your bootstrap partition is.

yabootconfig -b /dev/hda2 --chroot /mnt/gentoo


When I do this it can't find my kernel:
Install yaboot bootstrap on /dev/hda2 to boot linux from /dev/hda4 [YES] y
Creating a simple /mnt/gentoo/etc/yaboot.conf...
Yabootconfig: Cannot find a kernel please locate one
Enter path to a kernel image: hd:4,/boot/kernel-2.6.12-gentoo-r10
yabootconfig: hd:4,/boot/kernel-2.6.12-gentoo-r10: No such file or directory

I have tried with other paths like "hd:4,/mnt/gentoo/boot/kernel-2.6.12-gentoo-r10" but it doesn't help. What do I do wrong?



The mistake is in the path.
You have two possibilities:

a) I think you leave your chroot environment to start yabootconfig, like in the documentation.
So your path to the kernel ist: '/mnt/gentoo/boot/kernel-2.6.12-gentoo-r10' .

Or

b) you chroot normal and start 'mkofboot -b /dev/hda2', because you have an existing yaboot.conf file.

And it is easier, if your label in yaboot.conf is a little bit smaller, like only 'linux' ;-)

Regards

hare
Back to top
View user's profile Send private message
Tuxi
n00b
n00b


Joined: 17 Mar 2004
Posts: 31

PostPosted: Thu Sep 29, 2005 8:22 pm    Post subject: Re: Yaboot problem Reply with quote

hare wrote:


b) you chroot normal and start 'mkofboot -b /dev/hda2', because you have an existing yaboot.conf file.

I added ofboot=/pci@f4000000/ata-6@d/disk@0:
and
changed root=/dev/hda4 to
root=/pci@f4000000/ata-6@d/disk@0:4,
and changed macosx=/dev/hda8 to
macosx=/pci@f4000000/ata-6@d/disk@0:8,
and now mkofboot -v works. When I reboot I can choose between mac, linux, cd, etc. But if I choose Mac the screen just blinks and show the same screen again. If I choose linux I get a new boot prompt where I can load one kernel (the new one from my yaboot.conf) but it gives a kernel panic:
VFS: cannot open root device "/pci...." or unknown block(0,0)
Please append a correct "root=" boot option
Kernel panic not syncing: VFS: Unable to mount root fs on unknown block(0,0)
Rebooting...

So neither Macosx or Gentoo can boot. Is it my yaboot which still is wrong or is it my kernel which is configured wrong?

hare wrote:

And it is easier, if your label in yaboot.conf is a little bit smaller, like only 'linux' ;-)



I know, but I usually have more than one kernel, so this way I can distinguish them.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Sep 30, 2005 4:03 pm    Post subject: Reply with quote

Code:
root=/pci@f4000000/ata-6@d/disk@0:4,
Change that back to /dev/hda4
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
Tuxi
n00b
n00b


Joined: 17 Mar 2004
Posts: 31

PostPosted: Sun Oct 02, 2005 3:59 pm    Post subject: Reply with quote

nixnut wrote:
Code:
root=/pci@f4000000/ata-6@d/disk@0:4,
Change that back to /dev/hda4


I have done that but I still got a kernel panic. Then I tried with another kernel config and now I could boot Gentoo but not Mac OS X. Then I removed all /pci@f4000000/ata-6@d/disk@0 from yaboot.conf, run ybin -v, and now both systems work.

Thanks to everyone who helped me:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum