Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • postlfs/filesystems/uefi-bootloaders/grub-efi.xml

    rf1a7af6 r3f2db3a6  
    99  <!ENTITY grub-efi-md5sum        "cf0fd928b1e5479c8108ee52cb114363">
    1010  <!ENTITY grub-efi-size          "6.3 MB">
    11   <!ENTITY grub-efi-buildsize     "185 MB">
    12   <!ENTITY grub-efi-time          "0.9 SBU">
     11  <!ENTITY grub-efi-buildsize     "137 MB">
     12  <!ENTITY grub-efi-time          "1.0 SBU (on 64-bit LFS)">
    1313
    1414  <!ENTITY unifont-download-http  "https://unifoundry.com/pub/unifont/unifont-&unifont-version;/font-builds/unifont-&unifont-version;.pcf.gz">
    15   <!ENTITY unifont-md5sum         "4fbc33c8d8d25985f1bcdd4d28bc2420">
     15  <!ENTITY unifont-md5sum         "428aa81e2433db172bbf7f4136cee6c5">
    1616  <!ENTITY unifont-size           "1.3 MB">
     17
     18  <!ENTITY gcc-download-http      "&gnu-http;/gcc/gcc-&gcc-version;/gcc-&gcc-version;.tar.xz">
     19  <!ENTITY gcc-md5sum             "73bafd0af874439dcdb9fc063b6fb069">
     20  <!ENTITY gcc-size               "81 MB">
    1721]>
    1822
     
    2024  <?dbhtml filename="grub-efi.html"?>
    2125
    22   <sect1info>
    23     <date>$Date$</date>
    24   </sect1info>
    2526
    2627  <title>GRUB-&grub-version; for EFI</title>
     
    3940    </para>
    4041
    41     &lfs110a_checked;
     42    &lfs112_checked;
    4243
    4344    <bridgehead renderas="sect3">Package Information</bridgehead>
     
    9697    </itemizedlist>
    9798
     99    <itemizedlist spacing="compact">
     100      <title>GCC (only needed if building on 32-bit LFS)</title>
     101      <listitem>
     102        <para>
     103          Download (HTTP): <ulink url="&gcc-download-http;"/>
     104        </para>
     105      </listitem>
     106      <listitem>
     107        <para>
     108          Download MD5 sum: &gcc-md5sum;
     109        </para>
     110      </listitem>
     111      <listitem>
     112        <para>
     113          Download size: &gcc-size;
     114        </para>
     115      </listitem>
     116    </itemizedlist>
     117
    98118    <bridgehead renderas="sect3">GRUB Dependencies</bridgehead>
    99 
    100     <bridgehead renderas="sect4">Required (runtime)</bridgehead>
    101     <para role="runtime">
    102       <xref linkend="efibootmgr"/>
    103     </para>
    104119
    105120    <bridgehead renderas="sect4">Recommended</bridgehead>
    106121    <para role="recommended">
     122      <xref role="runtime" linkend="efibootmgr"/> (runtime) and
    107123      <xref linkend="freetype2"/>
    108124    </para>
     
    140156    </warning>
    141157
     158    <para>If you are running a 32-bit LFS, prepare a 64-bit compiler:</para>
     159
     160<!-- 'literal' is used deliberately to show this is only for 32-bit LFS -->
     161<screen><userinput>case $(uname -m) in i?86 )
     162    <literal>tar xf ../gcc-&gcc-version;.tar.xz
     163    mkdir gcc-&gcc-version;/build
     164    pushd gcc-&gcc-version;/build
     165        ../configure --prefix=$PWD/../../x86_64-gcc \
     166                     --target=x86_64-linux-gnu      \
     167                     --with-system-zlib             \
     168                     --enable-languages=c,c++       \
     169                     --with-ld=/usr/bin/ld
     170        make all-gcc
     171        make install-gcc
     172    popd
     173    export TARGET_CC=$PWD/x86_64-gcc/bin/x86_64-linux-gnu-gcc</literal>
     174esac</userinput></screen>
     175
    142176    <para>
    143177      Build <application>GRUB</application> with the following commands:
     
    149183            --enable-grub-mkfont \
    150184            --with-platform=efi  \
     185            --target=x86_64      \
    151186            --disable-werror     &amp;&amp;
     187unset TARGET_CC &amp;&amp;
    152188make</userinput></screen>
    153189
     
    178214      installed, it is possible to omit this option and build GRUB.  However,
    179215      if <command>grub-mkfont</command> is not built, or the unicode font
    180       data is not avaliable at the time GRUB is built, GRUB won't install
     216      data is not available at the time GRUB is built, GRUB won't install
    181217      any font for the boot loader.  The GRUB boot menu will be displayed
    182218      using a coarse font and the early stage of kernel initialization will be
     
    192228    </para>
    193229
     230    <para>
     231      <parameter>--target=x86_64</parameter>: Ensures building GRUB for
     232      x86_64 even if building on a 32-bit LFS system.  Most EFI firmwares
     233      on x86_64 does not support 32-bit bootloaders.
     234    </para>
     235
     236    <para>
     237      <option>--target=i386</option>: A few 32-bit x86 platforms have EFI
     238      support.  And, some x86_64 platforms have a 32-bit EFI implementation,
     239      but they are very old and rare. Use this instead of
     240      <parameter>--target=x86_64</parameter> if you are
     241      <emphasis role='bold'>absolutely sure</emphasis> that LFS is running
     242      on such a system.
     243    </para>
     244
    194245  </sect2>
    195246
Note: See TracChangeset for help on using the changeset viewer.