source: BOOK/boot/ppc/yaboot.xml @ 073fae8

clfs-1.2clfs-2.1clfs-3.0.0-systemdclfs-3.0.0-sysvinitsystemdsysvinit
Last change on this file since 073fae8 was 073fae8, checked in by Jim Gifford <clfs@…>, 13 years ago

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.

  • Property mode set to 100644
File size: 3.2 KB
Line 
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>ybin -v -C /tools/etc/yaboot.conf</userinput></screen>
73
74  </sect2>
75
76</sect1>
Note: See TracBrowser for help on using the repository browser.