kernel-inst.xml 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. <sect2>
  2. <title>Installation of the Linux Kernel</title>
  3. <para>
  4. We won't be compiling a new kernel image yet. We'll do that after we
  5. have finished the installation of the basic system software in this
  6. chapter. But because certain software needs the kernel header files, we're
  7. going to unpack the kernel archive now and set it up so that we can
  8. compile the packages that need the kernel.
  9. </para>
  10. <para>
  11. The kernel configuration file is created by running the following command:
  12. </para>
  13. <para>
  14. <screen>
  15. <userinput>patch -Np1 -i ../linux-&kernel-version;.patch &amp;&amp;</userinput>
  16. <userinput>make mrproper &amp;&amp;</userinput>
  17. <userinput>yes "" | make config &amp;&amp;</userinput>
  18. <userinput>make dep &amp;&amp;</userinput>
  19. <userinput>cd $LFS/usr/include &amp;&amp;</userinput>
  20. <userinput>cp -a ../src/linux/include/linux . &amp;&amp;</userinput>
  21. <userinput>chown root.root $LFS/usr/include/linux -R &amp;&amp;</userinput>
  22. <userinput>mkdir asm &amp;&amp;</userinput>
  23. <userinput>cp -a ../src/linux/include/asm/* asm &amp;&amp;</userinput>
  24. <userinput>chown root.root $LFS/usr/include/asm -R</userinput>
  25. </screen>
  26. </para>
  27. </sect2>