/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-ppc-kernel.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-ppc-kernel.xml

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

Revision 1.37 Revision 1.38
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
44available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel 44available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel
45Guide</uri>. 45Guide</uri>.
46</p> 46</p>
47 47
48<p> 48<p>
49We suggest using either <c>vanilla-sources</c> or <c>gentoo-sources</c> 49We suggest using either <c>vanilla-sources</c> or <c>gentoo-sources</c> on PPC,
50on PPC, which are both 2.6 kernels. The latter is available when you 50which are both 2.6 kernels. The latter is available when you perform a
51perform a networkless installation. So let's continue with <c>emerge</c>'ing 51networkless installation. So let's continue with <c>emerge</c>'ing the kernel
52the kernel sources.
53The <c>USE="-doc"</c> is necessary to avoid installing xorg-x11 or other 52sources. The <c>USE="-doc"</c> is necessary to avoid installing xorg-x11 or
54dependencies at this point: 53other dependencies at this point. <c>USE="symlink"</c> is not necessary for a
54new install, but ensures proper creation of the <path>/usr/src/linux</path>
55symlink.
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
63maintainability
61<note> 64<note>
62The suggested sources at the time of the 2005.1 release are 65The 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>
67If you take a look in <path>/usr/src</path> you should see a symlink named 71If 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
69that the kernel source installed is <c>gentoo-sources-2.6.12-r4</c>: 73installed kernel source points to <c>gentoo-sources-2.6.12-r4</c>. Your version
74may 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>
74lrwxrwxrwx 1 root root 22 Mar 18 16:23 /usr/src/linux -&gt; linux-2.6.12-gentoo-r4 79lrwxrwxrwx 1 root root 22 Mar 18 16:23 /usr/src/linux -&gt; linux-2.6.12-gentoo-r4
75</pre>
76
77<p>
78If 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
80desired 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>
90It is now time to configure and compile your kernel source. You can use 83It 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>
172Now go to <c>File Systems</c> and select support for the filesystems you use. 165Now 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
174able to mount your partitions. Also select <c>/proc file system</c> and 167able 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">
179File systems ---&gt; 172File systems ---&gt;
180 Pseudo Filesystems ---&gt; 173 Pseudo Filesystems ---&gt;
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 &lt;*&gt; Second extended fs support 178 &lt;*&gt; Second extended fs support
187 &lt;*&gt; Ext3 journalling file system support 179 &lt;*&gt; Ext3 journalling file system support
313When the kernel has finished compiling, copy the kernel image to 305When 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 &lt;kernel-version&gt; with your kernel version</comment>
319(Apple/IBM) # <i>cp vmlinux /boot/kernel-2.6.12</i> 311(Apple/IBM) # <i>cp vmlinux /boot/&lt;kernel-version&gt;</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/&lt;kernel-version&gt;</i>
321</pre>
322
323<p>
324It 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>
333Now continue with <uri link="#kernel_modules">Installing Separate Kernel 316Now continue with <uri link="#kernel_modules">Installing Separate Kernel
334Modules</uri>. 317Modules</uri>.

Legend:
Removed from v.1.37  
changed lines
  Added in v.1.38

  ViewVC Help
Powered by ViewVC 1.1.20