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

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

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

Revision 1.20 Revision 1.21
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-alpha-kernel.xml,v 1.20 2005/03/25 15:50:12 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-alpha-kernel.xml,v 1.21 2005/03/28 11:30:52 swift Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>1.16</version> 11<version>2.00</version>
12<date>2005-03-25</date> 12<date>2005-03-28</date>
13 13
14<section> 14<section>
15<title>Timezone</title> 15<title>Timezone</title>
16<body> 16<body>
17 17
42available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel 42available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel
43Guide</uri>. 43Guide</uri>.
44</p> 44</p>
45 45
46<p> 46<p>
47For alpha-based systems we have <c>vanilla-sources</c> (the default 2.4 kernel 47For alpha-based systems we have <c>vanilla-sources</c> (the default 2.6 kernel source).
48source as developed by the linux-kernel developers), <c>development-sources</c>
49(vanilla 2.6 kernel source) and <c>alpha-sources</c> (kernel source optimized
50for alpha users).
51</p> 48</p>
52 49
53<p> 50<p>
54Choose your kernel source and install it using <c>emerge</c>. 51Choose your kernel source and install it using <c>emerge</c>.
55</p> 52</p>
68<path>linux</path> pointing to your kernel source: 65<path>linux</path> pointing to your kernel source:
69</p> 66</p>
70 67
71<pre caption="Viewing the kernel source symlink"> 68<pre caption="Viewing the kernel source symlink">
72# <i>ls -l /usr/src/linux</i> 69# <i>ls -l /usr/src/linux</i>
73lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-2.4.24 70lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-2.6.11.2
74</pre> 71</pre>
75 72
76<p> 73<p>
77If this isn't the case (i.e. the symlink points to a different kernel source) 74If this isn't the case (i.e. the symlink points to a different kernel source)
78change the symlink before you continue: 75change the symlink before you continue:
79</p> 76</p>
80 77
81<pre caption="Changing the kernel source symlink"> 78<pre caption="Changing the kernel source symlink">
82# <i>rm /usr/src/linux</i> 79# <i>rm /usr/src/linux</i>
83# <i>cd /usr/src</i> 80# <i>cd /usr/src</i>
84# <i>ln -s linux-2.4.24 linux</i> 81# <i>ln -s linux-2.6.11.2 linux</i>
85</pre> 82</pre>
86 83
87<p> 84<p>
88Now it is time to configure and compile your kernel source. You 85Now it is time to configure and compile your kernel source. You
89can use <c>genkernel</c> for this, which will build a generic kernel as used 86can use <c>genkernel</c> for this, which will build a generic kernel as used
90by the LiveCD. We explain the "manual" configuration first though, as it is 87by the Installation CD. We explain the "manual" configuration first though, as it is
91the best way to optimize your environment. 88the best way to optimize your environment.
92</p> 89</p>
93 90
94<p> 91<p>
95If you want to manually configure your kernel, continue now with <uri 92If you want to manually configure your kernel, continue now with <uri
115 112
116<p> 113<p>
117However, one thing <e>is</e> true: you must know your system when you start 114However, one thing <e>is</e> true: you must know your system when you start
118configuring a kernel manually. Most information can be gathered by viewing the 115configuring a kernel manually. Most information can be gathered by viewing the
119contents of <path>/proc/pci</path> (or by using <c>lspci</c> if available). You 116contents of <path>/proc/pci</path> (or by using <c>lspci</c> if available). You
120can also run <c>lsmod</c> to see what kernel modules the LiveCD uses (it might 117can also run <c>lsmod</c> to see what kernel modules the Installation CD uses (it might
121provide you with a nice hint on what to enable). 118provide you with a nice hint on what to enable).
122</p> 119</p>
123 120
124<p> 121<p>
125Now go to your kernel source directory and execute <c>make menuconfig</c>. This 122Now go to your kernel source directory and execute <c>make menuconfig</c>. This
155 152
156<p> 153<p>
157Now go to <c>File Systems</c> and select support for the filesystems you use. 154Now go to <c>File Systems</c> and select support for the filesystems you use.
158<e>Don't</e> compile them as modules, otherwise your Gentoo system will not be 155<e>Don't</e> compile them as modules, otherwise your Gentoo system will not be
159able to mount your partitions. Also select <c>Virtual memory</c>, <c>/proc 156able to mount your partitions. Also select <c>Virtual memory</c>, <c>/proc
160file system</c>, <c>/dev file system</c> + <c>Automatically mount at boot</c>: 157file system</c>, (<c>/dev file system</c> + <c>Automatically mount at boot</c> only for 2.4 kernel):
161</p> 158</p>
162 159
163<pre caption="Selecting necessary file systems"> 160<pre caption="Selecting necessary file systems">
164<comment>(With a 2.4.x kernel)</comment> 161<comment>(With a 2.4.x kernel)</comment>
165File systems ---&gt; 162File systems ---&gt;
171 168
172<comment>(With a 2.6.x kernel)</comment> 169<comment>(With a 2.6.x kernel)</comment>
173File systems ---&gt; 170File systems ---&gt;
174 Pseudo Filesystems ---&gt; 171 Pseudo Filesystems ---&gt;
175 [*] /proc file system support 172 [*] /proc file system support
176 [*] /dev file system support (OBSOLETE) 173 [ ] /dev file system support (OBSOLETE)
177 [*] Automatically mount at boot
178 [*] Virtual memory file system support (former shm fs) 174 [*] Virtual memory file system support (former shm fs)
179 175
180<comment>(Select one or more of the following options as needed by your system)</comment> 176<comment>(Select one or more of the following options as needed by your system)</comment>
181 &lt;*&gt; Reiserfs support 177 &lt;*&gt; Reiserfs support
182 &lt;*&gt; Ext3 journalling file system support 178 &lt;*&gt; Ext3 journalling file system support
302</pre> 298</pre>
303 299
304<p> 300<p>
305When the kernel has finished compiling, copy the kernel image to 301When the kernel has finished compiling, copy the kernel image to
306<path>/boot</path>. In the next example we assume you have configured and 302<path>/boot</path>. In the next example we assume you have configured and
307compiled <c>vanilla-sources-2.4.24</c>; recent kernels might create 303compiled <c>vanilla-sources-2.6.11.2</c>; recent kernels might create
308<path>vmlinux</path> instead of <path>vmlinux.gz</path>. 304<path>vmlinux</path> instead of <path>vmlinux.gz</path>.
309</p> 305</p>
310 306
311<pre caption="Installing the kernel"> 307<pre caption="Installing the kernel">
312# <i>cp arch/alpha/boot/vmlinux.gz /boot/</i> 308# <i>cp arch/alpha/boot/vmlinux.gz /boot/</i>
313# <i>cp System.map /boot/System.map-2.4.24</i> 309# <i>cp System.map /boot/System.map-2.6.11.2</i>
314</pre> 310</pre>
315 311
316<p> 312<p>
317It is also wise to copy over your kernel configuration file to 313It is also wise to copy over your kernel configuration file to
318<path>/boot</path>, just in case :) 314<path>/boot</path>, just in case :)
319</p> 315</p>
320 316
321<pre caption="Backing up your kernel configuration"> 317<pre caption="Backing up your kernel configuration">
322# <i>cp .config /boot/config-2.4.24</i> 318# <i>cp .config /boot/config-2.6.11.2</i>
323</pre> 319</pre>
324 320
325<p> 321<p>
326Now continue with <uri link="#kernel_modules">Installing Separate Kernel 322Now continue with <uri link="#kernel_modules">Installing Separate Kernel
327Modules</uri>. 323Modules</uri>.
341 337
342<p> 338<p>
343Now that your kernel source tree is installed, it's now time to compile your 339Now that your kernel source tree is installed, it's now time to compile your
344kernel by using our <c>genkernel</c> script to automatically build a kernel for 340kernel by using our <c>genkernel</c> script to automatically build a kernel for
345you. <c>genkernel</c> works by configuring a kernel nearly identically to the 341you. <c>genkernel</c> works by configuring a kernel nearly identically to the
346way our LiveCD kernel is configured. This means that when you use 342way our Installation CD kernel is configured. This means that when you use
347<c>genkernel</c> to build your kernel, your system will generally detect all 343<c>genkernel</c> to build your kernel, your system will generally detect all
348your hardware at boot-time, just like our Live CD does. Because genkernel 344your hardware at boot-time, just like our Installation CD does. Because genkernel
349doesn't require any manual kernel configuration, it is an ideal solution for 345doesn't require any manual kernel configuration, it is an ideal solution for
350those users who may not be comfortable compiling their own kernels. 346those users who may not be comfortable compiling their own kernels.
351</p> 347</p>
352 348
353<p> 349<p>
373 369
374<pre caption="Running genkernel"> 370<pre caption="Running genkernel">
375# <i>genkernel all</i> 371# <i>genkernel all</i>
376GenKernel v3.0.1_beta10 372GenKernel v3.0.1_beta10
377* ARCH: Alpha 373* ARCH: Alpha
378* KERNEL VER: 2.4.24 374* KERNEL VER: 2.6.11.2
379* kernel: configuring source 375* kernel: configuring source
380* kernel: running mrproper 376* kernel: running mrproper
381<comment>(Output removed to increase readability)</comment> 377<comment>(Output removed to increase readability)</comment>
382* Kernel compiled successfully! 378* Kernel compiled successfully!
383* Required Kernel Params: 379* Required Kernel Params:
400Once <c>genkernel</c> completes, a kernel, full set of modules and 396Once <c>genkernel</c> completes, a kernel, full set of modules and
401<e>initial root disk</e> (initrd) will be created. We will use the kernel 397<e>initial root disk</e> (initrd) will be created. We will use the kernel
402and initrd when configuring a boot loader later in this document. Write 398and initrd when configuring a boot loader later in this document. Write
403down the names of the kernel and initrd as you will need it when writing 399down the names of the kernel and initrd as you will need it when writing
404the bootloader configuration file. The initrd will be started immediately after 400the bootloader configuration file. The initrd will be started immediately after
405booting to perform hardware autodetection (just like on the Live CD) before 401booting to perform hardware autodetection (just like on the Installation CD) before
406your "real" system starts up. 402your "real" system starts up.
407</p> 403</p>
408 404
409<pre caption="Checking the created kernel image name and initrd"> 405<pre caption="Checking the created kernel image name and initrd">
410# <i>ls /boot/kernel* /boot/initrd*</i> 406# <i>ls /boot/kernel* /boot/initrd*</i>
411</pre> 407</pre>
412 408
413<p> 409<p>
414Now, let's perform one more step to get our system to be more like the Live 410Now, let's perform one more step to get our system to be more like the Installation CD -- let's emerge <c>coldplug</c>. While the initrd autodetects hardware that
415CD -- let's emerge <c>coldplug</c>. While the initrd autodetects hardware that
416is needed to boot your system, <c>coldplug</c> autodetects everything else. 411is needed to boot your system, <c>coldplug</c> autodetects everything else.
417To emerge and enable <c>coldplug</c>, type the following: 412To emerge and enable <c>coldplug</c>, type the following:
418</p> 413</p>
419 414
420<pre caption="Emerging and enabling coldplug"> 415<pre caption="Emerging and enabling coldplug">
453 <th>Ebuild</th> 448 <th>Ebuild</th>
454 <th>Purpose</th> 449 <th>Purpose</th>
455 <th>Command</th> 450 <th>Command</th>
456</tr> 451</tr>
457<tr> 452<tr>
458 <ti>xfree-drm (or x11-drm)</ti> 453 <ti>x11-drm</ti>
459 <ti> 454 <ti>
460 Accelerated graphics for ATI Radeon up to 9200, Rage128, Matrox, Voodoo and 455 Accelerated graphics for ATI Radeon up to 9200, Rage128, Matrox, Voodoo and
461 other cards for XFree86. Please check the <c>IUSE_VIDEO_CARDS</c> variable 456 other cards for xorg-x11. Please check the <c>IUSE_VIDEO_CARDS</c> variable
462 in the <path>/usr/portage/x11-base/xfree-drm</path> ebuilds to see what you 457 in the <path>/usr/portage/x11-base/x11-drm</path> ebuilds to see what you
463 need to fill in as <c>yourcard</c>. The xfree-drm ebuild has been renamed to 458 need to fill in as <c>yourcard</c>.
464 x11-drm after the 2004.3 release.
465 </ti> 459 </ti>
466 <ti><c>VIDEO_CARDS="yourcard" emerge xfree-drm</c></ti> 460 <ti><c>VIDEO_CARDS="yourcard" emerge x11-drm</c></ti>
467</tr> 461</tr>
468</table> 462</table>
469 463
470<p> 464<p>
471Beware though, some of these ebuilds might deal with big dependencies. To verify 465Beware though, some of these ebuilds might deal with big dependencies. To verify
472what packages will be installed by emerging an ebuild, use <c>emerge 466what packages will be installed by emerging an ebuild, use <c>emerge
473--pretend</c>. For instance, for the <c>xfree-drm</c> package: 467--pretend</c>. For instance, for the <c>x11-drm</c> package:
474</p> 468</p>
475 469
476<pre caption="View full installation package listing"> 470<pre caption="View full installation package listing">
477# <i>emerge --pretend xfree-drm</i> 471# <i>emerge --pretend x11-drm</i>
478</pre> 472</pre>
479 473
480</body> 474</body>
481</subsection> 475</subsection>
482<subsection> 476<subsection>

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

  ViewVC Help
Powered by ViewVC 1.1.20