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