source: boot/x86/kernel.xml@ 9162387

Last change on this file since 9162387 was 24e96cc, checked in by Chris Staub <chris@…>, 18 years ago

Updated commands for building keymap into the kernel

  • Property mode set to 100644
File size: 4.8 KB
RevLine 
[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
[3ae6751]11 <title>Linux-&linux-version;</title>
[bf8c11f]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">
[f32f537]26 <para>Here a temporary cross-compiled kernel will be built. When
[cbfa0a3]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
[bf8c11f]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
[24e96cc]51 <para os="ab">If your keyboard isn't a US one and you have Kbd installed
52 on your host system, you can build the proper keymap for your keyboard
53 layout inside the kernel. If you wish to do this, run the following
54 command (replace [path to keymap] with the keymap location on the host -
55 a common location is in /usr/share/kbd):</para>
56
57<screen os="f"><userinput>loadkeys -m <replaceable>[path to keymap]</replaceable> &gt; \
58 drivers/char/defkeymap.c</userinput></screen>
[bf8c11f]59
60 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
61 href="../../bootable/x86/kernel.xml"
62 xpointer="xpointer(//*[@os='g'])"/>
63
64 <para os="ae">Configure the kernel via a menu-driven interface:</para>
65
[9cb6b64]66<screen><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen>
[bf8c11f]67
68 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
69 href="../../bootable/x86/kernel.xml"
70 xpointer="xpointer(//*[@os='m'])"/>
71
[9cb6b64]72<screen><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen>
[bf8c11f]73
74 <para os="af">If the use of kernel modules can't be avoided, an
[a6bba28d]75 <filename>/etc/modprobe.conf</filename> file may be needed.
[bf8c11f]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/2003/XInclude"
83 href="../../bootable/x86/kernel.xml"
84 xpointer="xpointer(//*[@os='p'])"/>
85
86 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
87 href="../../bootable/x86/kernel.xml"
88 xpointer="xpointer(//*[@os='q'])"/>
89
90 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
91 href="../../bootable/x86/kernel.xml"
92 xpointer="xpointer(//*[@os='s'])"/>
93
[9cb6b64]94<screen><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- \
[f1fd69a]95 INSTALL_MOD_PATH=${CLFS} modules_install</userinput></screen>
[bf8c11f]96
[8c50f0e]97 <para os="u">After kernel compilation is complete, additional steps are
98 required to complete the installation. Some files need to be copied to
[f1fd69a]99 the <filename class="directory">${CLFS}/boot</filename> directory.</para>
[bf8c11f]100
101 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
102 href="../../bootable/x86/kernel.xml"
103 xpointer="xpointer(//*[@os='v'])"/>
104
[f1fd69a]105<screen><userinput>cp -v arch/i386/boot/bzImage ${CLFS}/boot/clfskernel-&linux-version;</userinput></screen>
[bf8c11f]106
[0993dfa]107 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
108 href="../../bootable/x86/kernel.xml"
109 xpointer="xpointer(//*[@os='w'])"/>
110
[f1fd69a]111<screen os="w1"><userinput>cp -v System.map ${CLFS}/boot/System.map-&linux-version;</userinput></screen>
[0993dfa]112
[bf8c11f]113 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
114 href="../../bootable/x86/kernel.xml"
115 xpointer="xpointer(//*[@os='x'])"/>
116
[f1fd69a]117<screen os="x1"><userinput>cp -v .config ${CLFS}/boot/config-&linux-version;</userinput></screen>
[bf8c11f]118
119 </sect2>
120
121 <sect2 role="content">
122 <title/>
123
124 <para>Details on this package are located in <xref
125 linkend="contents-kernel" role="."/></para>
126
127 </sect2>
128
129</sect1>
Note: See TracBrowser for help on using the repository browser.