kernel.po 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. msgid ""
  2. msgstr ""
  3. "X-Pootle-Revision: 9999999\n"
  4. "X-Pootle-Path: /zh_CN/lfs/chapter10/kernel.po\n"
  5. "Project-Id-Version: PACKAGE VERSION\n"
  6. "POT-Creation-Date: 2020-08-30 02:41+0800\n"
  7. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  8. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  9. "Language-Team: LANGUAGE <LL@li.org>\n"
  10. "Language: zh_CN\n"
  11. "MIME-Version: 1.0\n"
  12. "Content-Type: text/plain; charset=UTF-8\n"
  13. "Content-Transfer-Encoding: 8bit\n"
  14. "X-Generator: Translate Toolkit 2.2.5\n"
  15. #. type: Content of: <sect1><sect1info><address>
  16. #, no-wrap
  17. msgid "&linux-url;"
  18. msgstr "&linux-url;"
  19. #. type: Content of: <sect1><sect1info>
  20. msgid ""
  21. "<productname>kernel</productname> <productnumber>&linux-version;</"
  22. "productnumber> <placeholder type=\"address\" id=\"0\"/>"
  23. msgstr ""
  24. "<productname>kernel</productname> <productnumber>&linux-version;</"
  25. "productnumber> <placeholder type=\"address\" id=\"0\"/>"
  26. #. type: Content of: <sect1><title>
  27. msgid "Linux-&linux-version;"
  28. msgstr "Linux-&linux-version;"
  29. #. type: Content of: <sect1><indexterm><primary>
  30. msgid "Linux"
  31. msgstr "Linux"
  32. #. type: Content of: <sect1><sect2><para>
  33. msgid "The Linux package contains the Linux kernel."
  34. msgstr "Linux 软件包包含 Linux 内核。"
  35. #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
  36. msgid "&buildtime;"
  37. msgstr "&buildtime;"
  38. #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
  39. msgid "&diskspace;"
  40. msgstr "&diskspace;"
  41. #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>
  42. msgid "&linux-knl-sbu;"
  43. msgstr "&linux-knl-sbu;"
  44. #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>
  45. msgid "&linux-knl-du;"
  46. msgstr "&linux-knl-du;"
  47. #. type: Content of: <sect1><sect2><title>
  48. msgid "Installation of the kernel"
  49. msgstr "安装内核"
  50. #. type: Content of: <sect1><sect2><para>
  51. msgid ""
  52. "Building the kernel involves a few steps&mdash;configuration, compilation, "
  53. "and installation. Read the <filename>README</filename> file in the kernel "
  54. "source tree for alternative methods to the way this book configures the "
  55. "kernel."
  56. msgstr ""
  57. "构建内核需要三步 —— 配置、编译、安装。阅读内核源代码树中的 <filename>README</"
  58. "filename> 文件,了解不同于本手册的内核配置方法。"
  59. #. type: Content of: <sect1><sect2><para>
  60. msgid "Prepare for compilation by running the following command:"
  61. msgstr "运行以下命令,准备编译内核:"
  62. #. type: Content of: <sect1><sect2><screen>
  63. #, no-wrap
  64. msgid "<userinput remap=\"pre\">make mrproper</userinput>"
  65. msgstr "<userinput remap=\"pre\">make mrproper</userinput>"
  66. #. type: Content of: <sect1><sect2><para>
  67. msgid ""
  68. "This ensures that the kernel tree is absolutely clean. The kernel team "
  69. "recommends that this command be issued prior to each kernel compilation. Do "
  70. "not rely on the source tree being clean after un-tarring."
  71. msgstr ""
  72. "该命令确保内核源代码树绝对干净,内核开发组建议在每次编译内核前运行该命令。尽"
  73. "管内核源代码树在解压后应该是干净的,但这并不完全可靠。"
  74. #. type: Content of: <sect1><sect2><para>
  75. msgid ""
  76. "There are several ways to configure the kernel options. Usually, This is "
  77. "done through a menu-driven interface, for example:"
  78. msgstr ""
  79. "有多种配置内核选项的方法。例如,通常我们通过目录驱动的界面完成这一工作:"
  80. #. type: Content of: <sect1><sect2><screen>
  81. #, no-wrap
  82. msgid "<userinput>make menuconfig</userinput>"
  83. msgstr "<userinput>make menuconfig</userinput>"
  84. #. type: Content of: <sect1><sect2><variablelist><title>
  85. msgid "The meaning of optional make environment variables:"
  86. msgstr "以上命令中可选的 make 环境变量及含义:"
  87. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  88. msgid "<parameter>LANG=&lt;host_LANG_value&gt; LC_ALL=</parameter>"
  89. msgstr "<parameter>LANG=&lt;host_LANG_value&gt; LC_ALL=</parameter>"
  90. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  91. msgid ""
  92. "This establishes the locale setting to the one used on the host. This may "
  93. "be needed for a proper menuconfig ncurses interface line drawing on a UTF-8 "
  94. "linux text console."
  95. msgstr ""
  96. "它们根据宿主使用的 locale 建立 locale 设定。在 UTF-8 Linux 文本终端下,有时必"
  97. "须这样做才能正确绘制基于 ncurses 的配置菜单接口。"
  98. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  99. msgid ""
  100. "If used, be sure to replace <replaceable>&lt;host_LANG_value&gt;</"
  101. "replaceable> by the value of the <envar>$LANG</envar> variable from your "
  102. "host. You can alternatively use instead the host's value of <envar>$LC_ALL</"
  103. "envar> or <envar>$LC_CTYPE</envar>."
  104. msgstr ""
  105. "在这种情况下,一定要将 <replaceable>&lt;host_LANG_value&gt; </replaceable> 替"
  106. "换成宿主环境中的 <envar>$LANG</envar> 变量值。您也可以使用宿主环境中 <envar>"
  107. "$LC_ALL</envar> 或 <envar>$LC_CTYPE</envar> 的值代替。"
  108. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  109. msgid "<command>make menuconfig</command>"
  110. msgstr "<command>make menuconfig</command>"
  111. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  112. msgid ""
  113. "This launches an ncurses menu-driven interface. For other (graphical) "
  114. "interfaces, type <command>make help</command>."
  115. msgstr ""
  116. "这会启动 ncurses 目录驱动的界面。如果希望了解其他 (图形) 界面,可以输入 "
  117. "<command>make help</command>。"
  118. #. type: Content of: <sect1><sect2><para>
  119. msgid ""
  120. "For general information on kernel configuration see <ulink url=\"&hints-root;"
  121. "kernel-configuration.txt\"/>. BLFS has some information regarding "
  122. "particular kernel configuration requirements of packages outside of LFS at "
  123. "<ulink url=\"&blfs-book;longindex.html#kernel-config-index\"/>. Additional "
  124. "information about configuring and building the kernel can be found at <ulink "
  125. "url=\"http://www.kroah.com/lkn/\"/>"
  126. msgstr ""
  127. "阅读 <ulink url=\"&hints-root;kernel-configuration."
  128. "txt\"/> 了解关于内核配置的一般信息。BLFS 包含一些关于 LFS 之外的软件包需要的"
  129. "特定内核配置的信息,位于"
  130. "<ulink url=\"&blfs-book;longindex.html#kernel-config-index\"/> 。另外"
  131. "在 <ulink url=\"http://www.kroah.com/lkn/\"/> 也有一些关于配置和构建内核的信"
  132. "息。"
  133. #. type: Content of: <sect1><sect2><note><para>
  134. msgid ""
  135. "A good starting place for setting up the kernel configuration is to run "
  136. "<command>make defconfig</command>. This will set the base configuration to a "
  137. "good state that takes your current system architecture into account."
  138. msgstr ""
  139. "一个较好的初始内核配置可以通过运行 <command>make defconfig</command> 获得。它"
  140. "会考虑您的当前系统体系结构,将基本内核配置设定到较好的状态。"
  141. #. type: Content of: <sect1><sect2><note><para>
  142. msgid ""
  143. "Be sure to enable/disable/set the following features or the system might not "
  144. "work correctly or boot at all:"
  145. msgstr ""
  146. "一定要按照以下列表启用/禁用/设定其中列出的内核特性,否则系统可能不能正常工"
  147. "作,甚至根本无法引导:"
  148. #. type: Content of: <sect1><sect2><note><screen>
  149. #, no-wrap
  150. msgid ""
  151. "Device Drivers ---&gt;\n"
  152. " Generic Driver Options ---&gt;\n"
  153. " [ ] Support for uevent helper [CONFIG_UEVENT_HELPER]\n"
  154. " [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS]"
  155. msgstr ""
  156. "Device Drivers ---&gt;\n"
  157. " Generic Driver Options ---&gt;\n"
  158. " [ ] Support for uevent helper [CONFIG_UEVENT_HELPER]\n"
  159. " [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS]"
  160. #. type: Content of: <sect1><sect2><note><screen>
  161. #, no-wrap
  162. msgid ""
  163. "General setup -->\n"
  164. " [*] Control Group support [CONFIG_CGROUPS]\n"
  165. " [ ] Enable deprecated sysfs features to support old userspace tools [CONFIG_SYSFS_DEPRECATED]\n"
  166. " [*] Configure standard kernel features (expert users) [CONFIG_EXPERT] ---&gt; \n"
  167. " [*] open by fhandle syscalls [CONFIG_FHANDLE]\n"
  168. " [ ] Auditing support [CONFIG_AUDIT]\n"
  169. "Processor type and features ---&gt;\n"
  170. " [*] Enable seccomp to safely compute untrusted bytecode [CONFIG_SECCOMP]\n"
  171. "Firmware Drivers ---&gt;\n"
  172. " [*] Export DMI identification via sysfs to userspace [CONFIG_DMIID]\n"
  173. "Networking support ---&gt;\n"
  174. " Networking options ---&gt;\n"
  175. " &lt;*&gt; The IPv6 protocol [CONFIG_IPV6]\n"
  176. "Device Drivers ---&gt;\n"
  177. " Generic Driver Options ---&gt;\n"
  178. " [ ] Support for uevent helper [CONFIG_UEVENT_HELPER]\n"
  179. " [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS]\n"
  180. " Firmware Loader ---&gt;\n"
  181. " [ ] Enable the firmware sysfs fallback mechanism [CONFIG_FW_LOADER_USER_HELPER]\n"
  182. "File systems ---&gt;\n"
  183. " [*] Inotify support for userspace [CONFIG_INOTIFY_USER]\n"
  184. " &lt;*&gt; Kernel automounter support (supports v3, v4, and v5) [CONFIG_AUTOFS_FS]\n"
  185. " Pseudo filesystems ---&gt;\n"
  186. " [*] Tmpfs POSIX Access Control Lists [CONFIG_TMPFS_POSIX_ACL]\n"
  187. " [*] Tmpfs extended attributes [CONFIG_TMPFS_XATTR]"
  188. msgstr ""
  189. "General setup -->\n"
  190. " [*] Control Group support [CONFIG_CGROUPS]\n"
  191. " [ ] Enable deprecated sysfs features to support old userspace tools [CONFIG_SYSFS_DEPRECATED]\n"
  192. " [*] Configure standard kernel features (expert users) [CONFIG_EXPERT] ---&gt; \n"
  193. " [*] open by fhandle syscalls [CONFIG_FHANDLE]\n"
  194. " [ ] Auditing support [CONFIG_AUDIT]\n"
  195. "Processor type and features ---&gt;\n"
  196. " [*] Enable seccomp to safely compute untrusted bytecode [CONFIG_SECCOMP]\n"
  197. "Firmware Drivers ---&gt;\n"
  198. " [*] Export DMI identification via sysfs to userspace [CONFIG_DMIID]\n"
  199. "Networking support ---&gt;\n"
  200. " Networking options ---&gt;\n"
  201. " &lt;*&gt; The IPv6 protocol [CONFIG_IPV6]\n"
  202. "Device Drivers ---&gt;\n"
  203. " Generic Driver Options ---&gt;\n"
  204. " [ ] Support for uevent helper [CONFIG_UEVENT_HELPER]\n"
  205. " [*] Maintain a devtmpfs filesystem to mount at /dev [CONFIG_DEVTMPFS]\n"
  206. " Firmware Loader ---&gt;\n"
  207. " [ ] Enable the firmware sysfs fallback mechanism [CONFIG_FW_LOADER_USER_HELPER]\n"
  208. "File systems ---&gt;\n"
  209. " [*] Inotify support for userspace [CONFIG_INOTIFY_USER]\n"
  210. " &lt;*&gt; Kernel automounter support (supports v3, v4, and v5) [CONFIG_AUTOFS_FS]\n"
  211. " Pseudo filesystems ---&gt;\n"
  212. " [*] Tmpfs POSIX Access Control Lists [CONFIG_TMPFS_POSIX_ACL]\n"
  213. " [*] Tmpfs extended attributes [CONFIG_TMPFS_XATTR]"
  214. #. type: Content of: <sect1><sect2><note><para>
  215. msgid ""
  216. "While \"The IPv6 Protocol\" is not strictly required, it is highly "
  217. "recommended by the systemd developers."
  218. msgstr ""
  219. "尽管 “The IPv6 Protocol” (IPv6 协议支持) 并不是严格要求的,但是 systemd 开发"
  220. "者强烈推荐启用它。"
  221. #. type: Content of: <sect1><sect2><para>
  222. msgid ""
  223. "There are several other options that may be desired depending on the "
  224. "requirements for the system. For a list of options needed for BLFS packages, "
  225. "see the <ulink url=\"&lfs-root;blfs/view/&short-version;/longindex."
  226. "html#kernel-config-index\">BLFS Index of Kernel Settings</ulink> (&lfs-root;"
  227. "blfs/view/&short-version;/longindex.html#kernel-config-index)."
  228. msgstr ""
  229. "根据系统的需求,可能需要一些其他配置选项。BLFS 软件包需要的内核配置选项列表可"
  230. "以在 <ulink url=\"&lfs-root;blfs/view/&short-version;/longindex.html#kernel-"
  231. "config-index\">BLFS Index of Kernel Settings</ulink> (&lfs-root;blfs/view/"
  232. "&short-version;/longindex.html#kernel-config-index) 查阅。"
  233. #. type: Content of: <sect1><sect2><note><para>
  234. msgid ""
  235. "If your host hardware is using UEFI, then the 'make defconfig' above should "
  236. "automatically add in some EFI-related kernel options."
  237. msgstr ""
  238. "如果您的硬件平台使用 UEFI,则 “make defconfig” 命令也会自动加入一些 EFI 相关"
  239. "的内核选项。"
  240. #. type: Content of: <sect1><sect2><note><para>
  241. msgid ""
  242. "In order to allow your LFS kernel to be booted from within your host's UEFI "
  243. "boot environment, your kernel must have this option selected:"
  244. msgstr ""
  245. "为了允许从宿主系统的 UEFI 引导环境引导 LFS 内核,您必须选择一个内核选项:"
  246. #. type: Content of: <sect1><sect2><note><screen>
  247. #, no-wrap
  248. msgid ""
  249. "Processor type and features ---&gt;\n"
  250. " [*] EFI stub support [CONFIG_EFI_STUB]"
  251. msgstr ""
  252. "Processor type and features ---&gt;\n"
  253. " [*] EFI stub support [CONFIG_EFI_STUB]"
  254. #. type: Content of: <sect1><sect2><note><para>
  255. msgid ""
  256. "A fuller description of managing UEFI environments from within LFS is "
  257. "covered by the lfs-uefi.txt hint at <ulink url=\"&hints-root;lfs-uefi.txt\"/"
  258. ">."
  259. msgstr ""
  260. "在 LFS 中管理 UEFI 环境的较完整说明包含在 lfs-uefi.txt 中,它位于 <ulink url="
  261. "\"&hints-root;lfs-uefi.txt\"/>。"
  262. #. type: Content of: <sect1><sect2><variablelist><title>
  263. msgid "The rationale for the above configuration items:"
  264. msgstr "上述配置选项的含义:"
  265. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  266. msgid "<parameter>Support for uevent helper</parameter>"
  267. msgstr "<parameter>Support for uevent helper</parameter>"
  268. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  269. msgid ""
  270. "Having this option set may interfere with device management when using Udev/"
  271. "Eudev."
  272. msgstr "如果启用了该选项,它可能干扰 Udev/Eudev 的设备管理。"
  273. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  274. msgid "<parameter>Maintain a devtmpfs</parameter>"
  275. msgstr "<parameter>Maintain a devtmpfs</parameter>"
  276. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  277. msgid ""
  278. "This will create automated device nodes which are populated by the kernel, "
  279. "even without Udev running. Udev then runs on top of this, managing "
  280. "permissions and adding symlinks. This configuration item is required for "
  281. "all users of Udev/Eudev."
  282. msgstr ""
  283. "该选项会使内核自动创建设备节点,即使 Udev 没有运行。Udev 之后才在这些设备节点"
  284. "的基础上运行,管理它们的访问权限并为它们建立符号链接。所有 Udev/Eudev 用户都"
  285. "需要启用该选项。"
  286. #. type: Content of: <sect1><sect2><para>
  287. msgid ""
  288. "Alternatively, <command>make oldconfig</command> may be more appropriate in "
  289. "some situations. See the <filename>README</filename> file for more "
  290. "information."
  291. msgstr ""
  292. "某些情况下,<command>make oldconfig</command> 更为合适。阅读 "
  293. "<filename>README</filename> 文件了解更多信息。"
  294. #. type: Content of: <sect1><sect2><para>
  295. msgid ""
  296. "If desired, skip kernel configuration by copying the kernel config file, "
  297. "<filename>.config</filename>, from the host system (assuming it is "
  298. "available) to the unpacked <filename class=\"directory\">linux-&linux-"
  299. "version;</filename> directory. However, we do not recommend this option. It "
  300. "is often better to explore all the configuration menus and create the kernel "
  301. "configuration from scratch."
  302. msgstr ""
  303. "如果希望的话,也可以将宿主系统的内核配置文件 <filename>.config</filename> 拷"
  304. "贝到解压出的 <filename class=\"directory\">linux-&linux-version;</filename> "
  305. "目录 (前提是可以找到该文件)。然而我们不推荐这样做,一般来说,浏览整个配置目"
  306. "录,并从头创建内核配置是更好的选择。"
  307. #. type: Content of: <sect1><sect2><para>
  308. msgid "Compile the kernel image and modules:"
  309. msgstr "编译内核映像和模块:"
  310. #. type: Content of: <sect1><sect2><screen>
  311. #, no-wrap
  312. msgid "<userinput remap=\"make\">make</userinput>"
  313. msgstr "<userinput remap=\"make\">make</userinput>"
  314. #. type: Content of: <sect1><sect2><para>
  315. msgid ""
  316. "If using kernel modules, module configuration in <filename class=\"directory"
  317. "\">/etc/modprobe.d</filename> may be required. Information pertaining to "
  318. "modules and kernel configuration is located in <xref linkend=\"ch-config-udev"
  319. "\"/> and in the kernel documentation in the <filename class=\"directory"
  320. "\">linux-&linux-version;/Documentation</filename> directory. Also, "
  321. "<filename>modprobe.d(5)</filename> may be of interest."
  322. msgstr ""
  323. "如果要使用内核模块,可能需要在 <filename class=\"directory\">/etc/modprobe."
  324. "d</filename> 中写入模块配置。讨论模块和内核配置的信息位于<xref linkend=\"ch-"
  325. "config-udev\"/>和 <filename class=\"directory\">linux-&linux-version;/"
  326. "Documentation </filename> 目录下的内核文档中。另外 <filename>modprobe.d(5)</"
  327. "filename> 也可以作为参考。"
  328. #. type: Content of: <sect1><sect2><para>
  329. msgid ""
  330. "Unless module support has been disabled in the kernel configuration, install "
  331. "the modules with:"
  332. msgstr "如果内核配置使用了模块,安装它们:"
  333. #. type: Content of: <sect1><sect2><screen>
  334. #, no-wrap
  335. msgid "<userinput remap=\"install\">make modules_install</userinput>"
  336. msgstr "<userinput remap=\"install\">make modules_install</userinput>"
  337. #. type: Content of: <sect1><sect2><para>
  338. msgid ""
  339. "After kernel compilation is complete, additional steps are required to "
  340. "complete the installation. Some files need to be copied to the <filename "
  341. "class=\"directory\">/boot</filename> directory."
  342. msgstr ""
  343. "在内核编译完成后,需要进行额外步骤完成安装,一些文件需要拷贝到 <filename "
  344. "class=\"directory\">/boot</filename> 目录中。"
  345. #. type: Content of: <sect1><sect2><caution><para>
  346. msgid ""
  347. "If the host system has a separate /boot partition, the files copied below "
  348. "should go there. The easiest way to do that is to bind /boot on the host "
  349. "(outside chroot) to /mnt/lfs/boot before proceeding. As the root user in "
  350. "the <emphasis>host system</emphasis>:"
  351. msgstr ""
  352. "如果宿主系统有单独的 /boot 分区,需要将这些文件拷贝到该分区中。最简单的方法是"
  353. "将宿主系统的 /boot (在 chroot 之外) 绑定到 /mnt/lfs/boot 再拷贝文件,在"
  354. "<emphasis>宿主系统</emphasis>中,以 root 身份执行:"
  355. #. type: Content of: <sect1><sect2><caution><screen>
  356. #, no-wrap
  357. msgid "<userinput>mount --bind /boot /mnt/lfs/boot</userinput>"
  358. msgstr "<userinput>mount --bind /boot /mnt/lfs/boot</userinput>"
  359. #. type: Content of: <sect1><sect2><para>
  360. msgid ""
  361. "The path to the kernel image may vary depending on the platform being used. "
  362. "The filename below can be changed to suit your taste, but the stem of the "
  363. "filename should be <emphasis>vmlinuz</emphasis> to be compatible with the "
  364. "automatic setup of the boot process described in the next section. The "
  365. "following command assumes an x86 architecture:"
  366. msgstr ""
  367. "指向内核映像的路径可能随机器平台的不同而变化。下面使用的文件名可以依照您的需"
  368. "要改变,但文件名的开头应该保持为 <emphasis>vmlinuz</emphasis>,以保证和下一节"
  369. "描述的引导过程自动设定相兼容。下面的命令假定是机器是 x86 体系结构:"
  370. #. type: Content of: <sect1><sect2><screen>
  371. #, no-wrap
  372. msgid "<userinput remap=\"install\">cp -iv arch/x86/boot/bzImage /boot/vmlinuz-&linux-version;-lfs-&version;</userinput>"
  373. msgstr "<userinput remap=\"install\">cp -iv arch/x86/boot/bzImage /boot/vmlinuz-&linux-version;-lfs-&version;</userinput>"
  374. #. type: Content of: <sect1><sect2><screen>
  375. #, no-wrap
  376. msgid "<userinput remap=\"install\">cp -iv arch/x86/boot/bzImage /boot/vmlinuz-&linux-version;-lfs-&versiond;</userinput>"
  377. msgstr "<userinput remap=\"install\">cp -iv arch/x86/boot/bzImage /boot/vmlinuz-&linux-version;-lfs-&versiond;</userinput>"
  378. #. type: Content of: <sect1><sect2><para>
  379. msgid ""
  380. "<filename>System.map</filename> is a symbol file for the kernel. It maps "
  381. "the function entry points of every function in the kernel API, as well as "
  382. "the addresses of the kernel data structures for the running kernel. It is "
  383. "used as a resource when investigating kernel problems. Issue the following "
  384. "command to install the map file:"
  385. msgstr ""
  386. "<filename>System.map</filename> 是内核符号文件,它将内核 API 的每个函数入口点"
  387. "和运行时数据结构映射到它们的地址。它被用于调查分析内核可能出现的问题。执行以"
  388. "下命令安装该文件:"
  389. #. type: Content of: <sect1><sect2><screen>
  390. #, no-wrap
  391. msgid "<userinput remap=\"install\">cp -iv System.map /boot/System.map-&linux-version;</userinput>"
  392. msgstr "<userinput remap=\"install\">cp -iv System.map /boot/System.map-&linux-version;</userinput>"
  393. #. type: Content of: <sect1><sect2><para>
  394. msgid ""
  395. "The kernel configuration file <filename>.config</filename> produced by the "
  396. "<command>make menuconfig</command> step above contains all the configuration "
  397. "selections for the kernel that was just compiled. It is a good idea to keep "
  398. "this file for future reference:"
  399. msgstr ""
  400. "内核配置文件 <filename>.config</filename> 由上述的 <command>make menuconfig</"
  401. "command> 步骤生成,包含编译好的内核的所有配置选项。最好能将它保留下来以供日后"
  402. "参考:"
  403. #. type: Content of: <sect1><sect2><screen>
  404. #, no-wrap
  405. msgid "<userinput remap=\"install\">cp -iv .config /boot/config-&linux-version;</userinput>"
  406. msgstr "<userinput remap=\"install\">cp -iv .config /boot/config-&linux-version;</userinput>"
  407. #. type: Content of: <sect1><sect2><para>
  408. msgid "Install the documentation for the Linux kernel:"
  409. msgstr "安装 Linux 内核文档:"
  410. #. type: Content of: <sect1><sect2><screen>
  411. #, no-wrap
  412. msgid ""
  413. "<userinput remap=\"install\">install -d /usr/share/doc/linux-&linux-version;\n"
  414. "cp -r Documentation/* /usr/share/doc/linux-&linux-version;</userinput>"
  415. msgstr ""
  416. "<userinput remap=\"install\">install -d /usr/share/doc/linux-&linux-version;\n"
  417. "cp -r Documentation/* /usr/share/doc/linux-&linux-version;</userinput>"
  418. #. type: Content of: <sect1><sect2><para>
  419. msgid ""
  420. "It is important to note that the files in the kernel source directory are "
  421. "not owned by <emphasis>root</emphasis>. Whenever a package is unpacked as "
  422. "user <emphasis>root</emphasis> (like we did inside chroot), the files have "
  423. "the user and group IDs of whatever they were on the packager's computer. "
  424. "This is usually not a problem for any other package to be installed because "
  425. "the source tree is removed after the installation. However, the Linux source "
  426. "tree is often retained for a long time. Because of this, there is a chance "
  427. "that whatever user ID the packager used will be assigned to somebody on the "
  428. "machine. That person would then have write access to the kernel source."
  429. msgstr ""
  430. "需要注意的是,在内核源代码目录中可能有不属于 <emphasis>root</emphasis> 的文"
  431. "件。在以 <emphasis>root</emphasis> 身份解压源代码包时 (就像我们在 chroot 环境"
  432. "中所做的那样),这些文件会获得它们之前在软件包创建者的计算机上的用户和组 ID。"
  433. "这一般不会造成问题,因为在安装后通常会删除源代码目录树。然而,Linux 源代码目"
  434. "录树一般会被保留较长时间,这样创建者当时使用的用户 ID 就可能被分配给本机的某"
  435. "个用户,导致该用户拥有内核源代码的写权限。"
  436. #. type: Content of: <sect1><sect2><note><para>
  437. msgid ""
  438. "In many cases, the configuration of the kernel will need to be updated for "
  439. "packages that will be installed later in BLFS. Unlike other packages, it is "
  440. "not necessary to remove the kernel source tree after the newly built kernel "
  441. "is installed."
  442. msgstr ""
  443. "之后在 BLFS 中安装软件包时往往需要修改内核配置。因此,和其他软件包不同,我们"
  444. "在安装好内核后可以不移除源代码树。"
  445. #. type: Content of: <sect1><sect2><note><para>
  446. msgid ""
  447. "If the kernel source tree is going to be retained, run <command>chown -R "
  448. "0:0</command> on the <filename class=\"directory\">linux-&linux-version;</"
  449. "filename> directory to ensure all files are owned by user <emphasis>root</"
  450. "emphasis>."
  451. msgstr ""
  452. "如果要保留内核源代码树,切换到内核源代码目录,执行 <command>chown -R 0:0</"
  453. "command>,以保证 <filename class=\"directory\">linux-&linux-version;</"
  454. "filename> 目录中所有文件都属于 <emphasis>root</emphasis>。"
  455. #. type: Content of: <sect1><sect2><warning><para>
  456. msgid ""
  457. "Some kernel documentation recommends creating a symlink from <filename class="
  458. "\"symlink\">/usr/src/linux</filename> pointing to the kernel source "
  459. "directory. This is specific to kernels prior to the 2.6 series and "
  460. "<emphasis>must not</emphasis> be created on an LFS system as it can cause "
  461. "problems for packages you may wish to build once your base LFS system is "
  462. "complete."
  463. msgstr ""
  464. "有的内核文档建议创建符号链接 <filename class=\"symlink\">/usr/src/linux</"
  465. "filename> 指向内核源代码目录,这仅仅适用于 2.6 系列之前的内核。在 LFS 系统上"
  466. "<emphasis>绝对不要</emphasis>创建它,因为在构建完基本 LFS 系统后,它可能在您"
  467. "构建其他软件包时引起问题。"
  468. #. type: Content of: <sect1><sect2><warning><para>
  469. msgid ""
  470. "The headers in the system's <filename class=\"directory\">include</filename> "
  471. "directory (<filename class=\"directory\">/usr/include</filename>) should "
  472. "<emphasis>always</emphasis> be the ones against which Glibc was compiled, "
  473. "that is, the sanitised headers installed in <xref linkend=\"ch-tools-linux-"
  474. "headers\"/>. Therefore, they should <emphasis>never</emphasis> be replaced "
  475. "by either the raw kernel headers or any other kernel sanitized headers."
  476. msgstr ""
  477. "在系统 <filename class=\"directory\">include</filename> 目录 (即 <filename "
  478. "class=\"directory\">/usr/include</filename>) 中的内核头文件应该<emphasis>总是"
  479. "</emphasis>与构建 Glibc 时使用的内核头文件一致,即保持为<xref linkend=\"ch-"
  480. "tools-linux-headers\"/>中安装的净化头文件。换句话说,<emphasis>永远不要</"
  481. "emphasis>用原始内核头文件,或其他版本内核的净化头文件替换它们。"
  482. #. type: Content of: <sect1><sect2><title>
  483. msgid "Configuring Linux Module Load Order"
  484. msgstr "配置 Linux 内核模块加载顺序"
  485. #. type: Content of: <sect1><sect2><indexterm><primary>
  486. msgid "/etc/modprobe.d/usb.conf"
  487. msgstr "/etc/modprobe.d/usb.conf"
  488. #. type: Content of: <sect1><sect2><para>
  489. msgid ""
  490. "Most of the time Linux modules are loaded automatically, but sometimes it "
  491. "needs some specific direction. The program that loads modules, "
  492. "<command>modprobe</command> or <command>insmod</command>, uses <filename>/"
  493. "etc/modprobe.d/usb.conf</filename> for this purpose. This file needs to be "
  494. "created so that if the USB drivers (ehci_hcd, ohci_hcd and uhci_hcd) have "
  495. "been built as modules, they will be loaded in the correct order; ehci_hcd "
  496. "needs to be loaded prior to ohci_hcd and uhci_hcd in order to avoid a "
  497. "warning being output at boot time."
  498. msgstr ""
  499. "多数情况下 Linux 内核模块可以自动加载,但有时需要指定加载顺序。负责加载内核模"
  500. "块的程序 <command>modprobe</command> 和 <command>insmod</command> 从 "
  501. "<filename>/etc/modprobe.d</filename> 下的配置文件中读取加载顺序,例如,如果 "
  502. "USB 驱动程序 (ehci_hcd、ohci_hcd 和 uhci_hcd) 被构建为模块,则必须按照先加载 "
  503. "echi_hcd,再加载 ohci_hcd 和 uhci_hcd 的正确顺序,才能避免引导时出现警告信"
  504. "息。"
  505. #. type: Content of: <sect1><sect2><para>
  506. msgid ""
  507. "Create a new file <filename>/etc/modprobe.d/usb.conf</filename> by running "
  508. "the following:"
  509. msgstr ""
  510. "为此,执行以下命令创建文件 <filename>/etc/modprobe.d/usb.conf</filename>:"
  511. #. type: Content of: <sect1><sect2><screen>
  512. #, no-wrap
  513. msgid ""
  514. "<userinput>install -v -m755 -d /etc/modprobe.d\n"
  515. "cat &gt; /etc/modprobe.d/usb.conf &lt;&lt; \"EOF\"\n"
  516. "<literal># Begin /etc/modprobe.d/usb.conf\n"
  517. "\n"
  518. "install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i ohci_hcd ; true\n"
  519. "install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i uhci_hcd ; true\n"
  520. "\n"
  521. "# End /etc/modprobe.d/usb.conf</literal>\n"
  522. "EOF</userinput>"
  523. msgstr ""
  524. "<userinput>install -v -m755 -d /etc/modprobe.d\n"
  525. "cat &gt; /etc/modprobe.d/usb.conf &lt;&lt; \"EOF\"\n"
  526. "<literal># Begin /etc/modprobe.d/usb.conf\n"
  527. "\n"
  528. "install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i ohci_hcd ; true\n"
  529. "install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i uhci_hcd ; true\n"
  530. "\n"
  531. "# End /etc/modprobe.d/usb.conf</literal>\n"
  532. "EOF</userinput>"
  533. #. type: Content of: <sect1><sect2><title>
  534. msgid "Contents of Linux"
  535. msgstr "Linux 的内容"
  536. #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
  537. msgid "Installed files"
  538. msgstr "安装的文件"
  539. #. type: Content of: <sect1><sect2><segmentedlist><segtitle>
  540. msgid "Installed directories"
  541. msgstr "安装的目录"
  542. #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>
  543. msgid ""
  544. "config-&linux-version;, <phrase revision=\"sysv\">vmlinuz-&linux-version;-"
  545. "lfs-&version;,</phrase> <phrase revision=\"systemd\">vmlinuz-&linux-version;-"
  546. "lfs-&versiond;,</phrase> and System.map-&linux-version;"
  547. msgstr ""
  548. "config-&linux-version;, <phrase revision=\"sysv\">vmlinuz-&linux-version;-"
  549. "lfs-&version;,</phrase> <phrase revision=\"systemd\">vmlinuz-&linux-version;-"
  550. "lfs-&versiond;,</phrase> 以及 System.map-&linux-version;"
  551. #. type: Content of: <sect1><sect2><segmentedlist><seglistitem><seg>
  552. msgid "/lib/modules, /usr/share/doc/linux-&linux-version;"
  553. msgstr "/lib/modules 和 /usr/share/doc/linux-&linux-version;"
  554. #. type: Content of: <sect1><sect2><variablelist><bridgehead>
  555. msgid "Short Descriptions"
  556. msgstr "简要描述"
  557. #. type: Content of: <sect1><sect2><variablelist>
  558. msgid ""
  559. "<?dbfo list-presentation=\"list\"?> <?dbhtml list-presentation=\"table\"?>"
  560. msgstr ""
  561. "<?dbfo list-presentation=\"list\"?> <?dbhtml list-presentation=\"table\"?>"
  562. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  563. msgid "<filename>config-&linux-version;</filename>"
  564. msgstr "<filename>config-&linux-version;</filename>"
  565. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  566. msgid "Contains all the configuration selections for the kernel"
  567. msgstr "包含所有内核配置选项的值"
  568. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><indexterm><primary>
  569. msgid "/boot/config-&linux-version;"
  570. msgstr "/boot/config-&linux-version;"
  571. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  572. msgid "<filename>vmlinuz-&linux-version;-lfs-&version;</filename>"
  573. msgstr "<filename>vmlinuz-&linux-version;-lfs-&version;</filename>"
  574. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  575. msgid "<filename>vmlinuz-&linux-version;-lfs-&versiond;</filename>"
  576. msgstr "<filename>vmlinuz-&linux-version;-lfs-&versiond;</filename>"
  577. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  578. msgid ""
  579. "The engine of the Linux system. When turning on the computer, the kernel is "
  580. "the first part of the operating system that gets loaded. It detects and "
  581. "initializes all components of the computer's hardware, then makes these "
  582. "components available as a tree of files to the software and turns a single "
  583. "CPU into a multitasking machine capable of running scores of programs "
  584. "seemingly at the same time"
  585. msgstr ""
  586. "Linux 系统的引擎,在启动计算机时,它是操作系统中被最早加载的部分。它检测并初"
  587. "始化计算机硬件,将它们以目录树的形式提供给软件,并将单个 CPU 封装成多任务系"
  588. "统,使多个用户程序看上去在同时执行。"
  589. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><indexterm><primary>
  590. msgid "lfskernel-&linux-version;"
  591. msgstr "lfskernel-&linux-version;"
  592. #. type: Content of: <sect1><sect2><variablelist><varlistentry><term>
  593. msgid "<filename>System.map-&linux-version;</filename>"
  594. msgstr "<filename>System.map-&linux-version;</filename>"
  595. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><para>
  596. msgid ""
  597. "A list of addresses and symbols; it maps the entry points and addresses of "
  598. "all the functions and data structures in the kernel"
  599. msgstr "地址和符号列表;它将内核函数和数据结构映射为入口点和地址"
  600. #. type: Content of: <sect1><sect2><variablelist><varlistentry><listitem><indexterm><primary>
  601. msgid "/boot/System.map-&linux-version;"
  602. msgstr "/boot/System.map-&linux-version;"