aboutsummaryrefslogtreecommitdiff
path: root/zh_CN.GB2312/books/handbook/kernelconfig
diff options
context:
space:
mode:
Diffstat (limited to 'zh_CN.GB2312/books/handbook/kernelconfig')
-rw-r--r--zh_CN.GB2312/books/handbook/kernelconfig/chapter.sgml59
1 files changed, 41 insertions, 18 deletions
diff --git a/zh_CN.GB2312/books/handbook/kernelconfig/chapter.sgml b/zh_CN.GB2312/books/handbook/kernelconfig/chapter.sgml
index ff2a638b3c..84e32e1401 100644
--- a/zh_CN.GB2312/books/handbook/kernelconfig/chapter.sgml
+++ b/zh_CN.GB2312/books/handbook/kernelconfig/chapter.sgml
@@ -2,7 +2,7 @@
The FreeBSD Documentation Project
The FreeBSD Chinese Documentation Project
- Original Revision: 1.171
+ Original Revision: 1.174
$FreeBSD$
-->
@@ -410,10 +410,7 @@ cpu I686_CPU</programlisting>
<para>一般的 &os; 联编过程, 在所联编的内核指定了 <option>-g</option> 选项时,
由于此选项将传递给 &man.gcc.1; 表示加入调试信息,
- 因此会将调试符号也包含进来。 如果您使用 <quote>旧式的</quote>
- 方法来联编内核, 通过使用 &man.config.8; 的 <option>-g</option> 选项,
- 也可以达到类似的目的。 (参见 <xref linkend="kernelconfig-building">
- 了解进一步的信息)。</para>
+ 因此会将调试符号也包含进来。</para>
<programlisting>options SCHED_4BSD # 4BSD scheduler</programlisting>
@@ -533,6 +530,11 @@ options NFS_ROOT # NFS usable as /, requires NFSCLIENT</progra
最好在所有的&i386;和Alpha systems下打开这个选项,因为可能要运行老应用程序。
在5.X才开始支持的平台,比如ia64和&sparc64;,就不需要这个选项。</para>
+ <programlisting>options COMPAT_FREEBSD5 # Compatible with &os;5</programlisting>
+
+ <para>对于 &os;&nbsp;6.X 和更高版本而言, 如果希望在其上运行为 &os;&nbsp;5.X
+ 版本联编的、 用到 &os;&nbsp;5.X 系统调用接口的程序, 则需要使用这个选项。</para>
+
<programlisting>options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI</programlisting>
<para>这将让内核在探测每个 SCSI 设备之前等待 5 秒。
@@ -576,13 +578,6 @@ options NFS_ROOT # NFS usable as /, requires NFSCLIENT</progra
<para>这个选项与键盘有关。 它在 <filename>/dev</filename>
中安装一个 CDEV 项。</para>
- <programlisting>options AHC_REG_PRETTY_PRINT # Print register bitfields in debug
- # output. Adds ~128k to driver.
-options AHD_REG_PRETTY_PRINT # Print register bitfields in debug
- # output. Adds ~215k to driver.</programlisting>
-
- <para>这个选项主要用于帮助调试, 它能够给出更容易阅读的寄存器数值。</para>
-
<programlisting>options ADAPTIVE_GIANT # Giant mutex is adaptive.</programlisting>
<para>内核全局锁 (Giant) 是一种互斥机制 (休眠互斥体) 的名字,
@@ -604,6 +599,12 @@ options AHD_REG_PRETTY_PRINT # Print register bitfields in debug
apic 设备可以被 UP 和 SMP 内核使用, 但 SMP 内核必须使用它。
要支持多处理器, 还需要加上 <literal>options SMP</literal>。</para>
+ <note>
+ <para>The apic device exists only on the i386 architecture, this
+ configuration line should not be used on other
+ architectures.</para>
+ </note>
+
<programlisting>device eisa</programlisting>
<para>如果您的主机板上有EISA总线,加入这个设置。使用这个选项可以自动扫描并设置所有连接在EISA总线上的设备。</para>
@@ -654,13 +655,17 @@ device atapicd # ATAPI CDROM drives</programlisting>
<programlisting># SCSI Controllers
device ahb # EISA AHA1742 family
device ahc # AHA2940 and onboard AIC7xxx devices
+options AHC_REG_PRETTY_PRINT # Print register bitfields in debug
+ # output. Adds ~128k to driver.
device ahd # AHA39320/29320 and onboard AIC79xx devices
+options AHD_REG_PRETTY_PRINT # Print register bitfields in debug
+ # output. Adds ~215k to driver.
device amd # AMD 53C974 (Teckram DC-390(T))
device isp # Qlogic family
#device ispfw # Firmware for QLogic HBAs- normally a module
device mpt # LSI-Logic MPT-Fusion
#device ncr # NCR/Symbios Logic
-device sym # NCR/Symbios Logic (newer chipsets)
+device sym # NCR/Symbios Logic (newer chipsets + those of `ncr')
device trm # Tekram DC395U/UW/F DC315U adapters
device adv # Advansys SCSI adapters
@@ -673,7 +678,9 @@ device ncv # NCR 53C500
device nsp # Workbit Ninja SCSI-3
device stg # TMC 18C30/18C50</programlisting>
- <para>SCSI控制器。可以注释掉您系统中没有的设备。如果您只有IDE设备,您可以把这些一起删掉。</para>
+ <para>SCSI控制器。可以注释掉您系统中没有的设备。
+ 如果您只有IDE设备,您可以把这些一起删掉。 <literal>*_REG_PRETTY_PRINT</literal>
+ 这样的配置, 则是对应驱动程序的调试选项。</para>
<programlisting># SCSI peripherals
device scbus # SCSI bus (required for SCSI)
@@ -736,7 +743,8 @@ device atkbdc # AT keyboard controller</programlisting>
<programlisting>device kbdmux # keyboard multiplexer</programlisting>
- <para>针对键盘多路选择器的基本支持。</para>
+ <para>针对键盘多路选择器的基本支持。 如果您不打算使用多个键盘,
+ 则可以放心地删除这一行。</para>
<programlisting>device vga # VGA video card driver</programlisting>
@@ -895,6 +903,7 @@ device sf # Adaptec AIC-6915 (<quote>Starfire</quote>)
device sis # Silicon Integrated Systems SiS 900/SiS 7016
device sk # SysKonnect SK-984x &amp; SK-982x gigabit Ethernet
device ste # Sundance ST201 (D-Link DFE-550TX)
+device stge # Sundance/Tamarack TC9021 gigabit Ethernet
device ti # Alteon Networks Tigon I/II gigabit Ethernet
device tl # Texas Instruments ThunderLAN
device tx # SMC EtherPower II (83c170 <quote>EPIC</quote>)
@@ -925,8 +934,21 @@ device xe # Xircom pccard Ethernet
以了解关于哪个驱动程序能够驱动您的网卡的细节。</para>
<programlisting># Wireless NIC cards
-device wlan # 802.11 support
-device an # Aironet 4500/4800 802.11 wireless NICs.
+device wlan # 802.11 support</programlisting>
+
+ <para>通用 802.11 支持。 这行配置是无线网络所必需的。</para>
+
+ <programlisting>device wlan_wep # 802.11 WEP support
+device wlan_ccmp # 802.11 CCMP support
+device wlan_tkip # 802.11 TKIP support</programlisting>
+
+ <para>针对 802.11 设备的加密支持。 如果希望使用加密和 802.11i 安全协议,
+ 就需要这些配置行。</para>
+
+ <programlisting>device an # Aironet 4500/4800 802.11 wireless NICs.
+device ath # Atheros pci/cardbus NIC's
+device ath_hal # Atheros HAL (Hardware Access Layer)
+device ath_rate_sample # SampleRate tx rate control for ath
device awi # BayStack 660 and others
device ral # Ralink Technology RT2500 wireless NICs.
device wi # WaveLAN/Intersil/Symbol 802.11 wireless NICs.
@@ -1010,7 +1032,7 @@ device bpf # Berkeley packet filter</programlisting>
<programlisting># USB support
device uhci # UHCI PCI-&gt;USB interface
device ohci # OHCI PCI-&gt;USB interface
-#device ehci # EHCI PCI-&gt;USB interface (USB 2.0)
+device ehci # EHCI PCI-&gt;USB interface (USB 2.0)
device usb # USB Bus (required)
#device udbp # USB Double Bulk Pipe devices
device ugen # Generic
@@ -1019,6 +1041,7 @@ device ukbd # Keyboard
device ulpt # Printer
device umass # Disks/Mass storage - Requires scbus and da
device ums # Mouse
+device ural # Ralink Technology RT2500USB wireless NICs
device urio # Diamond Rio 500 MP3 player
device uscanner # Scanners
# USB Ethernet, requires mii