Ignore:
Timestamp:
Jun 9, 2006, 5:15:04 PM (18 years ago)
Author:
Jim Gifford <clfs@…>
Children:
1e3f8a7
Parents:
d0fd0fd
Message:

r3903@server (orig r1756): ken | 2006-06-09 17:04:23 -0700
First attempt at making the ppc temporary system bootable, plus related cleanups, particularly for creating partitions.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/ppc/yaboot.xml

    rd0fd0fd r983df6f  
    1616  </indexterm>
    1717
    18   <para>This is a place holder for yaboot</para>
     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>ybin -v -C /tools/etc/yaboot.conf</userinput></screen>
     73
     74  </sect2>
    1975
    2076</sect1>
Note: See TracChangeset for help on using the changeset viewer.