1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
4 | %general-entities;
|
---|
5 | ]>
|
---|
6 | <sect1 id="ch-bootable-kernel" xreflabel="Linux" role="wrap">
|
---|
7 | <title>Linux-&linux-version;</title>
|
---|
8 | <?dbhtml filename="kernel.html"?>
|
---|
9 |
|
---|
10 | <indexterm zone="ch-bootable-kernel"><primary sortas="a-Linux">Linux</primary></indexterm>
|
---|
11 |
|
---|
12 | <sect2 role="package"><title/>
|
---|
13 |
|
---|
14 | <segmentedlist>
|
---|
15 | <segtitle>&buildtime;</segtitle>
|
---|
16 | <segtitle>&diskspace;</segtitle>
|
---|
17 | <seglistitem><seg>All default options: 4.20 SBU</seg>
|
---|
18 | <seg>All default options: 181 MB</seg></seglistitem>
|
---|
19 | </segmentedlist>
|
---|
20 |
|
---|
21 | </sect2>
|
---|
22 |
|
---|
23 | <sect2 role="installation">
|
---|
24 | <title>Installation of the kernel</title>
|
---|
25 |
|
---|
26 | <para>Prepare for compilation by running the following command:</para>
|
---|
27 |
|
---|
28 | <screen><userinput>make mrproper</userinput></screen>
|
---|
29 |
|
---|
30 | <para>Also, ensure that the kernel does not attempt to pass hotplugging events
|
---|
31 | to userspace until userspace specifies that it is ready:</para>
|
---|
32 |
|
---|
33 | <screen><userinput>sed -i 's@/sbin/hotplug@/bin/true@' kernel/kmod.c</userinput></screen>
|
---|
34 |
|
---|
35 | <para>If, in <xref linkend="ch-scripts-console"/>, you decided you want
|
---|
36 | to compile the keymap into the kernel, issue the command below:</para>
|
---|
37 |
|
---|
38 | <screen><userinput>loadkeys -m /usr/share/kbd/keymaps/<replaceable>[path to keymap]</replaceable> > \
|
---|
39 | <replaceable>[unpacked sources dir]</replaceable>/linux-&linux-version;/drivers/char/defkeymap.c</userinput></screen>
|
---|
40 |
|
---|
41 | <para>Configure the kernel via a menu-driven interface:</para>
|
---|
42 |
|
---|
43 | <screen><userinput>make menuconfig</userinput></screen>
|
---|
44 |
|
---|
45 | <para>Compile the kernel image and modules:</para>
|
---|
46 |
|
---|
47 | <screen><userinput>make</userinput></screen>
|
---|
48 |
|
---|
49 | <para>Install the modules, if your kernel configuration uses them:</para>
|
---|
50 |
|
---|
51 | <screen><userinput>make modules_install</userinput></screen>
|
---|
52 |
|
---|
53 | <para>The path to the kernel image may vary depending on the platform you're
|
---|
54 | using. Issue the following command to install the kernel:</para>
|
---|
55 |
|
---|
56 | <screen><userinput>cp arch/i386/boot/bzImage /boot/lfskernel-&linux-version;</userinput></screen>
|
---|
57 |
|
---|
58 | <screen><userinput>cp System.map /boot/System.map-&linux-version;</userinput></screen>
|
---|
59 |
|
---|
60 | <screen><userinput>cp .config /boot/config-&linux-version;</userinput></screen>
|
---|
61 |
|
---|
62 | <para>If you are going to keep the kernel source tree around, you may want to
|
---|
63 | run <command>chown -R 0:0</command> on the
|
---|
64 | <filename class="directory">linux-&linux-version;</filename> directory to ensure all files are
|
---|
65 | owned by user <emphasis>root</emphasis>.</para>
|
---|
66 |
|
---|
67 | </sect2>
|
---|
68 |
|
---|
69 |
|
---|
70 | <sect2 id="contents-kernel" role="content"><title>Contents of Linux</title>
|
---|
71 |
|
---|
72 | <para>See testing</para>
|
---|
73 |
|
---|
74 | </sect2>
|
---|
75 |
|
---|
76 | </sect1>
|
---|