kernel.xml 1.0 KB

123456789101112131415161718192021222324252627282930
  1. <sect1 id="ch08-kernel">
  2. <title>Installing a kernel</title>
  3. <para>
  4. Building the kernel involves a few steps: configuring it and compiling
  5. it. There are a few ways to configure the kernel. If you don't like the
  6. way this book does it, read the <filename>README</filename> that comes
  7. with the kernel source tree, and find out what the options are. The
  8. following commands are run to build the kernel:
  9. </para>
  10. <blockquote><literallayout>
  11. <userinput>cd /usr/src/linux &amp;&amp;</userinput>
  12. <userinput>make mrproper &amp;&amp;</userinput>
  13. <userinput>make menuconfig &amp;&amp;</userinput>
  14. <userinput>make dep &amp;&amp;</userinput>
  15. <userinput>make bzImage &amp;&amp;</userinput>
  16. <userinput>make modules &amp;&amp;</userinput>
  17. <userinput>make modules_install &amp;&amp;</userinput>
  18. <userinput>cp arch/i386/boot/bzImage /boot/lfskernel &amp;&amp;
  19. </userinput>
  20. <userinput>cp System.map /boot</userinput>
  21. </literallayout></blockquote>
  22. <para>
  23. Note: the arch/i386/boot/bzImage path may vary on different platforms.
  24. </para>
  25. </sect1>