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