1 | <sect1 id="ch08-kernel">
|
---|
2 | <title>Installing Linux-&kernel-version;</title>
|
---|
3 | <?dbhtml filename="kernel.html" dir="chapter08"?>
|
---|
4 |
|
---|
5 | <screen>Estimated build time: &kernel-time;
|
---|
6 | Estimated required disk space: &kernel-compsize;</screen>
|
---|
7 |
|
---|
8 | <para>Building the kernel involves a few steps: configuring it and compiling
|
---|
9 | it. There are a few ways to configure the kernel. If you don't like the
|
---|
10 | way this book does it, read the <filename>README</filename> that comes
|
---|
11 | with the kernel source tree, and find out what the other options are.</para>
|
---|
12 |
|
---|
13 | <para>Something you could do, is take the <filename>.config</filename>
|
---|
14 | file from your host distribution's kernel source tree and copy it to
|
---|
15 | <filename class="directory">$LFS/usr/src/linux</filename>.
|
---|
16 | This way you don't have to configure the entire kernel from scratch and
|
---|
17 | can use your current values. If you choose to do this, first run the
|
---|
18 | <userinput>make mrproper</userinput> command below, then copy the
|
---|
19 | <filename>.config</filename> file over, then run
|
---|
20 | <userinput>make menuconfig</userinput> followed by the rest of the commands
|
---|
21 | (<userinput>make oldconfig</userinput> may be better in some situations.
|
---|
22 | See the <filename>README</filename> file for more details when to use
|
---|
23 | <userinput>make oldconfig</userinput>).</para>
|
---|
24 |
|
---|
25 | <para>The following commands are run to build the kernel:</para>
|
---|
26 |
|
---|
27 | <para><screen><userinput>cd /usr/src/linux &&</userinput>
|
---|
28 | <userinput>make mrproper &&</userinput>
|
---|
29 | <userinput>make menuconfig &&</userinput>
|
---|
30 | <userinput>make dep &&</userinput>
|
---|
31 | <userinput>make bzImage &&</userinput>
|
---|
32 | <userinput>make modules &&</userinput>
|
---|
33 | <userinput>make modules_install &&</userinput>
|
---|
34 | <userinput>cp arch/i386/boot/bzImage /boot/lfskernel &&</userinput>
|
---|
35 | <userinput>cp System.map /boot</userinput></screen></para>
|
---|
36 |
|
---|
37 | <para>Note: the arch/i386/boot/bzImage path may vary on
|
---|
38 | different platforms.</para>
|
---|
39 |
|
---|
40 | &aa-kernel-dep;
|
---|
41 |
|
---|
42 | </sect1>
|
---|
43 |
|
---|