| … | |
… | |
| 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-ppc-kernel.xml,v 1.43 2006/09/05 16:56:57 josejx Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-kernel.xml,v 1.44 2006/09/28 02:46:15 josejx Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <version>7.1</version> |
11 | <version>7.2</version> |
| 12 | <date>2006-09-05</date> |
12 | <date>2006-09-27</date> |
| 13 | |
13 | |
| 14 | <section> |
14 | <section> |
| 15 | <title>Timezone</title> |
15 | <title>Timezone</title> |
| 16 | <body> |
16 | <body> |
| 17 | |
17 | |
| … | |
… | |
| 385 | Now that your kernel source tree is installed, it's now time to compile your |
385 | Now that your kernel source tree is installed, it's now time to compile your |
| 386 | kernel by using our <c>genkernel</c> script to automatically build a kernel for |
386 | kernel by using our <c>genkernel</c> script to automatically build a kernel for |
| 387 | you. <c>genkernel</c> works by configuring a kernel nearly identically to the |
387 | you. <c>genkernel</c> works by configuring a kernel nearly identically to the |
| 388 | way our Installation CD kernel is configured. This means that when you use |
388 | way our Installation CD kernel is configured. This means that when you use |
| 389 | <c>genkernel</c> to build your kernel, your system will generally detect all |
389 | <c>genkernel</c> to build your kernel, your system will generally detect all |
| 390 | your hardware at boot-time, just like our Installation CD does. Because genkernel |
390 | your hardware at boot-time, just like our Installation CD does. Because |
| 391 | doesn't require any manual kernel configuration, it is an ideal solution for |
391 | genkernel doesn't require any manual kernel configuration, it is an ideal |
| 392 | those users who may not be comfortable compiling their own kernels. |
392 | solution for those users who may not be comfortable compiling their own kernels. |
| 393 | </p> |
393 | </p> |
| 394 | |
394 | |
| 395 | <p> |
395 | <p> |
| 396 | Now, let's see how to use genkernel. First, emerge the genkernel ebuild: |
396 | Now, let's see how to use genkernel. First, emerge the genkernel ebuild: |
| 397 | </p> |
397 | </p> |
| … | |
… | |
| 414 | initrd. Edit <path>/usr/share/genkernel/ppc/modules_load</path> and change |
414 | initrd. Edit <path>/usr/share/genkernel/ppc/modules_load</path> and change |
| 415 | <c>MODULES_FIREWIRE="ieee1394 ohci1394 sbp2"</c> for firewire support or |
415 | <c>MODULES_FIREWIRE="ieee1394 ohci1394 sbp2"</c> for firewire support or |
| 416 | <c>MODULES_USB="usbcore ohci-hcd ehci-hcd usb-storage"</c> for USB support. |
416 | <c>MODULES_USB="usbcore ohci-hcd ehci-hcd usb-storage"</c> for USB support. |
| 417 | </p> |
417 | </p> |
| 418 | |
418 | |
|
|
419 | <p> |
|
|
420 | Before compiling your sources, the fstab needs a slight adjustment. The rest of |
|
|
421 | the fstab will be completed during a later step, so don't worry about the |
|
|
422 | details now. If you did not create a separate boot partition (NOT bootstrap, |
|
|
423 | that's different), remove the line referencing /boot from |
|
|
424 | <path>/etc/fstab</path>. This will need to be done on most Apple computers. |
|
|
425 | </p> |
|
|
426 | |
|
|
427 | <pre caption="Removing /boot from /etc/fstab on machines without a boot partition"> |
|
|
428 | # <i>nano -w /etc/fstab</i> |
|
|
429 | <comment>Remove this line</comment> |
|
|
430 | /dev/BOOT /boot ext2 noauto,noatime 1 2 |
|
|
431 | </pre> |
| 419 | |
432 | |
| 420 | <p> |
433 | <p> |
| 421 | Now, compile your kernel sources by running <c>genkernel --genzimage all</c>. |
434 | Now, compile your kernel sources by running <c>genkernel --genzimage all</c>. |
| 422 | For Pegasos, we will need to use a different config and create a zImage instead |
435 | For Pegasos, we will need to use a different config and create a zImage instead |
| 423 | of the vmlinux kernel used on Apple machines. Be aware, as <c>genkernel</c> |
436 | of the vmlinux kernel used on Apple machines. Be aware, as <c>genkernel</c> |