[8988b94] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="pre-architecture">
|
---|
| 9 | <?dbhtml filename="architecture.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>LFS Target Architectures</title>
|
---|
| 12 |
|
---|
[c6d5b092] | 13 | <para>The primary target architecture of LFS is the 32-bit Intel CPU. If you
|
---|
[8988b94] | 14 | have not built an LFS system before, you should probably start with that
|
---|
[c6d5b092] | 15 | target. The 32-bit architecture is the most widely supported Linux system and
|
---|
[8988b94] | 16 | is most compatible with both open source and proprietary software.</para>
|
---|
| 17 |
|
---|
| 18 | <para>On the other hand, the instructions in this book are known to work, with
|
---|
[c6d5b092] | 19 | some modifications, with both Power PC and 64-bit AMD/Intel CPUs. To build a
|
---|
| 20 | system that utilizes one of these CPUs, the main prerequisite, in addition to
|
---|
| 21 | those on the next few pages, is an existing Linux system such as an earlier LFS
|
---|
| 22 | installation, Ubuntu, Red Hat/Fedora, SuSE, or other distribution that targets
|
---|
| 23 | the architecture that you have. Also note that a 32-bit distribution can be
|
---|
| 24 | installed and used as a host system on a 64-bit AMD/Intel computer.</para>
|
---|
| 25 |
|
---|
[12c82b50] | 26 | <para>Some other facts about 64-bit systems need to be added here. When
|
---|
[8988b94] | 27 | compared to a 32-bit system, the sizes of executable programs are slightly
|
---|
[c6d5b092] | 28 | larger and the execution speeds are only slightly faster. For example, in a
|
---|
[8988b94] | 29 | test build of LFS-6.5 on a Core2Duo CPU based system, the following statistics
|
---|
| 30 | were measured:</para>
|
---|
| 31 |
|
---|
| 32 | <screen><computeroutput>Architecture Build Time Build Size
|
---|
| 33 | 32-bit 198.5 minutes 648 MB
|
---|
| 34 | 64-bit 190.6 minutes 709 MB</computeroutput></screen>
|
---|
| 35 |
|
---|
| 36 | <para>As you can see, the 64-bit build is only 4% faster and is 9% larger than
|
---|
| 37 | the 32-bit build. The gain from going to a 64-bit system is relatively
|
---|
| 38 | minimal. Of course, if you have more than 4GB of RAM or want to manipulate
|
---|
| 39 | data that exceeds 4GB, the advantages of a 64-bit system are substantial.</para>
|
---|
| 40 |
|
---|
| 41 | <para>The default 64-bit build that results from LFS is considered a "pure"
|
---|
[c6d5b092] | 42 | 64-bit system. That is, it supports 64-bit executables only. Building a
|
---|
[cbd8a1a2] | 43 | "multi-lib" system requires compiling many applications twice, once for a
|
---|
| 44 | 32-bit system and once for a 64-bit system. This is not directly supported in
|
---|
[4d2dd2e] | 45 | LFS because it would interfere with the educational objective of providing the
|
---|
[12c82b50] | 46 | instructions needed for a straightforward base Linux system. You can refer to
|
---|
[cbd8a1a2] | 47 | the <ulink url="http://trac.cross-lfs.org/">Cross Linux From Scratch</ulink>
|
---|
| 48 | project for this advanced topic.</para>
|
---|
[8988b94] | 49 |
|
---|
[c6d5b092] | 50 | <para>There is one last comment about 64-bit systems. There are some packages
|
---|
[8988b94] | 51 | that cannot currently be built in a "pure" 64-bit system or require specialized
|
---|
[c6d5b092] | 52 | build instructions. Generally, these packages have some embedded 32-bit
|
---|
[8988b94] | 53 | specific assembly language instructions that fail when building on a 64-bit
|
---|
[12c82b50] | 54 | system. This includes some Xorg drivers from <ulink
|
---|
[27a023ce] | 55 | url="http://www.linuxfromscratch.org/blfs/view/svn/">Beyond Linux From Scratch
|
---|
[12c82b50] | 56 | (BLFS)</ulink>. Many of these problems can be worked around, but may require
|
---|
| 57 | some specialized procedures or patches.</para>
|
---|
[8988b94] | 58 |
|
---|
| 59 | </sect1>
|
---|
| 60 |
|
---|