kernel.xml 1.1 KB

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