1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-boot-yaboot">
|
---|
9 | <?dbhtml filename="yaboot.html"?>
|
---|
10 |
|
---|
11 | <title>Making the Temporary System Bootable</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-boot-yaboot">
|
---|
14 | <primary sortas="a-Yaboot">Yaboot</primary>
|
---|
15 | <secondary>boot, configuring</secondary>
|
---|
16 | </indexterm>
|
---|
17 |
|
---|
18 | <para os="a">Some of the idiosyncracies of booting on ppc are discussed in
|
---|
19 | <xref linkend="appendixe" role="."/>. Essentially, there are two options
|
---|
20 | here - either copy the bootloader to an OSX root partition and boot from
|
---|
21 | Open Firmware, or use an install, Live, or rescue CD to set up a bootstrap
|
---|
22 | partition.</para>
|
---|
23 |
|
---|
24 | <sect2 role=".">
|
---|
25 | <title>Copying the bootloader to OSX and booting from OF.</title>
|
---|
26 |
|
---|
27 | <para os="b">You must now ensure that <filename>/tools/etc/yaboot.conf</filename>
|
---|
28 | contains the correct details for the CLFS system. Consult
|
---|
29 | <xref linkend="ch-bootable-yaboot" role="."/> for details, but note that
|
---|
30 | at this point you do not need the <literal>install, magicboot, enablecdboot
|
---|
31 | </literal>or <literal>macosx</literal> parameters because these are not
|
---|
32 | available when you boot from Open Firmware.</para>
|
---|
33 |
|
---|
34 | <para os="c">By this stage, you should have the temporary system on an ext2
|
---|
35 | filesystem on your Mac. Now, from within OSX, copy
|
---|
36 | <filename>/tools/lib/yaboot/yaboot</filename>) and
|
---|
37 | <filename>/tools/etc/yaboot.conf</filename>) to the OSX <filename>/</filename>
|
---|
38 | directory.</para>
|
---|
39 |
|
---|
40 | <para os="d">Each time you want to boot into the temporary system, hold down
|
---|
41 | the option-command-o-f keys to get to Open Firmware, then use the following
|
---|
42 | command, replacing <literal>X</literal> with the number of the partition
|
---|
43 | containing the <emphasis>OSX</emphasis> root filesystem (typically, this
|
---|
44 | will be '3').</para>
|
---|
45 |
|
---|
46 | <screen os="e" role="nodump"><userinput>boot hd:X,yaboot</userinput></screen>
|
---|
47 |
|
---|
48 | </sect2>
|
---|
49 |
|
---|
50 | <sect2 role=".">
|
---|
51 | <title>Using a CD to set up the bootstrap partition.</title>
|
---|
52 |
|
---|
53 | <para os="f">This is particularly appropriate if you cannot write to an
|
---|
54 | ext2 filesystem from OSX. Boot from the CD, and (as necessary) create
|
---|
55 | partitions and filesystems, mount the CLFS partition at
|
---|
56 | <filename>/tools</filename> and untar the temporary system there.</para>
|
---|
57 |
|
---|
58 | <para os="g">Now set up <filename>/tools/etc/yaboot.conf</filename> - see
|
---|
59 | <xref linkend="ch-bootable-yaboot" role="."/> for details of what should be
|
---|
60 | in it, but note that the <emphasis>install</emphasis> and <emphasis>magicboot
|
---|
61 | </emphasis>specifications should point to<filename>/tools/lib/yaboot/</filename>
|
---|
62 | and <emphasis>not</emphasis> <filename>/usr/lib/yaboot</filename>.</para>
|
---|
63 |
|
---|
64 | <para os="h">To write the bootloader to the disk, with <filename>/tools/sbin
|
---|
65 | </filename>first on your path and <filename>/proc</filename> mounted, run the
|
---|
66 | following command:</para>
|
---|
67 |
|
---|
68 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
69 | href="../../bootable/ppc/yaboot.xml"
|
---|
70 | xpointer="xpointer(//*[@os='r'])"/>
|
---|
71 |
|
---|
72 | <screen os="j" role="nodump"><userinput>PATH_PREFIX=/tools ybin -v -C /tools/etc/yaboot.conf</userinput></screen>
|
---|
73 |
|
---|
74 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
75 | href="../../bootable/ppc/yaboot.xml"
|
---|
76 | xpointer="xpointer(//*[@os='t'])"/>
|
---|
77 |
|
---|
78 | <screen os="u" role="nodump"><userinput>PATH_PREFIX=/tools mkofboot</userinput></screen>
|
---|
79 |
|
---|
80 | </sect2>
|
---|
81 |
|
---|
82 | </sect1>
|
---|