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

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

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

Revision 1.12 Revision 1.22
1<?xml version='1.0' encoding='UTF-8'?> 1<?xml version='1.0' encoding='UTF-8'?>
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/1.0 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc64-bootloader.xml,v 1.12 2005/03/28 11:30:53 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc64-bootloader.xml,v 1.22 2006/01/20 10:52:15 neysx Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>2.00</version> 11<version>2.7</version>
12<date>2005-03-28</date> 12<date>2006-01-20</date>
13 13
14<section> 14<section>
15<title>Making your Choice</title> 15<title>Making your Choice</title>
16<subsection> 16<subsection>
17<title>Introduction</title> 17<title>Introduction</title>
23program that will fire up your kernel when you start the system. Such a 23program that will fire up your kernel when you start the system. Such a
24program is called a <e>bootloader</e>. 24program is called a <e>bootloader</e>.
25</p> 25</p>
26 26
27<p> 27<p>
28On Linux/PPC64 we have only yaBoot as a bootloader untill grub2 is 28On Linux/PPC64 we have only yaBoot as a bootloader until grub2 is
29finished. 29finished.
30</p> 30</p>
31 31
32</body> 32</body>
33</subsection> 33</subsection>
53the sample file already installed on your system. 53the sample file already installed on your system.
54</p> 54</p>
55 55
56<impo> 56<impo>
57yabootconfig/ybin won't work on IBM. You have to install yaboot another way: 57yabootconfig/ybin won't work on IBM. You have to install yaboot another way:
58<uri link="#yaboot-ibm">Using yaboot on IBM</uri> 58<uri link="#yaboot-ibm">Using yaboot on IBM hardware</uri>
59</impo> 59</impo>
60
61<note>
62If your root filesystem uses the JFS filesystem, be sure to add <c>ro</c> as a
63kernel parameter. JFS must be able to replay its log in read-only mode before it
64gets mounted read-write.
65</note>
60 66
61<ul> 67<ul>
62 <li><uri link="#yabootconfig">Default: Using yabootconfig</uri></li> 68 <li><uri link="#yabootconfig">Default: Using yabootconfig</uri></li>
63 <li> 69 <li>
64 <uri link="#manual_yaboot">Alternative: Manual yaBoot Configuration</uri> 70 <uri link="#manual_yaboot">Alternative: Manual yaBoot Configuration</uri>
159install=/usr/lib/yaboot/yaboot 165install=/usr/lib/yaboot/yaboot
160magicboot=/usr/lib/yaboot/ofboot 166magicboot=/usr/lib/yaboot/ofboot
161 167
162<comment>################# 168<comment>#################
163## This section can be duplicated if you have more than one kernel or set of 169## This section can be duplicated if you have more than one kernel or set of
164## boot options - replace 2.6.9 with your kernel-version 170## boot options - replace 2.6.12 with your kernel-version
165#################</comment> 171#################</comment>
166image=/boot/kernel-2.6.9 172image=/boot/kernel-2.6.12-gentoo-r10
167 label=Linux 173 label=Linux
168 root=/dev/hda3 174 root=/dev/hda3
169 partition=3 175 partition=3
170 sysmap=/boot/System.map-2.6.9
171 read-only 176 read-only
172 177
173macos=hd:13 178macos=hd:13
174macosx=hd:12 179macosx=hd:12
175enablecdboot 180enablecdboot
200 205
201</body> 206</body>
202</subsection> 207</subsection>
203</section> 208</section>
204<section id="yaboot-ibm"> 209<section id="yaboot-ibm">
205<title>Using yaboot on IBM</title> 210<title>Using yaboot on IBM hardware</title>
206<body> 211<body>
207 212
208<p> 213<p>
209On IBM hardware you cannot run yabootconfig or ybin. You have to proceed 214On IBM hardware you cannot run yabootconfig or ybin. You must proceed with the
210the folowing steps: 215following steps:
211</p> 216</p>
212 217
213<ul> 218<ul>
214 <li>Install yaboot-static</li> 219 <li>Install yaboot-static</li>
215 <li>Run 'dd if=/usr/lib/yaboot/yaboot.chrp of=/dev/sdXX' (fill in XX 220 <li>Run 'dd if=/usr/lib/yaboot/yaboot.chrp of=/dev/sdXX' (fill in XX
216 with your disk and partition for the RPeP partition; this was in our 221 with your disk and partition for the PReP partition; this was in our
217 example /dev/sda1)</li> 222 example /dev/sda1)</li>
218 <li>Next construct your own yaboot.conf file and place into /etc. 223 <li>Next construct your own yaboot.conf file and place into /etc.
219 (Take a look at the config above, look into the man page of 224 (Take a look at the config above, look into the man page of
220 yaboot.conf or look at the below yaboot.conf example)</li> 225 yaboot.conf or look at the below yaboot.conf example)</li>
221 <li>Assuming your boot device in OF is pointing to the harddrive you 226 <li>Assuming your boot device in OF is pointing to the harddrive you
223 go into the multiboot menu and set the boot device to the one with 228 go into the multiboot menu and set the boot device to the one with
224 your prep boot partition.</li> 229 your prep boot partition.</li>
225 <li>That's it!</li> 230 <li>That's it!</li>
226</ul> 231</ul>
227 232
228<pre caption = "yaboot.conf for IBM"> 233<pre caption="yaboot.conf for IBM hardware">
229device=disk: 234device=disk:
230partition=2 235partition=2
231root=/dev/sda2 236root=/dev/sda2
232default=2.6.8-gentoo-r3 237default=2.6.12-gentoo-r10
233timeout=50 238timeout=50
234 239
235image=/boot/vmlinux-2.6.8-gentoo-r3 240image=/boot/kernel-2.6.12-gentoo-r10
236 label=2.6.8-gentoo-r3 241 label=Linux
237 append="console=ttyS0,9600" 242 append="console=ttyS0,9600"
238 read-only 243 read-only
244</pre>
245
246<p>
247For POWER4, POWER5, and blade-based hardware where the PReP disk partition
248and the disk partition that contains your kernel are on the same physical disk,
249you can use a simplified yaboot.conf. The following should be sufficient:
239</pre> 250</p>
251
252<pre caption="yaboot.conf for PReP hardware">
253default = linux
254timeout = 100
255image=/boot/kernel-2.6.12-gentoo-r10
256 label=linux
257 read-only
258 root = /dev/sda2
259 append="root=/dev/sda2"
260</pre>
261
262<p>
263To verify that yaboot has been copied to the PReP partition:
264</p>
265
266<pre caption="Verifying the yaboot install on PReP">
267# <i>dd if=/dev/sda1 count=10 | grep ELF</i>
268Binary file (standard input) matches
26910+0 records in
27010+0 records out
271</pre>
272
273<p>
274A match signifies that yaboot was installed correctly.
275</p>
240 276
241</body> 277</body>
242</section> 278</section>
243<section id="reboot"> 279<section id="reboot">
244<title>Rebooting the System</title> 280<title>Rebooting the System</title>
251</p> 287</p>
252 288
253<pre caption="Exiting the chroot, unmounting all partitions and rebooting"> 289<pre caption="Exiting the chroot, unmounting all partitions and rebooting">
254# <i>exit</i> 290# <i>exit</i>
255~# <i>cd</i> 291~# <i>cd</i>
256~# <i>umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo/dev /mnt/gentoo</i> 292~# <i>umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i>
257~# <i>reboot</i> 293~# <i>reboot</i>
258</pre> 294</pre>
259 295
260<p> 296<p>
261Of course, don't forget to remove the bootable CD, otherwise the CD will be 297Of course, don't forget to remove the bootable CD, otherwise the CD will be

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.22

  ViewVC Help
Powered by ViewVC 1.1.20