/[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.32 Revision 1.37
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-alpha-kernel.xml,v 1.32 2005/11/21 15:37:12 neysx Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-alpha-kernel.xml,v 1.37 2007/03/13 00:30:09 nightmorph Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>2.10</version> 11<version>7.3</version>
12<date>2005-11-21</date> 12<date>2007-03-12</date>
13 13
14<section> 14<section>
15<title>Timezone</title> 15<title>Timezone</title>
16<body> 16<body>
17 17
52<p> 52<p>
53Choose your kernel source and install it using <c>emerge</c>. 53Choose your kernel source and install it using <c>emerge</c>.
54</p> 54</p>
55 55
56<p> 56<p>
57In the next example we install the <c>vanilla-sources</c>. 57In the next example we install <c>vanilla-sources</c>. Of course substitute with
58Of course substitute with your choice of sources, this is merely an example. 58your choice of sources, this is merely an example.
59The <c>USE="-doc"</c> is necessary to avoid installing xorg-x11 or other
60dependencies at this point:
61</p> 59</p>
62 60
63<pre caption="Installing a kernel source"> 61<pre caption="Installing a kernel source">
64# <i>USE="-doc" emerge vanilla-sources</i> 62# <i>emerge vanilla-sources</i>
65</pre> 63</pre>
66 64
67<p> 65<p>
68When you take a look in <path>/usr/src</path> you should see a symlink called 66When you take a look in <path>/usr/src</path> you should see a symlink called
69<path>linux</path> pointing to your kernel source: 67<path>linux</path> pointing to your kernel source. In this case, the installed
68kernel source points to <c>vanilla-sources-2.6.16.19</c>. Your version may be
69different, so keep this in mind.
70</p> 70</p>
71 71
72<pre caption="Viewing the kernel source symlink"> 72<pre caption="Viewing the kernel source symlink">
73# <i>ls -l /usr/src/linux</i> 73# <i>ls -l /usr/src/linux</i>
74lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-2.6.11.2 74lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-2.6.16.19
75</pre>
76
77<p>
78If this isn't the case (i.e. the symlink points to a different kernel source)
79change the symlink before you continue:
80</p>
81
82<pre caption="Changing the kernel source symlink">
83# <i>rm /usr/src/linux</i>
84# <i>cd /usr/src</i>
85# <i>ln -s linux-2.6.11.2 linux</i>
86</pre> 75</pre>
87 76
88<p> 77<p>
89Now it is time to configure and compile your kernel source. You 78Now it is time to configure and compile your kernel source. You
90can use <c>genkernel</c> for this, which will build a generic kernel as used 79can use <c>genkernel</c> for this, which will build a generic kernel as used
180 169
181<comment>(With a 2.6.x kernel)</comment> 170<comment>(With a 2.6.x kernel)</comment>
182File systems ---&gt; 171File systems ---&gt;
183 Pseudo Filesystems ---&gt; 172 Pseudo Filesystems ---&gt;
184 [*] /proc file system support 173 [*] /proc file system support
185 [ ] /dev file system support (OBSOLETE)
186 [*] Virtual memory file system support (former shm fs) 174 [*] Virtual memory file system support (former shm fs)
187 175
188<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>
189 &lt;*&gt; Reiserfs support 177 &lt;*&gt; Reiserfs support
190 &lt;*&gt; Ext3 journalling file system support 178 &lt;*&gt; Ext3 journalling file system support
309# <i>make boot</i> 297# <i>make boot</i>
310</pre> 298</pre>
311 299
312<p> 300<p>
313When the kernel has finished compiling, copy the kernel image to 301When the kernel has finished compiling, copy the kernel image to
314<path>/boot</path>. In the next example we assume you have configured and 302<path>/boot</path>. Recent kernels might create <path>vmlinux</path> instead of
315compiled <c>vanilla-sources-2.6.11.2</c>; recent kernels might create 303<path>vmlinux.gz</path>. Keep this in mind when you copy your kernel image.
316<path>vmlinux</path> instead of <path>vmlinux.gz</path>.
317</p> 304</p>
318 305
319<pre caption="Installing the kernel"> 306<pre caption="Installing the kernel">
320# <i>cp arch/alpha/boot/vmlinux.gz /boot/</i> 307# <i>cp arch/alpha/boot/vmlinux.gz /boot/</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.11.2</i>
330</pre> 308</pre>
331 309
332<p> 310<p>
333Now continue with <uri link="#kernel_modules">Installing Separate Kernel 311Now continue with <uri link="#kernel_modules">Installing Separate Kernel
334Modules</uri>. 312Modules</uri>.
378module). 356module).
379</p> 357</p>
380 358
381<pre caption="Running genkernel"> 359<pre caption="Running genkernel">
382# <i>genkernel all</i> 360# <i>genkernel all</i>
383GenKernel v3.0.1_beta10 361* Gentoo Linux Genkernel; Version 3.4.0
384* ARCH: Alpha 362* Running with options: all
385* KERNEL VER: 2.6.11.2 363
386* kernel: configuring source 364* Linux Kernel 2.6.16.19 for alpha...
387* kernel: running mrproper 365* kernel: >> Running mrproper...
388<comment>(Output removed to increase readability)</comment> 366<comment>(Output removed to increase readability)</comment>
389* Kernel compiled successfully! 367* Kernel compiled successfully!
368*
390* Required Kernel Params: 369* Required Kernel Parameters:
391* : root=/dev/ram0 init=/linuxrc real_root=/dev/$ROOT 370* real_root=/dev/$ROOT
371*
392* where $ROOT is the devicenode for your root partition as 372* Where $ROOT is the device node for your root partition as the
393* you should have specified in /etc/fstab 373* one specified in /etc/fstab
394* 374*
395* You MUST tell your bootloader to use the generated initrd 375* If you require Genkernel's hardware detection features; you MUST
396* 376* tell your bootloader to use the provided INITRAMFS file. Otherwise;
397* Recommended Kernel Params: 377* substitute the root argument for the real_root argument if you are
398* : vga=0x317 splash=verbose 378* not planning to use the initrd...
399* 379
400* Do NOT report kernel bugs (configs included) as genkernel bugs. 380* WARNING... WARNING... WARNING...
381* Additional kernel cmdline arguments that *may* be required to boot properly...
382* Do NOT report kernel bugs as genkernel bugs unless your bug
383* is about the default genkernel configuration...
384*
401* Make sure you have the latest genkernel before reporting bugs 385* Make sure you have the latest genkernel before reporting bugs.
402*
403* For more info see /usr/share/genkernel/README
404</pre> 386</pre>
405 387
406<p> 388<p>
407Once <c>genkernel</c> completes, a kernel, full set of modules and 389Once <c>genkernel</c> completes, a kernel, full set of modules and
408<e>initial root disk</e> (initrd) will be created. We will use the kernel 390<e>initial root disk</e> (initrd) will be created. We will use the kernel
413your "real" system starts up. 395your "real" system starts up.
414</p> 396</p>
415 397
416<pre caption="Checking the created kernel image name and initrd"> 398<pre caption="Checking the created kernel image name and initrd">
417# <i>ls /boot/kernel* /boot/initramfs-*</i> 399# <i>ls /boot/kernel* /boot/initramfs-*</i>
418</pre>
419
420<p>
421Now, 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
422is needed to boot your system, <c>coldplug</c> autodetects everything else.
423To emerge and enable <c>coldplug</c>, type the following:
424</p>
425
426<pre caption="Emerging and enabling coldplug">
427# <i>emerge coldplug</i>
428# <i>rc-update add coldplug boot</i>
429</pre> 400</pre>
430 401
431</body> 402</body>
432</section> 403</section>
433<section id="kernel_modules"> 404<section id="kernel_modules">

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

  ViewVC Help
Powered by ViewVC 1.1.20