source: chapter01/how.xml@ 7d7f246

Last change on this file since 7d7f246 was 7d7f246, checked in by Xi Ruoyao <xry111@…>, 10 months ago

cross-ng: adjust "How to build LFS" page for cross build

We'd explain "chroot environment" here, instead of performing
find-n-replace everywhere.

  • Property mode set to 100644
File size: 4.1 KB
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
8<sect1 id="ch-intro-how">
9 <?dbhtml filename="how.html"?>
11 <title>How to Cross Build an LFS System</title>
13 <para>The LFS system will be built by using an already installed
14 UNIX-like system (such as Debian Linux or Mac OS X). This
15 existing UNIX-like system (the host) will be used as a starting point to
16 provide necessary programs, including a compiler, linker, and shell,
17 to build the new system. Select the <quote>development</quote> option
18 during the distribution installation to be able to access these
19 tools.</para>
21 <para>As an alternative to installing a separate distribution onto your
22 machine, you may wish to use <!-- the Linux From Scratch LiveCD or --> a LiveCD from a
23 commercial distribution. <!-- The LFS LiveCD works well as a host system,
24 providing all the tools you need to successfully follow the instructions in
25 this book. The LiveCD version is behind the current book, but is still useful
26 as a host for building the current book. The <quote>-nosrc</quote> or
27 <quote>-min</quote> editions of the LiveCD are the most appropriate for
28 building a current LFS system. For more information about the LFS LiveCD or
29 to download a copy, visit <ulink url="&livecd-root;"/>. --></para>
31 <!--
32 <note>
33 <para>The LFS LiveCD might not work on newer hardware configurations,
34 failing to boot or failing to detect some devices such as some SATA hard
35 drives.</para>
36 </note> -->
38 <para><xref linkend="chapter-partitioning"/> of this book describes how
39 to create a new Linux native partition and file system. This is the place
40 where the new LFS system will be compiled and installed. <xref
41 linkend="chapter-getting-materials"/> explains which packages and
42 patches need to be downloaded to build an LFS system and how to store
43 them on the new file system. <xref linkend="chapter-final-preps"/>
44 discusses the setup of an appropriate working environment. Please read
45 <xref linkend="chapter-final-preps"/> carefully as it explains several
46 important issues you need be aware of before beginning to
47 work your way through <xref linkend="chapter-cross-tools"/> and beyond.</para>
49 <para><xref linkend="chapter-cross-tools"/>, explains the installation of
50 the initial tool chain, (binutils, gcc, and glibc) using cross compilation
51 techniques to isolate the new tools from the host system.</para>
53 <para><xref linkend="chapter-temporary-tools"/> shows you how to
54 cross-compile basic utilities using the just built cross-toolchain.</para>
56 <para><xref linkend="chapter-chroot-temporary-tools"/> then boots the
57 minimal Linux environment on the target machine and uses the previously
58 built tools to build the additional tools needed to build and test the
59 final system. Note that in the book the minimal Linux environment may be
60 referred as <quote>chroot environment</quote> only to keep the consistency
61 with the original LFS book.</para>
63 <para>This effort to isolate the new system from the host distribution may
64 seem excessive. A full technical explanation as to why this is done is
65 provided in <xref linkend="ch-tools-toolchaintechnotes"/>.</para>
67 <para>In <xref linkend="chapter-building-system"/>, The
68 full LFS system is built.</para>
70 <para>To finish the installation, the basic system configuration is set up in
71 <xref linkend="chapter-config"/>, and the kernel and boot loader are set
72 up in <xref linkend="chapter-bootable"/>. <xref linkend="chapter-finalizing"/>
73 contains information on continuing the LFS experience beyond this book.
74 After the steps in this book have been implemented, the computer will be
75 ready to reboot into the new LFS system.</para>
77 <para>This is the process in a nutshell. Detailed information on each
78 step is discussed in the following chapters and package descriptions.
79 Items that may seem complicated will be clarified, and everything will
80 fall into place as you embark on the LFS adventure.</para>
Note: See TracBrowser for help on using the repository browser.