/[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.25 Revision 1.26
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-ppc64-bootloader.xml,v 1.25 2006/08/30 22:52:28 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc64-bootloader.xml,v 1.26 2007/05/07 18:11:41 nightmorph Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>7.0</version> 11<version>8.0</version>
12<date>2006-08-30</date> 12<date>2007-05-07</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>
43package because yaboot cannot be compiled as a 64-bit application. The 32-bit 43package because yaboot cannot be compiled as a 64-bit application. The 32-bit
44userlands should use the regular yaboot package. 44userlands should use the regular yaboot package.
45</impo> 45</impo>
46 46
47<p> 47<p>
48There are two ways to configure yaBoot for your system. You can use the 48There are two ways to configure yaBoot for your system. You can use the new and
49new and improved <c>yabootconfig</c> included with 49improved <c>yabootconfig</c> included with <path>yaboot-1.3.8-r1</path> and
50<path>yaboot-1.3.8-r1</path> and later to automatically set up yaboot. If 50later to automatically set up yaboot. If for some reason you do not want to run
51for some reason you do not want to run <c>yabootconfig</c> to 51<c>yabootconfig</c> to automatically set up <path>/etc/yaboot.conf</path> or you
52automatically set up <path>/etc/yaboot.conf</path> or you are installing Gentoo 52are installing Gentoo on a G5 (on which <c>yabootconfig</c> does not always
53on a G5 (on which <c>yabootconfig</c> does not always work), you can just edit
54the sample file already installed on your system. 53work), you can just edit the sample file already installed on your system.
55</p> 54</p>
56 55
57<impo> 56<impo>
58yabootconfig/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:
59<uri link="#yaboot-ibm">Using yaboot on IBM hardware</uri> 58<uri link="#yaboot-ibm">Using yaboot on IBM hardware</uri>
100<comment>(For 32-bit users)</comment> 99<comment>(For 32-bit users)</comment>
101# <i>emerge yaboot</i> 100# <i>emerge yaboot</i>
102</pre> 101</pre>
103 102
104<p> 103<p>
105Now run <c>yabootconfig</c>. The program will run and it will confirm 104Now run <c>yabootconfig</c>. The program will run and it will confirm the
106the location of the bootstrap partition. Type <c>Y</c> if it is correct. If 105location of the bootstrap partition. Type <c>Y</c> if it is correct. If not,
107not, double check <path>/etc/fstab</path>. yabootconfig will then scan your 106double check <path>/etc/fstab</path>. yabootconfig will then scan your system
108system setup, create <path>/etc/yaboot.conf</path> and run <c>mkofboot</c> for 107setup, create <path>/etc/yaboot.conf</path> and run <c>mkofboot</c> for you.
109you. <c>mkofboot</c> is used to format the bootstrap partition, and install 108<c>mkofboot</c> is used to format the bootstrap partition, and install the
110the yaboot configuration file into it. 109yaboot configuration file into it.
111</p>
112
113<p> 110</p>
111
112<p>
114You might want to verify the contents of <path>/etc/yaboot.conf</path>. If 113You might want to verify the contents of <path>/etc/yaboot.conf</path>. If you
115you make changes to <path>/etc/yaboot.conf</path> (like setting the 114make changes to <path>/etc/yaboot.conf</path> (like setting the default/boot
116default/boot OS), make sure to rerun <c>ybin -v</c> to apply changes to the 115OS), make sure to rerun <c>ybin -v</c> to apply changes to the bootstrap
117bootstrap partition. 116partition.
118</p> 117</p>
119 118
120<p> 119<p>
121Now continue with <uri link="#reboot">Rebooting your System</uri>. 120Now continue with <uri link="#reboot">Rebooting your System</uri>.
122</p> 121</p>
174install=/usr/lib/yaboot/yaboot 173install=/usr/lib/yaboot/yaboot
175magicboot=/usr/lib/yaboot/ofboot 174magicboot=/usr/lib/yaboot/ofboot
176 175
177<comment>################# 176<comment>#################
178## This section can be duplicated if you have more than one kernel or set of 177## This section can be duplicated if you have more than one kernel or set of
179## boot options - replace 2.6.17-gentoo-r5 with your kernel-version 178## boot options - replace <keyval id="kernel-name"/> with your kernel-version
180#################</comment> 179#################</comment>
181image=/boot/kernel-2.6.17-gentoo-r5 180image=/boot/<keyval id="kernel-name"/>
182 label=Linux 181 label=Linux
183 root=/dev/hda3 182 root=/dev/hda3
184 partition=3 183 partition=3
185 read-only 184 read-only
186 185
189enablecdboot 188enablecdboot
190enableofboot 189enableofboot
191</pre> 190</pre>
192 191
193<p> 192<p>
194Once <path>yaboot.conf</path> is set up the way you want it, you run 193Once <path>yaboot.conf</path> is set up the way you want it, you run <c>mkofboot
195<c>mkofboot -v</c> to install the settings in the bootstrap partition. 194-v</c> to install the settings in the bootstrap partition. <e>Don't forget
196<e>Don't forget this!</e> Confirm when <c>mkofboot</c> asks you to create a new 195this!</e> Confirm when <c>mkofboot</c> asks you to create a new filesystem.
197filesystem.
198</p>
199
200<p> 196</p>
201If all goes well, and you have the same 197
202options as the sample above, your next reboot will give you a simple, 198<p>
203five-entry boot menu. If you update your yaboot config later on, you'll 199If all goes well, and you have the same options as the sample above, your next
200reboot will give you a simple, five-entry boot menu. If you update your yaboot
204just need to run <c>ybin -v</c> to update the bootstrap partition - 201config later on, you'll just need to run <c>ybin -v</c> to update the bootstrap
205<c>mkofboot</c> is for initial setup only. 202partition - <c>mkofboot</c> is for initial setup only.
206</p> 203</p>
207 204
208<p> 205<p>
209For more information on yaboot, take a look at the <uri 206For more information on yaboot, take a look at the <uri
210link="http://penguinppc.org/projects/yaboot">yaboot project</uri>. For 207link="http://penguinppc.org/projects/yaboot">yaboot project</uri>. For now,
211now, continue the installation with <uri link="#reboot">Rebooting your 208continue the installation with <uri link="#reboot">Rebooting your System</uri>.
212System</uri>.
213</p> 209</p>
214 210
215</body> 211</body>
216</subsection> 212</subsection>
217</section> 213</section>
224following steps: 220following steps:
225</p> 221</p>
226 222
227<ul> 223<ul>
228 <li>Install yaboot-static</li> 224 <li>Install yaboot-static</li>
225 <li>
229 <li>Run 'dd if=/usr/lib/yaboot/yaboot.chrp of=/dev/sdXX' (fill in XX 226 Run <c>dd if=/usr/lib/yaboot/yaboot.chrp of=/dev/sdXX</c> (fill in XX with
230 with your disk and partition for the PReP partition; this was in our 227 your disk and partition for the PReP partition; this was in our example
231 example /dev/sda1)</li> 228 <path>/dev/sda1</path>)
229 </li>
230 <li>
232 <li>Next construct your own yaboot.conf file and place into /etc. 231 Next construct your own <path>yaboot.conf</path> file and place into
233 (Take a look at the config above, look into the man page of 232 <path>/etc</path>. (Take a look at the config above, look into the man page
234 yaboot.conf or look at the below yaboot.conf example)</li> 233 of yaboot.conf or look at the below <path>yaboot.conf</path> example.)
234 </li>
235 <li>
235 <li>Assuming your boot device in OF is pointing to the harddrive you 236 Assuming your boot device in OF is pointing to the harddrive you prep boot
236 prep boot partition is on then it'll just work, otherwise at IPL time, 237 partition is on then it'll just work, otherwise at IPL time, go into the
237 go into the multiboot menu and set the boot device to the one with 238 multiboot menu and set the boot device to the one with your prep boot
238 your prep boot partition.</li> 239 partition
240 </li>
239 <li>That's it!</li> 241 <li>That's it!</li>
240</ul> 242</ul>
241 243
242<pre caption="yaboot.conf for IBM hardware"> 244<pre caption="yaboot.conf for IBM hardware">
243device=disk: 245device=disk:
244partition=2 246partition=2
245root=/dev/sda2 247root=/dev/sda2
246default=linux 248default=linux
247timeout=50 249timeout=50
248 250
249image=/boot/kernel-2.6.17-gentoo-r5 251image=/boot/<keyval id="kernel-name"/>
250 label=linux 252 label=linux
251 append="console=ttyS0,9600" 253 append="console=ttyS0,9600"
252 read-only 254 read-only
253</pre> 255</pre>
254 256
255<p> 257<p>
256For POWER4, POWER5, and blade-based hardware where the PReP disk partition 258For POWER4, POWER5, and blade-based hardware where the PReP disk partition and
257and the disk partition that contains your kernel are on the same physical disk, 259the disk partition that contains your kernel are on the same physical disk, you
258you can use a simplified yaboot.conf. The following should be sufficient: 260can use a simplified <path>yaboot.conf</path>. The following should be
261sufficient:
259</p> 262</p>
260 263
261<pre caption="yaboot.conf for PReP hardware"> 264<pre caption="yaboot.conf for PReP hardware">
262default = linux 265default = linux
263timeout = 100 266timeout = 100
264image=/boot/kernel-2.6.17-gentoo-r5 267image=/boot/<keyval id="kernel-name"/>
265 label=linux 268 label=linux
266 read-only 269 read-only
267 root = /dev/sda2 270 root = /dev/sda2
268 append="root=/dev/sda2" 271 append="root=/dev/sda2"
269</pre> 272</pre>

Legend:
Removed from v.1.25  
changed lines
  Added in v.1.26

  ViewVC Help
Powered by ViewVC 1.1.20