/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-ppc-bootloader.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-ppc-bootloader.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.45 Revision 1.46
2<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> 2<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3 3
4<!-- The content of this document is licensed under the CC-BY-SA license --> 4<!-- The content of this document is licensed under the CC-BY-SA license -->
5<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-bootloader.xml,v 1.45 2008/05/02 08:04:23 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-bootloader.xml,v 1.46 2010/07/21 00:52:41 nightmorph Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>9.1</version> 11<version>10.0</version>
12<date>2008-05-02</date> 12<date>2010-07-20</date>
13 13
14<section> 14<section>
15<title>Choosing a Bootloader</title> 15<title>Making your Choice</title>
16<subsection> 16<subsection>
17<title>Introduction</title> 17<title>Introduction</title>
18<body> 18<body>
19 19
20<p> 20<p>
21Now that the kernel is configured and compiled, you'll need a <e>bootloader</e> 21Now that your kernel is configured and compiled and the necessary system
22to start your new linux installation. The <e>bootloader</e> that you use will 22configuration files are filled in correctly, it is time to install a
23depend upon the type of PPC machine you have. 23program that will fire up your kernel when you start the system. Such a
24program is called a <e>bootloader</e>.
25</p>
26
27<p>
28The bootloader that you use will depend upon the type of PPC machine you have.
24</p> 29</p>
25 30
26<p> 31<p>
27If you are using a NewWorld Apple or IBM machine, you need to use 32If you are using a NewWorld Apple or IBM machine, you need to use
28<uri link="#yaboot">yaboot</uri>. OldWorld Apple machines have two options, 33<uri link="#yaboot">yaboot</uri>. OldWorld Apple machines have two options,
63</pre> 68</pre>
64 69
65<p> 70<p>
66To set up yaboot, you can use <c>yabootconfig</c> to automatically create a 71To set up yaboot, you can use <c>yabootconfig</c> to automatically create a
67configuration file for you. If you are installing Gentoo on a G5 (where 72configuration file for you. If you are installing Gentoo on a G5 (where
68<c>yabootconfig</c> does not always work), or you plan to boot from firewire 73<c>yabootconfig</c> does not always work), or you plan to boot from FireWire
69or USB, you will need to manually configure yaboot. 74or USB, you will need to manually configure yaboot.
70</p> 75</p>
71 76
72<note> 77<note>
73You will need to manually edit the yaboot.conf when using genkernel, even if 78You will need to manually edit the <path>yaboot.conf</path> when using
74yabootconfig is used. The kernel image section of yaboot.conf should be 79<c>genkernel</c>, even if <c>yabootconfig</c> is used. The kernel image section
75modified as follows (using vmlinux and initrd as the name of kernel and 80of <path>yaboot.conf</path> should be modified as follows (using
76initrd image): 81<path>vmlinux</path> and <path>initrd</path> as the name of kernel and
82<path>initrd</path> image):
77</note> 83</note>
78 84
79<pre caption="Adding genkernel boot arguments to yaboot.conf"> 85<pre caption="Adding genkernel boot arguments to yaboot.conf">
80<comment>########################################################### 86<comment>###########################################################
81## This section can be duplicated if you have more than one 87## This section can be duplicated if you have more than one
82## kernel or set of boot options - replace the image and initrd 88## kernel or set of boot options - replace the image and initrd
83## with the exact filename of your kernel and initrd image. 89## with the exact filename of your kernel and initrd image.
84###########################################################</comment> 90###########################################################</comment>
85image=/boot/kernel-genkernel-ppc-<keyval id="kernel-gentoo"/> 91image=/boot/<keyval id="genkernel-name"/>
86 label=Linux 92 label=Linux
87 root=/dev/ram0 93 root=/dev/ram0
88 partition=3 94 partition=3
89 initrd=/boot/initramfs-genkernel-ppc-<keyval id="kernel-gentoo"/> 95 initrd=/boot/<keyval id="genkernel-initrd"/>
90 <comment># You can add additional kernel arguments to append such as 96 <comment># You can add additional kernel arguments to append such as
91 # rootdelay=10 for a USB/Firewire Boot</comment> 97 # rootdelay=10 for a USB/Firewire Boot</comment>
92 append="real_root=/dev/sda3 init=/linuxrc" 98 append="real_root=/dev/sda3 init=/linuxrc"
93 read-only 99 read-only
94<comment>##########################################################</comment> 100<comment>##########################################################</comment>
123<pre caption = "Installing yaboot"> 129<pre caption = "Installing yaboot">
124# <i>emerge yaboot</i> 130# <i>emerge yaboot</i>
125</pre> 131</pre>
126 132
127<p> 133<p>
128Now exit the chroot and run <c>yabootconfig --chroot /mnt/gentoo</c>. First, 134Now exit the chroot and run <c>yabootconfig --chroot /mnt/gentoo</c>. First, the
129the program will confirm the location of the bootstrap partition. If you are 135program will confirm the location of the bootstrap partition. If you are using
130using the suggested disk partitioning scheme, your bootstrap partition should 136the suggested disk partitioning scheme, your bootstrap partition should be
131be /dev/sda2. Type <c>Y</c> if the output is correct. If not, double check your 137<path>/dev/sda2</path>. Type <c>Y</c> if the output is correct. If not, double
132<path>/etc/fstab</path>. <c>yabootconfig</c> will then scan your system setup, 138check your <path>/etc/fstab</path>. <c>yabootconfig</c> will then scan your
133create <path>/etc/yaboot.conf</path> and run <c>mkofboot</c> for you. 139system setup, create <path>/etc/yaboot.conf</path> and run <c>mkofboot</c> for
134<c>mkofboot</c> is used to format the Apple_Bootstrap partition, and install 140you. <c>mkofboot</c> is used to format the Apple_Bootstrap partition, and
135the yaboot configuration file into it. After this enter the chroot again. 141install the yaboot configuration file into it. After this enter the chroot
142again.
136</p> 143</p>
137 144
138<pre caption="Re-enter the chroot"> 145<pre caption="Re-enter the chroot">
139# <i>chroot /mnt/gentoo /bin/bash</i> 146# <i>chroot /mnt/gentoo /bin/bash</i>
140# <i>/usr/sbin/env-update &amp;&amp; source /etc/profile</i> 147# <i>/usr/sbin/env-update &amp;&amp; source /etc/profile</i>
289 296
290<pre caption="Copying the Genkernel kernel and initrd to the MacOS partition"> 297<pre caption="Copying the Genkernel kernel and initrd to the MacOS partition">
291# <i>exit</i> 298# <i>exit</i>
292cdimage ~# <i>mkdir /mnt/mac</i> 299cdimage ~# <i>mkdir /mnt/mac</i>
293cdimage ~# <i>mount /dev/sda6 /mnt/mac -t hfs</i> 300cdimage ~# <i>mount /dev/sda6 /mnt/mac -t hfs</i>
294cdimage ~# <i>cp /mnt/gentoo/boot/kernel-genkernel-ppc-<keyval id="kernel-gentoo"/> "/mnt/mac/System Folder/Linux Kernels"</i> 301cdimage ~# <i>cp /mnt/gentoo/boot/<keyval id="genkernel-name"/> "/mnt/mac/System Folder/Linux Kernels"</i>
295cdimage ~# <i>cp /mnt/gentoo/boot/initramfs-genkernel-ppc-<keyval id="kernel-gentoo"/> "/mnt/mac/System Folder"</i> 302cdimage ~# <i>cp /mnt/gentoo/boot/<keyval id="genkernel-initrd"/> "/mnt/mac/System Folder"</i>
296</pre> 303</pre>
297 304
298<p> 305<p>
299Now that the kernel is copied over, we'll need to reboot to set up BootX. 306Now that the kernel is copied over, we'll need to reboot to set up BootX.
300</p> 307</p>
343<section id="quik"> 350<section id="quik">
344<title>Alternative: quik</title> 351<title>Alternative: quik</title>
345<body> 352<body>
346 353
347<p> 354<p>
348quik allows OldWorld Macs to boot without MacOS. However, it isn't well 355<c>quik</c> allows OldWorld Macs to boot without MacOS. However, it isn't well
349supported and has a number of quirks. If you have the option, it is recommended 356supported and has a number of quirks. If you have the option, it is recommended
350that you use BootX instead since it is much more reliable and easier to set up 357that you use BootX instead since it is much more reliable and easier to set up
351than quik. 358than quik.
352</p> 359</p>
353 360
354<p> 361<p>
355First, we'll need to install quik: 362First, we'll need to install <c>quik</c>:
356</p> 363</p>
357 364
358<pre caption="Emerge quik"> 365<pre caption="Emerge quik">
359# <i>emerge quik</i> 366# <i>emerge quik</i>
360</pre> 367</pre>
364image to the kernel that we copied to your boot partition. 371image to the kernel that we copied to your boot partition.
365</p> 372</p>
366 373
367<pre caption="Configuring quik.conf"> 374<pre caption="Configuring quik.conf">
368# Example of quik.conf 375# Example of quik.conf
369init-message = "Gentoo 2008.0\n" 376init-message = "Gentoo Linux\n"
370<comment># This is the boot partition</comment> 377<comment># This is the boot partition</comment>
371partition = 2 378partition = 2
372root = /dev/sda4 379root = /dev/sda4
373timeout = 30 380timeout = 30
374default = gentoo 381default = gentoo
376image = /<keyval id="kernel-name"/> 383image = /<keyval id="kernel-name"/>
377 label = gentoo 384 label = gentoo
378</pre> 385</pre>
379 386
380<p> 387<p>
381Your quik.conf file <e>must</e> be on the same disk as the quik boot images, 388Your <path>quik.conf</path> file <e>must</e> be on the same disk as the quik
382however it can be on a different partition on the same disk, although it is 389boot images, however it can be on a different partition on the same disk,
383recommended to move it to your boot partition. 390although it is recommended to move it to your boot partition.
384</p> 391</p>
385 392
386<pre caption="Moving quik.conf to /boot"> 393<pre caption="Moving quik.conf to /boot">
387# <i>mv /etc/quik.conf /boot/quik.conf</i> 394# <i>mv /etc/quik.conf /boot/quik.conf</i>
388</pre> 395</pre>
491Local HD -> Linux (Normal) 498Local HD -> Linux (Normal)
492ide:0 <keyval id="kernel-name"/> video=radeonfb:1024x768@70 root=/dev/sda3 499ide:0 <keyval id="kernel-name"/> video=radeonfb:1024x768@70 root=/dev/sda3
493 500
494[SECTION] 501[SECTION]
495Local HD -> Genkernel (Normal) 502Local HD -> Genkernel (Normal)
496ide:0 kernel-genkernel-ppc-<keyval id="kernel-gentoo"/> root=/dev/ram0 real_root=/dev/sda3 init=/linuxrc initrd=initramfs-genkernel-ppc<keyval id="kernel-gentoo"/> 503ide:0 <keyval id="genkernel-name"/> root=/dev/ram0
504real_root=/dev/sda3 init=/linuxrc initrd=<keyval id="genkernel-initrd"/>
497</pre> 505</pre>
498 506
499<p> 507<p>
500Finally the <path>bootmenu</path> must be transferred into Forth and copied to 508Finally the <path>bootmenu</path> must be transferred into Forth and copied to
501your boot partition, so that the SmartFirmware can read it. Therefore you have 509your boot partition, so that the SmartFirmware can read it. Therefore you have

Legend:
Removed from v.1.45  
changed lines
  Added in v.1.46

  ViewVC Help
Powered by ViewVC 1.1.20