Now that your kernel is configured and compiled and the necessary system
configuration files are filled in correctly, it is time to install a
program that will fire up your kernel when you start the system. Such a
program is called a
On Linux/PPC64 we have only yaBoot as a bootloader untill grub2 is finished.
There are two ways to configure yaBoot for your system. You can use the
new and improved
To use
# emerge --update yaboot-static
Now run
You might want to verify the contents of
Now continue with
First make sure you have the latest
# emerge --update yaboot-static
Below you find a completed
## /etc/yaboot.conf ## ## run: "man yaboot.conf" for details. Do not make changes until you have!! ## see also: /usr/share/doc/yaboot/examples for example configurations. ## ## For a dual-boot menu, add one or more of: ## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ ## our bootstrap partition: boot=/dev/hda2## ofboot is the openfirmware way to specify the bootstrap partition. ## If this isn't defined, yaboot fails on the G5 and some G4s (unless ## you pass the necessary arguments to the mkofboot/ybin program). ## hd:X means /dev/sdaX (or /dev/hdaX). ofboot=hd:2## hd: is open firmware speak for hda device=hd: delay=5 defaultos=macosx timeout=30 install=/usr/lib/yaboot/yaboot magicboot=/usr/lib/yaboot/ofboot################# ## This section can be duplicated if you have more than one kernel or set of ## boot options - replace 2.6.9 with your kernel-version ################# image=/boot/kernel-2.6.9 label=Linux root=/dev/hda3 partition=3 sysmap=/boot/System.map-2.6.9 read-only macos=hd:13 macosx=hd:12 enablecdboot enableofboot
Once
If all goes well, and you have the same
options as the sample above, your next reboot will give you a simple,
five-entry boot menu. If you update your yaboot config later on, you'll
just need to run
For more information on yaboot, take a look at the
On IBM hardware you cannot run yabootconfig or ybin. You have to proceed the folowing steps:
device=disk:
partition=2
root=/dev/sda2
default=2.6.8-gentoo-r3
timeout=50
image=/boot/vmlinux-2.6.8-gentoo-r3
label=2.6.8-gentoo-r3
append="console=ttyS0,9600"
read-only
Exit the chrooted environment and unmount all mounted partitions. Then type in
that one magical command you have been waiting for:
# exit ~# cd ~# umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo/dev /mnt/gentoo ~# reboot
Of course, don't forget to remove the bootable CD, otherwise the CD will be booted again instead of your new Gentoo system.
Once rebooted in your Gentoo installation, finish up with