| View previous topic :: View next topic |
| Author |
Message |
Tuxi n00b

Joined: 17 Mar 2004 Posts: 31
|
Posted: Tue Sep 27, 2005 12:03 pm Post subject: [SOLVED] Yaboot problem |
|
|
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 10:59 am; edited 1 time in total |
|
| Back to top |
|
 |
hare n00b

Joined: 30 Apr 2004 Posts: 28
|
Posted: Tue Sep 27, 2005 12:57 pm Post subject: Re: Yaboot problem |
|
|
| 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 |
|
 |
Tuxi n00b

Joined: 17 Mar 2004 Posts: 31
|
Posted: Tue Sep 27, 2005 3:05 pm Post subject: Re: Yaboot problem |
|
|
| 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 |
|
 |
hare n00b

Joined: 30 Apr 2004 Posts: 28
|
Posted: Wed Sep 28, 2005 11:02 am Post subject: Re: Yaboot problem |
|
|
| 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 |
|
 |
Tuxi n00b

Joined: 17 Mar 2004 Posts: 31
|
Posted: Thu Sep 29, 2005 3:22 pm Post subject: Re: Yaboot problem |
|
|
| 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 |
|
 |
nixnut Administrator


Joined: 09 Apr 2004 Posts: 10459 Location: the dutch mountains
|
Posted: Fri Sep 30, 2005 11:03 am Post subject: |
|
|
| 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 |
|
 |
Tuxi n00b

Joined: 17 Mar 2004 Posts: 31
|
Posted: Sun Oct 02, 2005 10:59 am Post subject: |
|
|
| 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 |
|
 |
|
|
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
|
|