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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.15 - (show annotations) (download) (as text)
Wed Feb 22 21:27:45 2012 UTC (2 years, 6 months ago) by swift
Branch: MAIN
Changes since 1.14: +7 -5 lines
File MIME type: application/xml
Fix bug #405271 (thanks to Ogelpre) to update /etc/timezone wherever we say to update /etc/localtime as it is /etc/timezone that is the master, read by timezone-data to update localtime

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/hb-install-arm-kernel.xml,v 1.14 2008/04/01 08:53:46 nightmorph Exp $ -->
8
9 <sections>
10
11 <version>10</version>
12 <date>2012-02-22</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 Europe/Brussels)</comment>
30 # <i>cp /usr/share/zoneinfo/Europe/Brussels /etc/localtime</i>
31 <comment>(Next set the timezone)</comment>
32 # <i>echo "Europe/Brussels" &gt; /etc/timezone</i>
33 </pre>
34
35 </body>
36 </section>
37 <section>
38 <title>Installing the Sources</title>
39 <subsection>
40 <title>Choosing a Kernel</title>
41 <body>
42
43 <p>
44 The core around which all distributions are built is the Linux kernel. It is the
45 layer between the user programs and your system hardware. Gentoo provides its
46 users several possible kernel sources. A full listing with description is
47 available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel
48 Guide</uri>.
49 </p>
50
51 <p>
52 For ARM systems, we will use <c>gentoo-sources</c> (contains additional patches
53 for extra features).
54 </p>
55
56 <p>
57 Now install it using <c>emerge</c>.
58 </p>
59
60 <pre caption="Installing a kernel source">
61 # <i>emerge gentoo-sources</i>
62 </pre>
63
64 <p>
65 When you take a look in <path>/usr/src</path> you should see a symlink called
66 <path>linux</path> pointing to your kernel source. In this case, the installed
67 kernel source points to <c>gentoo-sources-<keyval id="kernel-version"/></c>.
68 Your version may be different, so keep this in mind.
69 </p>
70
71 <pre caption="Viewing the kernel source symlink">
72 # <i>ls -l /usr/src/linux</i>
73 lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-<keyval id="kernel-version"/>
74 </pre>
75
76 </body>
77 </subsection>
78 </section>
79 <section id="manual">
80 <title>Default: Manual Configuration</title>
81 <subsection>
82 <title>Introduction</title>
83 <body>
84
85 <p>
86 Manually configuring a kernel is often seen as the most difficult procedure a
87 Linux user ever has to perform. Nothing is less true -- after configuring a
88 couple of kernels you don't even remember that it was difficult ;)
89 </p>
90
91 <p>
92 However, one thing <e>is</e> true: you must know your system when you start
93 configuring a kernel manually. Most information can be gathered by emerging
94 pciutils (<c>emerge pciutils</c>) which contains <c>lspci</c>. You will now
95 be able to use <c>lspci</c> within the chrooted environment. You may safely
96 ignore any <e>pcilib</e> warnings (like pcilib: cannot open
97 /sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, you can run
98 <c>lspci</c> from a <e>non-chrooted</e> environment. The results are the same.
99 You can also run <c>lsmod</c> to see what kernel modules the Installation CD
100 uses (it might provide you with a nice hint on what to enable).
101 </p>
102
103 <p>
104 Now go to your kernel source directory and execute <c>make menuconfig</c>. This
105 will fire up an ncurses-based configuration menu.
106 </p>
107
108 <pre caption="Invoking menuconfig">
109 # <i>cd /usr/src/linux</i>
110 # <i>make menuconfig</i>
111 </pre>
112
113 <p>
114 You will be greeted with several configuration sections. We'll first list some
115 options you must activate (otherwise Gentoo will not function, or not function
116 properly without additional tweaks).
117 </p>
118
119 </body>
120 </subsection>
121 <subsection>
122 <title>Activating Required Options</title>
123 <body>
124
125 <p>
126 Due to the highly specific nature of the embedded, we'll cover known
127 configurations for boards here. If your machine is not listed, then you should
128 visit the respective community website to figure out how to properly configure
129 your kernel.
130 </p>
131
132 <p>
133 Please select your machine from the list below to jump to the configuration
134 section.
135 </p>
136
137 <ul>
138 <li><uri link="#netwinder">NetWinder</uri></li>
139 </ul>
140
141 </body>
142 </subsection>
143 </section>
144 <section id="netwinder">
145 <title>NetWinder configuration options</title>
146 <body>
147
148 <p>
149 Remember that EXT2 support is required for the boot partition as that is the
150 only filesystem that the bootloader can read reliably. Otherwise, the only
151 filesystem that has been tested is EXT3 but your welcome to try your luck with
152 the others ;).
153 </p>
154
155 <pre caption="NetWinder configuration options">
156 <comment>First generate a default config</comment>
157 # <i>make netwinder_defconfig</i>
158
159 <comment>Required options</comment>
160 System Type ---&gt;
161 ARM system type (FootBridge) ---&gt;
162 (X) FootBridge
163 Footbridge Implementations ---&gt;
164 [*] NetWinder
165
166 Floating point emulation ---&gt;
167 [*] NWFPE math emulation
168
169 File systems ---&gt;
170 [*] Second extended fs support
171 Pseudo Filesystems ---&gt;
172 [*] /proc file system support
173 [*] Virtual memory file system support (former shm fs)
174
175 Device Drivers ---&gt;
176 ATA/ATAPI/MFM/RLL support ---&gt;
177 [*] ATA/ATAPI/MFM/RLL support
178 [*] Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
179 [*] Include IDE/ATA-2 DISK support
180 --- IDE chipset support/bugfixes
181 [*] PCI IDE chipset support
182 [*] Winbond SL82c105 support
183 [*] Generic PCI bus-master DMA support
184
185 Network device support ---&gt;
186 [*] Network device support
187 Ethernet (10 or 100Mbit) ---&gt;
188 [*] Ethernet (10 or 100Mbit)
189 Tulip family network device support ---&gt;
190 [*] "Tulip" family network device support
191 [*] DECchip Tulip (dc2114x) PCI support
192 [*] Use PCI shared mem for NIC registers
193 [*] Use NAPI RX polling
194 [*] EISA, VLB, PCI and on board controllers
195 [*] PCI NE2000 and clones support
196
197 Character devices ---&gt;
198 Serial drivers ---&gt;
199 [*] 8250/16550 and compatible serial support
200 [*] Console on 8250/16550 and compatible serial port
201 --- Non-8250 serial port support
202 [*] DC21285 serial port support
203 [*] Console on DC21285 serial port
204 Watchdog Cards ---&gt;
205 [*] Watchdog Timer Support
206 [*] NetWinder WB83C977 watchdog
207 [*] NetWinder thermometer support
208 [*] NetWinder Button
209 [*] Reboot Using Button
210
211 <comment>Recommended options</comment>
212 Kernel Features ---&gt;
213 [*] Preemptible Kernel
214 [*] Timer and CPU usage LEDs
215 [*] CPU usage LED
216
217 File systems ---&gt;
218 [*] Ext3 journalling file system support
219
220 Device Drivers ---&gt;
221 Input device support ---&gt;
222 [*] Keyboards ---&gt;
223 [*] AT keyboard
224 [*] Mouse ---&gt;
225 [*] PS/2 mouse
226
227 Graphics support ---&gt;
228 [*] Support for frame buffer devices
229 [*] Enable firmware EDID
230 [*] CyberPro 2000/2010/5000 support
231 Logo configuration ---&gt;
232 [*] Bootup logo
233 [*] Standard 224-color Linux logo
234
235 Sound ---&gt;
236 [*] Sound card support
237 Open Sound System ---&gt;
238 [*] Open Sound System
239 [*] OSS sound modules
240 [*] Yamaha FM synthesizer (YM3812/OPL-3) support
241 [*] Netwinder WaveArtist
242
243 <comment>You should only enable this to upgrade your flash</comment>
244 Device Drivers ---&gt;
245 Character devices ---&gt;
246 [*] NetWinder flash support
247 </pre>
248
249 <p>
250 When you've finished configuring the kernel, continue with <uri
251 link="#compiling">Compiling and Installing</uri>.
252 </p>
253
254 </body>
255 </section>
256 <section id="compiling">
257 <title>Compiling and Installing</title>
258 <body>
259
260 <p>
261 Now that your kernel is configured, it is time to compile and install it. Exit
262 the configuration and start the compilation process:
263 </p>
264
265 <pre caption="Compiling the kernel">
266 # <i>make &amp;&amp; make modules_install</i>
267 </pre>
268
269
270 <p>
271 When the kernel has finished compiling, copy the kernel image to
272 <path>/boot</path>. Use whatever name you feel is appropriate for your kernel
273 choice and remember it as you will need it later on when you configure your
274 bootloader. Remember to replace <c><keyval id="kernel-name"/></c> with the
275 name and version of your kernel.
276 </p>
277
278 <pre caption="Installing the kernel">
279 # <i>cp vmlinux.gz /boot/<keyval id="kernel-name"/></i>
280 </pre>
281
282 <p>
283 Now continue with <uri link="#kernel_modules">Kernel Modules</uri>.
284 </p>
285
286 </body>
287 </section>
288 <section id="kernel_modules">
289 <title>Kernel Modules</title>
290
291 <subsection>
292 <include href="hb-install-kernelmodules.xml"/>
293 </subsection>
294
295 </section>
296 </sections>

  ViewVC Help
Powered by ViewVC 1.1.20