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="ch-boot-kernel" role="wrap">
|
---|
9 | <?dbhtml filename="kernel.html"?>
|
---|
10 |
|
---|
11 | <title>Linux-&linux-version;</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-boot-kernel">
|
---|
14 | <primary sortas="a-Linux">Linux</primary>
|
---|
15 | <secondary>boot</secondary>
|
---|
16 | </indexterm>
|
---|
17 |
|
---|
18 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
19 | href="../../bootable/x86/kernel.xml"
|
---|
20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
21 |
|
---|
22 | <sect2 role="installation">
|
---|
23 | <title>Installation of the kernel</title>
|
---|
24 |
|
---|
25 | <warning os="aa">
|
---|
26 | <para>Here a temporary cross-compiled kernel will be built. When
|
---|
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
|
---|
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/2001/XInclude"
|
---|
36 | href="../../bootable/x86/kernel.xml"
|
---|
37 | xpointer="xpointer(//*[@os='a'])"/>
|
---|
38 |
|
---|
39 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
40 | href="../../bootable/x86/kernel.xml"
|
---|
41 | xpointer="xpointer(//*[@os='b'])"/>
|
---|
42 |
|
---|
43 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
44 | href="../../bootable/x86/kernel.xml"
|
---|
45 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
46 |
|
---|
47 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
48 | href="../../bootable/x86/kernel.xml"
|
---|
49 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
50 |
|
---|
51 | <note os="kc"><para>A good starting place for setting up the kernel
|
---|
52 | configuration is to run <command>make defconfig</command>. This will set the base configuration to a good state that takes your current system
|
---|
53 | architecture into account.</para>
|
---|
54 |
|
---|
55 | <para>Be sure to enable or disable following features or the system might
|
---|
56 | not work correctly or boot at all:</para>
|
---|
57 |
|
---|
58 | <screen role="nodump">Device Drivers --->
|
---|
59 | Generic Driver Options --->
|
---|
60 | () path to uevent helper
|
---|
61 | [*] Maintain a devtmpfs filesystem to mount at /dev
|
---|
62 | [ ] Fallback user-helper invocation for firmware loading</screen></note>
|
---|
63 |
|
---|
64 | <para os="ae">Configure the kernel via a menu-driven interface:</para>
|
---|
65 |
|
---|
66 | <screen><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen>
|
---|
67 |
|
---|
68 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
69 | href="../../bootable/x86/kernel.xml"
|
---|
70 | xpointer="xpointer(//*[@os='m'])"/>
|
---|
71 |
|
---|
72 | <screen><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen>
|
---|
73 |
|
---|
74 | <para os="af">If the use of kernel modules can't be avoided, an
|
---|
75 | <filename>/etc/modprobe.conf</filename> file may be needed.
|
---|
76 | Information pertaining to modules and kernel configuration is
|
---|
77 | located in the kernel documentation in the <filename
|
---|
78 | class="directory">Documentation</filename> directory of the kernel
|
---|
79 | sources tree. The <filename>modprobe.conf</filename> man page may also
|
---|
80 | be of interest.</para>
|
---|
81 |
|
---|
82 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
83 | href="../../bootable/x86/kernel.xml"
|
---|
84 | xpointer="xpointer(//*[@os='s'])"/>
|
---|
85 |
|
---|
86 | <screen><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- \
|
---|
87 | INSTALL_MOD_PATH=/tools modules_install</userinput></screen>
|
---|
88 |
|
---|
89 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
90 | href="../../bootable/x86/kernel.xml"
|
---|
91 | xpointer="xpointer(//*[@os='s2'])"/>
|
---|
92 |
|
---|
93 | <screen><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- \
|
---|
94 | INSTALL_MOD_PATH=/tools firmware_install</userinput></screen>
|
---|
95 |
|
---|
96 | <para os="u">After kernel compilation is complete, additional steps are
|
---|
97 | required to complete the installation. Some files need to be copied to
|
---|
98 | the <filename class="directory">/tools/boot</filename> directory.</para>
|
---|
99 |
|
---|
100 | <para os="v">Issue the following commands to install the kernel:</para>
|
---|
101 |
|
---|
102 | <screen><userinput>mkdir -pv /tools/boot
|
---|
103 | cp -v arch/i386/boot/bzImage /tools/boot/vmlinuz-clfs-&linux-version;</userinput></screen>
|
---|
104 |
|
---|
105 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
106 | href="../../bootable/x86/kernel.xml"
|
---|
107 | xpointer="xpointer(//*[@os='w'])"/>
|
---|
108 |
|
---|
109 | <screen os="w1"><userinput>cp -v System.map /tools/boot/System.map-&linux-version;</userinput></screen>
|
---|
110 |
|
---|
111 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
112 | href="../../bootable/x86/kernel.xml"
|
---|
113 | xpointer="xpointer(//*[@os='x'])"/>
|
---|
114 |
|
---|
115 | <screen os="x1"><userinput>cp -v .config /tools/boot/config-&linux-version;</userinput></screen>
|
---|
116 |
|
---|
117 | </sect2>
|
---|
118 |
|
---|
119 | <sect2 role="content">
|
---|
120 | <title/>
|
---|
121 |
|
---|
122 | <para>Details on this package are located in <xref
|
---|
123 | linkend="contents-kernel" role="."/></para>
|
---|
124 |
|
---|
125 | </sect2>
|
---|
126 |
|
---|
127 | </sect1>
|
---|