r1782 - in trunk/BOOK: . boot boot/ppc boot/ppc64 bootable bootable/ppc64 final-system/ppc64 introduction/ppc introduction/ppc64 materials/ppc materials/ppc64

ken at linuxfromscratch.org ken at linuxfromscratch.org
Sun Jun 18 17:05:19 PDT 2006


Author: ken
Date: 2006-06-18 18:05:16 -0600 (Sun, 18 Jun 2006)
New Revision: 1782

Added:
   trunk/BOOK/boot/ppc64/hfsutils.xml
   trunk/BOOK/boot/ppc64/mktemp.xml
   trunk/BOOK/boot/ppc64/powerpc-utils.xml
   trunk/BOOK/boot/ppc64/yaboot-build.xml
   trunk/BOOK/boot/ppc64/yaboot.xml
   trunk/BOOK/bootable/ppc64/
   trunk/BOOK/bootable/ppc64/kernel.xml
Modified:
   trunk/BOOK/boot/ppc/yaboot-build.xml
   trunk/BOOK/boot/ppc/yaboot.xml
   trunk/BOOK/boot/ppc64-chapter.xml
   trunk/BOOK/bootable/ppc64-chapter.xml
   trunk/BOOK/final-system/ppc64/yaboot.xml
   trunk/BOOK/introduction/ppc/changelog.xml
   trunk/BOOK/introduction/ppc64/changelog.xml
   trunk/BOOK/materials/ppc/patches.xml
   trunk/BOOK/materials/ppc64/patches.xml
   trunk/BOOK/patches.ent
Log:
Trying to fix the ppc64 boot chapter, with a minor fix to boot/ppc/yaboot, and tidying up the 'Important' messages in ppc64 yaboot.

Modified: trunk/BOOK/boot/ppc/yaboot-build.xml
===================================================================
--- trunk/BOOK/boot/ppc/yaboot-build.xml	2006-06-18 21:38:34 UTC (rev 1781)
+++ trunk/BOOK/boot/ppc/yaboot-build.xml	2006-06-19 00:05:16 UTC (rev 1782)
@@ -38,6 +38,12 @@
     href="../../final-system/ppc/yaboot.xml"
     xpointer="xpointer(//*[@os='d'])"/>
 
+    <para os="p1">The following patch allows <command>ofpath</command> to use
+    <literal>PATH_PREFIX</literal> like the other
+    <filename class="directory">ybin</filename> scripts:</para>
+
+<screen os="p2"><userinput>patch -Np1 -i ../&yaboot-ofpath_path-patch;</userinput></screen>
+
     <para>The Makefile is already set to do kernel-style cross-compiling,
     but it will try to use <command>strip</command> to strip the second-stage
     loader.  It also expects to be running as root for the install, and to

Modified: trunk/BOOK/boot/ppc/yaboot.xml
===================================================================
--- trunk/BOOK/boot/ppc/yaboot.xml	2006-06-18 21:38:34 UTC (rev 1781)
+++ trunk/BOOK/boot/ppc/yaboot.xml	2006-06-19 00:05:16 UTC (rev 1782)
@@ -69,8 +69,14 @@
     href="../../bootable/ppc/yaboot.xml"
     xpointer="xpointer(//*[@os='r'])"/>
 
-<screen os="j" role="nodump"><userinput>ybin -v -C /tools/etc/yaboot.conf</userinput></screen>
+<screen os="j" role="nodump"><userinput>PATH_PREFIX=/tools ybin -v -C /tools/etc/yaboot.conf</userinput></screen>
 
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../bootable/ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='t'])"/>
+
+<screen os="u" role="nodump"><userinput>PATH_PREFIX=/tools mkofboot</userinput></screen>
+
   </sect2>
 
 </sect1>

Added: trunk/BOOK/boot/ppc64/hfsutils.xml
===================================================================
--- trunk/BOOK/boot/ppc64/hfsutils.xml	                        (rev 0)
+++ trunk/BOOK/boot/ppc64/hfsutils.xml	2006-06-19 00:05:16 UTC (rev 1782)
@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+]>
+
+<sect1 id="ch-boot-hfsutils" role="wrap">
+  <?dbhtml filename="hfsutils.html"?>
+
+  <title>Hfsutils-&hfsutils-version;</title>
+
+  <indexterm zone="ch-boot-hfsutils">
+    <primary sortas="a-Hfsutils">Hfsutils</primary>
+    <secondary>boot</secondary>
+  </indexterm>
+
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+  href="../../final-system/ppc/hfsutils.xml"
+  xpointer="xpointer(//*[@role='package'])"/>
+
+  <sect2 role="installation">
+    <title>Installation of Hfsutils</title>
+
+    <para>If you have created, or will create, the ext2 filesystem on your
+    Mac using ext2fsx you can jump ahead to
+    <xref linkend="ch-boot-yaboot-build" role="."/>. The next three packages
+    are for people who cannot do that.</para>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/ppc/hfsutils.xml"
+    xpointer="xpointer(//*[@os='a'])"/>
+
+<screen><userinput>CC="${CC} ${BUILD64}" ./configure --prefix=/tools</userinput></screen>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/ppc/hfsutils.xml"
+    xpointer="xpointer(//*[@os='c'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/ppc/hfsutils.xml"
+    xpointer="xpointer(//*[@os='d'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/ppc/hfsutils.xml"
+    xpointer="xpointer(//*[@os='e'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/ppc/hfsutils.xml"
+    xpointer="xpointer(//*[@os='f'])"/>
+
+  </sect2>
+
+  <sect2 role="content">
+    <title/>
+
+    <para>Details on this package are located in <xref linkend="contents-hfsutils" role="."/></para>
+
+  </sect2>
+
+</sect1>

Added: trunk/BOOK/boot/ppc64/mktemp.xml
===================================================================
--- trunk/BOOK/boot/ppc64/mktemp.xml	                        (rev 0)
+++ trunk/BOOK/boot/ppc64/mktemp.xml	2006-06-19 00:05:16 UTC (rev 1782)
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+]>
+
+<sect1 id="ch-boot-mktemp" role="wrap">
+  <?dbhtml filename="mktemp.html"?>
+
+  <title>Mktemp-&mktemp-version;</title>
+
+  <indexterm zone="ch-boot-mktemp">
+    <primary sortas="a-Mktemp">Mktemp</primary>
+    <secondary>boot</secondary>
+  </indexterm>
+
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+  href="../../final-system/common/mktemp.xml"
+  xpointer="xpointer(//*[@role='package'])"/>
+
+  <sect2 role="installation">
+    <title>Installation of Mktemp</title>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/mips/mktemp.xml"
+    xpointer="xpointer(//*[@os='p1'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/mips/mktemp.xml"
+    xpointer="xpointer(//*[@os='p2'])"/>
+
+    <para os="a">Mktemp will try to pass the <literal>-s</literal> switch to
+    <command>install</command> to strip the binaries. This will not work when
+    cross compiling, so run the following commands to remove this:</para>
+
+<screen os="b"><userinput>cp -v Makefile.in{,.orig}
+sed  's/\(0555 \)-s /\1/' Makefile.in.orig >Makefile.in</userinput></screen>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/common/mktemp.xml"
+    xpointer="xpointer(//*[@os='c'])"/>
+
+<screen os="e"><userinput>CC="${CC} ${BUILD64}" ./configure --prefix=/tools --with-libc\
+    --build=${LFS_HOST} --host=${LFS_TARGET}</userinput></screen>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/common/mktemp.xml"
+    xpointer="xpointer(//*[@os='f'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/common/mktemp.xml"
+    xpointer="xpointer(//*[@os='g'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/common/mktemp.xml"
+    xpointer="xpointer(//*[@os='i'])"/>
+
+<screen><userinput>make install</userinput></screen>
+
+  </sect2>
+
+  <sect2 role="content">
+    <title/>
+
+    <para>Details on this package are located in <xref linkend="contents-mktemp" role="."/></para>
+
+  </sect2>
+
+</sect1>

Added: trunk/BOOK/boot/ppc64/powerpc-utils.xml
===================================================================
--- trunk/BOOK/boot/ppc64/powerpc-utils.xml	                        (rev 0)
+++ trunk/BOOK/boot/ppc64/powerpc-utils.xml	2006-06-19 00:05:16 UTC (rev 1782)
@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+]>
+
+<sect1 id="ch-boot-powerpc-utils" role="wrap">
+  <?dbhtml filename="powerpc-utils.html"?>
+
+  <title>Powerpc-Utils_&powerpcutils-version;</title>
+
+  <indexterm zone="ch-boot-powerpc-utils">
+    <primary sortas="a-Powerpc-Utils">Powerpc-Utils</primary>
+    <secondary>boot</secondary>
+  </indexterm>
+
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+  href="../../final-system/ppc/powerpc-utils.xml"
+  xpointer="xpointer(//*[@role='package'])"/>
+
+  <sect2 role="installation">
+    <title>Installation of Powerpc-Utils</title>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/ppc/powerpc-utils.xml"
+    xpointer="xpointer(//*[@os='a'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/ppc/powerpc-utils.xml"
+    xpointer="xpointer(//*[@os='b'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../ppc/powerpc-utils.xml"
+    xpointer="xpointer(//*[@os='a'])"/>
+
+<screen><userinput>CC="${CC} ${BUILD32}" -o nvsetenv nvsetenv.c nwnvsetenv.c</userinput></screen>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../ppc/powerpc-utils.xml"
+    xpointer="xpointer(//*[@os='c'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../ppc/powerpc-utils.xml"
+    xpointer="xpointer(//*[@os='d'])"/>
+
+  </sect2>
+
+  <sect2 role="content">
+    <title/>
+
+    <para>Details on this package are located in <xref linkend="contents-powerpc-utils" role="."/></para>
+
+  </sect2>
+
+</sect1>

Added: trunk/BOOK/boot/ppc64/yaboot-build.xml
===================================================================
--- trunk/BOOK/boot/ppc64/yaboot-build.xml	                        (rev 0)
+++ trunk/BOOK/boot/ppc64/yaboot-build.xml	2006-06-19 00:05:16 UTC (rev 1782)
@@ -0,0 +1,100 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+]>
+
+<sect1 id="ch-boot-yaboot-build" role="wrap">
+  <?dbhtml filename="yaboot-build.html"?>
+
+  <title>Yaboot-&yaboot-version;</title>
+
+  <indexterm zone="ch-boot-yaboot-build">
+    <primary sortas="a-Yaboot">Yaboot</primary>
+    <secondary>boot</secondary>
+  </indexterm>
+
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+  href="../../final-system/ppc/yaboot.xml"
+  xpointer="xpointer(//*[@role='package'])"/>
+
+  <sect2 role="installation">
+    <title>Installation of Yaboot</title>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='a'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='b'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='c'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='d'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../ppc/yaboot-build.xml"
+    xpointer="xpointer(//*[@os='p1'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../ppc/yaboot-build.xml"
+    xpointer="xpointer(//*[@os='p2'])"/>
+
+    <para>The Makefile is already set to do kernel-style cross-compiling,
+    but it will try to use <command>strip</command> to strip the second-stage
+    loader.  It also expects to be running as root for the install, and to
+    install for the root user, which user LFS cannot do.  We also need to use
+    the 32-bit compiler, and to force <command>ld</command> to use a 32-bit
+    emulation. The following commands will fix and achieve this:</para>
+
+<screen><userinput>cp Makefile,{.orig}
+sed -e "s/\(-print-libgcc-file-name\)/${BUILD32} \1/" \
+            -e "s/\(-Bstatic\)/-melf32ppclinux \1/" \
+            -e "s/\(strip \)/${LFS_TARGET}-\1/" \
+            -e 's/-o root -g root//' \
+    Makefile.orig > Makefile</userinput></screen>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='g'])"/>
+
+<screen><userinput>CFLAGS=${BUILD32} make CROSS=${LFS_TARGET}-</userinput></screen>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='i'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/ppc64/yaboot.xml"
+    xpointer="xpointer(//*[@os='j0'])"/>
+
+<screen><userinput>make CROSS=${LFS_TARGET}- ROOT=/tools PREFIX= install 2>&1 | tee instlog</userinput></screen>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/ppc64/yaboot.xml"
+    xpointer="xpointer(//*[@os='k'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/ppc64/yaboot.xml"
+    xpointer="xpointer(//*[@os='l'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../final-system/ppc64/yaboot.xml"
+    xpointer="xpointer(//*[@os='m'])"/>
+
+  </sect2>
+
+  <sect2 role="content">
+    <title/>
+
+    <para>Details on this package are located in <xref linkend="contents-yaboot" role="."/></para>
+
+  </sect2>
+
+</sect1>

Added: trunk/BOOK/boot/ppc64/yaboot.xml
===================================================================
--- trunk/BOOK/boot/ppc64/yaboot.xml	                        (rev 0)
+++ trunk/BOOK/boot/ppc64/yaboot.xml	2006-06-19 00:05:16 UTC (rev 1782)
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+]>
+
+<sect1 id="ch-boot-yaboot">
+  <?dbhtml filename="yaboot.html"?>
+
+  <title>Making the Temporary System Bootable</title>
+
+  <indexterm zone="ch-boot-yaboot">
+    <primary sortas="a-Yaboot">Yaboot</primary>
+    <secondary>boot, configuring</secondary>
+  </indexterm>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='a'])"/>
+
+  <sect2 role=".">
+    <title>Copying the bootloader to OSX and booting from OF.</title>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='b'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='c'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='d'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='e'])"/>
+
+  </sect2>
+
+  <sect2 role=".">
+    <title>Using a CD to set up the bootstrap partition.</title>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='f'])"/>
+
+    <para os="f2">It is also apprpriate if you are running an old 32-bit Linux
+    kernel on a 64-bit machine, or if the kernel personality has been forced to
+    32-bit.</para>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='g'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='h'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../bootable/ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='r'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='j'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../../bootable/ppc/yaboot.xml"
+    xpointer="xpointer(//*[@os='t'])"/>
+
+<screen os="u" role="nodump"><userinput>PATH_PREFIX=/tools mkofboot</userinput></screen>
+
+  </sect2>
+
+</sect1>

Modified: trunk/BOOK/boot/ppc64-chapter.xml
===================================================================
--- trunk/BOOK/boot/ppc64-chapter.xml	2006-06-18 21:38:34 UTC (rev 1781)
+++ trunk/BOOK/boot/ppc64-chapter.xml	2006-06-19 00:05:16 UTC (rev 1782)
@@ -22,13 +22,17 @@
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/udev.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/pwdgroup.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ppc64/kernel.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ppc64/hfsutils.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ppc64/mktemp.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ppc64/powerpc-utils.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ppc64/yaboot-build.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/settingenviron.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/fstab.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/bootscripts.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/udev-rules.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/devices.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/changingowner.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ppc/yaboot.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ppc64/yaboot.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/whatnext.xml"/>
 
 </chapter>

Added: trunk/BOOK/bootable/ppc64/kernel.xml
===================================================================
--- trunk/BOOK/bootable/ppc64/kernel.xml	                        (rev 0)
+++ trunk/BOOK/bootable/ppc64/kernel.xml	2006-06-19 00:05:16 UTC (rev 1782)
@@ -0,0 +1,144 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+]>
+
+<sect1 id="ch-bootable-kernel" role="wrap">
+  <?dbhtml filename="kernel.html"?>
+
+  <title>Linux-&linux-version;</title>
+
+  <indexterm zone="ch-bootable-kernel">
+    <primary sortas="a-Linux">Linux</primary>
+  </indexterm>
+
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+  href="../x86/kernel.xml"
+  xpointer="xpointer(//*[@role='package'])"/>
+
+  <sect2 role="installation">
+    <title>Installation of the kernel</title>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='a'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='b'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='c'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='d'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='e'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='f'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='g'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='h'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='i'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='j'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='k'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='m'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='n'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='o'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='p'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='q'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='r'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='s'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='t'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='u'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='v'])"/>
+
+<screen><userinput>cp vmlinux /boot/lfskernel-&linux-version;</userinput></screen>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='w'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='w1'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='x'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='x1'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='y'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='y1'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/kernel.xml"
+    xpointer="xpointer(//*[@os='z'])"/>
+
+  </sect2>
+
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+  href="../x86/kernel.xml"
+  xpointer="xpointer(id('contents-kernel'))"/>
+
+</sect1>

Modified: trunk/BOOK/bootable/ppc64-chapter.xml
===================================================================
--- trunk/BOOK/bootable/ppc64-chapter.xml	2006-06-18 21:38:34 UTC (rev 1781)
+++ trunk/BOOK/bootable/ppc64-chapter.xml	2006-06-19 00:05:16 UTC (rev 1782)
@@ -13,7 +13,7 @@
 
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/fstab.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ppc/kernel.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ppc64/kernel.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ppc/yaboot.xml"/>
 
 </chapter>

Modified: trunk/BOOK/final-system/ppc64/yaboot.xml
===================================================================
--- trunk/BOOK/final-system/ppc64/yaboot.xml	2006-06-18 21:38:34 UTC (rev 1781)
+++ trunk/BOOK/final-system/ppc64/yaboot.xml	2006-06-19 00:05:16 UTC (rev 1782)
@@ -70,13 +70,6 @@
 
     </variablelist>
 
-    <important>
-      <para>The above patches and seds are critical in ensuring a
-      successful build. In particular, the package will appear to install
-      correctly without the second sed, but will fail to load linux,
-      requiring you to use OF or a rescue disk to boot.</para>
-    </important>
-
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="../ppc/yaboot.xml"
     xpointer="xpointer(//*[@os='e'])"/>
@@ -91,26 +84,28 @@
 
 <screen os="h"><userinput>CFLAGS="${BUILD32}" make PREFIX=/usr</userinput></screen>
 
-    <important>
-      <para>The CFLAGS on the above command are equally critical
-      for a successful install.</para>
-    </important>
-
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="../ppc/yaboot.xml"
     xpointer="xpointer(//*[@os='i'])"/>
 
-<screen><userinput>make PREFIX=/usr install 2>&1 >instlog</userinput></screen>
+    <important os="j0">
+      <para>The multilib install of yaboot can fail if you miss any of the
+      patches or seds, or omit the CFLAGS variable. <command>ld</command> will
+      issue warnings, but the install will appear to complete successfully.
+      That would result in an unbootable system, so you need to log the output
+      to check it.</para>
+    </important>
 
+<screen><userinput>make PREFIX=/usr install 2>&1 | tee instlog</userinput></screen>
+
     <para os='k'>To ensure that the install was successful, run the following
     command:</para>
 
 <screen os='l'><userinput>grep 'powerpc:common64' instlog</userinput></screen>
 
     <para os='m'>If the command gave you <emphasis>any</emphasis> output
-    (... is incompatible with powerpc:common output) the build is broken and
-    you will have to repeat it with <emphasis>all</emphasis> of the items
-    marked as important.</para>
+    (... is incompatible with powerpc:common output) the build of yaboot is
+    broken and you will have to correct your error(s) and repeat it.</para>
 
   </sect2>
 

Modified: trunk/BOOK/introduction/ppc/changelog.xml
===================================================================
--- trunk/BOOK/introduction/ppc/changelog.xml	2006-06-18 21:38:34 UTC (rev 1781)
+++ trunk/BOOK/introduction/ppc/changelog.xml	2006-06-19 00:05:16 UTC (rev 1782)
@@ -34,6 +34,17 @@
 -->
 
     <listitem>
+      <para>June 18, 2006</para>
+      <itemizedlist>
+        <listitem>
+          <para>[ken] - Added patch to let ofpath use PATH_PREFIX and add missing
+	  PATH_PREFIX to the ybin command for the 'from CD' variant in Making the
+	  Temporary System Bootable.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>June 13, 2006</para>
       <itemizedlist>
         <listitem>

Modified: trunk/BOOK/introduction/ppc64/changelog.xml
===================================================================
--- trunk/BOOK/introduction/ppc64/changelog.xml	2006-06-18 21:38:34 UTC (rev 1781)
+++ trunk/BOOK/introduction/ppc64/changelog.xml	2006-06-19 00:05:16 UTC (rev 1782)
@@ -40,6 +40,10 @@
           <para>[ken] - Use the mktemp_configure patch, originally from mips,
 	  instead of updating config.{guess,sub} from installed versions.</para>
         </listitem>
+        <listitem>
+          <para>[ken] - Fix up the bootable chapter for hfsutils, mktemp,
+	  powerpc-utils, and yaboot. This should now work.</para>
+        </listitem>
       </itemizedlist>
     </listitem>
 

Modified: trunk/BOOK/materials/ppc/patches.xml
===================================================================
--- trunk/BOOK/materials/ppc/patches.xml	2006-06-18 21:38:34 UTC (rev 1781)
+++ trunk/BOOK/materials/ppc/patches.xml	2006-06-19 00:05:16 UTC (rev 1782)
@@ -34,6 +34,15 @@
       </listitem>
     </varlistentry>
 
+    <varlistentry os="yaboot-ofpath_path-patch">
+      <term>Yaboot (&yaboot-version;) Ofpath_Path_Prefix Patch - <token>&yaboot-ofpath_path-patch-size;</token>:</term>
+      <listitem>
+        <para>Download: <ulink
+        url="&patches-root;yaboot/&yaboot-ofpath_path-patch;"/></para>
+        <para>MD5 sum: <literal>&yaboot-ofpath_path-patch-md5;</literal></para>
+      </listitem>
+    </varlistentry>
+
     <varlistentry os="yaboot-sata-patch">
       <term>Yaboot (&yaboot-version;) SATA Patch - <token>&yaboot-sata-patch-size;</token>:</term>
       <listitem>

Modified: trunk/BOOK/materials/ppc64/patches.xml
===================================================================
--- trunk/BOOK/materials/ppc64/patches.xml	2006-06-18 21:38:34 UTC (rev 1781)
+++ trunk/BOOK/materials/ppc64/patches.xml	2006-06-19 00:05:16 UTC (rev 1782)
@@ -53,6 +53,10 @@
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="../ppc/patches.xml"
+    xpointer="xpointer(//*[@os='yaboot-ofpath_path-patch'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../ppc/patches.xml"
     xpointer="xpointer(//*[@os='yaboot-sata-patch'])"/>
 
   </variablelist>

Modified: trunk/BOOK/patches.ent
===================================================================
--- trunk/BOOK/patches.ent	2006-06-18 21:38:34 UTC (rev 1781)
+++ trunk/BOOK/patches.ent	2006-06-19 00:05:16 UTC (rev 1782)
@@ -223,6 +223,10 @@
 <!ENTITY yaboot-sata-patch-md5 "bdc55ca22b1cfc774a7b2db732524eb6">
 <!ENTITY yaboot-sata-patch-size "1 KB">
 
+<!ENTITY yaboot-ofpath_path-patch "yaboot-&yaboot-version;-ofpath_path_prefix-1.patch">
+<!ENTITY yaboot-ofpath_path-patch-md5 "3faf70e0cb4e4f62a1e8815c3452ab38">
+<!ENTITY yaboot-ofpath_path-patch-size "1 KB">
+
 <!-- Start of sparc/sparc64 patches -->
 
 <!ENTITY elftoaout-fixes-patch "elftoaout-&elftoaout-version;-64bit_fixes-1.patch">




More information about the cross-lfs mailing list