| [bf8c11f] | 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 |  | 
|---|
|  | 11 | <title>Linux-&linux-x86-version;</title> | 
|---|
|  | 12 |  | 
|---|
|  | 13 | <indexterm zone="ch-boot-kernel"> | 
|---|
|  | 14 | <primary sortas="a-Linux">Linux</primary> | 
|---|
|  | 15 | <secondary>boot</secondary> | 
|---|
|  | 16 | </indexterm> | 
|---|
|  | 17 |  | 
|---|
| [c4b671e] | 18 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 19 | href="../../bootable/x86/kernel.xml" | 
|---|
|  | 20 | xpointer="xpointer(//*[@role='package'])"/> | 
|---|
| [bf8c11f] | 21 |  | 
|---|
|  | 22 | <sect2 role="installation"> | 
|---|
|  | 23 | <title>Installation of the kernel</title> | 
|---|
|  | 24 |  | 
|---|
|  | 25 | <warning os="aa"> | 
|---|
|  | 26 | <para>Here a temporaly cross-compiled kernel will be builded. When | 
|---|
|  | 27 | configuring it, select the minimal amount of options required to can | 
|---|
|  | 28 | boot the target machine and build the final system. I.e., not support | 
|---|
|  | 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 |  | 
|---|
|  | 35 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 36 | href="../../bootable/x86/kernel.xml" | 
|---|
|  | 37 | xpointer="xpointer(//*[@os='a'])"/> | 
|---|
|  | 38 |  | 
|---|
|  | 39 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 40 | href="../../bootable/x86/kernel.xml" | 
|---|
|  | 41 | xpointer="xpointer(//*[@os='b'])"/> | 
|---|
|  | 42 |  | 
|---|
|  | 43 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 44 | href="../../bootable/x86/kernel.xml" | 
|---|
|  | 45 | xpointer="xpointer(//*[@os='c'])"/> | 
|---|
|  | 46 |  | 
|---|
|  | 47 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 48 | href="../../bootable/x86/kernel.xml" | 
|---|
|  | 49 | xpointer="xpointer(//*[@os='d'])"/> | 
|---|
|  | 50 |  | 
|---|
|  | 51 | <para os="ab">If your keyboard isn't an US one, you may whant to build | 
|---|
|  | 52 | the proper keymap for your keyboard layout inside the kernel. Do it by | 
|---|
|  | 53 | running the following command:</para> | 
|---|
|  | 54 |  | 
|---|
|  | 55 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 56 | href="../../bootable/x86/kernel.xml" | 
|---|
|  | 57 | xpointer="xpointer(//*[@os='f'])"/> | 
|---|
|  | 58 |  | 
|---|
|  | 59 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 60 | href="../../bootable/x86/kernel.xml" | 
|---|
|  | 61 | xpointer="xpointer(//*[@os='g'])"/> | 
|---|
|  | 62 |  | 
|---|
|  | 63 | <para os="ac">Also, ensure that the kernel does not attempt to pass | 
|---|
|  | 64 | hotplugging events to userspace until userspace specifies that it is | 
|---|
|  | 65 | ready:</para> | 
|---|
|  | 66 |  | 
|---|
|  | 67 | <screen os="ad"><userinput>cp kernel/kmod.c{,.bak} | 
|---|
|  | 68 | sed 's@/sbin/hotplug@/bin/true@' kernel/kmod.c.bak > kernel/kmod.c</userinput></screen> | 
|---|
|  | 69 |  | 
|---|
|  | 70 | <para os="ae">Configure the kernel via a menu-driven interface:</para> | 
|---|
|  | 71 |  | 
|---|
|  | 72 | <screen><userinput>make ARCH=i386 CROSS_COMPILE=${LFS_TARGET}- menuconfig</userinput></screen> | 
|---|
|  | 73 |  | 
|---|
|  | 74 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 75 | href="../../bootable/x86/kernel.xml" | 
|---|
|  | 76 | xpointer="xpointer(//*[@os='l'])"/> | 
|---|
|  | 77 |  | 
|---|
|  | 78 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 79 | href="../../bootable/x86/kernel.xml" | 
|---|
|  | 80 | xpointer="xpointer(//*[@os='m'])"/> | 
|---|
|  | 81 |  | 
|---|
|  | 82 | <screen><userinput>make ARCH=i386 CROSS_COMPILE=${LFS_TARGET}-</userinput></screen> | 
|---|
|  | 83 |  | 
|---|
|  | 84 | <para os="af">If the use of kernel modules can't be avoided, an | 
|---|
|  | 85 | <filename>${LFS}/etc/modprobe.conf</filename> file may be needed. | 
|---|
|  | 86 | Information pertaining to modules and kernel configuration is | 
|---|
|  | 87 | located in the kernel documentation in the <filename | 
|---|
|  | 88 | class="directory">Documentation</filename> directory of the kernel | 
|---|
|  | 89 | sources tree. The <filename>modprobe.conf</filename> man page may also | 
|---|
|  | 90 | be of interest.</para> | 
|---|
|  | 91 |  | 
|---|
|  | 92 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 93 | href="../../bootable/x86/kernel.xml" | 
|---|
|  | 94 | xpointer="xpointer(//*[@os='p'])"/> | 
|---|
|  | 95 |  | 
|---|
|  | 96 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 97 | href="../../bootable/x86/kernel.xml" | 
|---|
|  | 98 | xpointer="xpointer(//*[@os='q'])"/> | 
|---|
|  | 99 |  | 
|---|
|  | 100 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 101 | href="../../bootable/x86/kernel.xml" | 
|---|
|  | 102 | xpointer="xpointer(//*[@os='s'])"/> | 
|---|
|  | 103 |  | 
|---|
|  | 104 | <screen><userinput>make ARCH=i386 CROSS_COMPILE=${LFS_TARGET}- \ | 
|---|
|  | 105 | INSTALL_MOD_PATH=${LFS} modules_install</userinput></screen> | 
|---|
|  | 106 |  | 
|---|
|  | 107 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 108 | href="../../bootable/x86/kernel.xml" | 
|---|
|  | 109 | xpointer="xpointer(//*[@os='u'])"/> | 
|---|
|  | 110 |  | 
|---|
|  | 111 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 112 | href="../../bootable/x86/kernel.xml" | 
|---|
|  | 113 | xpointer="xpointer(//*[@os='v'])"/> | 
|---|
|  | 114 |  | 
|---|
|  | 115 | <screen><userinput>cp arch/i386/boot/bzImage ${LFS}/boot/lfskernel-&linux-x86-version;</userinput></screen> | 
|---|
|  | 116 |  | 
|---|
|  | 117 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" | 
|---|
|  | 118 | href="../../bootable/x86/kernel.xml" | 
|---|
|  | 119 | xpointer="xpointer(//*[@os='x'])"/> | 
|---|
|  | 120 |  | 
|---|
|  | 121 | <screen><userinput>cp System.map ${LFS}/boot/System.map-&linux-x86-version;</userinput></screen> | 
|---|
|  | 122 |  | 
|---|
|  | 123 | </sect2> | 
|---|
|  | 124 |  | 
|---|
|  | 125 | <sect2 role="content"> | 
|---|
|  | 126 | <title/> | 
|---|
|  | 127 |  | 
|---|
|  | 128 | <para>Details on this package are located in <xref | 
|---|
|  | 129 | linkend="contents-kernel" role="."/></para> | 
|---|
|  | 130 |  | 
|---|
|  | 131 | </sect2> | 
|---|
|  | 132 |  | 
|---|
|  | 133 | </sect1> | 
|---|