/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-kernel.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-x86+amd64-kernel.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.9 Revision 1.10
2<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> 2<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3 3
4<!-- The content of this document is licensed under the CC-BY-SA license --> 4<!-- The content of this document is licensed under the CC-BY-SA license -->
5<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-kernel.xml,v 1.9 2007/03/13 00:30:09 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-kernel.xml,v 1.10 2007/05/07 18:11:41 nightmorph Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<abstract> 11<abstract>
12The Linux kernel is the core of every distribution. This chapter 12The Linux kernel is the core of every distribution. This chapter
13explains how to configure your kernel. 13explains how to configure your kernel.
14</abstract> 14</abstract>
15 15
16<version>4.3</version> 16<version>5.0</version>
17<date>2007-03-12</date> 17<date>2007-05-07</date>
18 18
19<section> 19<section>
20<title>Timezone</title> 20<title>Timezone</title>
21<body> 21<body>
22 22
23<p> 23<p>
24You first need to select your timezone so that your system knows where it is 24You first need to select your timezone so that your system knows where it is
25located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy 25located. Look for your timezone in <path>/usr/share/zoneinfo</path>. You then
26it to <path>/etc/localtime</path>. Please avoid the 26set your timezone in <path>/etc/conf.d/clock</path>. Please avoid the
27<path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not 27<path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not
28indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8. 28indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8.
29</p> 29</p>
30 30
31<pre caption="Setting the timezone information"> 31<pre caption="Setting the timezone information">
32# <i>ls /usr/share/zoneinfo</i> 32# <i>ls /usr/share/zoneinfo</i>
33<comment>(Suppose you want to use GMT)</comment> 33<comment>(Suppose you want to use GMT)</comment>
34# <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i> 34# <i>nano -w /etc/conf.d/clock</i>
35TIMEZONE="GMT"
35</pre> 36</pre>
36 37
37</body> 38</body>
38</section> 39</section>
39<section> 40<section>
54For x86-based systems we have, amongst other kernels, <c>gentoo-sources</c> 55For x86-based systems we have, amongst other kernels, <c>gentoo-sources</c>
55(kernel source patched with performance-enhancing features). 56(kernel source patched with performance-enhancing features).
56</p> 57</p>
57 58
58<p test="func:keyval('arch')='AMD64'"> 59<p test="func:keyval('arch')='AMD64'">
59For AMD64-based systems we have <c>gentoo-sources</c> (kernel v2.6 source 60For AMD64-based systems we have <c>gentoo-sources</c> (kernel source patched
60patched with amd64 specific fixes for stability, performance and hardware 61with amd64 specific fixes for stability, performance and hardware support).
61support).
62</p> 62</p>
63 63
64<p> 64<p>
65Choose your kernel source and install it using <c>emerge</c>. 65Choose your kernel source and install it using <c>emerge</c>.
66</p> 66</p>
205</p> 205</p>
206 206
207</body> 207</body>
208<body test="func:keyval('arch')='x86'"> 208<body test="func:keyval('arch')='x86'">
209 209
210<p>
211If you are using a 2.4 kernel, you need to select <c>/dev file
212system</c> as 2.4 kernels do not support <c>udev</c>.
213</p>
214
215<pre caption="Selecting necessary file systems"> 210<pre caption="Selecting necessary file systems">
216<comment>(With a 2.4.x kernel)</comment>
217File systems ---&gt;
218 [*] Virtual memory file system support (former shm fs)
219 [*] /proc file system support
220 [*] /dev file system support (EXPERIMENTAL)
221 [*] automatically mount /dev at boot
222 [ ] /dev/pts file system for Unix98 PTYs
223
224<comment>(With a 2.6.x kernel)</comment>
225File systems ---&gt; 211File systems ---&gt;
226 Pseudo Filesystems ---&gt; 212 Pseudo Filesystems ---&gt;
227 [*] /proc file system support 213 [*] /proc file system support
228 [*] Virtual memory file system support (former shm fs) 214 [*] Virtual memory file system support (former shm fs)
229 215
233 &lt;*&gt; JFS filesystem support 219 &lt;*&gt; JFS filesystem support
234 &lt;*&gt; Second extended fs support 220 &lt;*&gt; Second extended fs support
235 &lt;*&gt; XFS filesystem support 221 &lt;*&gt; XFS filesystem support
236</pre> 222</pre>
237 223
238<p>
239If your BIOS can't handle large hard drives and you jumpered the hard drive to
240report a limited size you have to enable the following option to gain access to
241your whole hard drive:
242</p>
243
244<pre caption="Selecting autogeometry resizing support">
245<comment>(2.4.x kernel only)</comment>
246ATA/IDE/MFM/RLL support ---&gt;
247 IDE, ATA and ATAPI Block devices ---&gt;
248 &lt;*&gt; Include IDE/ATA-2 DISK support
249 [ ] Use multi-mode by default
250 [*] Auto-Geometry Resizing support
251</pre>
252
253</body> 224</body>
254<body test="func:keyval('arch')='AMD64'"> 225<body test="func:keyval('arch')='AMD64'">
255 226
256<pre caption="Selecting necessary file systems"> 227<pre caption="Selecting necessary file systems">
257File systems ---&gt; 228File systems ---&gt;
293 &lt;*&gt; PPP support for async serial ports 264 &lt;*&gt; PPP support for async serial ports
294 &lt;*&gt; PPP support for sync tty ports 265 &lt;*&gt; PPP support for sync tty ports
295</pre> 266</pre>
296 267
297<pre caption="Selecting PPPoE necessary drivers" test="func:keyval('arch')='x86'"> 268<pre caption="Selecting PPPoE necessary drivers" test="func:keyval('arch')='x86'">
298<comment>(With a 2.4.x kernel)</comment>
299Network device support ---&gt;
300 &lt;*&gt; PPP (point-to-point protocol) support
301 &lt;*&gt; PPP support for async serial ports
302 &lt;*&gt; PPP support for sync tty ports
303
304<comment>(With a 2.6.x kernel)</comment>
305Device Drivers ---&gt; 269Device Drivers ---&gt;
306 Networking support ---&gt; 270 Networking support ---&gt;
307 &lt;*&gt; PPP (point-to-point protocol) support 271 &lt;*&gt; PPP (point-to-point protocol) support
308 &lt;*&gt; PPP support for async serial ports 272 &lt;*&gt; PPP support for async serial ports
309 &lt;*&gt; PPP support for sync tty ports 273 &lt;*&gt; PPP support for sync tty ports
310</pre> 274</pre>
311 275
312<p> 276<p>
313The two compression options won't harm but are not definitely needed, neither 277The two compression options won't harm but are not definitely needed, neither
314does the <c>PPP over Ethernet</c> option, that might only be used by 278does the <c>PPP over Ethernet</c> option, that might only be used by <c>ppp</c>
315<c>rp-pppoe</c> when configured to do kernel mode PPPoE. 279when configured to do kernel mode PPPoE.
316</p> 280</p>
317 281
318<p> 282<p>
319If you require it, don't forget to include support in the kernel for your 283If you require it, don't forget to include support in the kernel for your
320ethernet card. 284ethernet card.
352 316
353</body> 317</body>
354<body test="func:keyval('arch')='x86'"> 318<body test="func:keyval('arch')='x86'">
355 319
356<p> 320<p>
357Laptop-users who want PCMCIA support should <e>not</e> use the PCMCIA drivers if 321If you want PCMCIA support for your laptop, don't forget to enable
358they choose to use a 2.4 kernel. More recent drivers are available through the
359<c>pcmcia-cs</c> package which will be installed later on. 2.6-kernel users
360however should use the PCMCIA drivers from the kernel.
361</p>
362
363<p>
364Besides compiling in PCMCIA support in the 2.6 kernel, don't forget to enable
365support for the PCMCIA card bridge present in your system: 322support for the PCMCIA card bridge present in your system:
366</p> 323</p>
367 324
368<pre caption="Enabling PCMCIA support for 2.6 kernels"> 325<pre caption="Enabling PCMCIA support">
369Bus options (PCI, PCMCIA, EISA, MCA, ISA) ---&gt; 326Bus options (PCI, PCMCIA, EISA, MCA, ISA) ---&gt;
370 PCCARD (PCMCIA/CardBus) support ---&gt; 327 PCCARD (PCMCIA/CardBus) support ---&gt;
371 &lt;*&gt; PCCard (PCMCIA/CardBus) support 328 &lt;*&gt; PCCard (PCMCIA/CardBus) support
372<comment>(select 16 bit if you need support for older PCMCIA cards. Most people want this.)</comment> 329<comment>(select 16 bit if you need support for older PCMCIA cards. Most people want this.)</comment>
373 &lt;*&gt; 16-bit PCMCIA support 330 &lt;*&gt; 16-bit PCMCIA support
395<p> 352<p>
396Now that your kernel is configured, it is time to compile and install it. Exit 353Now that your kernel is configured, it is time to compile and install it. Exit
397the configuration and start the compilation process: 354the configuration and start the compilation process:
398</p> 355</p>
399 356
400<pre caption="Compiling the kernel" test="func:keyval('arch')='x86'"> 357<pre caption="Compiling the kernel">
401<comment>(For 2.4 kernel)</comment>
402# <i>make dep &amp;&amp; make bzImage modules modules_install</i>
403
404<comment>(For 2.6 kernel)</comment>
405# <i>make &amp;&amp; make modules_install</i>
406</pre>
407
408<pre caption="Compiling the kernel" test="func:keyval('arch')='AMD64'">
409# <i>make &amp;&amp; make modules_install</i> 358# <i>make &amp;&amp; make modules_install</i>
410</pre> 359</pre>
411 360
412<p> 361<p>
413When the kernel has finished compiling, copy the kernel image to 362When the kernel has finished compiling, copy the kernel image to
458 407
459</body> 408</body>
460<body test="func:keyval('arch')='x86'"> 409<body test="func:keyval('arch')='x86'">
461 410
462<p> 411<p>
463Next, if you are going to configure a 2.6 kernel, copy over the kernel 412Next, copy over the kernel configuration used by the Installation CD to the
464configuration used by the Installation CD to the location where genkernel
465looks for the default kernel configuration: 413location where genkernel looks for the default kernel configuration:
466</p> 414</p>
467 415
468<pre caption="Copying over the Installation CD kernel config"> 416<pre caption="Copying over the Installation CD kernel config">
469<comment>(Only do this if you are going to configure a 2.6 kernel)</comment>
470# <i>zcat /proc/config.gz &gt; /usr/share/genkernel/x86/kernel-config-2.6</i> 417# <i>zcat /proc/config.gz &gt; /usr/share/genkernel/x86/kernel-config-2.6</i>
471</pre> 418</pre>
472 419
473</body> 420</body>
474<body> 421<body>
511<title>Kernel Modules</title> 458<title>Kernel Modules</title>
512<subsection> 459<subsection>
513<title>Configuring the Modules</title> 460<title>Configuring the Modules</title>
514<body> 461<body>
515 462
516<note test="func:keyval('arch')='x86'">
517If you chose a kernel 2.4, replace occurrences of <c>2.6</c> with <c>2.4</c> in
518this section.
519</note>
520
521<p> 463<p>
522You should list the modules you want automatically loaded in 464You should list the modules you want automatically loaded in
523<path>/etc/modules.autoload.d/kernel-2.6</path>. You can add extra options to 465<path>/etc/modules.autoload.d/kernel-2.6</path>. You can add extra options to
524the modules too if you want. 466the modules too if you want.
525</p> 467</p>

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

  ViewVC Help
Powered by ViewVC 1.1.20