/[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.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-hppa-kernel.xml,v 1.37 2007/03/13 00:30:09 nightmorph Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-hppa-kernel.xml,v 1.38 2007/05/07 18:11:41 nightmorph Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<version>7.5</version> 11<version>8.0</version>
12<date>2007-03-12</date> 12<date>2007-05-07</date>
13 13
14<section> 14<section>
15<title>Timezone</title> 15<title>Timezone</title>
16<body> 16<body>
17 17
18<p> 18<p>
19You first need to select your timezone so that your system knows where it is 19You first need to select your timezone so that your system knows where it is
20located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy 20located. Look for your timezone in <path>/usr/share/zoneinfo</path>. You then
21it to <path>/etc/localtime</path>. Please avoid the 21set your timezone in <path>/etc/conf.d/clock</path>. Please avoid the
22<path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not 22<path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not
23indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8. 23indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8.
24</p> 24</p>
25 25
26<pre caption="Setting the timezone information"> 26<pre caption="Setting the timezone information">
27# <i>ls /usr/share/zoneinfo</i> 27# <i>ls /usr/share/zoneinfo</i>
28<comment>(Suppose you want to use GMT)</comment> 28<comment>(Suppose you want to use GMT)</comment>
29# <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i> 29# <i>nano -w /etc/conf.d/clock</i>
30TIMEZONE="GMT"
30</pre> 31</pre>
31 32
32</body> 33</body>
33</section> 34</section>
34<section> 35<section>
45Guide</uri>. 46Guide</uri>.
46</p> 47</p>
47 48
48<p> 49<p>
49For HPPA we have <c>hppa-sources</c>. By default, these sources are based on the 50For HPPA we have <c>hppa-sources</c>. By default, these sources are based on the
502.6 kernel sources. If you want to install a 2.4 kernel, you will need to 512.6 kernel sources.
51install Gentoo from a working Internet connection as we do not supply those
52sources on our Installation CD. Continue by installing the kernel source.
53</p> 52</p>
54 53
55<pre caption="Installing a kernel source"> 54<pre caption="Installing a kernel source">
56# <i>emerge hppa-sources</i> 55# <i>emerge hppa-sources</i>
57</pre> 56</pre>
58 57
59<p> 58<p>
60When you take a look in <path>/usr/src</path> you should see a symlink called 59When you take a look in <path>/usr/src</path> you should see a symlink called
61<path>linux</path> pointing to your kernel source. In this case, the installed 60<path>linux</path> pointing to your kernel source. In this case, the installed
62kernel source points to <c>hppa-sources-2.6.16.18-pa11</c>. Your version may be 61kernel source points to <c>hppa-sources-<keyval id="kernel-version"/></c>. Your
63different, so keep this in mind. 62version may be different, so keep this in mind.
64</p> 63</p>
65 64
66<pre caption="Viewing the kernel source symlink"> 65<pre caption="Viewing the kernel source symlink">
67# <i>ls -l /usr/src/linux</i> 66# <i>ls -l /usr/src/linux</i>
68lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-2.6.16.18-pa11 67lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-<keyval id="kernel-version"/>
69</pre> 68</pre>
70 69
71<p> 70<p>
72Now it is time to configure and compile your kernel source. All architectures 71Now it is time to configure and compile your kernel source. All architectures
73can use <c>genkernel</c> for this, which will build a generic kernel as used 72can use <c>genkernel</c> for this, which will build a generic kernel as used
177 &lt;*&gt; PPP support for sync tty ports 176 &lt;*&gt; PPP support for sync tty ports
178</pre> 177</pre>
179 178
180<p> 179<p>
181The two compression options won't harm but are not definitely needed, neither 180The two compression options won't harm but are not definitely needed, neither
182does the <c>PPP over Ethernet</c> option, that might only be used by 181does the <c>PPP over Ethernet</c> option, that might only be used by <c>ppp</c>
183<c>rp-pppoe</c> when configured to do kernel mode PPPoE. 182when configured to do kernel mode PPPoE.
184</p> 183</p>
185 184
186<p> 185<p>
187If you require it, don't forget to include support in the kernel for your 186If you require it, don't forget to include support in the kernel for your
188ethernet card. 187ethernet card.
288If you are reading this section, you have chosen to use our <c>genkernel</c> 287If you are reading this section, you have chosen to use our <c>genkernel</c>
289script to configure your kernel for you. 288script to configure your kernel for you.
290</p> 289</p>
291 290
292<p> 291<p>
293Now that your kernel source tree is installed, it's now time to compile your 292Now that your kernel source tree is installed, it's now time to compile your
294kernel by using our <c>genkernel</c> script to automatically build a kernel for 293kernel by using our <c>genkernel</c> script to automatically build a kernel for
295you. <c>genkernel</c> works by configuring a kernel nearly identically to the 294you. <c>genkernel</c> works by configuring a kernel nearly identically to the
296way our Installation CD kernel is configured. This means that when you use 295way our Installation CD kernel is configured. This means that when you use
297<c>genkernel</c> to build your kernel, your system will generally detect all 296<c>genkernel</c> to build your kernel, your system will generally detect all
298your hardware at boot-time, just like our Installation CD does. Because genkernel 297your hardware at boot-time, just like our Installation CD does. Because
299doesn't require any manual kernel configuration, it is an ideal solution for 298genkernel doesn't require any manual kernel configuration, it is an ideal
300those users who may not be comfortable compiling their own kernels. 299solution for those users who may not be comfortable compiling their own
300kernels.
301</p> 301</p>
302 302
303<p> 303<p>
304Now, let's see how to use genkernel. First, emerge the genkernel ebuild: 304Now, let's see how to use genkernel. First, emerge the genkernel ebuild:
305</p> 305</p>
321module). 321module).
322</p> 322</p>
323 323
324<pre caption="Running genkernel"> 324<pre caption="Running genkernel">
325# <i>genkernel all</i> 325# <i>genkernel all</i>
326<comment>(Output removed to increase readability)</comment>
327* Kernel compiled successfully!
328* Required Kernel Params:
329* : root=/dev/ram0 init=/linuxrc real_root=/dev/$ROOT
330* where $ROOT is the devicenode for your root partition as
331* you should have specified in /etc/fstab
332*
333* You MUST tell your bootloader to use the generated initrd
334*
335* Recommended Kernel Params:
336* : vga=0x317 splash=verbose
337*
338* Do NOT report kernel bugs (configs included) as genkernel bugs.
339* Make sure you have the latest genkernel before reporting bugs
340*
341* For more info see /usr/share/genkernel/README
342</pre> 326</pre>
343 327
344<p> 328<p>
345Once <c>genkernel</c> completes, a kernel, full set of modules and 329Once <c>genkernel</c> completes, a kernel, full set of modules and
346<e>initial root disk</e> (initrd) will be created. We will use the kernel 330<e>initial root disk</e> (initrd) will be created. We will use the kernel

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

  ViewVC Help
Powered by ViewVC 1.1.20