source: BOOK/boot/x86/kernel.xml@ ff42218

systemd
Last change on this file since ff42218 was 7cd7f99, checked in by Chris Staub <chris@…>, 9 years ago

Put one configure option per line

  • Property mode set to 100644
File size: 5.1 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]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
[119d004]11 <title>Linux-&linux-version2;</title>
[3f8be484]12
13 <indexterm zone="ch-boot-kernel">
14 <primary sortas="a-Linux">Linux</primary>
15 <secondary>boot</secondary>
16 </indexterm>
17
[dabbced]18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[93adf44a]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
[dabbced]35 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3f8be484]36 href="../../bootable/x86/kernel.xml"
37 xpointer="xpointer(//*[@os='a'])"/>
38
[e92e63a]39 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
40 href="../../bootable/x86/kernel.xml"
41 xpointer="xpointer(//*[@os='p1'])"/>
42
43 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
44 href="../../bootable/x86/kernel.xml"
45 xpointer="xpointer(//*[@os='p2'])"/>
46
[dabbced]47 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3f8be484]48 href="../../bootable/x86/kernel.xml"
49 xpointer="xpointer(//*[@os='b'])"/>
50
[dabbced]51 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3f8be484]52 href="../../bootable/x86/kernel.xml"
53 xpointer="xpointer(//*[@os='c'])"/>
54
[dabbced]55 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3f8be484]56 href="../../bootable/x86/kernel.xml"
57 xpointer="xpointer(//*[@os='d'])"/>
58
[fe422de]59 <note os="kc"><para>A good starting place for setting up the kernel
60 configuration is to run <command>make defconfig</command>. This will set the base configuration to a good state that takes your current system
61 architecture into account.</para>
62
[7126faa]63 <para>Be sure to configure the following options as
64 shown, or the system might not work correctly or boot at all.</para>
[fe422de]65
[7cd7f99]66<screen role="nodump">Device Drivers ---&gt;
[fe422de]67 Generic Driver Options ---&gt;
[fe5e5a6]68 () path to uevent helper (CONFIG_UEVENT_HELPER_PATH)
69 [*] Maintain a devtmpfs filesystem to mount at /dev (CONFIG_DEVTMPFS)
70 [ ] Fallback user-helper invocation for firmware loading (CONFIG_FW_LOADER_USER_HELPER)</screen></note>
[fe422de]71
[3f8be484]72 <para os="ae">Configure the kernel via a menu-driven interface:</para>
73
[07114c98]74<screen><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- menuconfig</userinput></screen>
[3f8be484]75
[dabbced]76 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3f8be484]77 href="../../bootable/x86/kernel.xml"
78 xpointer="xpointer(//*[@os='m'])"/>
79
[07114c98]80<screen><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}-</userinput></screen>
[3f8be484]81
[a6d01ee]82 <para os="af">If the use of kernel modules can't be avoided, a file in
83 <filename class="directory">/etc/modprobe.d</filename> may be needed.
[3f8be484]84 Information pertaining to modules and kernel configuration is
85 located in the kernel documentation in the <filename
86 class="directory">Documentation</filename> directory of the kernel
[a6d01ee]87 sources tree. The <filename>modprobe.d</filename> man page may also
[3f8be484]88 be of interest.</para>
89
[dabbced]90 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3f8be484]91 href="../../bootable/x86/kernel.xml"
92 xpointer="xpointer(//*[@os='s'])"/>
93
[07114c98]94<screen><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- \
[d2ecc65]95 INSTALL_MOD_PATH=/tools modules_install</userinput></screen>
[3f8be484]96
[e43babc]97 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[1d9abb9]98 href="../../bootable/x86/kernel.xml"
[e43babc]99 xpointer="xpointer(//*[@os='s2'])"/>
100
101<screen><userinput>make ARCH=i386 CROSS_COMPILE=${CLFS_TARGET}- \
[a988b8e]102 INSTALL_MOD_PATH=/tools firmware_install</userinput></screen>
[e43babc]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
[d2ecc65]106 the <filename class="directory">/tools/boot</filename> directory.</para>
[3f8be484]107
[d2ecc65]108 <para os="v">Issue the following commands to install the kernel:</para>
[3f8be484]109
[46974b0]110<screen><userinput>mkdir -pv /tools/boot
[7f8996d]111cp -v arch/i386/boot/bzImage /tools/boot/vmlinuz-clfs-&linux-version2;</userinput></screen>
[3f8be484]112
[dabbced]113 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[83ff67c]114 href="../../bootable/x86/kernel.xml"
115 xpointer="xpointer(//*[@os='w'])"/>
116
[7f8996d]117<screen os="w1"><userinput>cp -v System.map /tools/boot/System.map-&linux-version2;</userinput></screen>
[83ff67c]118
[dabbced]119 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[3f8be484]120 href="../../bootable/x86/kernel.xml"
121 xpointer="xpointer(//*[@os='x'])"/>
122
[7f8996d]123<screen os="x1"><userinput>cp -v .config /tools/boot/config-&linux-version2;</userinput></screen>
[3f8be484]124
125 </sect2>
126
127 <sect2 role="content">
128 <title/>
129
130 <para>Details on this package are located in <xref
131 linkend="contents-kernel" role="."/></para>
132
133 </sect2>
134
135</sect1>
Note: See TracBrowser for help on using the repository browser.