/[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.24 Revision 1.25
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/1.0 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-bootloader.xml,v 1.24 2005/04/11 08:03:33 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-bootloader.xml,v 1.25 2005/04/11 11:57:05 josejx Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>2.2</version> 11<version>2.3</version>
12<date>2005-04-11</date> 12<date>2005-04-11</date>
13 13
14<section> 14<section>
15<title>Making your Choice</title> 15<title>Making your Choice</title>
16<subsection> 16<subsection>
65for some reason you do not want to run <c>yabootconfig</c> to 65for some reason you do not want to run <c>yabootconfig</c> to
66automatically set up <path>/etc/yaboot.conf</path> or you are installing Gentoo 66automatically set up <path>/etc/yaboot.conf</path> or you are installing Gentoo
67on a G5 (on which <c>yabootconfig</c> does not always work), you can just edit 67on a G5 (on which <c>yabootconfig</c> does not always work), you can just edit
68the sample file already installed on your system. 68the sample file already installed on your system.
69</p> 69</p>
70
71<note>
72You may need to edit the yaboot.conf file if using genkernel. The arguments
73provided by the genkernel ebuild need to be added as an option to the kernel
74image section. The relevant section of yaboot.conf is given below:
75</note>
76
77<pre caption="Adding boot arguments to yaboot.conf">
78<comment>#################
79## This section can be duplicated if you have more than one kernel or set of
80## boot options - replace 2.6.9 with your kernel-version
81#################</comment>
82image=/boot/kernel-2.6.9
83 label=Linux
84 root=/dev/ram0 <comment># If using genkernel this is /dev/ram0</comment>
85 partition=3
86 sysmap=/boot/System.map-2.6.9
87 append="real_root=/dev/hda3 init=/linuxrc" <comment># Add arguments to this line</comment>
88 read-only
89<comment>##################</comment>
90</pre>
70 91
71<ul> 92<ul>
72 <li><uri link="#yabootconfig">Default: Using yabootconfig</uri></li> 93 <li><uri link="#yabootconfig">Default: Using yabootconfig</uri></li>
73 <li> 94 <li>
74 <uri link="#manual_yaboot">Alternative: Manual yaboot Configuration</uri> 95 <uri link="#manual_yaboot">Alternative: Manual yaboot Configuration</uri>
228<impo> 249<impo>
229BootX can only be used on OldWorld Apple systems! 250BootX can only be used on OldWorld Apple systems!
230</impo> 251</impo>
231 252
232<p> 253<p>
233Since BootX boots Linux from within MacOS, you'll need to copy the kernel you've 254Since BootX boots Linux from within MacOS, the kernel will need to be copied
234just compiled from your Linux partition. To do this, you'll need to first mount 255from the Linux Partition to the MacOS partition. First, mount the MacOS
235your MacOS partition from outside of the chroot. You can use mac-fdisk to find 256partition from outside of the chroot. Use <c>mac-fdisk -l</c> to find the
236your MacOS partition number, but we'll use sda6 as an example here. Once the 257MacOS partition number, sda6 is used as an example here. Once the partition is
237partition is mounted, we'll copy the kernel to the system folder so BootX can 258mounted, we'll copy the kernel to the system folder so BootX can find it.
238find it.
239</p> 259</p>
240 260
241<pre caption="Mounting your MacOS partition"> 261<pre caption="Copying the kernel to the MacOS partition">
242# <i>exit</i> 262# <i>exit</i>
243cdimage ~# <i>mkdir /mnt/mac</i> 263cdimage ~# <i>mkdir /mnt/mac</i>
244cdimage ~# <i>mount /dev/sda6 /mnt/mac -t hfs</i> 264cdimage ~# <i>mount /dev/sda6 /mnt/mac -t hfs</i>
245cdimage ~# <i>cp /mnt/gentoo/usr/src/linux/vmlinux "/mnt/mac/System Folder/Linux Kernels"</i> 265cdimage ~# <i>cp /mnt/gentoo/usr/src/linux/vmlinux "/mnt/mac/System Folder/Linux Kernels"</i>
246</pre> 266</pre>
247 267
248<p> 268<p>
269If genkernel is used, the kernel is located in a different place and the initrd
270will need to be copied as well.
271</p>
272
273<pre caption="Copying the Genkernel kernel and initrd to the MacOS partition">
274# <i>exit</i>
275cdimage ~# <i>mkdir /mnt/mac</i>
276cdimage ~# <i>mount /dev/sda6 /mnt/mac -t hfs</i>
277cdimage ~# <i>cp /mnt/gentoo/boot/kernel-* "/mnt/mac/System Folder/Linux Kernels"</i>
278cdimage ~# <i>cp /mnt/gentoo/boot/initrd-* "/mnt/mac/System Folder"</i>
279</pre>
280
281<p>
249Now that the kernel is copied over, we can unmount all mounted filesystems and 282Now that the kernel is copied over, unmount all mounted filesystems and enter
250enter that one magical command that you have been waiting for: <c>reboot</c>. 283that one magical command that you have been waiting for: <c>reboot</c>.
251</p> 284</p>
252 285
253<pre caption="Unmounting all partitions and rebooting"> 286<pre caption="Unmounting all partitions and rebooting">
254cdimage ~# <i>cd /</i> 287cdimage ~# <i>cd /</i>
255cdimage ~# <i>umount /mnt/gentoo/proc /mnt/gentoo /mnt/mac</i> 288cdimage ~# <i>umount /mnt/gentoo/proc /mnt/gentoo /mnt/mac</i>
256cdimage ~# <i>reboot</i> 289cdimage ~# <i>reboot</i>
257</pre> 290</pre>
258 291
259<p> 292<p>
260Of course, don't forget to remove all bootable media, we need to boot into MacOS 293Of course, don't forget to remove all bootable media, MacOS needs to boot this
261this time. 294time.
262</p>
263
264<p> 295</p>
296
297<p>
265Now that your machine has booted into MacOS, open the BootX control panel and 298Now that the machine has booted into MacOS, open the BootX control panel and
266Select <c>Options</c> and uncheck <c>Used specified RAM disk</c>. When you 299Select <c>Options</c> and uncheck <c>Used specified RAM disk</c> if not using
267return to the BootX main screen, you will now find an option to specify your 300genkernel. If using genkernel, ensure that the genkernel initrd is selected
268machine's root disk and partition. Fill these in with the appropriate values. 301instead of the LiveCD initrd. If not using genkernel, there is now an option
269Depending upon your kernel configuration, you may need to append some of the 302to specify the machine's Linux root disk and partition. Fill these in with the
270settings used to boot the LiveCD such as the video option. 303appropriate values. Depending upon the kernel configuration, some boot
304arguments may need to be applied.
271</p> 305</p>
272 306
273<p> 307<p>
274BootX can be configured to start Linux upon boot. If you chose to do this, the 308BootX can be configured to start Linux upon boot. If you chose to do this, the
275computer will boot into MacOS and then during startup load BootX which in turn 309computer will boot into MacOS and then during startup load BootX which in turn

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

  ViewVC Help
Powered by ViewVC 1.1.20