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

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

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

Revision 1.29 Revision 1.30
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-hppa-kernel.xml,v 1.29 2005/11/21 15:37:12 neysx Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-hppa-kernel.xml,v 1.30 2006/01/08 14:05:29 neysx Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>1.22</version> 11<version>1.23</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>
49For HPPA we have <c>hppa-sources</c>. Default these sources are based on 49For HPPA we have <c>hppa-sources</c>. By default, these sources are based on
50the 2.6 kernel sources. If you want to install a 2.4 kernel, you will need 50the 2.6 kernel sources. If you want to install a 2.4 kernel, you will need to
51to install Gentoo from a working Internet connection as we do not supply those 51install Gentoo from a working Internet connection as we do not supply those
52sources on our Installation CD. Continue by installing the kernel source. 52sources on our Installation CD. Continue by installing the kernel source. The
53The <c>USE="-doc"</c> is necessary to avoid installing xorg-x11 or other 53<c>USE="-doc"</c> is necessary to avoid installing xorg-x11 or other
54dependencies at this point: 54dependencies at this point. <c>USE="symlink"</c> is not necessary for a new
55install, but ensures proper creation of the <path>/usr/src/linux</path>
56symlink.
55</p> 57</p>
56 58
57<pre caption="Installing a kernel source"> 59<pre caption="Installing a kernel source">
58# <i>USE="-doc" emerge hppa-sources</i> 60# <i>USE="-doc symlink" emerge hppa-sources</i>
59</pre> 61</pre>
60 62
61<p> 63<p>
62When you take a look in <path>/usr/src</path> you should see a symlink called 64When you take a look in <path>/usr/src</path> you should see a symlink called
63<path>linux</path> pointing to your kernel source: 65<path>linux</path> pointing to your kernel source. In this case, the installed
66kernel source points to <c>hppa-sources-2.6.12.2-pa2</c>. Your version may be
67different, so keep this in mind.
64</p> 68</p>
65 69
66<pre caption="Viewing the kernel source symlink"> 70<pre caption="Viewing the kernel source symlink">
67# <i>ls -l /usr/src/linux</i> 71# <i>ls -l /usr/src/linux</i>
68lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-2.6.12.2-pa2 72lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-2.6.12.2-pa2
69</pre>
70
71<p>
72If this isn't the case (i.e. the symlink points to a different kernel source)
73change the symlink before you continue:
74</p>
75
76<pre caption="Changing the kernel source symlink">
77# <i>rm /usr/src/linux</i>
78# <i>cd /usr/src</i>
79# <i>ln -s linux-2.6.12.2-pa2 linux</i>
80</pre> 73</pre>
81 74
82<p> 75<p>
83Now it is time to configure and compile your kernel source. All architectures 76Now it is time to configure and compile your kernel source. All architectures
84can use <c>genkernel</c> for this, which will build a generic kernel as used 77can use <c>genkernel</c> for this, which will build a generic kernel as used
155</pre> 148</pre>
156 149
157<p> 150<p>
158Now go to <c>File Systems</c> and select support for the filesystems you use. 151Now go to <c>File Systems</c> and select support for the filesystems you use.
159<e>Don't</e> compile them as modules, otherwise your Gentoo system will not be 152<e>Don't</e> compile them as modules, otherwise your Gentoo system will not be
160able to mount your partitions. Also select <c>Virtual memory</c>, <c>/proc 153able to mount your partitions. Also select <c>Virtual memory</c> and <c>/proc
161file system</c>, <c>/dev file system</c> + <c>Automatically mount at boot</c>: 154file system</c>:
162</p> 155</p>
163 156
164<pre caption="Selecting necessary file systems"> 157<pre caption="Selecting necessary file systems">
165File systems ---&gt; 158File systems ---&gt;
166 Pseudo Filesystems ---&gt; 159 Pseudo Filesystems ---&gt;
167 [*] /proc file system support 160 [*] /proc file system support
168 [*] /dev file system support (OBSOLETE)
169 [*] Automatically mount at boot
170 [*] Virtual memory file system support (former shm fs) 161 [*] Virtual memory file system support (former shm fs)
171 162
172<comment>(Select one or more of the following options as needed by your system)</comment> 163<comment>(Select one or more of the following options as needed by your system)</comment>
173 &lt;*&gt; Reiserfs support 164 &lt;*&gt; Reiserfs support
174 &lt;*&gt; Ext3 journalling file system support 165 &lt;*&gt; Ext3 journalling file system support
266# <i>make &amp;&amp; make modules_install</i> 257# <i>make &amp;&amp; make modules_install</i>
267</pre> 258</pre>
268 259
269<p> 260<p>
270When the kernel has finished compiling, copy the kernel image to 261When the kernel has finished compiling, copy the kernel image to
271<path>/boot</path>. In the next example we assume you have configured and 262<path>/boot</path>. Use whatever name you feel is appropriate for your kernel
272compiled <c>hppa-sources-2.6.12.2-pa2</c>. 263choice and remember it as you will need it later on when you configure your
264bootloader. Remember to replace <path>&lt;kernel-version&gt;</path> with the
265name and version of your kernel.
273</p> 266</p>
274 267
275<pre caption="Installing the kernel"> 268<pre caption="Installing the kernel">
276# <i>cp vmlinux /boot/kernel-2.6.12.2-pa2</i> 269# <i>cp vmlinux /boot/&lt;kernel-version&gt;</i>
277</pre>
278
279<p>
280It is also wise to copy over your kernel configuration file to
281<path>/boot</path>, just in case :)
282</p>
283
284<pre caption="Backing up your kernel configuration">
285# <i>cp .config /boot/config-2.6.12.2-pa2</i>
286</pre> 270</pre>
287 271
288<p> 272<p>
289Now continue with <uri link="#kernel_modules">Configuring Kernel 273Now continue with <uri link="#kernel_modules">Configuring Kernel
290Modules</uri>. 274Modules</uri>.

Legend:
Removed from v.1.29  
changed lines
  Added in v.1.30

  ViewVC Help
Powered by ViewVC 1.1.20