source: boot/x86/kernel.xml@ e2c319f

Last change on this file since e2c319f was bf8c11f, checked in by Jim Gifford <clfs@…>, 19 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 5.2 KB
Line 
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
18 <sect2 role="package">
19 <title/>
20
21 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
22 href="../../bootable/x86/kernel.xml"
23 xpointer="xpointer(//*[@role='package']/para[1])"/>
24
25 <segmentedlist>
26 <segtitle>&buildtime;</segtitle>
27 <segtitle>&diskspace;</segtitle>
28
29 <seglistitem>
30 <seg>Not checked yet</seg>
31 <seg>Not checked yet</seg>
32 </seglistitem>
33 </segmentedlist>
34
35 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
36 href="../../bootable/x86/kernel.xml"
37 xpointer="xpointer(//*[@role='package']/segmentedlist[2])"/>
38
39 </sect2>
40
41 <sect2 role="installation">
42 <title>Installation of the kernel</title>
43
44 <warning os="aa">
45 <para>Here a temporaly cross-compiled kernel will be builded. When
46 configuring it, select the minimal amount of options required to can
47 boot the target machine and build the final system. I.e., not support
48 for sound, printers, etc. will be needed.</para>
49
50 <para>Also, try to avoid the use of modules if possible, and don't
51 use the resulting kernel image for production systems.</para>
52 </warning>
53
54 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
55 href="../../bootable/x86/kernel.xml"
56 xpointer="xpointer(//*[@os='a'])"/>
57
58 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
59 href="../../bootable/x86/kernel.xml"
60 xpointer="xpointer(//*[@os='b'])"/>
61
62 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
63 href="../../bootable/x86/kernel.xml"
64 xpointer="xpointer(//*[@os='c'])"/>
65
66 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
67 href="../../bootable/x86/kernel.xml"
68 xpointer="xpointer(//*[@os='d'])"/>
69
70 <para os="ab">If your keyboard isn't an US one, you may whant to build
71 the proper keymap for your keyboard layout inside the kernel. Do it by
72 running the following command:</para>
73
74 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
75 href="../../bootable/x86/kernel.xml"
76 xpointer="xpointer(//*[@os='f'])"/>
77
78 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
79 href="../../bootable/x86/kernel.xml"
80 xpointer="xpointer(//*[@os='g'])"/>
81
82 <para os="ac">Also, ensure that the kernel does not attempt to pass
83 hotplugging events to userspace until userspace specifies that it is
84 ready:</para>
85
86<screen os="ad"><userinput>cp kernel/kmod.c{,.bak}
87sed 's@/sbin/hotplug@/bin/true@' kernel/kmod.c.bak > kernel/kmod.c</userinput></screen>
88
89 <para os="ae">Configure the kernel via a menu-driven interface:</para>
90
91<screen><userinput>make ARCH=i386 CROSS_COMPILE=${LFS_TARGET}- menuconfig</userinput></screen>
92
93 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
94 href="../../bootable/x86/kernel.xml"
95 xpointer="xpointer(//*[@os='l'])"/>
96
97 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
98 href="../../bootable/x86/kernel.xml"
99 xpointer="xpointer(//*[@os='m'])"/>
100
101<screen><userinput>make ARCH=i386 CROSS_COMPILE=${LFS_TARGET}-</userinput></screen>
102
103 <para os="af">If the use of kernel modules can't be avoided, an
104 <filename>${LFS}/etc/modprobe.conf</filename> file may be needed.
105 Information pertaining to modules and kernel configuration is
106 located in the kernel documentation in the <filename
107 class="directory">Documentation</filename> directory of the kernel
108 sources tree. The <filename>modprobe.conf</filename> man page may also
109 be of interest.</para>
110
111 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
112 href="../../bootable/x86/kernel.xml"
113 xpointer="xpointer(//*[@os='p'])"/>
114
115 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
116 href="../../bootable/x86/kernel.xml"
117 xpointer="xpointer(//*[@os='q'])"/>
118
119 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
120 href="../../bootable/x86/kernel.xml"
121 xpointer="xpointer(//*[@os='s'])"/>
122
123<screen><userinput>make ARCH=i386 CROSS_COMPILE=${LFS_TARGET}- \
124 INSTALL_MOD_PATH=${LFS} modules_install</userinput></screen>
125
126 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
127 href="../../bootable/x86/kernel.xml"
128 xpointer="xpointer(//*[@os='u'])"/>
129
130 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
131 href="../../bootable/x86/kernel.xml"
132 xpointer="xpointer(//*[@os='v'])"/>
133
134<screen><userinput>cp arch/i386/boot/bzImage ${LFS}/boot/lfskernel-&linux-x86-version;</userinput></screen>
135
136 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
137 href="../../bootable/x86/kernel.xml"
138 xpointer="xpointer(//*[@os='x'])"/>
139
140<screen><userinput>cp System.map ${LFS}/boot/System.map-&linux-x86-version;</userinput></screen>
141
142 </sect2>
143
144 <sect2 role="content">
145 <title/>
146
147 <para>Details on this package are located in <xref
148 linkend="contents-kernel" role="."/></para>
149
150 </sect2>
151
152</sect1>
Note: See TracBrowser for help on using the repository browser.