source: BOOK/final-system/ppc64/yaboot.xml@ 425ea7c

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 425ea7c was e3196bd, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Remove more tabs and replace with 8 spaces.

  • Property mode set to 100644
File size: 3.7 KB
RevLine 
[55ab27c]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[55ab27c]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-yaboot" role="wrap">
9 <?dbhtml filename="yaboot.html"?>
10
11 <title>Yaboot-&yaboot-version;</title>
12
13 <indexterm zone="ch-system-yaboot">
14 <primary sortas="a-Yaboot">Yaboot</primary>
15 </indexterm>
16
[c06e893]17 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
18 href="../ppc/yaboot.xml"
19 xpointer="xpointer(//*[@role='package'])"/>
[55ab27c]20
21 <sect2 role="installation">
22 <title>Installation of Yaboot</title>
23
[c06e893]24 <para>Existing multilib distributions alter gcc to default to 32-bit
25 output. Because our gcc defaults to 64-bit, we need to pass appropriate
26 options to both the compiler and the linker. The Makefile already
27 overrides any CC and ignores LDFLAGS in favour of its own variables, so we
28 need to use the following seds for a successful compile and install.</para>
[55ab27c]29
[c06e893]30<screen><userinput>sed -i -e "s/\(-print-libgcc-file-name\)/${BUILD32} \1/" \
31 -e "s/\(-Bstatic\)/-melf32ppclinux \1/" Makefile
32</userinput></screen>
[55ab27c]33
[c06e893]34 <variablelist os="j">
35 <title>The meaning of the sed parameters:</title>
[55ab27c]36
[c06e893]37 <varlistentry>
38 <term><parameter>"s/\(-print-libgcc-file-name\)/${BUILD32} \1/"</parameter></term>
[55ab27c]39 <listitem>
[c06e893]40 <para>This picks a convenient place within the Makefile's lgcc
[e3196bd]41 variable and inserts the flag to force <command>gcc</command> to
[c06e893]42 create 32-bit code when compiling yaboot.</para>
[55ab27c]43 </listitem>
44 </varlistentry>
[c06e893]45 <varlistentry>
46 <term><parameter>"s/\(-Bstatic\)/-melf32ppclinux \1/"</parameter></term>
[55ab27c]47 <listitem>
[c06e893]48 <para>This picks the end of the LFLAGS which the Makefile passes to
[e3196bd]49 the linker to create the second-stage linux loader, and inserts a
50 flag to force <command>ld</command> to use a suitable 32-bit
51 emulation picked from the output of <command>'ld -V'</command>.</para>
[55ab27c]52 </listitem>
53 </varlistentry>
54
[c06e893]55 </variablelist>
[55ab27c]56
[c06e893]57 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
58 href="../ppc/yaboot.xml"
[291bd8b]59 xpointer="xpointer(//*[@os='a'])"/>
[55ab27c]60
[c06e893]61 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
62 href="../ppc/yaboot.xml"
[291bd8b]63 xpointer="xpointer(//*[@os='b'])"/>
[55ab27c]64
[c06e893]65 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
66 href="../ppc/yaboot.xml"
[291bd8b]67 xpointer="xpointer(//*[@os='c'])"/>
[55ab27c]68
[291bd8b]69<screen os="d"><userinput>CFLAGS="${BUILD32}" make PREFIX=/usr</userinput></screen>
[9619f1a]70
[c06e893]71 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
72 href="../ppc/yaboot.xml"
[291bd8b]73 xpointer="xpointer(//*[@os='e'])"/>
[c06e893]74
[bc5db55]75 <important os="j0">
76 <para>The multilib install of yaboot can fail if you miss any of the
77 patches or seds, or omit the CFLAGS variable. <command>ld</command> will
78 issue warnings, but the install will appear to complete successfully.
79 That would result in an unbootable system, so you need to log the output
80 to check it.</para>
81 </important>
82
[291bd8b]83<screen os='f'><userinput>make PREFIX=/usr install 2&gt;&amp;1 | tee instlog</userinput></screen>
[9619f1a]84
[291bd8b]85 <para os='g'>To ensure that the install was successful, run the following
[9619f1a]86 command:</para>
87
[291bd8b]88<screen os='h'><userinput>grep 'powerpc:common64' instlog</userinput></screen>
[9619f1a]89
[291bd8b]90 <para os='i'>If the command gave you <emphasis>any</emphasis> output
[bc5db55]91 (... is incompatible with powerpc:common output) the build of yaboot is
92 broken and you will have to correct your error(s) and repeat it.</para>
[55ab27c]93
94 </sect2>
95
[c06e893]96 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
97 href="../ppc/yaboot.xml"
98 xpointer="xpointer(id('contents-yaboot'))"/>
99
[55ab27c]100</sect1>
Note: See TracBrowser for help on using the repository browser.