FreeBSD手册——配置FreeBSD内核 (2)


# ATA and ATAPI devices
device ata0 at isa? port IO_WD1 irq 14
device ata1 at isa? port IO_WD2 irq 15

上面的选项用在比较老的,非PCI 的系统中。

# SCSI Controllers
device ahb # EISA AHA1742 family
device ahc # AHA2940 and onboard AIC7xxx devices
device amd # AMD 53C974 (Teckram DC-390(T))
device dpt # DPT Smartcache - See LINT for options!
device isp # Qlogic family
device ncr # NCR/Symbios Logic
device sym # NCR/Symbios Logic (newer chipsets)

device adv0 at isa?
device adw
device bt0 at isa?
device aha0 at isa?
device aic0 at isa?

SCSI 控制器。注释掉你系统中没有的设备。如果你只有IDE 设备,你可以把这些全部删掉。

# SCSI peripherals
device scbus # SCSI bus (required)
device da # Direct Access (disks)
device sa # Sequential Access (tape etc)
device cd # CD
device pass # Passthrough device (direct SCSI
access)

SCSI外围设备。注释掉你系统中没有的设备。如果你只有IDE设备,你可以把这些全部删掉。


# RAID controllers
device ida # Compaq Smart RAID
device amr # AMI MegaRAID
device mlx # Mylex DAC960 family

RAID 控制器支持。如果你没有,可以把它们注释掉或是删掉。

# atkbdc0 controls both the keyboard and the PS/2 mouse
device atkbdc0 at isa? port IO_KBD

键盘控制器(atkbdc)提供AT 键盘以及PS/2 定点设备的I/O 服务。键盘驱动程序
(atkbd)与PS/2 定点设备驱动程序(psm)需要它。

device atkbd0 at atkbdc? irq 1

atkbd 驱动,与atkbdc 控制器一起作用,提供连接到AT 键盘控制器的AT 84 键盘
与AT 加强型键盘的访问。

device psm0 at atkbdc? irq 12

如果你的鼠标插在PS/2 鼠标端口,就使用这个设备驱动程序。

device vga0 at isa?

显卡驱动。

# splash screen/screen saver
pseudo-device splash

启动画面!屏保也需要它。

# syscons is the default console driver, resembling an SCO console
device sc0 at isa?

sc0 是默认的控制台驱动,类似于SCO地控制台。绝大部分全屏幕程序都通过termcap
这类terminal database library 来访问console ,因此用这个驱动程序或是VT220
兼容的console 驱动程序vt0,没太大差别。使用sc0的情况下,如果登陆系统后,执行
全屏幕程序有问题,则该把你的TERM 变量设置成“scoansi”。

# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#device vt0 at isa?
#options XSERVER # support for X server on a vt console
#options FAT_CURSOR # start with block cursor
# If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines
#options PCVT_SCANSET=2 # IBM keyboards are non-std

这是一个兼容VT220 的console 驱动程序,并向下兼容VT100/102 。在部分与sc0 不兼容
的笔记本电脑上, 它能运作良好。当然,当你登陆系统时,记得设置TERM 参数为vt100
或是vt220 。当连接到网络上许多不同 类型计算机时,这个驱动程序也常是很有用的,
这是因为许多的计算机上的termcap 或是terminfo 并不支持 sc0 —而vt100 的资料几乎
所有的平台上都支持。


# Power management support (see LINT for more options)
device apm0 at nexus? disable flags 0x20 # Advanced Power Management

高级电源管理支持。多用在笔记本电脑上。

# PCCARD (PCMCIA) support
device card
device pcic0 at isa? irq 10 port 0x3e0 iomem 0xd0000
device pcic1 at isa? irq 11 port 0x3e2 iomem 0xd4000 disable

PCMCIA 支持。只用于笔记本电脑上。

# Serial (COM) ports
device sio0 at isa? port IO_COM1 flags 0x10 irq 4
device sio1 at isa? port IO_COM2 irq 3
device sio2 at isa? disable port IO_COM3 irq 5
device sio3 at isa? disable port IO_COM4 irq 9

这四个串口,可看作是MS-DOS 系统中的COM1 到COM4 。

注意:如果你的内猫占用COM4,并且串口占用COM2, 则你必须修改调制解调器的IRQ
为2(IRQ 2 跟IRQ 9 是 一样的),这样你才能在freebsd中正常使用调制解调器。
如果你用的时multiport的串口卡,则应该参考sio的 man手册。部分显示卡(特别
是使用S3 芯片的),用到I/O 地址0x*2e8 ,而一些便宜的串行卡,不能正确译码
16 位的I/O 寻址空间,因此它们会冲突,导致COM4 无法正常使用。

每个串行口都要有一个唯一的IRQ(除非你用的时支持共享中断的multiport卡) ,
所以COM3 与COM4 默认的 IRQ 无法使用。

# Parallel port
device ppc0 at isa? irq 7

ISA总线 并行接口

device ppbus # Parallel port bus (required)

提供并行总线的支持。

device lpt # Printer

提供并口打印机的支持。

注意: 要使用并口打印机,就必须同时加入上面三行设置。

device plip # TCP/IP over parallel

提供并行网络接口的支持。

device ppi # Parallel port interface device

普通用途的I/O (“geek port”) + IEEE1284 I/O 。

#device vpo # Requires scbus and da

这是针对Iomega Zip 驱动器的。它要求scbus 和da 的支持。工作在EPP 1.9 模式执行效果最好。

# PCI Ethernet NICs.
device de # DEC/Intel DC21x4x (``Tulip'')
device fxp # Intel EtherExpress PRO/100B (82557, 82558)
device tx # SMC 9432TX (83c170 ``EPIC'')
device vx # 3Com 3c590, 3c595 (``Vortex'')
device wx # Intel Gigabit Ethernet Card (``Wiseman'')

多种PCI 网卡驱动器。注释或删除在你系统中没有的设备。

# PCI Ethernet NICs that use the common MII bus controller code.
device miibus # MII bus support

MII总线支持,对于部分PCI 10/100 Ethernet 网卡来说是必需的,也就是那些使用类似MII
传输方式操作的 网卡。 加miibus驱动到内核配置中,以实现对普通miibus API的支持及所有
的PHY驱动,包括一种不能被特 定驱动明确处理的PHY的通用驱动。

device dc # DEC/Intel 21143 and various workalikes
device rl # RealTek 8129/8139
device sf # Adaptec AIC-6915 (``Starfire'')
device sis # Silicon Integrated Systems SiS 900/SiS 7016
device ste # Sundance ST201 (D-Link DFE-550TX)
device tl # Texas Instruments ThunderLAN
device vr # VIA Rhine, Rhine II
device wb # Winbond W89C840F
device xl # 3Com 3c90x (``Boomerang'', ``Cyclone'')

驱动,使用MII 总线控制器代码。

# ISA Ethernet NICs.
device ed0 at isa? port 0x280 irq 10 iomem 0xd8000
device ex
device ep
# WaveLAN/IEEE 802.11 wireless NICs. Note: the WaveLAN/IEEE really
# exists only as a PCMCIA device, so there is no ISA attachment needed
# and resources will always be dynamically assigned by the pccard code.
device wi
# Aironet 4500/4800 802.11 wireless NICs. Note: the declaration below will
# work for PCMCIA and PCI cards, as well as ISA cards set to ISA PnP
# mode (the factory default). If you set the switches on your ISA
# card for a manually chosen I/O address and IRQ, you must specify
# those parameters here.
device an
# The probe order of these is presently determined by i386/isa/isa_compat.c.
device ie0 at isa? port 0x300 irq 10 iomem 0xd0000
device fe0 at isa? port 0x300
device le0 at isa? port 0x300 irq 5 iomem 0xd0000
device lnc0 at isa? port 0x280 irq 10 drq 0
device cs0 at isa? port 0x300
device sn0 at isa? port 0x300 irq 10
# requires PCCARD (PCMCIA) support to be activated
#device xe0 at isa?

ISA 以太网驱动器。看看/usr/src/sys/i386/conf/LINT 了解一下哪个卡被哪个驱动所支持。

pseudo-device ether # Ethernet support

仅有以太网卡时才需要。它包含了通用的以太网协议代码。

pseudo-device sl 1 #

本文作者:
« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3