[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-boot-kernel" role="wrap">
|
---|
| 9 | <?dbhtml filename="kernel.html"?>
|
---|
| 10 |
|
---|
[055aa17] | 11 | <title>Linux-&linux-version;</title>
|
---|
[3f8be484] | 12 |
|
---|
| 13 | <indexterm zone="ch-boot-kernel">
|
---|
| 14 | <primary sortas="a-Linux">Linux</primary>
|
---|
| 15 | <secondary>boot</secondary>
|
---|
| 16 | </indexterm>
|
---|
| 17 |
|
---|
[93adf44a] | 18 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 19 | href="../../bootable/x86/kernel.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
[3f8be484] | 21 |
|
---|
| 22 | <sect2 role="installation">
|
---|
| 23 | <title>Installation of the kernel</title>
|
---|
| 24 |
|
---|
| 25 | <warning os="aa">
|
---|
[6bb43b3] | 26 | <para>Here a temporary cross-compiled kernel will be built. When
|
---|
[6d4c909] | 27 | configuring it, select the minimal amount of options required to
|
---|
| 28 | boot the target machine and build the final system. I.e., no support
|
---|
[3f8be484] | 29 | for sound, printers, etc. will be needed.</para>
|
---|
| 30 |
|
---|
| 31 | <para>Also, try to avoid the use of modules if possible, and don't
|
---|
| 32 | use the resulting kernel image for production systems.</para>
|
---|
| 33 | </warning>
|
---|
| 34 |
|
---|
[bb952c5] | 35 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 36 | href="../../bootable/x86/kernel.xml"
|
---|
| 37 | xpointer="xpointer(//*[@os='p1'])"/>
|
---|
| 38 |
|
---|
| 39 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 40 | href="../../bootable/x86/kernel.xml"
|
---|
| 41 | xpointer="xpointer(//*[@os='p2'])"/>
|
---|
| 42 |
|
---|
[3f8be484] | 43 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 44 | href="../../bootable/x86/kernel.xml"
|
---|
| 45 | xpointer="xpointer(//*[@os='a'])"/>
|
---|
| 46 |
|
---|
| 47 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 48 | href="../../bootable/x86/kernel.xml"
|
---|
| 49 | xpointer="xpointer(//*[@os='b'])"/>
|
---|
| 50 |
|
---|
| 51 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 52 | href="../../bootable/x86/kernel.xml"
|
---|
| 53 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
| 54 |
|
---|
| 55 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 56 | href="../../bootable/x86/kernel.xml"
|
---|
| 57 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
| 58 |
|
---|
[6bb43b3] | 59 | <para os="ab">If your keyboard isn't an US one, you may want to build
|
---|
[3f8be484] | 60 | the proper keymap for your keyboard layout inside the kernel. Do it by
|
---|
| 61 | running the following command:</para>
|
---|
| 62 |
|
---|
| 63 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 64 | href="../../bootable/x86/kernel.xml"
|
---|
| 65 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
| 66 |
|
---|
| 67 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 68 | href="../../bootable/x86/kernel.xml"
|
---|
| 69 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
| 70 |
|
---|
| 71 | <para os="ae">Configure the kernel via a menu-driven interface:</para>
|
---|
| 72 |
|
---|
| 73 | <screen><userinput>make ARCH=i386 CROSS_COMPILE=${LFS_TARGET}- menuconfig</userinput></screen>
|
---|
| 74 |
|
---|
| 75 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 76 | href="../../bootable/x86/kernel.xml"
|
---|
| 77 | xpointer="xpointer(//*[@os='m'])"/>
|
---|
| 78 |
|
---|
| 79 | <screen><userinput>make ARCH=i386 CROSS_COMPILE=${LFS_TARGET}-</userinput></screen>
|
---|
| 80 |
|
---|
| 81 | <para os="af">If the use of kernel modules can't be avoided, an
|
---|
| 82 | <filename>${LFS}/etc/modprobe.conf</filename> file may be needed.
|
---|
| 83 | Information pertaining to modules and kernel configuration is
|
---|
| 84 | located in the kernel documentation in the <filename
|
---|
| 85 | class="directory">Documentation</filename> directory of the kernel
|
---|
| 86 | sources tree. The <filename>modprobe.conf</filename> man page may also
|
---|
| 87 | be of interest.</para>
|
---|
| 88 |
|
---|
| 89 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 90 | href="../../bootable/x86/kernel.xml"
|
---|
| 91 | xpointer="xpointer(//*[@os='p'])"/>
|
---|
| 92 |
|
---|
| 93 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 94 | href="../../bootable/x86/kernel.xml"
|
---|
| 95 | xpointer="xpointer(//*[@os='q'])"/>
|
---|
| 96 |
|
---|
| 97 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 98 | href="../../bootable/x86/kernel.xml"
|
---|
| 99 | xpointer="xpointer(//*[@os='s'])"/>
|
---|
| 100 |
|
---|
| 101 | <screen><userinput>make ARCH=i386 CROSS_COMPILE=${LFS_TARGET}- \
|
---|
| 102 | INSTALL_MOD_PATH=${LFS} modules_install</userinput></screen>
|
---|
| 103 |
|
---|
[1322a63] | 104 | <para os="u">After kernel compilation is complete, additional steps are
|
---|
| 105 | required to complete the installation. Some files need to be copied to
|
---|
| 106 | the <filename class="directory">${LFS}/boot</filename> directory.</para>
|
---|
[3f8be484] | 107 |
|
---|
| 108 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 109 | href="../../bootable/x86/kernel.xml"
|
---|
| 110 | xpointer="xpointer(//*[@os='v'])"/>
|
---|
| 111 |
|
---|
[eb55250] | 112 | <screen><userinput>cp -v arch/i386/boot/bzImage ${LFS}/boot/lfskernel-&linux-version;</userinput></screen>
|
---|
[3f8be484] | 113 |
|
---|
[83ff67c] | 114 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 115 | href="../../bootable/x86/kernel.xml"
|
---|
| 116 | xpointer="xpointer(//*[@os='w'])"/>
|
---|
| 117 |
|
---|
[eb55250] | 118 | <screen os="w1"><userinput>cp -v System.map ${LFS}/boot/System.map-&linux-version;</userinput></screen>
|
---|
[83ff67c] | 119 |
|
---|
[3f8be484] | 120 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 121 | href="../../bootable/x86/kernel.xml"
|
---|
| 122 | xpointer="xpointer(//*[@os='x'])"/>
|
---|
| 123 |
|
---|
[eb55250] | 124 | <screen os="x1"><userinput>cp -v .config ${LFS}/boot/config-&linux-version;</userinput></screen>
|
---|
[3f8be484] | 125 |
|
---|
| 126 | </sect2>
|
---|
| 127 |
|
---|
| 128 | <sect2 role="content">
|
---|
| 129 | <title/>
|
---|
| 130 |
|
---|
| 131 | <para>Details on this package are located in <xref
|
---|
| 132 | linkend="contents-kernel" role="."/></para>
|
---|
| 133 |
|
---|
| 134 | </sect2>
|
---|
| 135 |
|
---|
| 136 | </sect1>
|
---|