File: kernel-baking.xml

package info (click to toggle)
installation-guide 20070319
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 29,356 kB
  • ctags: 53
  • sloc: xml: 184,383; sh: 1,023; perl: 403; awk: 200; makefile: 65
file content (313 lines) | stat: -rw-r--r-- 12,299 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
<?xml version="1.0" encoding="EUC-JP"?>
<!-- retain these comments for translator revision tracking -->
<!-- original version: 40980 -->

<!--
 <sect1 id="kernel-baking"><title>Compiling a New Kernel</title>
-->
 <sect1 id="kernel-baking"><title>ͥΥѥ</title>
<para>

<!--
Why would someone want to compile a new kernel? It is often not
necessary since the default kernel shipped with Debian handles most
configurations. Also, Debian often offers several alternative kernels.
So you may want to check first if there is an alternative kernel image
package that better corresponds to your hardware. However, it can be
useful to compile a new kernel in order to:
-->
ͥ򥳥ѥ뤷褦ȤưϤʤǤ礦? Debian Ǥϡ
ɸäƤ륫ͥ¿εǽ򥵥ݡȤƤΤǡۤȤɤ
ɬפϤޤ󡣤ޤDebian ¿ξ硢Ĥإͥ
󶡤ƤޤǤ餪餯äȼʬΥϡɥб
ͥ륤᡼ѥå뤫ɤޤǧȻפǤ礦
ʲΤ褦ŪΤˤϡͥ򥳥ѥ뤹뤳ȤͭפǤ

<itemizedlist>
<listitem><para>

<!--
handle special hardware needs, or hardware conflicts with the
pre-supplied kernels
-->
üʥϡɥȤäꡢ
ɸ५ͥȥϡɥȤζ򤹤뤿

</para></listitem>
<listitem><para>

<!--
use options of the kernel which are not supported in the pre-supplied
kernels (such as high memory support)
-->
(ϥꥵݡȤʤ)
ɸ५ͥǥݡȤƤʤǽѤ뤿

</para></listitem>
<listitem><para>

<!--
optimize the kernel by removing useless drivers to speed up boot time
-->
Ȥʤɥ饤ФȤǥͥŬ
ưˤ֤û뤿

</para></listitem>
<listitem><para>

<!--
create a monolithic instead of a modularized kernel
-->
⥸塼벽줿ͥˡβͥ뤿

</para></listitem>
<listitem><para>

<!--
run an updated or development kernel
-->
ǿΥͥ䳫ȯǤΥͥѤ뤿

</para></listitem>
<listitem><para>

<!--
learn more about linux kernels
-->
linux ͥ˴ؤƤäȳؤ֤

</para></listitem>
</itemizedlist>

</para>

<!--
  <sect2><title>Kernel Image Management</title>
-->
  <sect2><title>ͥ륤᡼δ</title>
<para>

<!--
Don't be afraid to try compiling the kernel.  It's fun and profitable.
-->
ͥΥѥ򶲤ʤǤڤΩĺȤǤ

</para><para>

<!--
To compile a kernel the Debian way, you need some packages:
<classname>fakeroot</classname>, <classname>kernel-package</classname>,
<classname>linux-source-2.6</classname>
and a few others which are probably already installed (see
<filename>/usr/share/doc/kernel-package/README.gz</filename> for the
complete list).
-->
Debian ή˥ͥ򥳥ѥ뤹Τɬפʥѥåϡ
<classname>fakeroot</classname><classname>kernel-package</classname>
<classname>linux-source-2.6</classname>
Ȥ¿ʬǤ˥󥹥ȡѤߤΥѥåĤǤ (ʰˤĤƤ 
<filename>/usr/share/doc/kernel-package/README.gz</filename> 
)

</para><para>

<!--
This method will make a .deb of your kernel source, and, if you have
non-standard modules, make a synchronized dependent .deb of those
too. It's a better way to manage kernel images;
<filename>/boot</filename> will hold the kernel, the System.map, and a
log of the active config file for the build.
-->
ˡϥͥ륽 .deb ꡢޤɸΥ⥸塼뤬
Сͥ˰¸ .deb Ʊ˺ޤ
ϥͥ륤᡼δˤɤˡǡ
<filename>/boot</filename> ˥ͥ롢System.map
ӥɤ˻ȤäեεϿ¸ޤ

</para><para>

<!--
Note that you don't <emphasis>have</emphasis> to compile your kernel
the <quote>Debian way</quote>; but we find that using the packaging system
to manage your kernel is actually safer and easier.  In fact, you can get
your kernel sources right from Linus instead of
<classname>linux-source-2.6</classname>,
yet still use the <classname>kernel-package</classname> compilation method.
-->
ɬDebian ήפ˥ͥ򥳥ѥ뤹ɬפ
<emphasis>ޤ</emphasis>ͥδˤѥå
ƥѤۤºݤ˰ǴñǤ¤
<classname>linux-source-2.6</classname> 
ǤϤʤLinus դƤ륫ͥ륽򤽤ΤޤѤ뤳ȤǤޤ
ξǤ <classname>kernel-package</classname> Ѥƥѥ뤷Ƥ

</para><para>

<!--
Note that you'll find complete documentation on using
<classname>kernel-package</classname> under
<filename>/usr/share/doc/kernel-package</filename>.  This section just
contains a brief tutorial.
-->
<classname>kernel-package</classname> Ѥɬפʸ񤹤٤Ƥϡ
<filename>/usr/share/doc/kernel-package</filename>
ǥ쥯ȥˤޤ
ΤᡢǤϴñʲΤߤԤޤ

</para><para>

<!--
Hereafter, we'll assume you have free rein over your machine and will
extract your kernel source to somewhere in your home directory<footnote>
-->
ʹߤǤϡʤޥǹư뼫ͳäơۡǥ쥯ȥ
ɤ˥ͥ륽ŸȲꤷޤ<footnote>

<para>

<!--
There are other locations where you can extract kernel sources and build
your custom kernel, but this is easiest as it does not require special
permissions.
-->
¾ˤ⡢ͥ륽Ÿƥ५ͥӥɤǤ
ޤ̤ʥѡߥåɬפȤʤǤñǤ

</para>

<!--
</footnote>. We'll also assume that your kernel version is
&kernelversion;. Make sure you are in the directory to where you want to
unpack the kernel sources, extract them using
<userinput>tar xjf /usr/src/linux-source-&kernelversion;.tar.bz2</userinput>
and change to the directory <filename>linux-source-&kernelversion;</filename>
that will have been created.
-->
</footnote>ޤͥС &kernelversion; Ȳꤷޤ
ͥ륽Фǥ쥯ȥˤ뤳ȤǧƤ顢
<userinput>tar xjf /usr/src/linux-source-&kernelversion;.tar.bz2</userinput>
ȤƥŸ줿
<filename>linux-source-&kernelversion;</filename>
ǥ쥯ȥ˰ưƤ

</para><para>

<!--
Now, you can configure your kernel.  Run <userinput>make
xconfig</userinput> if X11 is installed, configured and being run; run
<userinput>make menuconfig</userinput> otherwise (you'll need
<classname>libncurses5-dev</classname> installed). Take the time to read
the online help and choose carefully. When in doubt, it is typically
better to include the device driver (the software which manages
hardware peripherals, such as Ethernet cards, SCSI controllers, and so
on) you are unsure about.  Be careful: other options, not related to a
specific hardware, should be left at the default value if you do not
understand them.  Do not forget to select <quote>Kernel module loader</quote>
in <quote>Loadable module support</quote> (it is not selected by default).
If not included, your Debian installation will experience problems.
-->
˥ͥ륳ѥԤޤX11 Υ󥹥ȡ뤪꤬
ѤǤơX11 ¹ξ <userinput>make xconfig</userinput> 
Ǥʤ <userinput>make menuconfig</userinput> ¹Ԥޤ (ԤǤ
<classname>libncurses5-dev</classname> 󥹥ȡ뤵Ƥɬפޤ)
饤إפ֤򤫤ɤߡտ򤷤Ƥ
Ūˡ¤äϤΥǥХɥ饤 (ͥåȥɤ䡢
SCSI ȥʤɤμյ椹륽եȥ) 줿
褤Ǥ礦ʤդƤΤǤ
Υϡɥ˴طΤʤ¾Υץǡ
褯ǤʤΤϥǥեȤͤΤޤޤˤƤƤ
ޤ<quote>Loadable module support</quote> ˤ <quote>Kernel module loader</quote>
(ǥեȤǤ򤵤Ƥޤ) ˺줺򤷤Ƥ
ʤȡDebian Υ󥹥ȡ꤬뤳Ȥ⤢ޤ

</para><para>

<!--
Clean the source tree and reset the <classname>kernel-package</classname>
parameters.  To do that, do <userinput>make-kpkg clean</userinput>.
-->
³ƥĥ꡼򥯥ꥢ<classname>kernel-package</classname> Υѥ᡼
ꥻåȤޤˤϡ<userinput>make-kpkg clean</userinput> ¹ԤƤ

</para><para>

<!--
Now, compile the kernel:
<userinput>fakeroot make-kpkg -\-initrd -\-revision=custom.1.0 kernel_image</userinput>.
The version number of <quote>1.0</quote> can be changed at will; this is just
a version number that you will use to track your kernel builds.
Likewise, you can put any word you like in place of <quote>custom</quote>
(e.g., a host name).  Kernel compilation may take quite a while, depending on
the power of your machine.
-->
ͥ򥳥ѥ뤷ޤ礦
<userinput>fakeroot make-kpkg --initrd --revision=custom.1.0 kernel_image</userinput>
¹ԤƤСֹ <quote>1.0</quote> ϼͳѤޤ
ֹϡۤͥ夫ǧǤ褦ˤ뤿ΤΤǤ
Ʊͤˡ<quote>custom</quote> βսˤ⤪ߤΥ (㤨Хۥ̾ʤ)
ȤȤǤޤޥΥѥˤޤͥΥѥˤ
ʤ֤ޤ

</para><para>

<!--
Once the compilation is complete, you can install your custom kernel
like any package.  As root, do 
<userinput>dpkg -i
../linux-image-&kernelversion;-<replaceable>subarchitecture</replaceable>_custom.1.0_&architecture;.deb</userinput>.
The <replaceable>subarchitecture</replaceable> part is an optional
sub-architecture,
<phrase arch="i386"> such as <quote>686</quote>, </phrase>
depending on what kernel options you set.
<userinput>dpkg -i</userinput> will install the
kernel, along with some other nice supporting files.  For instance,
the <filename>System.map</filename> will be properly installed
(helpful for debugging kernel problems), and
<filename>/boot/config-&kernelversion;</filename> will be installed,
containing your current configuration set.  Your new
kernel package is also clever enough to automatically update your boot
loader to use the new kernel. If you have created a modules package,
you'll need to install that package as well.
-->
öѥ뤬λС¾ΥѥåƱ褦ˡΥ५ͥ
󥹥ȡǤޤroot Ȥ
<userinput>dpkg -i
../linux-image-&kernelversion;-<replaceable>subarchitecture</replaceable>_custom.1.0_&architecture;.deb</userinput>
¹ԤƤ<replaceable>subarchitecture</replaceable> ϡ
ͥΥץꤵ줿
<phrase arch="i386"> <quote>686</quote> Τ褦</phrase>
ǤդΥ֥ƥɽƤޤ
ޤ <userinput>dpkg -i</userinput> ȤȡͥȰ
ΩŪʥե⤤Ĥ󥹥ȡ뤵ޤ㤨
ͥǥХåΤΩ <filename>System.map</filename> 䡢
ԤΥ꤬ͥϿƤ
<filename>/boot/config-&kernelversion;</filename> ʤɤŬڤ˥󥹥ȡ뤵ޤ
ˡ˺줿ͥѥåϡͥѤ褦
֡ȥưŪ˹Ƥޤʤ⥸塼ѥå硢
Ʊͤˤ⥤󥹥ȡ뤹ɬפǤ礦

</para><para>

<!--
It is time to reboot the system: read carefully any warning that the
above step may have produced, then <userinput>shutdown -r now</userinput>.
-->
ơƥƵưäƤޤޤǤκȤδ֤˲ٹɽƤ
տɤߡ줫 <userinput>shutdown -r now</userinput> ¹ԤƤ

</para><para>

<!--
For more information on Debian kernels and kernel compilation, see the
<ulink url="&url-kernel-handbook;">Debian Linux Kernel Handbook</ulink>.
For more information on <classname>kernel-package</classname>, read
the fine documentation in <filename>/usr/share/doc/kernel-package</filename>.
-->
Debian ͥ䥫ͥΥѥ˴ؤܤˤĤƤϡ
<ulink url="&url-kernel-handbook;">Debian Linux Kernel Handbook</ulink> 
<classname>kernel-package</classname> ˴ؤܤˤĤƤϡ
<filename>/usr/share/doc/kernel-package</filename> ˤɥȤɤߤ

</para>
  </sect2>
 </sect1>