kernel.xml 994 B

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