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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (hide annotations) (download) (as text)
Sat Jan 15 13:16:13 2005 UTC (9 years, 9 months ago) by swift
Branch: MAIN
Changes since 1.10: +18 -5 lines
File MIME type: application/xml
#75093 - PPC64 Handbook updates including partitioning fix, kernel config fix
and an example yaboot.conf

1 swift 1.1 <?xml version='1.0' encoding='UTF-8'?>
2     <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3    
4     <!-- The content of this document is licensed under the CC-BY-SA license -->
5     <!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
6    
7 swift 1.11 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc64-bootloader.xml,v 1.10 2005/01/04 18:11:20 swift Exp $ -->
8 swift 1.1
9     <sections>
10 swift 1.5
11 swift 1.11 <version>1.7</version>
12     <date>2005-01-15</date>
13 swift 1.5
14 swift 1.1 <section>
15     <title>Making your Choice</title>
16     <subsection>
17     <title>Introduction</title>
18     <body>
19    
20     <p>
21     Now that your kernel is configured and compiled and the necessary system
22     configuration files are filled in correctly, it is time to install a
23     program that will fire up your kernel when you start the system. Such a
24     program is called a <e>bootloader</e>.
25     </p>
26    
27     <p>
28     On Linux/PPC64 we have only yaBoot as a bootloader untill grub2 is
29     finished.
30     </p>
31    
32     </body>
33     </subsection>
34     </section>
35     <section id="yaboot">
36     <title>Using yaBoot</title>
37     <subsection>
38     <title>Introduction</title>
39     <body>
40    
41     <impo>
42     You have to use yaboot-static instead of yaboot, because yaboot won't
43     compile on PPC64.
44     </impo>
45    
46     <p>
47     There are two ways to configure yaBoot for your system. You can use the
48     new and improved <c>yabootconfig</c> included with
49 swift 1.4 <path>yaboot-1.3.8-r1</path> and later to automatically set up yaboot. If
50 swift 1.1 for some reason you do not want to run <c>yabootconfig</c> to
51 swift 1.4 automatically set up <path>/etc/yaboot.conf</path> or you are installing Gentoo
52 swift 1.1 on a G5 (on which <c>yabootconfig</c> does not always work), you can just edit
53     the sample file already installed on your system.
54     </p>
55    
56     <impo>
57     yabootconfig/ybin won't work on IBM. You have to install yaboot another way:
58     <uri link="#yaboot-ibm">Using yaboot on IBM</uri>
59     </impo>
60    
61     <ul>
62     <li><uri link="#yabootconfig">Default: Using yabootconfig</uri></li>
63     <li>
64     <uri link="#manual_yaboot">Alternative: Manual yaBoot Configuration</uri>
65     </li>
66     </ul>
67    
68     </body>
69     </subsection>
70     <subsection id="yabootconfig">
71     <title>Default: Using yabootconfig</title>
72     <body>
73    
74     <p>
75     <c>yabootconfig</c> will auto-detect the partitions on your machine and will
76 swift 1.4 set up dual and triple boot combinations with Linux, Mac OS, and Mac OS
77 swift 1.1 X.
78     </p>
79    
80     <p>
81     To use <c>yabootconfig</c>, your drive must have a bootstrap partition, and
82     <path>/etc/fstab</path> must be configured with your Linux partitions. Both of
83     these should have been done already in the steps above. To start, ensure that
84     you have the latest version of yaboot installed by running <c>emerge --update
85     yaboot-static</c>. This is necessary as the latest version will be available via
86     Portage, but it may not have made it into the stage files.
87     </p>
88    
89     <pre caption = "Installing yaboot-static">
90     # <i>emerge --update yaboot-static</i>
91     </pre>
92    
93     <p>
94     Now run <c>yabootconfig</c>. The program will run and it will confirm
95     the location of the bootstrap partition. Type <c>Y</c> if it is correct. If
96     not, double check <path>/etc/fstab</path>. yabootconfig will then scan your
97     system setup, create <path>/etc/yaboot.conf</path> and run <c>mkofboot</c> for
98     you. <c>mkofboot</c> is used to format the bootstrap partition, and install
99     the yaboot configuration file into it.
100     </p>
101    
102     <p>
103     You might want to verify the contents of <path>/etc/yaboot.conf</path>. If
104     you make changes to <path>/etc/yaboot.conf</path> (like setting the
105     default/boot OS), make sure to rerun <c>ybin -v</c> to apply changes to the
106     bootstrap partition.
107     </p>
108    
109     <p>
110     Now continue with <uri link="#reboot">Rebooting your System</uri>.
111     </p>
112    
113     </body>
114     </subsection>
115     <subsection id="manual_yaboot">
116     <title>Alternative: Manual yaBoot Configuration</title>
117     <body>
118    
119     <p>
120     First make sure you have the latest <c>yaboot-static</c> installed on your
121     system:
122     </p>
123    
124     <pre caption = "Installing yaboot">
125     # <i>emerge --update yaboot-static</i>
126     </pre>
127    
128     <p>
129     Below you find a completed <path>yaboot.conf</path> file. Alter it at
130     will.
131     </p>
132    
133     <pre caption = "/etc/yaboot.conf">
134     <comment>## /etc/yaboot.conf
135     ##
136     ## run: "man yaboot.conf" for details. Do not make changes until you have!!
137     ## see also: /usr/share/doc/yaboot/examples for example configurations.
138     ##
139     ## For a dual-boot menu, add one or more of:
140     ## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ
141    
142     ## our bootstrap partition:</comment>
143    
144 swift 1.8 boot=/dev/hda2
145 swift 1.1
146     <comment>## ofboot is the openfirmware way to specify the bootstrap partition.
147 swift 1.8 ## If this isn't defined, yaboot fails on the G5 and some G4s (unless
148     ## you pass the necessary arguments to the mkofboot/ybin program).
149     ## hd:X means /dev/sdaX (or /dev/hdaX).</comment>
150 swift 1.1
151     ofboot=hd:2
152    
153 swift 1.8 <comment>## hd: is open firmware speak for hda</comment>
154 swift 1.1 device=hd:
155    
156     delay=5
157     defaultos=macosx
158     timeout=30
159     install=/usr/lib/yaboot/yaboot
160     magicboot=/usr/lib/yaboot/ofboot
161    
162     <comment>#################
163     ## This section can be duplicated if you have more than one kernel or set of
164 swift 1.8 ## boot options - replace 2.6.9 with your kernel-version
165 swift 1.1 #################</comment>
166 swift 1.8 image=/boot/kernel-2.6.9
167 swift 1.1 label=Linux
168 swift 1.8 root=/dev/hda3
169     partition=3
170     sysmap=/boot/System.map-2.6.9
171 swift 1.1 read-only
172    
173 swift 1.8 macos=hd:13
174     macosx=hd:12
175 swift 1.1 enablecdboot
176     enableofboot
177     </pre>
178    
179     <p>
180     Once <path>yaboot.conf</path> is set up the way you want it, you run
181     <c>mkofboot -v</c> to install the settings in the bootstrap partition.
182 swift 1.8 <e>Don't forget this!</e> Confirm when <c>mkofboot</c> asks you to create a new
183     filesystem.
184     </p>
185    
186     <p>
187     If all goes well, and you have the same
188 swift 1.1 options as the sample above, your next reboot will give you a simple,
189     five-entry boot menu. If you update your yaboot config later on, you'll
190     just need to run <c>ybin -v</c> to update the bootstrap partition -
191     <c>mkofboot</c> is for initial setup only.
192     </p>
193    
194     <p>
195     For more information on yaboot, take a look at the <uri
196     link="http://penguinppc.org/projects/yaboot">yaboot project</uri>. For
197     now, continue the installation with <uri link="#reboot">Rebooting your
198     System</uri>.
199     </p>
200    
201     </body>
202     </subsection>
203     </section>
204     <section id="yaboot-ibm">
205     <title>Using yaboot on IBM</title>
206     <body>
207    
208     <p>
209     On IBM hardware you cannot run yabootconfig or ybin. You have to proceed
210     the folowing steps:
211     </p>
212    
213     <ul>
214     <li>Install yaboot-static</li>
215     <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
217     example /dev/sda1)</li>
218     <li>Next construct your own yaboot.conf file and place into /etc.
219 swift 1.11 (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>
221 swift 1.1 <li>Assuming your boot device in OF is pointing to the harddrive you
222     prep boot partition is on then it'll just work, otherwise at IPL time,
223     go into the multiboot menu and set the boot device to the one with
224     your prep boot partition.</li>
225     <li>That's it!</li>
226     </ul>
227    
228 swift 1.11 <pre caption = "yaboot.conf for IBM">
229     device=disk:
230     partition=2
231     root=/dev/sda2
232     default=2.6.8-gentoo-r3
233     timeout=50
234    
235     image=/boot/vmlinux-2.6.8-gentoo-r3
236     label=2.6.8-gentoo-r3
237     append="console=ttyS0,9600"
238     read-only
239     </pre>
240    
241 swift 1.1 </body>
242     </section>
243 swift 1.2 <section id="reboot">
244 swift 1.1 <title>Rebooting the System</title>
245     <subsection>
246     <body>
247    
248     <p>
249     Exit the chrooted environment and unmount all mounted partitions. Then type in
250     that one magical command you have been waiting for: <c>reboot</c>.
251     </p>
252    
253     <pre caption="Exiting the chroot, unmounting all partitions and rebooting">
254     # <i>exit</i>
255 swift 1.9 livecd ~# <i>cd</i>
256     livecd ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/proc /mnt/gentoo/dev /mnt/gentoo</i>
257     livecd ~# <i>reboot</i>
258 swift 1.1 </pre>
259    
260     <p>
261     Of course, don't forget to remove the bootable CD, otherwise the CD will be
262     booted again instead of your new Gentoo system.
263     </p>
264    
265     <p>
266     Once rebooted in your Gentoo installation, finish up with <uri
267     link="?part=1&amp;chap=11">Finalizing your Gentoo Installation</uri>.
268     </p>
269    
270     </body>
271     </subsection>
272     </section>
273    
274     </sections>

  ViewVC Help
Powered by ViewVC 1.1.20