| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 | <?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;]><sect1 id="ch-bootable-kernel" xreflabel="Linux" role="wrap"><title>Linux-&linux-version;</title><?dbhtml filename="kernel.html"?><indexterm zone="ch-bootable-kernel"><primary sortas="a-Linux">Linux</primary></indexterm><sect2 role="package"><title/><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"><title>Installation of the kernel</title><para>Prepare for compilation by running the following command:</para><screen><userinput>make mrproper</userinput></screen><para>Also, ensure that the kernel does not attempt to pass hotplugging eventsto userspace until userspace specifies that it is ready:</para><screen><userinput>sed -i 's@/sbin/hotplug@/bin/true@' kernel/kmod.c</userinput></screen><para>If, in <xref linkend="ch-scripts-console"/>, you decided you wantto compile the keymap into the kernel, issue the command below:</para><screen><userinput>loadkeys -m /usr/share/kbd/keymaps/<replaceable>[path to  keymap]</replaceable> > \    <replaceable>[unpacked sources dir]</replaceable>/linux-&linux-version;/drivers/char/defkeymap.c</userinput></screen><para>Configure the kernel via a menu-driven interface:</para><screen><userinput>make menuconfig</userinput></screen><para>Compile the kernel image and modules:</para><screen><userinput>make</userinput></screen><para>Install the modules, if your kernel configuration uses them:</para><screen><userinput>make modules_install</userinput></screen><para>The path to the kernel image may vary depending on the platform you'reusing. Issue the following command to install the kernel:</para><screen><userinput>cp arch/i386/boot/bzImage /boot/lfskernel-&linux-version;</userinput></screen><screen><userinput>cp System.map /boot/System.map-&linux-version;</userinput></screen><screen><userinput>cp .config /boot/config-&linux-version;</userinput></screen><para>If you are going to keep the kernel source tree around, you may want torun <command>chown -R 0:0</command> on the<filename class="directory">linux-&linux-version;</filename> directory to ensure all files areowned by user <emphasis>root</emphasis>.</para></sect2><sect2 id="contents-kernel" role="content"><title>Contents of Linux</title><para>See testing</para></sect2></sect1>
 |