Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
yaboot on new powerbook
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
xavier10
Guru
Guru


Joined: 19 Jan 2004
Posts: 449
Location: Paris, France

PostPosted: Mon Jan 19, 2004 9:39 pm    Post subject: yaboot on new powerbook Reply with quote

I am trying to install gentoo on a new powerbook.

I am having many problems with the bootloader.
- if I run yabootconfig, then after I gives the path to the kernel, it craches due to some missing information (I do not know which information).
- if I edit /etc/yaboot.conf and run mkofboot -v then it succeeds but at the restart I do not see the labels I have added and there is only one linux kernel which is not able to start the machine (kernel panic).

I checked the content of my bootstrap partition (the one that was written by mkofboot at my second attempt) and found :
- ofboot.b which seems to correspond to the boot menu I had at the startup. No precise information about the kernel I want to launch. The script only invokes yaboot.
- yaboot
- yaboot.conf: the copy of the one I have edited

Could someone help me ?
Back to top
View user's profile Send private message
rt_clik
n00b
n00b


Joined: 18 Jun 2002
Posts: 70
Location: Rohnert Park, California, US

PostPosted: Tue Jan 20, 2004 9:29 pm    Post subject: Reply with quote

I'm never 100% certain I'm answering the right question...but here it goes nonetheless:

My best recollection of mkofboot is that it sets up (blesses) the boot record, and is necessary to initially setup your OpenFirmware correctly to use yaboot, but to initialize changes to your yaboot.conf file you must use ybin (with the -v option for verbose output). Been a while since I did a PPC machine from scratch, but I know when I add new kernels and the like, following my yaboot.conf edits, I immediately run `ybin -v`.

Your mileage may vary.
Back to top
View user's profile Send private message
doubtingben
n00b
n00b


Joined: 21 Jan 2004
Posts: 6

PostPosted: Wed Jan 21, 2004 4:17 am    Post subject: Reply with quote

Quote:
- if I run yabootconfig, then after I gives the path to the kernel, it craches due to some missing information (I do not know which information).


The PPC instructions fail to mention you need to EXIT the chroot, and run yabootconfig with the
Code:
 --chroot /mnt/gentoo 
option

Of course, I still have problems, but that should get you farther :)
Back to top
View user's profile Send private message
xavier10
Guru
Guru


Joined: 19 Jan 2004
Posts: 449
Location: Paris, France

PostPosted: Wed Jan 21, 2004 8:07 pm    Post subject: ybin and mkofboot are symlinks Reply with quote

Hi,

As far as I could see mkofboot is a symlink to ybin, so ybin -v and mkofboot -v perform the same actions.

By the way I have been able to solve my problems now.

I have written /mnt/gentoo/etc/yaboot.conf by hand and launched mkofboot -v out of the chroot (I am not sure it would not have worked from inside the chroot).
Then the crucial point was to do a reset of the open firmware (command-option-p-r) so that OF REALLY starts with the /dev/hda2 partition (before I found out how to do that it was only able to start on MacOSX, on /dev/hda9).

Thanks everyone for the help,
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