/[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.44 Revision 1.45
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.44 2008/04/01 08:53:46 nightmorph Exp $ --> 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 $ -->
8 8
9<sections> 9<sections>
10 10
11<version>9.0</version> 11<version>9.1</version>
12<date>2008-04-01</date> 12<date>2008-05-02</date>
13 13
14<section> 14<section>
15<title>Choosing a Bootloader</title> 15<title>Choosing a Bootloader</title>
16<subsection> 16<subsection>
17<title>Introduction</title> 17<title>Introduction</title>
87 root=/dev/ram0 87 root=/dev/ram0
88 partition=3 88 partition=3
89 initrd=/boot/initramfs-genkernel-ppc-<keyval id="kernel-gentoo"/> 89 initrd=/boot/initramfs-genkernel-ppc-<keyval id="kernel-gentoo"/>
90 <comment># You can add additional kernel arguments to append such as 90 <comment># You can add additional kernel arguments to append such as
91 # rootdelay=10 for a USB/Firewire Boot</comment> 91 # rootdelay=10 for a USB/Firewire Boot</comment>
92 append="real_root=/dev/hda3 init=/linuxrc" 92 append="real_root=/dev/sda3 init=/linuxrc"
93 read-only 93 read-only
94<comment>##########################################################</comment> 94<comment>##########################################################</comment>
95</pre> 95</pre>
96 96
97<ul> 97<ul>
126 126
127<p> 127<p>
128Now exit the chroot and run <c>yabootconfig --chroot /mnt/gentoo</c>. First, 128Now exit the chroot and run <c>yabootconfig --chroot /mnt/gentoo</c>. First,
129the program will confirm the location of the bootstrap partition. If you are 129the program will confirm the location of the bootstrap partition. If you are
130using the suggested disk partitioning scheme, your bootstrap partition should 130using the suggested disk partitioning scheme, your bootstrap partition should
131be /dev/hda2. Type <c>Y</c> if the output is correct. If not, double check your 131be /dev/sda2. Type <c>Y</c> if the output is correct. If not, double check your
132<path>/etc/fstab</path>. <c>yabootconfig</c> will then scan your system setup, 132<path>/etc/fstab</path>. <c>yabootconfig</c> will then scan your system setup,
133create <path>/etc/yaboot.conf</path> and run <c>mkofboot</c> for you. 133create <path>/etc/yaboot.conf</path> and run <c>mkofboot</c> for you.
134<c>mkofboot</c> is used to format the Apple_Bootstrap partition, and install 134<c>mkofboot</c> is used to format the Apple_Bootstrap partition, and install
135the yaboot configuration file into it. After this enter the chroot again. 135the yaboot configuration file into it. After this enter the chroot again.
136</p> 136</p>
167# <i>emerge yaboot</i> 167# <i>emerge yaboot</i>
168</pre> 168</pre>
169 169
170<p> 170<p>
171An example <path>yaboot.conf</path> file is given below, but you will need to 171An example <path>yaboot.conf</path> file is given below, but you will need to
172alter it to fit your needs. G5 users and users booting from firewire and USB 172alter it to fit your needs.
173should be aware that their disks are seen as SCSI disks by the Linux kernel, so
174you will need to substitute <path>/dev/hda</path> with <path>/dev/sda</path>).
175</p> 173</p>
176 174
177<pre caption = "/etc/yaboot.conf"> 175<pre caption = "/etc/yaboot.conf">
178<comment>## /etc/yaboot.conf 176<comment>## /etc/yaboot.conf
179## 177##
180## run: "man yaboot.conf" for details. Do not make changes until you have!! 178## run: "man yaboot.conf" for details. Do not make changes until you have!!
181## see also: /usr/share/doc/yaboot/examples for example configurations. 179## see also: /usr/share/doc/yaboot/examples for example configurations.
182## 180##
183## For a dual-boot menu, add one or more of: 181## For a dual-boot menu, add one or more of:
184## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ 182## bsd=/dev/sdaX, macos=/dev/sdaY, macosx=/dev/sdaZ
185 183
186## The bootstrap partition:</comment> 184## The bootstrap partition:</comment>
187 185
188boot=/dev/hda2 186boot=/dev/sda2
189 187
190<comment>## ofboot is the Open Firmware way to specify the bootstrap partition. 188<comment>## ofboot is the Open Firmware way to specify the bootstrap partition.
191## If this isn't defined, yaboot fails on the G5 and some G4s (unless 189## If this isn't defined, yaboot fails on the G5 and some G4s (unless
192## you pass the necessary arguments to the mkofboot/ybin program). 190## you pass the necessary arguments to the mkofboot/ybin program).
193## hd:X means /dev/sdaX (or /dev/hdaX). 191## hd:X means /dev/sdaX.
194## 192##
195## G5 users should uncomment this line!! 193## G5 users should uncomment this line!!
196 194
197#ofboot=hd:2 195#ofboot=hd:2
198 196
222## kernel or set of boot options - replace the image variable 220## kernel or set of boot options - replace the image variable
223## with the exact filename of your kernel. 221## with the exact filename of your kernel.
224###########################################################</comment> 222###########################################################</comment>
225image=/boot/<keyval id="kernel-name"/> 223image=/boot/<keyval id="kernel-name"/>
226 label=Linux 224 label=Linux
227 root=/dev/hda3 225 root=/dev/sda3
228 partition=3 226 partition=3
229<comment># append="rootdelay=10" # Required for booting USB/Firewire</comment> 227<comment># append="rootdelay=10" # Required for booting USB/Firewire</comment>
230 read-only 228 read-only
231<comment>################## 229<comment>##################
232 230
233## G5 users and some G4 users should set 231## G5 users and some G4 users should set
234## macos=hd:13/ 232## macos=hd:13/
235## macosx=hd:12 233## macosx=hd:12
236## instead of the example values.</comment> 234## instead of the example values.</comment>
237macos=/dev/hda13 235macos=/dev/sda13
238macosx=/dev/hda12 236macosx=/dev/sda12
239enablecdboot 237enablecdboot
240enableofboot 238enableofboot
241</pre> 239</pre>
242 240
243<p> 241<p>
369<pre caption="Configuring quik.conf"> 367<pre caption="Configuring quik.conf">
370# Example of quik.conf 368# Example of quik.conf
371init-message = "Gentoo 2008.0\n" 369init-message = "Gentoo 2008.0\n"
372<comment># This is the boot partition</comment> 370<comment># This is the boot partition</comment>
373partition = 2 371partition = 2
374root = /dev/hda4 372root = /dev/sda4
375timeout = 30 373timeout = 30
376default = gentoo 374default = gentoo
377<comment># This is your kernel</comment> 375<comment># This is your kernel</comment>
378image = /<keyval id="kernel-name"/> 376image = /<keyval id="kernel-name"/>
379 label = gentoo 377 label = gentoo
401# <i>nvsetenv auto-boot true</i> <comment># Set to false if you want to boot into OF, not all models can display the OF output</comment> 399# <i>nvsetenv auto-boot true</i> <comment># Set to false if you want to boot into OF, not all models can display the OF output</comment>
402# <i>nvsetenv output-device video</i> <comment># Check the quirks page, there are many variations here</comment> 400# <i>nvsetenv output-device video</i> <comment># Check the quirks page, there are many variations here</comment>
403# <i>nvsetenv input-device kbd</i> 401# <i>nvsetenv input-device kbd</i>
404# <i>nvsetenv boot-device scsi/sd@1:0</i> <comment># For SCSI</comment> 402# <i>nvsetenv boot-device scsi/sd@1:0</i> <comment># For SCSI</comment>
405# <i>nvsetenv boot-device ata/ata-disk@0:0</i> <comment># For ATA</comment> 403# <i>nvsetenv boot-device ata/ata-disk@0:0</i> <comment># For ATA</comment>
406# <i>nvsetenv boot-file /boot/<keyval id="kernel-name"/> root=/dev/hda4</i> <comment>First item is the path to the kernel, the second is the root partition. You may append any kernel options to the end of this line.</comment> 404# <i>nvsetenv boot-file /boot/<keyval id="kernel-name"/> root=/dev/sda4</i> <comment>First item is the path to the kernel, the second is the root partition. You may append any kernel options to the end of this line.</comment>
407# <i>nvsetenv boot-command boot</i> <comment># Set this to bye for MacOS and boot for Linux</comment> 405# <i>nvsetenv boot-command boot</i> <comment># Set this to bye for MacOS and boot for Linux</comment>
408</pre> 406</pre>
409 407
410<note> 408<note>
411It is also possible to change your boot variables from MacOS. Depending upon 409It is also possible to change your boot variables from MacOS. Depending upon
489Local HD -> Morphos (Normal) 487Local HD -> Morphos (Normal)
490ide:0 boot2.img ramdebug edebugflags="logkprintf" 488ide:0 boot2.img ramdebug edebugflags="logkprintf"
491 489
492[SECTION] 490[SECTION]
493Local HD -> Linux (Normal) 491Local HD -> Linux (Normal)
494ide:0 <keyval id="kernel-name"/> video=radeonfb:1024x768@70 root=/dev/hda3 492ide:0 <keyval id="kernel-name"/> video=radeonfb:1024x768@70 root=/dev/sda3
495 493
496[SECTION] 494[SECTION]
497Local HD -> Genkernel (Normal) 495Local HD -> Genkernel (Normal)
498ide:0 kernel-genkernel-ppc-<keyval id="kernel-gentoo"/> root=/dev/ram0 real_root=/dev/hda3 init=/linuxrc initrd=initramfs-genkernel-ppc<keyval id="kernel-gentoo"/> 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"/>
499</pre> 497</pre>
500 498
501<p> 499<p>
502Finally the <path>bootmenu</path> must be transferred into Forth and copied to 500Finally the <path>bootmenu</path> must be transferred into Forth and copied to
503your boot partition, so that the SmartFirmware can read it. Therefore you have 501your boot partition, so that the SmartFirmware can read it. Therefore you have

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

  ViewVC Help
Powered by ViewVC 1.1.20