Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
yaboot, ybin tips
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
captainmellow
n00b
n00b


Joined: 18 Jul 2004
Posts: 1
Location: chicagoland

PostPosted: Sun Jul 18, 2004 6:15 am    Post subject: yaboot, ybin tips Reply with quote

I am a complete gentoo noob. I have just installed it on a b&w g3. I had a interesting time getting it to boot, and I learned a few things the hard way that perhaps some other noob would find helpful:

1) As has been mentioned elsewhere in these forum threads, yabootconfig should be run after you exit your 'chroot /mnt/gentoo' environment. Run yabootconfig with the '--chroot /mnt/gentoo' parameter, and when it asks for the path to the kernel, give it as '/mnt/gentoo/boot/kernel-2.4.24' (or whatever you named vmlinux when you copied it over to /boot).

2) When you run mkofboot or ybin, make sure you are using /mnt/gentoo/etc/yaboot.conf rather than /etc/yaboot.conf
e.g. 'ybin -C /mnt/gentoo/etc/yaboot.conf'

3) While you are still in your 'chroot /mnt/gentoo' environment, make sure to 'passwd' to change your root pw to something other than the autoscrambled one, or you'll be locked out of root. If this does happen to you, just boot up the livecd and chroot back in to /mnt/gentoo and do 'passwd'.

Like I said, I learned these things the hard way. :oops:
Back to top
View user's profile Send private message
jgombos
n00b
n00b


Joined: 27 Jul 2004
Posts: 64

PostPosted: Fri Jul 30, 2004 8:25 pm    Post subject: Re: yaboot, ybin tips Reply with quote

Thanks for the tips! I'm just getting to the yaboot point of a PPC install, and probably would have duplicated your issues.

I'm actually having some different issues, and I wonder if it's related to still being chrooted. The /etc/fstab file contains mappings to non-existent devices (which are in all caps like BOOT, and ROOT). Since the handbook did not say what to do with them, I just ignored them. But yaboot complains that these files/devices don't exist. So then I tried commenting them out. Now yaboot complains about not finding a tmpfs device, which the handbook recommends having a hook for, and declares it as follows:
Code:
none /dev/shm tmpfs defaults 0 0


I will try leaving the chrooted environment to see if that works.
Back to top
View user's profile Send private message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Fri Jul 30, 2004 9:10 pm    Post subject: Reply with quote

the guide does mention those, in the section "creating your /etc/fstab"

[EDIT]
my mistake, they changed it...
but to look at the section anyway (which im sure you have alreadsy done)
look here:
http://www.gentoo.org/doc/en/handbook/handbook-ppc.xml?part=1&chap=8
[/EDIT]

they are substitutes, so if your root partition is /dev/hda3 then replace /dev/ROOT with /dev/hda3.... repeat with swap, and
comment out /dev/BOOT (its not necesary on ppc, in fact, it just confuses things)


read the section that i mentioned (unless they took it out of the 2004.2 handbook, its there... i just read it in the 2004.1 handbook)


try things after youve fixed that, and your problems should be fixed...


killfire
Back to top
View user's profile Send private message
chrislee8
n00b
n00b


Joined: 26 Jul 2004
Posts: 23

PostPosted: Sat Jul 31, 2004 2:27 am    Post subject: Reply with quote

I am up to this point and stuck.

I do: chroot /mnt/gentoo.
then: yabootconfig

it says yabootconfig : This utility requires the /proc filesystem.

what does it mean?

by the way, how to you exit chroot /mnt/gentoo environment?

chroot /mnt/gentoo means change the root to the /mnt/gentoo directory right? exit it meaning where it is going? it is so confusing that i don't even know if i ask the right question or not.

lol
_________________
everyone who helped deserves a 'Thank you', dude!
Back to top
View user's profile Send private message
killfire
l33t
l33t


Joined: 04 Oct 2003
Posts: 618

PostPosted: Sat Jul 31, 2004 2:33 am    Post subject: Reply with quote

did you mount the proc filesystem on /mnt/gentoo/proc ?

thats in the "preparing your disks" part of the guide it think.....

you can always just do it out of the chrooted envir, like mentioned above with a

ybin -C /path/to/yaboot.conf

thats also handy for rescues, when you mess you yaboot (and you probably will before your finished :)

btw, you exit the chrooted envir with a very creative command:
exit


:)

killfire
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Sun Aug 01, 2004 10:33 pm    Post subject: Reply with quote

On a rather unrelated note, here is my little yaboot trick:
There is a pretty much undocumented feature in yaboot which allows you to have a file called
Code:
/etc/yaboot.msg
which, when present, will always be displayed by yaboot as a greeting message.

So what I did is put a nice colored gentoo-logo to greet me in the bootloader (no, bootsplash is not enough :wink:):
Code:
$ emerge linux-logo
$ linux_logo -lL 3 > /etc/yaboot.msg
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