source: chapter01/how.xml@ 6bced9f

xry111/clfs-ng
Last change on this file since 6bced9f was 85ec218a, checked in by Xi Ruoyao <xry111@…>, 2 years ago

Merge remote-tracking branch 'origin/trunk' into xry111/clfs-ng

  • Property mode set to 100644
File size: 4.0 KB
RevLine 
[673b0d8]1<?xml version="1.0" encoding="ISO-8859-1"?>
[b06ca36]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[673b0d8]4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
[6370fa6]7
[13a9dc2]8<sect1 id="ch-intro-how">
9 <?dbhtml filename="how.html"?>
[81fd230]10
[7d7f246]11 <title>How to Cross Build an LFS System</title>
[0eb01c0f]12
[cff800e]13 <para>The LFS system will be built by using an already installed
[7d7f246]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
[13a9dc2]16 provide necessary programs, including a compiler, linker, and shell,
17 to build the new system. Select the <quote>development</quote> option
[99ecc76]18 during the distribution installation to include these
[13a9dc2]19 tools.</para>
[81fd230]20
[99ecc76]21 <para>As an alternative to installing a separate distribution on your
[9fb74db]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,
[a91be49]24 providing all the tools you need to successfully follow the instructions in
[e5fda02]25 this book. The LiveCD version is behind the current book, but is still useful
[7928e023]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
[9fb74db]29 to download a copy, visit <ulink url="&livecd-root;"/>. --></para>
[81fd230]30
[9fb74db]31 <!--
[0e62210]32 <note>
33 <para>The LFS LiveCD might not work on newer hardware configurations,
[31d9112]34 failing to boot or failing to detect some devices such as some SATA hard
[0e62210]35 drives.</para>
[9fb74db]36 </note> -->
[0e62210]37
[13a9dc2]38 <para><xref linkend="chapter-partitioning"/> of this book describes how
[99ecc76]39 to create a new Linux native partition and file system,
[13a9dc2]40 where the new LFS system will be compiled and installed. <xref
41 linkend="chapter-getting-materials"/> explains which packages and
[99ecc76]42 patches must be downloaded to build an LFS system, and how to store
[13a9dc2]43 them on the new file system. <xref linkend="chapter-final-preps"/>
[fdb65bd]44 discusses the setup of an appropriate working environment. Please read
[13a9dc2]45 <xref linkend="chapter-final-preps"/> carefully as it explains several
[99ecc76]46 important issues you should be aware of before you begin to
[3369724]47 work your way through <xref linkend="chapter-cross-tools"/> and beyond.</para>
[81fd230]48
[1184a7e]49 <para><xref linkend="chapter-cross-tools"/> explains the installation of
[99ecc76]50 the initial tool chain, (binutils, gcc, and glibc) using cross-compilation
[3369724]51 techniques to isolate the new tools from the host system.</para>
[81fd230]52
[3369724]53 <para><xref linkend="chapter-temporary-tools"/> shows you how to
54 cross-compile basic utilities using the just built cross-toolchain.</para>
[3a56c9a]55
[7d7f246]56 <para><xref linkend="chapter-chroot-temporary-tools"/> then boots the
[85ec218a]57 minimal Linux environment on the target machine,
58 where we use the new tools to build all
59 the rest of the tools needed to create the LFS system.
60 Note that in the book the minimal Linux environment may be
[7d7f246]61 referred as <quote>chroot environment</quote> only to keep the consistency
62 with the original LFS book.</para>
[81fd230]63
[13a9dc2]64 <para>This effort to isolate the new system from the host distribution may
[efcb393]65 seem excessive. A full technical explanation as to why this is done is
66 provided in <xref linkend="ch-tools-toolchaintechnotes"/>.</para>
[81fd230]67
[1184a7e]68 <para>In <xref linkend="chapter-building-system"/> the
[7d7f246]69 full LFS system is built.</para>
[87899e5]70
[1118b17]71 <para>To finish the installation, the basic system configuration is set up in
[99ecc76]72 <xref linkend="chapter-config"/>, and the kernel and boot loader are created
73 in <xref linkend="chapter-bootable"/>. <xref linkend="chapter-finalizing"/>
[cff800e]74 contains information on continuing the LFS experience beyond this book.
[99ecc76]75 After the steps in this chapter have been implemented, the computer is
76 ready to boot into the new LFS system.</para>
[13a9dc2]77
78 <para>This is the process in a nutshell. Detailed information on each
[99ecc76]79 step is presented in the following chapters.
80 Items that seem complicated now will be clarified, and everything will
81 fall into place as you commence your LFS adventure.</para>
[81fd230]82
[13a9dc2]83</sect1>
Note: See TracBrowser for help on using the repository browser.