1.. include:: ../disclaimer-zh_CN.rst
2
3:Original: Documentation/admin-guide/README.rst
4
5:������:
6
7 ��������� Wu XiangCheng <bobwxc@email.cn>
8
9Linux������6.x������ <http://kernel.org/>
10=========================================
11
12���������Linux������6���������������������������������������
13������������������������������������������������������������������������������������������������������
14
15���������Linux���
16---------------
17
18  Linux���Unix���������������������������������Linus Torvalds������������������������������
19  ���Hacker���������������������������������������������������������������������������POSIX���
20  ������UNIX���������
21
22  ���������������������������Unix���������������������������������������������������������������������������������
23  ���������������������������������������������������COW������������������������������������������������������
24  IPv4���IPv6���������������������������
25
26  Linux���GNU������������������������������2���GNU GPLv2������������������������������COPYING���������
27
28���������������������������������������
29-----------------------------
30
31  ������Linux������������32������x86 PC������386���������������������������������������������������������
32  ������������Compaq Alpha AXP���Sun SPARC���UltraSPARC���Motorola 68000���PowerPC���
33  PowerPC64���ARM���Hitachi SuperH���Cell���IBM S/390���MIPS���HP PA-RISC���Intel 
34  IA-64���DEC VAX���AMD x86-64 Xtensa���ARC������������
35
36  Linux������������������������������������32������64���������������������������������������������������������
37  ���������PMMU���������������������GNU C������������gcc���GNU Compiler Collection���GCC������
38  ������������Linux���������������������������PMMU���������������������������������������������������������
39  ���������
40  Linux������������������������������������������������������������������������������������������������������
41  ������������������Linux���UML������
42
43������
44-----
45������������������������������������������������������������Linux������������������������������UNIX������������
46������������������������������Linux FTP���������������LDP���Linux������������������������������������������
47���������������������������������������������������������������������������
48
49 - ������������������������������������������������������������������Linux������������������������������
50   UNIX���������������������������������������������LDP���Linux������������������������Linux FTP
51   ������������������������������������������������������������������������������������������������������������
52
53 - ������/������������������������������������������������������������������������������������������������
54   ������������������������������
55   :ref:`Documentation/process/changes.rst <changes>` ���������������������������������
56   ������������������������������������������
57
58���������������������
59---------------
60
61 - ���������������������������������������������������tar���������������������������������������������������
62   ������������������������������::
63
64     xz -cd linux-6.x.tar.xz | tar xvf -
65
66   ������X���������������������������������������
67
68   ������������������ /usr/src/linux ������������������������������������������������������������
69   ������������������������������������������������������������������������������������������������������
70
71 - ������������������������������6.x������������������������������xz���������������������������������������
72   ������������������������������������������������������������������������linux-6.x���������������
73   ������::
74
75     xz -cd ../patch-6.x.xz | patch -p1
76
77   ������������������������������������������������������������������x������������������������������������������
78   ������������������������������������xxx~ ��� xxx.orig)���������������������������������������������
79   ������xxx# ��� xxx.rej���������������������������������������������������
80
81   ���6.x������������������������6.x.y���������������������������������������������������������������������
82   ������������������������6.x���������������������������������������������6.0���������������������6.0.3
83   ���������������������������6.0.1���6.0.2���������������������������������������������6.0.2���������
84   ���������������������6.0.3������������������6.0.3���������������������������������6.0.2������
85   ������patch -R������������������������������������������������
86   :ref:`Documentation/process/applying-patches.rst <applying_patches>` ���
87
88   ��������������� patch-kernel ���������������������������������������������������������������������
89   ���������������������������::
90
91     linux/scripts/patch-kernel linux
92
93   ���������������������������������������������������������������������������������������������������������
94   ���������������������������������������������������
95
96 - ��������������������� .o ������������������::
97
98     cd linux
99     make mrproper
100
101   ������������������������������������������������
102
103������������
104---------
105
106   ���������������6.x������������������������������������������������������
107   :ref:`Documentation/process/changes.rst <changes>`
108   ������������������������������������������������������������������������������������������������������������
109   ������������������������������������������������������������������������������������������������������������
110   ���������������
111
112���������������������
113---------------
114
115   ������������������������������������������������������������������������������������������������
116   ``make O=output/dir`` ������������������������������������ .config������������������������
117   ������::
118
119     kernel source code: /usr/src/linux-6.x
120     build directory:    /home/name/build/kernel
121
122   ������������������������������������::
123
124     cd /usr/src/linux-6.x
125     make O=/home/name/build/kernel menuconfig
126     make O=/home/name/build/kernel
127     sudo make O=/home/name/build/kernel modules_install install
128
129   ��������������������������� ``O=output/dir`` ������������������������������make������������������
130
131������������
132---------
133
134   ������������������������������������������������������������������������������������������������������������
135   ���������������������������������������������������������������������������������������������������������
136   ��������������������������������������������� ``make oldconfig`` ������������������������������
137   ������������������
138
139 - ������������������������::
140
141     "make config"      ������������������
142
143     "make menuconfig"  ���������������������������������������������������������
144
145     "make nconfig"     ���������������������������������������
146
147     "make xconfig"     ������Qt������������������
148
149     "make gconfig"     ������GTK+������������������
150
151     "make oldconfig"   ��������������� ./.config ������������������������������������
152                        ������������������
153
154     "make olddefconfig"
155                        ���������������������������������������������������������������������
156
157     "make defconfig"   ���������������������������arch/$arch/defconfig���
158                        arch/$arch/configs/${PLATFORM}_defconfig������
159                        ���������������������./.config���������
160
161     "make ${PLATFORM}_defconfig"
162                        ������arch/$arch/configs/${PLATFORM}_defconfig���
163                        ������������������������������./.config���������
164                        ������make help������������������������������������������������������������
165
166     "make allyesconfig"
167                        ���������������������������������������y������������������
168                        ./.config���������
169
170     "make allmodconfig"
171                        ���������������������������������������m������������������
172                        ./.config���������
173
174     "make allnoconfig" ���������������������������������������n������������������
175                        ./.config���������
176
177     "make randconfig"  ������������������������������������./.config���������
178
179     "make localmodconfig" ���������������������������������������lsmod������������������������
180                           ���������������������������������������������������
181
182                           ������������������������������localmodconfig���������������������
183                           ���lsmod������������������������������������������lsmod���������������
184
185                           ������������������������LMC_KEEP������������������������������������
186                           ���������������������������������kconfig������������
187
188                   target$ lsmod > /tmp/mylsmod
189                   target$ scp /tmp/mylsmod host:/tmp
190
191                   host$ make LSMOD=/tmp/mylsmod \
192                           LMC_KEEP="drivers/usb:drivers/gpu:fs" \
193                           localmodconfig
194
195                           ������������������������������������������
196
197     "make localyesconfig" ���localmodconfig������������������������������������������������
198                           ������������=y���������������������������LMC_KEEP���������������
199
200     "make kvm_guest.config"
201                        ���kvm������������������������������������������
202
203     "make xen.config"  ���xen dom0������������������������������������������
204
205     "make tinyconfig"  ������������������������������
206
207   ������������������Linux���������������������������������������
208   Documentation/kbuild/kconfig.rst���
209
210 - ``make config`` ������������:
211
212    - ���������������������������������������������������������������������������������������������
213      ���������������������������������������������������������������
214
215    - ������������������������������������������������������������������������������������������
216      ������������������������������������������������������������������������������������������
217      ���������������������������������������������������������������������
218
219    - ���kernel hacking������������������������������������������������������������������
220      ���������������������������������������������������������������������������������������������
221      ������������������������������������������������kmalloc()������������������������������
222      ���������������������������������������������������������������������������
223
224������������
225---------
226
227 - ������������������gcc 5.1���������
228   ������������������������������ :ref:`Documentation/process/changes.rst <changes>` ���
229
230 - ������ ``make`` ������������������������������������������������lilo���������������makefile���
231   ��������������������� ``make install`` ������������������������������������������lilo���������
232
233   ���������������������root���������������������������������������������������
234   ������������������root���������
235
236 - ������������������������������������������������������������������������ ``make modules_install`` ���
237
238 - ���������������������/���������������
239
240   ������������������������������������������������������������������������������������������������������������
241   ������������������������������������������������������������������������������������������������������
242   ���verbose������������������������������
243   ��� ``make`` ������������ ``V=1`` ������������������::
244
245     make V=1 all
246
247   ������������������������������������������������������������������ ``V=2`` ������������ ``V=0`` ���
248
249 - ������������������������������������������������������������������������������������������������������
250   ���������������������������������������������������������������������������������������������������
251   ��������������������������������������������������������� ``make modules_install`` ������
252   ������������modules���������
253
254   ������������������������������������������������������LOCALVERSION������������������������������
255   ������������������������LOCALVERSION������������General Setup���������������������
256
257 - ���������������������������������������������������������������������
258   .../linux/arch/x86/boot/bzImage���������������������������������������������
259
260 - ���������������������LILO���������������������������������������������������������������������
261
262   ���������������������Linux������������������LILO������������/etc/lilo.conf���������
263   ���������������������������������������������������������/vmlinuz���/boot/vmlinuz���
264   /bzImage���/boot/bzImage���������������������������������������������������������������
265   ���������������������������������������������������������LILO������������������������������������
266   ������������������������������������
267
268   ������������LILO������������������/sbin/LILO������������������������/etc/lilo.conf
269   ���������������������������������������������������/vmlinux.old)������������������������
270   ���������������������������������������LILO���������
271
272   ������������LILO������������������������������������������������������������������������������
273   ������������
274
275   ���������������������������������������������������������������������������������������������������
276   ���������������������������������������������������������������������������������������
277
278 - ���������������������������������������������
279
280���������������
281-----------
282
283���������������������������������������������������������������������������������
284Documentation/translations/zh_CN/admin-guide/reporting-issues.rst ���
285
286���������������������������������������������
287Documentation/translations/zh_CN/admin-guide/bug-hunting.rst ���
288
289���������GDB������������������������������������
290Documentation/translations/zh_CN/dev-tools/gdb-kernel-debugging.rst
291��� Documentation/dev-tools/kgdb.rst ���
292