kernel-inst.sgml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <sect2>
  2. <title>Installation of 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 need the kernel header files, we're
  7. going to unpack the kernel archive now and set it up so that we can
  8. compile package that need the kernel.
  9. </para>
  10. <para>
  11. Create the kernel configuration file by running the following command:
  12. </para>
  13. <blockquote><literallayout>
  14. <userinput>yes "" | make config</userinput>
  15. </literallayout></blockquote>
  16. <para>
  17. Ignore the warning <emphasis>Broken pipe</emphasis> you might see at the
  18. end. Now run the following commands to set up all the dependencies correctly:
  19. </para>
  20. <blockquote><literallayout>
  21. <userinput>make dep</userinput>
  22. </literallayout></blockquote>
  23. <para>
  24. Now that that's done, we need to create the <filename class="symlink">
  25. $LFS/usr/include/linux</filename> and the <filename class="symlink">
  26. $LFS/usr/include/asm</filename> symlinks. Create them by running the
  27. following commands:
  28. </para>
  29. <blockquote><literallayout>
  30. <userinput>cd $LFS/usr/include &amp;&amp;</userinput>
  31. <userinput>ln -s ../src/linux/include/linux linux &amp;&amp;</userinput>
  32. <userinput>ln -s ../src/linux/include/asm asm</userinput>
  33. </literallayout></blockquote>
  34. </sect2>