diff options
Diffstat (limited to 'chapter08/kernel.xml')
-rw-r--r-- | chapter08/kernel.xml | 36 |
1 files changed, 12 insertions, 24 deletions
diff --git a/chapter08/kernel.xml b/chapter08/kernel.xml index 5ad76a1a4..84f772804 100644 --- a/chapter08/kernel.xml +++ b/chapter08/kernel.xml @@ -56,45 +56,33 @@ scratch.</para> <quote>Virtual memory file system support</quote> is enabled. It resides within the <quote>File systems</quote> menu and is normally enabled by default.</para> -<para>Verify dependencies and create dependency information files:</para> +<note><para>NPTL requires the kernel to be compiled with GCC 3.x, in this case +&gcc-version;. Compiling with 2.95.x is known to cause failures in the glibc +testsuite, so do <emphasis>not</emphasis> compile the kernel with gcc 2.95.x +unless you know what you're getting yourself into.</para></note> -<screen><userinput>make CC=/opt/gcc-2.95.3/bin/gcc dep</userinput></screen> +<para>Compile the kernel image and modules:</para> -<para>Compile the kernel image:</para> - -<screen><userinput>make CC=/opt/gcc-2.95.3/bin/gcc bzImage</userinput></screen> - -<para>Compile the drivers which have been configured as modules:</para> - -<screen><userinput>make CC=/opt/gcc-2.95.3/bin/gcc modules</userinput></screen> +<screen><userinput>make</userinput></screen> <para>If you intend to use kernel modules, you will need an -<filename>/etc/modules.conf</filename> file. Information pertaining +<filename>/etc/modprobe.conf</filename> file. Information pertaining to modules and to kernel configuration in general may be found in the kernel documentation, which is found in the -<filename>linux-2.4.25/Documentation</filename> directory. The +<filename>linux-&linux-version;/Documentation</filename> directory. The modules.conf man page and the kernel HOWTO at <ulink url="http://www.tldp.org/HOWTO/Kernel-HOWTO.html"/> may also be of interest to you.</para> <para>Install the modules:</para> -<screen><userinput>make CC=/opt/gcc-2.95.3/bin/gcc modules_install</userinput></screen> +<screen><userinput>make modules_install</userinput></screen> <para>If you have a lot of modules and very little space, you may want to consider stripping and compressing the modules. For most people such compression isn't worth the trouble, but if you're really pressed for space, then have a look at <ulink url="http://www.linux-mips.org/archives/linux-mips/2002-04/msg00031.html"/>.</para> -<para>As nothing is complete without documentation, build the manual pages -that come with the kernel:</para> - -<screen><userinput>make mandocs</userinput></screen> - -<para>And install these pages:</para> - -<screen><userinput>cp -a Documentation/man /usr/share/man/man9</userinput></screen> - <para>Kernel compilation has finished but more steps are required to complete the installation. Some files need to be copied to the <filename>/boot</filename> directory.</para> @@ -102,21 +90,21 @@ directory.</para> <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> -<screen><userinput>cp arch/i386/boot/bzImage /boot/lfskernel</userinput></screen> +<screen><userinput>cp arch/i386/boot/bzImage /boot/lfskernel-&linux-version;</userinput></screen> <para><filename>System.map</filename> is a symbol file for the kernel. It maps the function entry points of every function in the kernel API (Application Programming Interface), as well as the addresses of the kernel data structures for the running kernel. Issue the following command to install the map file:</para> -<screen><userinput>cp System.map /boot</userinput></screen> +<screen><userinput>cp System.map /boot/System.map-&linux-version;</userinput></screen> <para><filename>.config</filename> is the kernel configuration file that was produced by the <command>make menuconfig</command> step above. It contains all the config selections for the kernel that was just compiled. It's a good idea to keep this file for future reference:</para> -<screen><userinput>cp .config /boot/config-lfskernel</userinput></screen> +<screen><userinput>cp .config /boot/config-&linux-version;</userinput></screen> <para>It is important to note that the files in the kernel source directory are not owned by <emphasis>root</emphasis>. Whenever you unpack a package as user |