| … | |
… | |
| 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.37 2005/11/21 15:37:12 neysx Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-kernel.xml,v 1.38 2006/01/08 14:05:29 neysx Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <version>2.14</version> |
11 | <version>2.15</version> |
| 12 | <date>2005-11-21</date> |
12 | <date>2006-01-06</date> |
| 13 | |
13 | |
| 14 | <section> |
14 | <section> |
| 15 | <title>Timezone</title> |
15 | <title>Timezone</title> |
| 16 | <body> |
16 | <body> |
| 17 | |
17 | |
| … | |
… | |
| 44 | available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel |
44 | available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel |
| 45 | Guide</uri>. |
45 | Guide</uri>. |
| 46 | </p> |
46 | </p> |
| 47 | |
47 | |
| 48 | <p> |
48 | <p> |
| 49 | We suggest using either <c>vanilla-sources</c> or <c>gentoo-sources</c> |
49 | We suggest using either <c>vanilla-sources</c> or <c>gentoo-sources</c> on PPC, |
| 50 | on PPC, which are both 2.6 kernels. The latter is available when you |
50 | which are both 2.6 kernels. The latter is available when you perform a |
| 51 | perform a networkless installation. So let's continue with <c>emerge</c>'ing |
51 | networkless installation. So let's continue with <c>emerge</c>'ing the kernel |
| 52 | the kernel sources. |
|
|
| 53 | The <c>USE="-doc"</c> is necessary to avoid installing xorg-x11 or other |
52 | sources. The <c>USE="-doc"</c> is necessary to avoid installing xorg-x11 or |
| 54 | dependencies at this point: |
53 | other dependencies at this point. <c>USE="symlink"</c> is not necessary for a |
|
|
54 | new install, but ensures proper creation of the <path>/usr/src/linux</path> |
|
|
55 | symlink. |
| 55 | </p> |
56 | </p> |
| 56 | |
57 | |
| 57 | <pre caption="Installing the kernel source"> |
58 | <pre caption="Installing the kernel source"> |
| 58 | # <i>USE="-doc" emerge gentoo-sources</i> |
59 | # <i>USE="-doc symlink" emerge gentoo-sources</i> |
| 59 | </pre> |
60 | </pre> |
| 60 | |
61 | |
|
|
62 | <!-- Removed, as we're trying to avoid specific kernel versions to improve HB |
|
|
63 | maintainability |
| 61 | <note> |
64 | <note> |
| 62 | The suggested sources at the time of the 2005.1 release are |
65 | The suggested sources at the time of the 2005.1 release are |
| 63 | <c>gentoo-sources-2.6.12-r4</c> and <c>vanilla-sources-2.6.12.2</c>. |
66 | <c>gentoo-sources-2.6.12-r4</c> and <c>vanilla-sources-2.6.12.2</c>. |
| 64 | </note> |
67 | </note> |
|
|
68 | --> |
| 65 | |
69 | |
| 66 | <p> |
70 | <p> |
| 67 | If you take a look in <path>/usr/src</path> you should see a symlink named |
71 | If you take a look in <path>/usr/src</path> you should see a symlink named |
| 68 | <path>linux</path> pointing to your current kernel source. Here, we will assume |
72 | <path>linux</path> pointing to your current kernel source. In this case, the |
| 69 | that the kernel source installed is <c>gentoo-sources-2.6.12-r4</c>: |
73 | installed kernel source points to <c>gentoo-sources-2.6.12-r4</c>. Your version |
|
|
74 | may be different, so keep this in mind. |
| 70 | </p> |
75 | </p> |
| 71 | |
76 | |
| 72 | <pre caption="Viewing the kernel source symlink"> |
77 | <pre caption="Viewing the kernel source symlink"> |
| 73 | # <i>ls -l /usr/src/linux</i> |
78 | # <i>ls -l /usr/src/linux</i> |
| 74 | lrwxrwxrwx 1 root root 22 Mar 18 16:23 /usr/src/linux -> linux-2.6.12-gentoo-r4 |
79 | lrwxrwxrwx 1 root root 22 Mar 18 16:23 /usr/src/linux -> linux-2.6.12-gentoo-r4 |
| 75 | </pre> |
|
|
| 76 | |
|
|
| 77 | <p> |
|
|
| 78 | If the symlink doesn't point to the kernel source of your choice (note that |
|
|
| 79 | <c>linux-2.6.12-gentoo-r4</c> is merely an example) you should change it to the |
|
|
| 80 | desired kernel sources: |
|
|
| 81 | </p> |
|
|
| 82 | |
|
|
| 83 | <pre caption="Changing the kernel source symlink"> |
|
|
| 84 | # <i>rm /usr/src/linux</i> |
|
|
| 85 | # <i>cd /usr/src</i> |
|
|
| 86 | # <i>ln -s linux-2.6.12-gentoo-r4 linux</i> |
|
|
| 87 | </pre> |
80 | </pre> |
| 88 | |
81 | |
| 89 | <p> |
82 | <p> |
| 90 | It is now time to configure and compile your kernel source. You can use |
83 | It is now time to configure and compile your kernel source. You can use |
| 91 | <c>genkernel</c> to build a generic kernel similar to the one used by the |
84 | <c>genkernel</c> to build a generic kernel similar to the one used by the |
| … | |
… | |
| 170 | |
163 | |
| 171 | <p> |
164 | <p> |
| 172 | Now go to <c>File Systems</c> and select support for the filesystems you use. |
165 | Now go to <c>File Systems</c> and select support for the filesystems you use. |
| 173 | <e>Don't</e> compile them as modules, otherwise your Gentoo system will not be |
166 | <e>Don't</e> compile them as modules, otherwise your Gentoo system will not be |
| 174 | able to mount your partitions. Also select <c>/proc file system</c> and |
167 | able to mount your partitions. Also select <c>/proc file system</c> and |
| 175 | <c>Virtual memory</c>. Do <e>not</e> select the <c>/dev file system</c>. |
168 | <c>Virtual memory</c>. |
| 176 | </p> |
169 | </p> |
| 177 | |
170 | |
| 178 | <pre caption="Selecting necessary file systems"> |
171 | <pre caption="Selecting necessary file systems"> |
| 179 | File systems ---> |
172 | File systems ---> |
| 180 | Pseudo Filesystems ---> |
173 | Pseudo Filesystems ---> |
| 181 | [*] /proc file system support |
174 | [*] /proc file system support |
| 182 | [ ] /dev file system support (OBSOLETE) |
|
|
| 183 | [*] Virtual memory file system support (former shm fs) |
175 | [*] Virtual memory file system support (former shm fs) |
| 184 | |
176 | |
| 185 | <comment>(Select one or more of the following options as needed by your system)</comment> |
177 | <comment>(Select one or more of the following options as needed by your system)</comment> |
| 186 | <*> Second extended fs support |
178 | <*> Second extended fs support |
| 187 | <*> Ext3 journalling file system support |
179 | <*> Ext3 journalling file system support |
| … | |
… | |
| 313 | When the kernel has finished compiling, copy the kernel image to |
305 | When the kernel has finished compiling, copy the kernel image to |
| 314 | <path>/boot</path> (be sure that it is mounted properly on the Pegasos). |
306 | <path>/boot</path> (be sure that it is mounted properly on the Pegasos). |
| 315 | </p> |
307 | </p> |
| 316 | |
308 | |
| 317 | <pre caption="Installing the kernel"> |
309 | <pre caption="Installing the kernel"> |
| 318 | <comment>replace 2.6.12 with your kernel-version</comment> |
310 | <comment>replace <kernel-version> with your kernel version</comment> |
| 319 | (Apple/IBM) # <i>cp vmlinux /boot/kernel-2.6.12</i> |
311 | (Apple/IBM) # <i>cp vmlinux /boot/<kernel-version></i> |
| 320 | (Pegasos) # <i>cp arch/ppc/boot/images/zImage.chrp /boot/kernel-2.6.12</i> |
312 | (Pegasos) # <i>cp arch/ppc/boot/images/zImage.chrp /boot/<kernel-version></i> |
| 321 | </pre> |
|
|
| 322 | |
|
|
| 323 | <p> |
|
|
| 324 | It is also wise to copy over your kernel configuration file to |
|
|
| 325 | <path>/boot</path>, just in case :) |
|
|
| 326 | </p> |
|
|
| 327 | |
|
|
| 328 | <pre caption="Backing up your kernel configuration"> |
|
|
| 329 | # <i>cp .config /boot/config-2.6.12-gentoo-r4</i> |
|
|
| 330 | </pre> |
313 | </pre> |
| 331 | |
314 | |
| 332 | <p> |
315 | <p> |
| 333 | Now continue with <uri link="#kernel_modules">Installing Separate Kernel |
316 | Now continue with <uri link="#kernel_modules">Installing Separate Kernel |
| 334 | Modules</uri>. |
317 | Modules</uri>. |