kernel.xml 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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 a user doesn't like the
  11. way this book does it, he should read the <filename>README</filename>
  12. file and find out
  13. what the other options are. The following commands are run to build the
  14. kernel:
  15. </para>
  16. <blockquote><literallayout>
  17. <userinput>cd /usr/src/linux &amp;&amp;</userinput>
  18. <userinput>make mrproper &amp;&amp;</userinput>
  19. <userinput>make menuconfig &amp;&amp;</userinput>
  20. <userinput>make dep &amp;&amp;</userinput>
  21. <userinput>make bzImage &amp;&amp;</userinput>
  22. <userinput>make modules &amp;&amp;</userinput>
  23. <userinput>make modules_install &amp;&amp;</userinput>
  24. <userinput>cp arch/i386/boot/bzImage /boot/lfskernel &amp;&amp;
  25. </userinput>
  26. <userinput>cp System.map /boot</userinput>
  27. </literallayout></blockquote>
  28. </sect1>