summaryrefslogtreecommitdiffstats
path: root/book/essential.html
blob: 7f6af077c2ec149cbdcc3a63bc80b0b9b034a20d (plain)
1
2
3
4
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /><title>3.1.�Reconfiguring the Kernel</title><link rel="stylesheet" href="stylesheets/lfs.css" type="text/css" /><meta name="generator" content="DocBook XSL Stylesheets V1.73.2" /><link rel="stylesheet" href="stylesheets/lfs-print.css" type="text/css" media="print" /></head><body class="lfs" id="lfs-0.3"><div class="navheader"><h4>LFS live howto - Version 0.3</h4><h3>Chapter�3.�Essential step</h3><ul><li class="prev"><a accesskey="p" href="ch03.html" title="Essential step">Prev</a><p>Essential step</p></li><li class="next"><a accesskey="n" href="pt04.html" title="Preparing the build">Next</a><p>Preparing the build</p></li><li class="up"><a accesskey="u" href="ch03.html" title="Chapter�3.�Essential step">Up</a></li><li class="home"><a accesskey="h" href="index.html" title="LFS live howto - Version 0.3">Home</a></li></ul></div><div class="sect1" lang="en" xml:lang="en"><h1 class="sect1"><a id="essential" name="essential"></a>3.1. Reconfiguring the Kernel</h1><div class="admon note"><img alt="[Note]" src="images/note.png" /><h3>Note</h3><p>This chapter is mandatory for building the livecd. The livekey only need an new kernel if you haven't enabled support for USB,EXT2/EXT3,SCSI and initial ramdisk</p></div><p>After having patched your kernel sources with aufs, you will have to configure your kernel to enable the new features.</p><p>Use your favorite configuration tool, like &#8220;<span class="quote">make menuconfig</span>&#8221;.</p><div class="admon important"><img alt="[Important]" src="images/important.png" /><h3>Important</h3><p>As you will use your actual LFS system and maybe make a few changes in it, you should now backup your present kernel config, located in /boot/config-&lt;kernel-version&gt;.</p></div><p>Enable &#8220;<span class="quote">Initial RAM filesystem and RAM disk (initramfs/initrd) support</span>&#8221; in &#8220;<span class="quote">General setup</span>&#8221;.</p><p>If you want your live system to boot on most architectures, you will have to enable Block layer SG support v4 (in menuconfig-&gt;Enable the block layer).</p><p>In &#8220;<span class="quote">Processor type and features</span>&#8221;, select &#8220;<span class="quote">386</span>&#8221; as &#8220;<span class="quote">Processor family</span>&#8221;</p><p>You will have to enable loopback device support and ramdisk support in &#8220;<span class="quote">Device Drivers-&gt;Block devices</span>&#8221;</p><p>If you plan to build a live usb key, you will have to say yes to &#8220;<span class="quote">USB support</span>&#8221; and to &#8220;<span class="quote">Support for Host-side USB</span>&#8221;, as well as &#8220;<span class="quote">UHCI HCD support</span>&#8221;, &#8220;<span class="quote">OHCI HCD support</span>&#8221; and &#8220;<span class="quote">EHCI HCD (USB 2.0) support</span>&#8221;. Say yes (y) to &#8220;<span class="quote">USB Mass Storage support</span>&#8221; also.</p><p>You will also need &#8220;<span class="quote">SCSI device support: SCSI disk support</span>&#8221;.</p><p></p><p>If you plan to build a live cd or dvd, make sure you build the following modules direct into the kernel (* not m) :</p><p>*&#8220;<span class="quote">SCSI device support-&gt;SCSI CDROM support</span>&#8221;</p><p>*&#8220;<span class="quote">SCSI generic support</span>&#8221;</p><p>*&#8220;<span class="quote">ISO 9660 CDROM file system support</span>&#8221; in CD-ROM/DVD Filesystems</p><p>*&#8220;<span class="quote">PATA support.</span>&#8221;</p><p></p><p>Last, but not least, enable AUFS and SquashFS, in &#8220;<span class="quote">File systems-&gt;Miscellaneous filesystems</span>&#8221;
  </p><p>After configuration, just build and install your kernel.
  </p></div><div class="navfooter"><ul><li class="prev"><a accesskey="p" href="ch03.html" title="Essential step">Prev</a><p>Essential step</p></li><li class="next"><a accesskey="n" href="pt04.html" title="Preparing the build">Next</a><p>Preparing the build</p></li><li class="up"><a accesskey="u" href="ch03.html" title="Chapter�3.�Essential step">Up</a></li><li class="home"><a accesskey="h" href="index.html" title="LFS live howto - Version 0.3">Home</a></li></ul></div></body></html>