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 until grub2 is finished.
There are two ways to configure yaBoot for your system. You can use the new and
improved
To use
(For 64-bit users) # emerge --update yaboot-static(For 32-bit users) # emerge yaboot
Now run
You might want to verify the contents of
Now continue with
First make sure you have the latest
(For 64-bit users) # emerge --update yaboot-static(For 32-bit users) # emerge yaboot
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 Open Firmware 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 image=/boot/with your kernel-version ################# label=Linux root=/dev/hda3 partition=3 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 must proceed with the following steps:
device=disk: partition=2 root=/dev/sda2 default=linux timeout=50 image=/boot/label=linux append="console=ttyS0,9600" read-only
For POWER4, POWER5, and blade-based hardware where the PReP disk partition and
the disk partition that contains your kernel are on the same physical disk, you
can use a simplified
default = linux timeout = 100 image=/boot/label=linux read-only root = /dev/sda2 append="root=/dev/sda2"
To verify that yaboot has been copied to the PReP partition:
# dd if=/dev/sda1 count=10 | grep ELF Binary file (standard input) matches 10+0 records in 10+0 records out
A match signifies that yaboot was installed correctly.
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/dev /mnt/gentoo/proc /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