Gentoo Archives: gentoo-commits

From: "Le Zhang (r0bertz)" <r0bertz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in xml/htdocs/doc/zh_cn/handbook: hb-install-ppc-kernel.xml hb-install-ppc64-kernel.xml
Date: Mon, 10 Mar 2008 18:53:59
Message-Id: E1JYn8H-0004tQ-1X@stork.gentoo.org
1 r0bertz 08/03/10 18:53:57
2
3 Modified: hb-install-ppc-kernel.xml
4 hb-install-ppc64-kernel.xml
5 Log:
6 [zh_cn] updated 2007.0 book, restore wrongly overwritten hb-install-ppc{,64}-kernel.xml
7
8 Revision Changes Path
9 1.5 xml/htdocs/doc/zh_cn/handbook/hb-install-ppc-kernel.xml
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/handbook/hb-install-ppc-kernel.xml?rev=1.5&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/handbook/hb-install-ppc-kernel.xml?rev=1.5&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/handbook/hb-install-ppc-kernel.xml?r1=1.4&r2=1.5
14
15 Index: hb-install-ppc-kernel.xml
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/handbook/hb-install-ppc-kernel.xml,v
18 retrieving revision 1.4
19 retrieving revision 1.5
20 diff -u -r1.4 -r1.5
21 --- hb-install-ppc-kernel.xml 10 Mar 2008 18:11:56 -0000 1.4
22 +++ hb-install-ppc-kernel.xml 10 Mar 2008 18:53:56 -0000 1.5
23 @@ -1,14 +1,14 @@
24 <?xml version='1.0' encoding='UTF-8'?>
25 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
26
27 -<!-- The content of this document is licensed under the CC-BY-SA license -->
28 -<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
29 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/handbook/hb-install-ppc-kernel.xml,v 1.4 2008/03/10 18:11:56 r0bertz Exp $ -->
30 -<!-- English CVS version: 1.17 -->
31 +<!-- The content of this document is licensed under the CC-BY-SA license
32 + See http://creativecommons.org/licenses/by-sa/2.5
33 + $Header: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/handbook/hb-install-ppc-kernel.xml,v 1.5 2008/03/10 18:53:56 r0bertz Exp $ -->
34 +<!-- English CVS version: 1.56 -->
35 <sections>
36
37 -<version>8.5</version>
38 -<date>2008-01-12</date>
39 +<version>8.4</version>
40 +<date>2007-08-12</date>
41
42 <section>
43 <title>时区</title>
44 @@ -27,7 +27,7 @@
45 </body>
46 </section>
47 <section>
48 -<title>安装内核源码</title>
49 +<title>安装源码</title>
50 <subsection>
51 <title>选择内核</title>
52 <body>
53 @@ -41,7 +41,7 @@
54 </p>
55
56 <pre caption="安装内核源码">
57 -# <i>emerge --usepkg gentoo-sources</i>
58 +# <i>emerge gentoo-sources</i>
59 </pre>
60
61 <p>
62 @@ -75,11 +75,11 @@
63 </p>
64
65 <p>
66 -然而,一件事情<e>是</e>真的:在手动配置内核之前,您必须了解您的系统。您可以安装pciutils(<c>emerge --usepkg pciutils</c>),用其中的<c>lspci</c>来了解您需要的大部分信息。您现在可以在chroot的环境中运行<c>lspci</c>。您可以忽略任何<e>pcilib</e>的警告。(类似于pcilib: cannot open/sys/bus/pci/devices)。此外,您也可以在<e>非chroot</e>的环境执行<c>lspci</c>。结果相同。您还可以运行<c>lsmod</c>来查看安装光盘使用了哪些内核模块。(这也是个不错的提示,它可以教你该选择哪些模块)。另外一个查找哪些组件功能需要激活的好地方是检查成功启动好的内核消息日志。键入<c>dmesg</c>用来查看内核消息。
67 +然而,一件事情<e>是</e>真的:在手动配置内核之前,您必须了解您的系统。您可以安装pciutils(<c>emerge pciutils</c>),用其中的<c>lspci</c>来了解您需要的大部分信息。您现在可以在chroot的环境中运行<c>lspci</c>。您可以忽略任何<e>pcilib</e>的警告。(类似于pcilib: cannot open/sys/bus/pci/devices)。此外,您也可以在<e>非chroot</e>的环境执行<c>lspci</c>。结果相同。您还可以运行<c>lsmod</c>来查看安装光盘使用了哪些内核模块。(这也是个不错的提示,它可以教你该选择哪些模块)。另外一个查找哪些组件功能需要激活的好地方是检查成功启动好的内核消息日志。键入<c>dmesg</c>用来查看内核消息。
68 </p>
69
70 <p>
71 -现在进入你的内核源代码目录,是时候来配置你的内核了。在大多数的32位PowerPC机器上首先运行<c>make pmac32_defconfig</c>为你的配置增加默认设置。在默认设置生成后,运行<c>make menuconfig</c>会出现一个基于ncurses的配置菜单。
72 +现在进入你的内核源代码目录,是时候来配置你的内核了。在大多数的PowerPC机器上首先运行<c>make pmac32_defconfig</c>为你的配置增加默认设置。在默认设置生成后,运行<c>make menuconfig</c>会出现一个基于ncurses的配置菜单。
73 </p>
74
75 <pre caption="调用menuconfig">
76 @@ -103,7 +103,7 @@
77 </p>
78
79 <pre caption="选择experimental code/drivers">
80 -General setup ---&gt;
81 +Code maturity level options ---&gt;
82 [*] Prompt for development and/or incomplete code/drivers
83 </pre>
84
85 @@ -259,7 +259,7 @@
86 <comment>(Apple/IBM)</comment>
87 # <i>cp vmlinux /boot/<keyval id="kernel-name"/></i>
88 <comment>(Pegasos)</comment>
89 -# <i>cp arch/powerpc/boot/images/zImage /boot/<keyval id="kernel-name"/></i>
90 +# <i>cp arch/powerpc/boot/images/zImage /boot/&lt;kernel-version&gt;</i>
91 </pre>
92
93 <p>
94 @@ -319,7 +319,7 @@
95 </p>
96
97 <pre caption="Emerging genkernel">
98 -# <i>emerge --usepkg genkernel</i>
99 +# <i>emerge genkernel</i>
100 </pre>
101
102 <p>
103
104
105
106 1.5 xml/htdocs/doc/zh_cn/handbook/hb-install-ppc64-kernel.xml
107
108 file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/handbook/hb-install-ppc64-kernel.xml?rev=1.5&view=markup
109 plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/handbook/hb-install-ppc64-kernel.xml?rev=1.5&content-type=text/plain
110 diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/zh_cn/handbook/hb-install-ppc64-kernel.xml?r1=1.4&r2=1.5
111
112 Index: hb-install-ppc64-kernel.xml
113 ===================================================================
114 RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/handbook/hb-install-ppc64-kernel.xml,v
115 retrieving revision 1.4
116 retrieving revision 1.5
117 diff -u -r1.4 -r1.5
118 --- hb-install-ppc64-kernel.xml 10 Mar 2008 18:11:56 -0000 1.4
119 +++ hb-install-ppc64-kernel.xml 10 Mar 2008 18:53:56 -0000 1.5
120 @@ -1,14 +1,14 @@
121 <?xml version='1.0' encoding='UTF-8'?>
122 <!DOCTYPE sections SYSTEM "/dtd/book.dtd">
123
124 -<!-- The content of this document is licensed under the CC-BY-SA license -->
125 -<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
126 -<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/handbook/hb-install-ppc64-kernel.xml,v 1.4 2008/03/10 18:11:56 r0bertz Exp $ -->
127 -<!-- English CVS version: 1.13 -->
128 +<!-- The content of this document is licensed under the CC-BY-SA license
129 + See http://creativecommons.org/licenses/by-sa/2.5
130 + $Header: /var/cvsroot/gentoo/xml/htdocs/doc/zh_cn/handbook/hb-install-ppc64-kernel.xml,v 1.5 2008/03/10 18:53:56 r0bertz Exp $ -->
131 +<!-- English CVS version: 1.33 -->
132 <sections>
133
134 -<version>8.5</version>
135 -<date>2008-01-12</date>
136 +<version>8.3</version>
137 +<date>2007-08-12</date>
138
139 <section>
140 <title>时区</title>
141 @@ -50,7 +50,7 @@
142
143 <pre caption="查看内核源码符号链接">
144 # <i>ls -l /usr/src/linux</i>
145 -lrwxrwxrwx 1 root root 12 Aug 10 11:04 /usr/src/linux -&gt; linux-<keyval id="kernel-version"/>
146 +lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -&gt; linux-<keyval id="kernel-version"/>
147 </pre>
148
149 <p>
150 @@ -58,7 +58,7 @@
151 </p>
152
153 <p>
154 -现在请继续阅读<uri link="#manual">手动配置你的系统</uri>。
155 +现在请继续阅读<uri link="#manual">手动配置你的系统</uri>。
156 </p>
157
158 </body>
159 @@ -82,12 +82,12 @@
160 # <i>cd /usr/src/linux</i>
161 <comment>重要事项:如果你使用32位userland,你必须修改在/usr/src/linux中的顶层Makefile文件
162 然后改变CROSS_COMPILE选项为CROSS_COMPILE ?= powerpc64-unknown-linux-gnu-。
163 -你必须在运行make menuconfig之前做这个,否则可能导致内核编译时出问题。</comment>
164 +你必须在运行make menuconfig之前做这个,否则可能导致内核编译问题。</comment>
165 # <i>make menuconfig</i>
166 </pre>
167
168 <p>
169 -您将会看到一些配置条目。首先我们将会列出一些您必须启用的选项(否则Gentoo将根本不能运行或者在未经调试的情况下不能正常运行)。
170 +您将会看到一些配置条目。首先我们将会列出一些您必须启用的选项(否则Gentoo将不能正常运行或者在没有额外的调试下根本不能运行)。
171 </p>
172
173 </body>
174 @@ -97,16 +97,16 @@
175 <body>
176
177 <p>
178 -首先,开启development and experimental code/drivers。您必须激活它,否则,您将无法看到一些非常重要的代码/驱动:
179 +首先,开启development and experimental code/drivers。您必须激活它,否则,您将无法看到一些非常重要的代码/驱动。
180 </p>
181
182 -<pre caption="选择experimental code/drivers">
183 -General setup ---&gt;
184 +<pre caption="选择experimental code/drivers,General setup">
185 +Code maturity level options ---&gt;
186 [*] Prompt for development and/or incomplete code/drivers
187 </pre>
188
189 <p>
190 -现在转到<c>File Systems</c>,选中你使用的文件系统的支持。<e>不要</e>将它们编译成模块,否则Gentoo将无法正常地挂载你的分区。另外选中<c>/proc file system</c>和<c>Virtual memory</c>以及<c>/dev/pts file system for Unix98 PTYs</c>:
191 +现在转到<c>File Systems</c>,选中支持你使用的文件系统。<e>不要</e>将它们编译成模块,否则Gentoo将无法正常地挂载你的分区。另外选中<c>/proc file system</c>和<c>Virtual memory</c>以及<c>/dev/pts file system for Unix98 PTYs</c>:
192 </p>
193
194 <pre caption="选中必需的文件系统">
195 @@ -128,7 +128,7 @@
196 </note>
197
198 <p>
199 -如果您在使用PPPoE接入Internet或者您在使用拨号的调制解调器,您需要下面内核中的选项(你会发现在<c>Networking support</c>中提到的选项只是<c>Device Drivers</c>中的一部分:
200 +如果您在使用PPPoE接入Interne或者您在使用拨号的调制解调器,您需要下面内核中的选项(你会发现在<c>Networking support</c>中提到的选项只是<c>Device Drivers</c>中的一部分:
201 </p>
202
203 <pre caption="选中PPPoE需要的驱动">
204 @@ -170,15 +170,15 @@
205 </p>
206
207 <pre caption="编译内核">
208 -# <i>make &amp;&amp; make modules_install</i>
209 +(Apple/IBM)# <i>make &amp;&amp; make modules_install</i>
210 </pre>
211
212 <p>
213 -当你的内核编译完成之后,复制内核镜像至<path>/boot</path>目录。记住用你实际的内核版本替换<path>&lt;kernel-version&gt;</path>:
214 +当你的内核编译完成之后,复制内核镜像至<path>/boot</path>目录。记住用你实际的内核版本替换<path>&lt;kernel-version&gt;</path>:
215 </p>
216
217 <pre caption="安装内核">
218 -# <i>cp vmlinux /boot/&lt;kernel-version&gt;</i>
219 +(Apple/IBM)# <i>cp vmlinux /boot/&lt;kernel-version&gt;</i>
220 </pre>
221
222 <p>
223 @@ -213,7 +213,7 @@
224 </pre>
225
226 <pre caption="/etc/modules.autoload.d/kernel-2.6">
227 -3c59x.ko
228 +3c59x
229 </pre>
230
231 <p>
232
233
234
235 --
236 gentoo-commits@l.g.o mailing list