/[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.22 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.22 2006/01/20 10:52:15 neysx 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>2.7</version> 11<version>8.0</version>
12<date>2006-01-20</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>
37<subsection> 37<subsection>
38<title>Introduction</title> 38<title>Introduction</title>
39<body> 39<body>
40 40
41<impo> 41<impo>
42You have to use yaboot-static instead of yaboot, because yaboot won't 42If you are using a 64-bit userland, you must use the <c>yaboot-static</c>
43compile on PPC64. 43package because yaboot cannot be compiled as a 64-bit application. The 32-bit
44userlands should use the regular yaboot package.
44</impo> 45</impo>
45 46
46<p> 47<p>
47There 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
48new and improved <c>yabootconfig</c> included with 49improved <c>yabootconfig</c> included with <path>yaboot-1.3.8-r1</path> and
49<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
50for 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
51automatically 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
52on a G5 (on which <c>yabootconfig</c> does not always work), you can just edit
53the sample file already installed on your system. 53work), you can just edit the 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 hardware</uri> 58<uri link="#yaboot-ibm">Using yaboot on IBM hardware</uri>
91yaboot-static</c>. This is necessary as the latest version will be available via 91yaboot-static</c>. This is necessary as the latest version will be available via
92Portage, but it may not have made it into the stage files. 92Portage, but it may not have made it into the stage files.
93</p> 93</p>
94 94
95<pre caption = "Installing yaboot-static"> 95<pre caption = "Installing yaboot-static">
96<comment>(For 64-bit users)</comment>
96# <i>emerge --update yaboot-static</i> 97# <i>emerge --update yaboot-static</i>
97</pre>
98 98
99<comment>(For 32-bit users)</comment>
100# <i>emerge yaboot</i>
101</pre>
102
99<p> 103<p>
100Now 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
101the 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,
102not, double check <path>/etc/fstab</path>. yabootconfig will then scan your 106double check <path>/etc/fstab</path>. yabootconfig will then scan your system
103system 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.
104you. <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
105the yaboot configuration file into it. 109yaboot configuration file into it.
106</p>
107
108<p> 110</p>
111
112<p>
109You 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
110you make changes to <path>/etc/yaboot.conf</path> (like setting the 114make changes to <path>/etc/yaboot.conf</path> (like setting the default/boot
111default/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
112bootstrap partition. 116partition.
113</p> 117</p>
114 118
115<p> 119<p>
116Now continue with <uri link="#reboot">Rebooting your System</uri>. 120Now continue with <uri link="#reboot">Rebooting your System</uri>.
117</p> 121</p>
126First make sure you have the latest <c>yaboot-static</c> installed on your 130First make sure you have the latest <c>yaboot-static</c> installed on your
127system: 131system:
128</p> 132</p>
129 133
130<pre caption = "Installing yaboot"> 134<pre caption = "Installing yaboot">
135<comment>(For 64-bit users)</comment>
131# <i>emerge --update yaboot-static</i> 136# <i>emerge --update yaboot-static</i>
137
138<comment>(For 32-bit users)</comment>
139# <i>emerge yaboot</i>
132</pre> 140</pre>
133 141
134<p> 142<p>
135Below you find a completed <path>yaboot.conf</path> file. Alter it at 143Below you find a completed <path>yaboot.conf</path> file. Alter it at
136will. 144will.
165install=/usr/lib/yaboot/yaboot 173install=/usr/lib/yaboot/yaboot
166magicboot=/usr/lib/yaboot/ofboot 174magicboot=/usr/lib/yaboot/ofboot
167 175
168<comment>################# 176<comment>#################
169## 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
170## boot options - replace 2.6.12 with your kernel-version 178## boot options - replace <keyval id="kernel-name"/> with your kernel-version
171#################</comment> 179#################</comment>
172image=/boot/kernel-2.6.12-gentoo-r10 180image=/boot/<keyval id="kernel-name"/>
173 label=Linux 181 label=Linux
174 root=/dev/hda3 182 root=/dev/hda3
175 partition=3 183 partition=3
176 read-only 184 read-only
177 185
180enablecdboot 188enablecdboot
181enableofboot 189enableofboot
182</pre> 190</pre>
183 191
184<p> 192<p>
185Once <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
186<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
187<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.
188filesystem.
189</p>
190
191<p> 196</p>
192If all goes well, and you have the same 197
193options as the sample above, your next reboot will give you a simple, 198<p>
194five-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
195just 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
196<c>mkofboot</c> is for initial setup only. 202partition - <c>mkofboot</c> is for initial setup only.
197</p> 203</p>
198 204
199<p> 205<p>
200For more information on yaboot, take a look at the <uri 206For more information on yaboot, take a look at the <uri
201link="http://penguinppc.org/projects/yaboot">yaboot project</uri>. For 207link="http://penguinppc.org/projects/yaboot">yaboot project</uri>. For now,
202now, continue the installation with <uri link="#reboot">Rebooting your 208continue the installation with <uri link="#reboot">Rebooting your System</uri>.
203System</uri>.
204</p> 209</p>
205 210
206</body> 211</body>
207</subsection> 212</subsection>
208</section> 213</section>
215following steps: 220following steps:
216</p> 221</p>
217 222
218<ul> 223<ul>
219 <li>Install yaboot-static</li> 224 <li>Install yaboot-static</li>
225 <li>
220 <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
221 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
222 example /dev/sda1)</li> 228 <path>/dev/sda1</path>)
229 </li>
230 <li>
223 <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
224 (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
225 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>
226 <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
227 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
228 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
229 your prep boot partition.</li> 239 partition
240 </li>
230 <li>That's it!</li> 241 <li>That's it!</li>
231</ul> 242</ul>
232 243
233<pre caption="yaboot.conf for IBM hardware"> 244<pre caption="yaboot.conf for IBM hardware">
234device=disk: 245device=disk:
235partition=2 246partition=2
236root=/dev/sda2 247root=/dev/sda2
237default=2.6.12-gentoo-r10 248default=linux
238timeout=50 249timeout=50
239 250
240image=/boot/kernel-2.6.12-gentoo-r10 251image=/boot/<keyval id="kernel-name"/>
241 label=Linux 252 label=linux
242 append="console=ttyS0,9600" 253 append="console=ttyS0,9600"
243 read-only 254 read-only
244</pre> 255</pre>
245 256
246<p> 257<p>
247For POWER4, POWER5, and blade-based hardware where the PReP disk partition 258For POWER4, POWER5, and blade-based hardware where the PReP disk partition and
248and 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
249you can use a simplified yaboot.conf. The following should be sufficient: 260can use a simplified <path>yaboot.conf</path>. The following should be
261sufficient:
250</p> 262</p>
251 263
252<pre caption="yaboot.conf for PReP hardware"> 264<pre caption="yaboot.conf for PReP hardware">
253default = linux 265default = linux
254timeout = 100 266timeout = 100
255image=/boot/kernel-2.6.12-gentoo-r10 267image=/boot/<keyval id="kernel-name"/>
256 label=linux 268 label=linux
257 read-only 269 read-only
258 root = /dev/sda2 270 root = /dev/sda2
259 append="root=/dev/sda2" 271 append="root=/dev/sda2"
260</pre> 272</pre>

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

  ViewVC Help
Powered by ViewVC 1.1.20