… | |
… | |
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.45 2012/02/22 21:27:45 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-x86+amd64-kernel.xml,v 1.46 2012/03/27 17:47:19 swift Exp $ --> |
8 | |
8 | |
9 | <sections> |
9 | <sections> |
10 | |
10 | |
11 | <abstract> |
11 | <abstract> |
12 | The Linux kernel is the core of every distribution. This chapter |
12 | The Linux kernel is the core of every distribution. This chapter |
13 | explains how to configure your kernel. |
13 | explains how to configure your kernel. |
14 | </abstract> |
14 | </abstract> |
15 | |
15 | |
16 | <version>15</version> |
16 | <version>16</version> |
17 | <date>2012-02-22</date> |
17 | <date>2012-03-27</date> |
18 | |
18 | |
19 | <section> |
19 | <section> |
20 | <title>Timezone</title> |
20 | <title>Timezone</title> |
21 | <body> |
21 | <body> |
22 | |
22 | |
… | |
… | |
234 | modem, you will need the following options in the kernel: |
234 | modem, you will need the following options in the kernel: |
235 | </p> |
235 | </p> |
236 | |
236 | |
237 | <pre caption="Selecting PPPoE necessary drivers"> |
237 | <pre caption="Selecting PPPoE necessary drivers"> |
238 | Device Drivers ---> |
238 | Device Drivers ---> |
239 | Networking device Support ---> |
239 | Network device support ---> |
240 | <*> PPP (point-to-point protocol) support |
240 | <*> PPP (point-to-point protocol) support |
241 | <*> PPP support for async serial ports |
241 | <*> PPP support for async serial ports |
242 | <*> PPP support for sync tty ports |
242 | <*> PPP support for sync tty ports |
243 | </pre> |
243 | </pre> |
244 | |
244 | |
… | |
… | |
340 | |
340 | |
341 | <pre caption="Installing the kernel"> |
341 | <pre caption="Installing the kernel"> |
342 | # <i>cp arch/<keyval id="arch-sub"/>/boot/bzImage /boot/<keyval id="kernel-name"/></i> |
342 | # <i>cp arch/<keyval id="arch-sub"/>/boot/bzImage /boot/<keyval id="kernel-name"/></i> |
343 | </pre> |
343 | </pre> |
344 | |
344 | |
|
|
345 | </body> |
|
|
346 | </subsection> |
|
|
347 | <subsection id="initramfs"> |
|
|
348 | <title>(Optional) Building an Initramfs</title> |
|
|
349 | <body> |
|
|
350 | |
|
|
351 | <p> |
|
|
352 | If you use a specific partition layout where important file system locations |
|
|
353 | (like <path>/usr</path> or <path>/var</path>) are on separate partitions, then |
|
|
354 | you will need to setup an initramfs so that this partition can be mounted before |
|
|
355 | it is needed. |
|
|
356 | </p> |
|
|
357 | |
|
|
358 | <p> |
|
|
359 | Without an initramfs, you risk that the system will not boot up properly as the |
|
|
360 | tools that are responsible for mounting the file systems need information that |
|
|
361 | resides on those file systems. An initramfs will pull in the necessary files |
|
|
362 | into an archive which is used right after the kernel boots, but before the |
|
|
363 | control is handed over to the <c>init</c> tool. Scripts on the initramfs will |
|
|
364 | then make sure that the partitions are properly mounted before the system |
|
|
365 | continues booting. |
|
|
366 | </p> |
|
|
367 | |
|
|
368 | <p> |
|
|
369 | To install an initramfs, install <c>genkernel</c> first, then have it |
|
|
370 | generate an initramfs for you. |
|
|
371 | </p> |
|
|
372 | |
|
|
373 | <pre caption="Building an initramfs"> |
|
|
374 | # <i>emerge genkernel</i> |
|
|
375 | # <i>genkernel --install initramfs</i> |
|
|
376 | </pre> |
|
|
377 | |
|
|
378 | <p> |
|
|
379 | If you need specific support in the initramfs, such as lvm or raid, add in the |
|
|
380 | appropriate options to genkernel. See <c>genkernel --help</c> for more |
|
|
381 | information, or the next example which enables support for LVM and software raid |
|
|
382 | (mdadm): |
|
|
383 | </p> |
|
|
384 | |
|
|
385 | <pre caption="Building an initramfs with support for LVM and software raid"> |
|
|
386 | # <i>genkernel --lvm --mdadm --install initramfs</i> |
|
|
387 | </pre> |
|
|
388 | |
|
|
389 | <p> |
|
|
390 | The initramfs will be stored in <path>/boot</path>. You can find the file by |
|
|
391 | simply listing the files starting with <path>initramfs</path>: |
|
|
392 | </p> |
|
|
393 | |
|
|
394 | <pre caption="Checking the initramfs file name"> |
|
|
395 | # <i>ls /boot/initramfs*</i> |
|
|
396 | </pre> |
|
|
397 | |
345 | <p> |
398 | <p> |
346 | Now continue with <uri link="#kernel_modules">Kernel Modules</uri>. |
399 | Now continue with <uri link="#kernel_modules">Kernel Modules</uri>. |
347 | </p> |
400 | </p> |
348 | |
401 | |
349 | </body> |
402 | </body> |