/[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.5 Revision 1.6
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/1.0 --> 5<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-kernel.xml,v 1.5 2004/07/18 10:29:59 neysx Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-kernel.xml,v 1.6 2004/07/26 09:04:42 dertobi123 Exp $ -->
8 8
9<sections> 9<sections>
10<section> 10<section>
11<title>Timezone</title> 11<title>Timezone</title>
12<body> 12<body>
38available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel 38available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel
39Guide</uri>. 39Guide</uri>.
40</p> 40</p>
41 41
42<p> 42<p>
43For PPC you can choose between <c>ppc-sources</c>, <c>ppc-sources-benh</c>, 43For PPC you can choose between <c>ppc-sources</c> (Kernel 2.4),
44<c>ppc-sources-dev</c>, <c>ppc-sources-crypto</c> and 44<c>development-sources</c> and <c>gentoo-dev-sources</c> (both Kernel 2.6).
45<c>ppc-development-sources</c>. This latter kernel is available when you 45The latter is available when you perform a networkless installation. Beside
46perform a networkless installation. So let's continue with 46those there are special kernel-patchsets for the Pegasos: <c>pegasos-sources</c>
47(Kernel 2.4) and <c>pegasos-dev-sources</c> (Kernel 2.6). So let's continue
47<c>emerge</c>'ing the kernel sources: 48with <c>emerge</c>'ing the kernel sources:
48</p> 49</p>
49 50
50<pre caption="Installing a kernel source"> 51<pre caption="Installing a kernel source">
51# <i>emerge ppc-development-sources</i> 52# <i>emerge gentoo-dev-sources</i>
52</pre> 53</pre>
53 54
54<p> 55<p>
55When you take a look in <path>/usr/src</path> you should see a symlink called 56When you take a look in <path>/usr/src</path> you should see a symlink called
56<path>linux</path> pointing to your kernel source: 57<path>linux</path> pointing to your kernel source:
57</p> 58</p>
58 59
59<pre caption="Viewing the kernel source symlink"> 60<pre caption="Viewing the kernel source symlink">
60# <i>ls -l /usr/src/linux</i> 61# <i>ls -l /usr/src/linux</i>
61lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-2.6.1 62lrwxrwxrwx 1 root root 12 Jul 10 10:55 /usr/src/linux -&gt; linux-2.6.7-r9
62</pre> 63</pre>
63 64
64<p> 65<p>
65If this isn't the case (i.e. the symlink points to a different kernel source) 66If this isn't the case (i.e. the symlink points to a different kernel source)
66change the symlink before you continue: 67change the symlink before you continue:
67</p> 68</p>
68 69
69<pre caption="Changing the kernel source symlink"> 70<pre caption="Changing the kernel source symlink">
70# <i>rm /usr/src/linux</i> 71# <i>rm /usr/src/linux</i>
71# <i>cd /usr/src</i> 72# <i>cd /usr/src</i>
72# <i>ln -s linux-2.6.1 linux</i> 73# <i>ln -s linux-2.6.7-r9 linux</i>
73</pre> 74</pre>
74 75
75<p> 76<p>
76Now it is time to configure and compile your kernel source. All architectures 77Now it is time to configure and compile your kernel source. All architectures
77can use <c>genkernel</c> for this, which will build a generic kernel as used 78can use <c>genkernel</c> for this, which will build a generic kernel as used
144able to mount your partitions. Also select <c>Virtual memory</c>, <c>/proc 145able to mount your partitions. Also select <c>Virtual memory</c>, <c>/proc
145file system</c>, <c>/dev file system</c> + <c>Automatically mount at boot</c>: 146file system</c>, <c>/dev file system</c> + <c>Automatically mount at boot</c>:
146</p> 147</p>
147 148
148<pre caption="Selecting necessary file systems"> 149<pre caption="Selecting necessary file systems">
150<comment>(With a 2.6.x kernel)</comment>
151File systems ---&gt;
152 Pseudo Filesystems ---&gt;
153 [*] /proc file system support
154 [*] /dev file system support (OBSOLETE)
155 [*] Automatically mount at boot
156 [*] Virtual memory file system support (former shm fs)
157
149<comment>(With a 2.4.x kernel)</comment> 158<comment>(With a 2.4.x kernel)</comment>
150File systems ---&gt; 159File systems ---&gt;
151 [*] Virtual memory file system support (former shm fs) 160 [*] Virtual memory file system support (former shm fs)
152 [*] /proc file system support 161 [*] /proc file system support
153 [*] /dev file system support (EXPERIMENTAL) 162 [*] /dev file system support (EXPERIMENTAL)
154 [*] Automatically mount at boot 163 [*] Automatically mount at boot
155 [ ] /dev/pts file system for Unix98 PTYs 164 [ ] /dev/pts file system for Unix98 PTYs
156 165
157<comment>(With a 2.6.x kernel)</comment>
158File systems ---&gt;
159 Pseudo Filesystems ---&gt;
160 [*] /proc file system support
161 [*] /dev file system support (OBSOLETE)
162 [*] Automatically mount at boot
163 [*] Virtual memory file system support (former shm fs)
164
165<comment>(Select one or more of the following options as needed by your system)</comment> 166<comment>(Select one or more of the following options as needed by your system)</comment>
166 &lt;*&gt; Reiserfs support 167 &lt;*&gt; Reiserfs support
167 &lt;*&gt; Ext3 journalling file system support 168 &lt;*&gt; Ext3 journalling file system support
168 &lt;*&gt; JFS filesystem support 169 &lt;*&gt; JFS filesystem support
169 &lt;*&gt; Second extended fs support 170 &lt;*&gt; Second extended fs support
174If you are using PPPoE to connect to the Internet or you are using a dial-up 175If you are using PPPoE to connect to the Internet or you are using a dial-up
175modem, you will need the following options in the kernel: 176modem, you will need the following options in the kernel:
176</p> 177</p>
177 178
178<pre caption="Selecting PPPoE necessary drivers"> 179<pre caption="Selecting PPPoE necessary drivers">
179<comment>(With a 2.4.x kernel)</comment>
180Network device support ---&gt;
181 &lt;*&gt; PPP (point-to-point protocol) support
182 &lt;*&gt; PPP support for async serial ports
183 &lt;*&gt; PPP support for sync tty ports
184
185<comment>(With a 2.6.x kernel)</comment> 180<comment>(With a 2.6.x kernel)</comment>
186Device Drivers ---&gt; 181Device Drivers ---&gt;
187 Networking support ---&gt; 182 Networking support ---&gt;
188 &lt;*&gt; PPP (point-to-point protocol) support 183 &lt;*&gt; PPP (point-to-point protocol) support
189 &lt;*&gt; PPP support for async serial ports 184 &lt;*&gt; PPP support for async serial ports
190 &lt;*&gt; PPP support for sync tty ports 185 &lt;*&gt; PPP support for sync tty ports
186
187<comment>(With a 2.4.x kernel)</comment>
188Network device support ---&gt;
189 &lt;*&gt; PPP (point-to-point protocol) support
190 &lt;*&gt; PPP support for async serial ports
191 &lt;*&gt; PPP support for sync tty ports
191</pre> 192</pre>
192 193
193<p> 194<p>
194The two compression options won't harm but are not definitely needed, neither 195The two compression options won't harm but are not definitely needed, neither
195does the <c>PPP over Ethernet</c> option, that might only be used by 196does the <c>PPP over Ethernet</c> option, that might only be used by
244<title>Compiling and Installing</title> 245<title>Compiling and Installing</title>
245<body> 246<body>
246 247
247<p> 248<p>
248Now that your kernel is configured, it is time to compile and install it. Exit 249Now that your kernel is configured, it is time to compile and install it. Exit
249the configuration and run <c>make dep &amp;&amp; make vmlinux modules 250the configuration and run the commands which will compile the kernel:
250modules_install</c> or on the Pegasos run <c>make dep &amp;&amp; make zImage
251modules modules_install</c>:
252</p> 251</p>
253 252
254<pre caption="Compiling the kernel"> 253<pre caption="Compiling the kernel">
254<comment>Kernel 2.6</comment>
255(All) # <i>make all &amp;&amp; make modules_install</i>
256<comment>Kernel 2.4</comment>
255(Apple/IBM) # <i>make dep &amp;&amp; make vmlinux modules modules_install</i> 257(Apple/IBM) # <i>make dep &amp;&amp; make vmlinux modules modules_install</i>
256(Pegasos) # <i>make dep &amp;&amp; make zImage modules modules_install</i> 258(Pegasos) # <i>make dep &amp;&amp; make zImage modules modules_install</i>
257</pre> 259</pre>
258 260
259<p> 261<p>
260When the kernel is done compiling, copy over the kernel image to 262When the kernel is done compiling, copy over the kernel image to
261<path>/boot</path>. 263<path>/boot</path>.
262</p> 264</p>
263 265
264<pre caption="Installing the kernel"> 266<pre caption="Installing the kernel">
267<comment>replace 2.6.7 with your kernel-version</comment>
265(Apple/IBM) # <i>cp vmlinux /boot/kernel-2.4.24</i> 268(Apple/IBM) # <i>cp vmlinux /boot/kernel-2.6.7</i>
266(Pegasos) # <i>cp arch/ppc/boot/images/zImage.chrp /boot/kernel-2.4.24</i> 269(Pegasos) # <i>cp arch/ppc/boot/images/zImage.chrp /boot/kernel-2.6.7</i>
267</pre> 270</pre>
268 271
269<p> 272<p>
270Also don't forget to copy over the system map: 273Also don't forget to copy over the system map:
271</p> 274</p>
272 275
273<pre caption="Copying the system map"> 276<pre caption="Copying the system map">
274# <i>cp System.map /boot/System.map-2.4.24</i> 277# <i>cp System.map /boot/System.map-2.6.7</i>
275</pre> 278</pre>
276 279
277<p> 280<p>
278It is also wise to copy over your kernel configuration file to 281It is also wise to copy over your kernel configuration file to
279<path>/boot</path>, just in case :) 282<path>/boot</path>, just in case :)
280</p> 283</p>
281 284
282<pre caption="Backing up your kernel configuration"> 285<pre caption="Backing up your kernel configuration">
283# <i>cp .config /boot/config-2.4.24</i> 286# <i>cp .config /boot/config-2.6.7</i>
284</pre> 287</pre>
285 288
286<p> 289<p>
287Now continue with <uri link="#kernel_modules">Installing Separate Kernel 290Now continue with <uri link="#kernel_modules">Installing Separate Kernel
288Modules</uri>. 291Modules</uri>.
313</tr> 316</tr>
314<tr> 317<tr>
315 <ti>xfree-drm</ti> 318 <ti>xfree-drm</ti>
316 <ti> 319 <ti>
317 Accelerated graphics for ATI Radeon up to 9200, Rage128, Matrox, Voodoo and 320 Accelerated graphics for ATI Radeon up to 9200, Rage128, Matrox, Voodoo and
318 other cards for XFree86. Please check the <c>IUSE_VIDEO_CARDS</c> variable 321 other cards for xorg-x11. Please check the <c>IUSE_VIDEO_CARDS</c> variable
319 in the <path>/usr/portage/x11-base/xfree-drm</path> ebuilds to see what you 322 in the <path>/usr/portage/x11-base/xfree-drm</path> ebuilds to see what you
320 need to fill in as <c>yourcard</c>. 323 need to fill in as <c>yourcard</c>. This module is only available for 2.4
324 kernels.
321 </ti> 325 </ti>
322 <ti><c>VIDEO_CARDS="yourcard" emerge xfree-drm</c></ti> 326 <ti><c>VIDEO_CARDS="yourcard" emerge xfree-drm</c></ti>
323</tr> 327</tr>
324</table> 328</table>
325 329
339<title>Configuring the Modules</title> 343<title>Configuring the Modules</title>
340<body> 344<body>
341 345
342<p> 346<p>
343You should list the modules you want automatically loaded in 347You should list the modules you want automatically loaded in
344<path>/etc/modules.autoload.d/kernel-2.4</path> (or <path>kernel-2.6</path>). 348<path>/etc/modules.autoload.d/kernel-2.6</path> (or <path>kernel-2.4</path>).
345You can add extra options to the modules too if you want. 349You can add extra options to the modules too if you want.
346</p> 350</p>
347 351
348<p> 352<p>
349To view all available modules, run the following <c>find</c> command. Don't 353To view all available modules, run the following <c>find</c> command. Don't
355# <i>find /lib/modules/&lt;kernel version&gt;/ -type f -iname '*.o' -or -iname '*.ko'</i> 359# <i>find /lib/modules/&lt;kernel version&gt;/ -type f -iname '*.o' -or -iname '*.ko'</i>
356</pre> 360</pre>
357 361
358<p> 362<p>
359For instance, to automatically load the <c>3c59x.o</c> module, edit the 363For instance, to automatically load the <c>3c59x.o</c> module, edit the
360<path>kernel-2.4</path> or <path>kernel-2.6</path> file and enter the module 364<path>kernel-2.6</path> or <path>kernel-2.4</path> file and enter the module
361name in it. 365name in it.
362</p> 366</p>
363 367
364<pre caption="Editing /etc/modules.autoload.d/kernel-2.4"> 368<pre caption="Editing /etc/modules.autoload.d/kernel-2.6">
365<comment>(Example for 2.4 kernels)</comment> 369<comment>(Example for 2.6 kernels)</comment>
366# <i>nano -w /etc/modules.autoload.d/kernel-2.4</i> 370# <i>nano -w /etc/modules.autoload.d/kernel-2.6</i>
367</pre> 371</pre>
368 372
369<pre caption="/etc/modules.autoload.d/kernel-2.4 or kernel-2.6"> 373<pre caption="/etc/modules.autoload.d/kernel-2.6 or kernel-2.4">
3703c59x 3743c59x
371</pre> 375</pre>
372 376
373<p> 377<p>
374Now run <c>modules-update</c> to commit your changes to the 378Now run <c>modules-update</c> to commit your changes to the

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.20