kernel.xml 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. <sect1 id="ch08-kernel">
  2. <title>Installing a kernel</title>
  3. <para>
  4. A kernel is the heart of a Linux system. We could use the kernel image
  5. from our normal system, but we might as well compile a new kernel from
  6. the most recent kernel sources available.
  7. </para>
  8. <para>
  9. Building the kernel involves a few steps: configuring it and compiling
  10. it. There are a few ways to configure the kernel. If you don't like the
  11. way this book does it, read the <filename>README</filename> file and find out
  12. what your other options are. Run the following commands to build the
  13. kernel:
  14. </para>
  15. <blockquote><literallayout>
  16. <userinput>cd /usr/src/linux &amp;&amp;</userinput>
  17. <userinput>make mrproper &amp;&amp;</userinput>
  18. <userinput>make menuconfig &amp;&amp;</userinput>
  19. <userinput>make dep &amp;&amp;</userinput>
  20. <userinput>make bzImage &amp;&amp;</userinput>
  21. <userinput>make modules &amp;&amp;</userinput>
  22. <userinput>make modules_install &amp;&amp;</userinput>
  23. <userinput>cp arch/i386/boot/bzImage /boot/lfskernel &amp;&amp;
  24. </userinput>
  25. <userinput>cp System.map /boot</userinput>
  26. </literallayout></blockquote>
  27. </sect1>