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