Author: ken
Date: 2006-06-08 16:31:32 -0600 (Thu, 08 Jun 2006)
New Revision: 1744
Added:
trunk/BOOK/boot/ppc/hfsutils.xml
trunk/BOOK/boot/ppc/mktemp.xml
trunk/BOOK/boot/ppc/powerpc-utils.xml
Modified:
trunk/BOOK/appendices/dependencies/ppc.xml
trunk/BOOK/boot/ppc-chapter.xml
trunk/BOOK/boot/ppc/yaboot-build.xml
trunk/BOOK/introduction/ppc/changelog.xml
Log:
Flesh-out chapter 7 for ppc.
Modified: trunk/BOOK/appendices/dependencies/ppc.xml
===================================================================
--- trunk/BOOK/appendices/dependencies/ppc.xml 2006-06-08 17:40:02 UTC (rev
1743)
+++ trunk/BOOK/appendices/dependencies/ppc.xml 2006-06-08 22:31:32 UTC (rev
1744)
@@ -102,7 +102,7 @@
<segtitle>&dependencies;</segtitle>
<seglistitem>
- <seg>Binutils, Coreutils, GCC, Make, Patch and Sed</seg>
+ <seg>Binutils, Coreutils, GCC, Make, Mktemp, Patch and Sed</seg>
</seglistitem>
</segmentedlist>
Added: trunk/BOOK/boot/ppc/hfsutils.xml
===================================================================
--- trunk/BOOK/boot/ppc/hfsutils.xml (rev 0)
+++ trunk/BOOK/boot/ppc/hfsutils.xml 2006-06-08 22:31:32 UTC (rev 1744)
@@ -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-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(//[EMAIL PROTECTED]'package'])"/>
+
+ <sect2 role="installation">
+ <title>Installation of Hfsutils</title>
+
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+ href="../../final-system/ppc/hfsutils.xml"
+ xpointer="xpointer(//[EMAIL PROTECTED]'a'])"/>
+
+<screen><userinput>CC="${CC}" ./configure --prefix=/tools</userinput></screen>
+
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+ href="../../final-system/ppc/hfsutils.xml"
+ xpointer="xpointer(//[EMAIL PROTECTED]'c'])"/>
+
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+ href="../../final-system/ppc/hfsutils.xml"
+ xpointer="xpointer(//[EMAIL PROTECTED]'d'])"/>
+
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+ href="../../final-system/ppc/hfsutils.xml"
+ xpointer="xpointer(//[EMAIL PROTECTED]'e'])"/>
+
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+ href="../../final-system/ppc/hfsutils.xml"
+ xpointer="xpointer(//[EMAIL PROTECTED]'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/ppc/mktemp.xml
===================================================================
--- trunk/BOOK/boot/ppc/mktemp.xml (rev 0)
+++ trunk/BOOK/boot/ppc/mktemp.xml 2006-06-08 22:31:32 UTC (rev 1744)
@@ -0,0 +1,62 @@
+<?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(//[EMAIL PROTECTED]'package'])"/>
+
+ <sect2 role="installation">
+ <title>Installation of Mktemp</title>
+
+ <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(//[EMAIL PROTECTED]'c'])"/>
+
+<screen os="e"><userinput>CC="${CC}" ./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(//[EMAIL PROTECTED]'f'])"/>
+
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+ href="../../final-system/common/mktemp.xml"
+ xpointer="xpointer(//[EMAIL PROTECTED]'g'])"/>
+
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+ href="../../final-system/common/mktemp.xml"
+ xpointer="xpointer(//[EMAIL PROTECTED]'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/ppc/powerpc-utils.xml
===================================================================
--- trunk/BOOK/boot/ppc/powerpc-utils.xml (rev 0)
+++ trunk/BOOK/boot/ppc/powerpc-utils.xml 2006-06-08 22:31:32 UTC (rev
1744)
@@ -0,0 +1,51 @@
+<?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(//[EMAIL PROTECTED]'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(//[EMAIL PROTECTED]'a'])"/>
+
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+ href="../../final-system/ppc/powerpc-utils.xml"
+ xpointer="xpointer(//[EMAIL PROTECTED]'b'])"/>
+
+ <para os="a">This package's Makefile has issues with cross-compiling.
Fortunately,
+ we only need one program and it is a simple task to compile it.</para>
+
+<screen><userinput>CC="${CC}" -o nvsetenv nvsetenv.c
nwnvsetenv.c</userinput></screen>
+
+ <para os="c">Install the program:</para>
+
+<screen os="d"><userinput>install -v -m755 nvsetenv
/tools/sbin</userinput></screen>
+
+ </sect2>
+
+ <sect2 role="content">
+ <title/>
+
+ <para>Details on this package are located in <xref
linkend="contents-powerpc-utils" role="."/></para>
+
+ </sect2>
+
+</sect1>
Modified: trunk/BOOK/boot/ppc/yaboot-build.xml
===================================================================
--- trunk/BOOK/boot/ppc/yaboot-build.xml 2006-06-08 17:40:02 UTC (rev
1743)
+++ trunk/BOOK/boot/ppc/yaboot-build.xml 2006-06-08 22:31:32 UTC (rev
1744)
@@ -22,8 +22,45 @@
<sect2 role="installation">
<title>Installation of Yaboot</title>
-<para>Temporary placeholder for Yaboot installation instructions...</para>
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+ href="../../final-system/ppc/yaboot.xml"
+ xpointer="xpointer(//[EMAIL PROTECTED]'a'])"/>
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+ href="../../final-system/ppc/yaboot.xml"
+ xpointer="xpointer(//[EMAIL PROTECTED]'b'])"/>
+
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+ href="../../final-system/ppc/yaboot.xml"
+ xpointer="xpointer(//[EMAIL PROTECTED]'c'])"/>
+
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+ href="../../final-system/ppc/yaboot.xml"
+ xpointer="xpointer(//[EMAIL PROTECTED]'d'])"/>
+
+ <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. The following command
+ will fix this:</para>
+
+<screen><userinput>cp Makefile,{.orig}
+sed -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(//[EMAIL PROTECTED]'g'])"/>
+
+<screen><userinput>make CROSS=${LFS_TARGET}-</userinput></screen>
+
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+ href="../../final-system/ppc/yaboot.xml"
+ xpointer="xpointer(//[EMAIL PROTECTED]'i'])"/>
+
+<screen><userinput>make CROSS=${LFS_TARGET}- ROOT=/tools PREFIX=
install</userinput></screen>
+
</sect2>
<sect2 role="content">
Modified: trunk/BOOK/boot/ppc-chapter.xml
===================================================================
--- trunk/BOOK/boot/ppc-chapter.xml 2006-06-08 17:40:02 UTC (rev 1743)
+++ trunk/BOOK/boot/ppc-chapter.xml 2006-06-08 22:31:32 UTC (rev 1744)
@@ -22,6 +22,9 @@
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
href="common/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="ppc/kernel.xml"/>
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
href="ppc/hfsutils.xml"/>
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
href="ppc/mktemp.xml"/>
+ <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
href="ppc/powerpc-utils.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
href="ppc/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"/>
Modified: trunk/BOOK/introduction/ppc/changelog.xml
===================================================================
--- trunk/BOOK/introduction/ppc/changelog.xml 2006-06-08 17:40:02 UTC (rev
1743)
+++ trunk/BOOK/introduction/ppc/changelog.xml 2006-06-08 22:31:32 UTC (rev
1744)
@@ -39,6 +39,10 @@
<listitem>
<para>[ken] - Add an appendix to discuss OF and Mac issues.</para>
</listitem>
+ <listitem>
+ <para>[ken] - Add hfsutils, mktemp, powerpc-utils to the 'boot'
option,
+ and put in the detail for building yaboot in that chapter.</para>
+ </listitem>
</itemizedlist>
</listitem>
--
http://linuxfromscratch.org/mailman/listinfo/cross-lfs
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page