Architecture specific configuration
Before starting to configure the Linux kernel, run
make pmac32_defconfigto make sure a kernel is created that boots on most 32-bit PowerPC systems:
Make sure to enable support for Amiga partitions if using a Pegasos system, or Macintosh partitions when using an Apple computer.
Users of NewWorld and OldWorld machines will want HFS support as well. OldWorld users require it for copying compiled kernels to the MacOS partition. NewWorld users require it for configuring the special Apple_Bootstrap partition:
File Systems ---> Miscellaneous filesystems ---> <M> Apple Macintosh file system support <M> Apple Extended HFS file system support
Don't forget to include support in the kernel for the right Ethernet card! Most newer Apple computers use the SunGEM ethernet driver. Older iMacs commonly use the BMAC driver.
Device Drivers ---> Network device support ---> Ethernet (10 or 100Mbit) ---> [*] Ethernet (10 or 100Mbit) <*> Generic Media Independent Interface device support <*> MACE (Power Mac ethernet) support <*> BMAC (G3 ethernet) support <*> Sun GEM support
When booting from FireWire, enable the following options.
Device Drivers ---> IEEE 1394 (FireWire) support ---> <*> IEEE 1394 (FireWire) support <*> OHCI-1394 support <*> SBP-2 support (Harddisks etc.)
Do not turn off kernel framebuffer support as it is required for a successful boot. When using an NVIDIA based chipset,use the Open Firmware framebuffer. When using an ATI based chipset, select the framebuffer driver based upon the right chipset (Mach64, Rage128 or Radeon).
Device Drivers ---> Graphics support ---> <*> Support for frame buffer devices [*] Open Firmware frame buffer device support <*> ATI Radeon display support <*> ATI Rage128 display support <*> ATI Mach64 display support Console display driver support ---> <*> Framebuffer Console support
To select more than one framebuffer device, it may default to a less than optimal driver. Either use only one framebuffer device or specify which to use by passing the driver to use to the kernel on boot by appending a video line such as
With the kernel is configured, it is time to compile and install it. Exit the configuration menu and run the following commands:
make && make modules_install
It is possible to enable parallel builds using
make -jXwith X being the number of parallel tasks that the build process is allowed to launch. This is similar to the instructions about /etc/portage/make.conf earlier, with the
When the kernel has finished compiling, copy the kernel image to /boot/ as shown below. When using a separate boot partition, as on Pegasos computers, be sure that it is mounted properly. When using BootX to boot, we'll copy the kernel later.
Yaboot and BootX expect to use an uncompressed kernel unlike many other boot loaders. The uncompressed kernel is called vmlinux and it is placed in /usr/src/linux/ after the kernel has finished compiling. When using a Pegasos machine, the Pegasos firmware requires a compressed kernel called zImage which can be found in /usr/src/linux/arch/powerpc/boot/images/.
Apple または IBM の場合:
cp vmlinux /boot/kernel-3.16.5-gentoo
cp arch/powerpc/boot/images/zImage /boot/kernel-3.16.5-gentoo