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

Contents of /xml/htdocs/doc/en/handbook/hb-install-ppc64-kernel.xml

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.35 - (show annotations) (download) (as text)
Tue Apr 1 08:53:46 2008 UTC (10 years, 5 months ago) by nightmorph
Branch: MAIN
Changes since 1.34: +9 -52 lines
File MIME type: application/xml
release time. note that since this is beta1, the release dir and stage/media names have been adjusted accordingly. also, the handbooks are marked with a disclaimer=draft, so once the final is out, that will be removed and the release names adjusted. in the mean time, these are live. the beta is officially released. no, it's not april fools, but it is april 1st. :)

1 <?xml version='1.0' encoding='UTF-8'?>
2 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3
4 <!-- The content of this document is licensed under the CC-BY-SA license -->
5 <!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6
7 <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/draft/hb-install-ppc64-kernel.xml,v 1.23 2008/03/31 21:48:59 nightmorph Exp $ -->
8
9 <sections>
10
11 <version>9.0</version>
12 <date>2008-04-01</date>
13
14 <section>
15 <title>Timezone</title>
16 <body>
17
18 <p>
19 You first need to select your timezone so that your system knows where it is
20 located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy
21 it to <path>/etc/localtime</path>. Please avoid the
22 <path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not
23 indicate the expected zones. For instance, <path>GMT-8</path> is in fact
24 GMT+8.
25 </p>
26
27 <pre caption="Setting the timezone information">
28 # <i>ls /usr/share/zoneinfo</i>
29 <comment>(Suppose you want to use GMT)</comment>
30 # <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i>
31 </pre>
32
33 </body>
34 </section>
35 <section>
36 <title>Installing the Sources</title>
37 <subsection>
38 <title>Choosing a Kernel</title>
39 <body>
40
41 <p>
42 The core around which all distributions are built is the Linux kernel.
43 It is the layer between the user programs and your system hardware.
44 Gentoo provides its users several possible kernel sources. A full
45 listing with description is available at the <uri
46 link="/doc/en/gentoo-kernel.xml">Gentoo Kernel Guide</uri>.
47 </p>
48
49 <p>
50 For PPC64 you should use <c>gentoo-sources</c>.
51 </p>
52
53 <pre caption="Installing a kernel source">
54 # <i>emerge gentoo-sources</i>
55 </pre>
56
57 <p>
58 When you take a look in <path>/usr/src</path> you should see a symlink called
59 <path>linux</path> pointing to your kernel source. In this case, the installed
60 kernel source points to <c>gentoo-sources-<keyval id="kernel-version"/></c>.
61 Your version may be different, so keep this in mind.
62 </p>
63
64 <pre caption="Viewing the kernel source symlink">
65 # <i>ls -l /usr/src/linux</i>
66 lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-<keyval id="kernel-version"/>
67 </pre>
68
69 <p>
70 Now it is time to configure and compile your kernel source. There is the
71 ability to use "genkernel" which would create a generic kernel like the
72 ones used on the installation CDs, but it is not fully functional for PPC64 at
73 the moment.
74 </p>
75
76 <p>
77 Continue now with <uri link="#manual">Manual Configuration</uri>.
78 </p>
79
80 </body>
81 </subsection>
82 </section>
83 <section id="manual">
84 <title>Manual Configuration</title>
85 <subsection>
86 <title>Introduction</title>
87 <body>
88
89 <p>
90 Manually configuring a kernel is often seen as the most difficult procedure a
91 Linux user ever has to perform. Nothing is less true -- after configuring a
92 couple of kernels you don't even remember that it was difficult ;)
93 </p>
94
95 <p>
96 However, one thing <e>is</e> true: you must know your system when you
97 configuring a kernel manually. Most information can be gathered by emerging
98 pciutils (<c>emerge pciutils</c>) which contains <c>lspci</c>. You will now
99 be able to use <c>lspci</c> within the chrooted environment. You may safely
100 ignore any <e>pcilib</e> warnings (like pcilib: cannot open
101 /sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, you can run
102 <c>lspci</c> from a <e>non-chrooted</e> environment. The results are the same.
103 You can also run <c>lsmod</c> to see what kernel modules the Installation CD
104 uses (it might provide you with a nice hint on what to enable).
105 </p>
106
107 <pre caption="Invoking menuconfig">
108 # <i>cd /usr/src/linux</i>
109 <comment>Important: In case you are in 32-bit userland, you must edit the top
110 level Makefile in /usr/src/linux and change the CROSS_COMPILE option to
111 CROSS_COMPILE ?= powerpc64-unknown-linux-gnu-. You must do this before you run
112 make menuconfig or it may result in kernel compilation problems.</comment>
113 # <i>make menuconfig</i>
114 </pre>
115
116 <p>
117 You will be greeted with several configuration sections. We'll first
118 list some options you must activate (otherwise Gentoo will not function,
119 or not function properly without additional tweaks).
120 </p>
121
122 </body>
123 </subsection>
124 <subsection>
125 <title>Activating Required Options</title>
126 <body>
127
128 <p>
129 First go to <c>File Systems</c> and select support for the filesystems you use.
130 <e>Don't</e> compile them as modules, otherwise your Gentoo system will not be
131 able to mount your partitions. Also select <c>Virtual memory</c>, <c>/proc file
132 system</c>, and <c>/dev/pts file system for Unix98 PTYs</c>:
133 </p>
134
135 <pre caption="Selecting necessary file systems">
136 File systems ---&gt;
137 [*] Virtual memory file system support (former shm fs)
138 [*] /proc file system support
139 [*] /dev/pts file system for Unix98 PTYs
140
141 <comment>(Select one or more of the following options as needed by your system)</comment>
142 &lt;*&gt; Reiserfs support
143 &lt;*&gt; Ext3 journalling file system support
144 &lt;*&gt; JFS filesystem support
145 &lt;*&gt; Second extended fs support
146 &lt;*&gt; XFS filesystem support
147 </pre>
148
149 <note>
150 You will find some of the mentioned options under <c>Pseudo
151 filesystems</c> which is a subpart of <c>File systems</c>.
152 </note>
153
154 <p>
155 If you are using PPPoE to connect to the Internet or you are using a
156 dial-up modem, you will need the following options in the kernel (you
157 will find the mentioned options under <c>Networking support</c> which is
158 a subpart of <c>Device Drivers</c>):
159 </p>
160
161 <pre caption="Selecting PPPoE necessary drivers">
162 Network device support ---&gt;
163 &lt;*&gt; PPP (point-to-point protocol) support
164 &lt;*&gt; PPP support for async serial ports
165 &lt;*&gt; PPP support for sync tty ports
166 </pre>
167
168 <p>
169 The two compression options won't harm but are not definitely needed, neither
170 does the <c>PPP over Ethernet</c> option, that might only be used by <c>ppp</c>
171 when configured to do kernel mode PPPoE.
172 </p>
173
174 <p>
175 If you require it, don't forget to include support in the kernel for your
176 ethernet card.
177 </p>
178
179 <p>
180 Disable ADB raw keycodes:
181 </p>
182
183 <pre caption="Disabling ADB raw keycodes">
184 Macintosh Device Drivers ---&gt;
185 [ ] Support for ADB raw keycodes
186 </pre>
187
188 <p>
189 When you're done configuring your kernel, continue with <uri
190 link="#compiling">Compiling and Installing</uri>.
191 </p>
192
193 </body>
194 </subsection>
195 <subsection id="compiling">
196 <title>Compiling and Installing</title>
197 <body>
198
199 <p>
200 Now that your kernel is configured, it is time to compile and install it. Exit
201 the configuration and start the compilation process:
202 </p>
203
204 <pre caption="Compiling the kernel">
205 (Apple/IBM) # <i>make &amp;&amp; make modules_install</i>
206 </pre>
207
208 <p>
209 When the kernel has finished compiling, copy the kernel image to
210 <path>/boot</path>. Remember to replace <path>&lt;kernel-version&lt;</path>
211 with your actual kernel version:
212 </p>
213
214 <pre caption="Installing the kernel">
215 (Apple/IBM) # <i>cp vmlinux /boot/&lt;kernel-version&gt;</i>
216 </pre>
217
218 <p>
219 Now continue with <uri link="#kernel_modules">Kernel Modules</uri>.
220 </p>
221
222 </body>
223 </subsection>
224 </section>
225 <section id="kernel_modules">
226 <title>Kernel Modules</title>
227
228 <subsection>
229 <include href="hb-install-kernelmodules.xml"/>
230 </subsection>
231
232 </section>
233 </sections>

  ViewVC Help
Powered by ViewVC 1.1.20