Chinaunix首页 | 论坛 | 博客
  • 博客访问: 938736
  • 博文数量: 102
  • 博客积分: 8134
  • 博客等级: 中将
  • 技术积分: 1072
  • 用 户 组: 普通用户
  • 注册时间: 2007-11-21 15:30
文章分类

全部博文(102)

文章存档

2019年(1)

2018年(1)

2014年(1)

2013年(2)

2012年(1)

2011年(2)

2010年(5)

2009年(9)

2008年(10)

2007年(70)

分类: BSD

2007-11-21 17:16:38

#
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#   
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server () for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ../../conf/NOTES and NOTES files.
# If you are in doubt as to the purpose or necessity of a line, check first
# in NOTES.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.429.2.13 2006/10/09 18:41:36 simon Exp $

machine        i386
#cpu        I486_CPU
#cpu        I586_CPU
cpu        I686_CPU
ident        NEOLKC
maxusers    0

# To statically compile in device wiring instead of /boot/device.hints
#hints        "GENERIC.hints"    # Default places to look for devices.

makeoptions    DEBUG=-g        # Build kernel with gdb(1) debug symbols

options     SCHED_4BSD        # 4BSD scheduler
options     PREEMPTION        # Enable kernel thread preemption
options     INET            # InterNETworking
#options     INET6            # IPv6 communications protocols
options     FFS            # Berkeley Fast Filesystem
options     SOFTUPDATES        # Enable FFS soft updates support
options     UFS_ACL        # Support for access control lists
options     UFS_DIRHASH        # Improve performance on big directories
options     MD_ROOT        # MD is a potential root device
#options     NFSCLIENT        # Network Filesystem Client
#options     NFSSERVER        # Network Filesystem Server
#options     NFS_ROOT        # NFS usable as /, requires NFSCLIENT
options     MSDOSFS        # MSDOS Filesystem
options     CD9660            # ISO 9660 Filesystem
options     PROCFS            # Process filesystem (requires PSEUDOFS)
options     PSEUDOFS        # Pseudo-filesystem framework
options     GEOM_GPT        # GUID Partition Tables.
options     COMPAT_43        # Compatible with BSD 4.3 [KEEP THIS!]
options     COMPAT_FREEBSD4    # Compatible with FreeBSD4
options     COMPAT_FREEBSD5    # Compatible with FreeBSD5
options     SCSI_DELAY=2000    # Delay (in ms) before probing SCSI
options     KTRACE            # ktrace(1) support
options     SYSVSHM        # SYSV-style shared memory
options     SYSVMSG        # SYSV-style message queues
options     SYSVSEM        # SYSV-style semaphores
options     _KPOSIX_PRIORITY_SCHEDULING     # POSIX P1003_1B real-time extensions
options     KBD_INSTALL_CDEV    # install a CDEV entry in /dev
options     ADAPTIVE_GIANT    # Giant mutex is adaptive.

# User custom option.
options     COMPAT_AOUT        # Enable i386 a.out binary support
options     COMPAT_LINUX        # Enable Linux ABI emulation
options     LINPROCFS        # Enable the linux-like proc filesystem support (requires COMPAT_LINUX  and PSEUDOFS)
options    DEVICE_POLLING    # 可以让dc,fxp和sis设备更平稳地运行,不幸的是它不能和SMP连用
options    HZ=1000
options     PQ_MEDIUMCACHE    # 为256k二级缓存的CPU提供支持
options    CPU_SUSP_HLT        #打开CPU空闲节能
options    CPU_UPGRADE_HW_CACHE
options    CPU_WT_ALLOC
options     NO_MEMORY_HOLE    #以上三项为AMD系列CPU优化
options    ZERO_COPY_SOCKETS    #这是对4.4BSD设计缺陷的重大改进可以极大的提高网络性能
options     TCP_DROP_SYNFIN="YES"        #如果要创建互联网服务器,将其值改为NO,丢弃SYN+FIN的TCP包
options    PANIC_REBOOT_WAIT_TIME=0        #panic时重启等待时间,0为不等待立即重启.
#options    IPFILTER                #ipfilter支持
#IPFirewall。我们需要的功能IPFilter都提供,并且更高效
#除非你需要IPFirewall的某些专有功能,否则这部分不必编译
options    IPFIREWALL                #防火墙
options    IPDIVERT                #divert sockets
options     IPFIREWALL_VERBOSE            #允许防火墙日志
options     IPFIREWALL_FORWARD            #允许透明代理
options     IPFIREWALL_VERBOSE_LIMIT=100    #限制日至
options     IPFIREWALL_DEFAULT_TO_ACCEPT    #默认允许所有IP包
options    IPSTEALTH                #启动支持秘密转发的代码,这一选项在使防火墙不被traceroute和类似工具发现时很有用
# 静态数据包过滤许可规则(直接放入内核)
options    ACCEPT_FILTER_DATA
options    ACCEPT_FILTER_HTTP
options    VESA                    #打开终端高分辨率支持并在/etc/rc.conf中加入 allscreens_flags="-g 100x37 VESA_800x600"
options    SC_PIXEL_MODE
# The following options will let you change the default colors of syscons. 我在FreeBSD6.2中编译不过去!可能和我make.conf里参数设置有关
#options    SC_NORM_ATTR=”(FG_GREEN|BG_BLACK)”
#options    SC_NORM_REV_ATTR=”(FG_YELLOW|BG_GREEN)”
#options    SC_KERNEL_CONS_ATTR=”(FG_GREEN|BG_BLACK)”
#options     SC_KERNEL_CONS_REV_ATTR=”(FG_BLACK|BG_GREEN)”

device        apic            # I/O APIC 设备将启用使用 I/O APIC 作为中断发送设备的能力。 apic 设备可以被 UP 和 SMP 内核使用,但 SMP 内核必须使用它。 要支持多处理器, 还需要加上 options SMP。

# Bus support.
#device        eisa            # [我没这个设备]如果您的主机板上有EISA总线,加入这个设置。使用这个选项可以自动扫描并设置所有连接在EISA总线上的设备。
device        pci            # 主板有PCI总线,就加入这个选项。使用这个选项可以自动扫描PCI卡,并在PCI到ISA之间建立通路。

# Floppy drives
#device        fdc        # 这是软驱控制器

# ATA and ATAPI devices
device        ata            # 这个驱动器支持所有ATA和ATAPI设备。您只要在内核中加入device ata选项, 就可以让内核支持现代计算机上的所有PCI ATA/ATAPI设备
device        atadisk        # ATA disk drives
device        ataraid        # ATA RAID drives
device        atapicd        # ATAPI CDROM drives
#device        atapifd        # ATAPI floppy drives
#device        atapist        # ATAPI tape drives
options     ATA_STATIC_ID    # Static device numbering

# SCSI Controllers 我没有SCSI控制器设备所以就都注释掉
#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 (Tekram 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 + those of `ncr')
#device        trm        # Tekram DC395U/UW/F DC315U adapters

#device        adv        # Advansys SCSI adapters
#device        adw        # Advansys wide SCSI adapters
#device        aha        # Adaptec 154x SCSI adapters
#device        aic        # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
#device        bt        # Buslogic/Mylex MultiMaster SCSI adapters

#device        ncv        # NCR 53C500
#device        nsp        # Workbit Ninja SCSI-3
#device        stg        # TMC 18C30/18C50

# SCSI peripherals 也没有SCSI外围设备,都注释掉
#device        scbus        # SCSI bus (required for SCSI)
#device        ch        # SCSI media changers
#device        da        # Direct Access (disks)
#device        sa        # Sequential Access (tape etc)
#device        cd        # CD
#device        pass        # Passthrough device (direct SCSI access)
#device        ses        # SCSI Environmental Services (and SAF-TE)

# RAID controllers interfaced to the SCSI subsystem 没有这些设备
#device        amr        # AMI MegaRAID
#device        arcmsr        # Areca SATA II RAID
#device        asr        # DPT SmartRAID V, VI and Adaptec SCSI RAID
#device        ciss        # Compaq Smart RAID 5*
#device        dpt        # DPT Smartcache III, IV - See NOTES for options
#device        hptmv        # Highpoint RocketRAID 182x
#device        rr232x        # Highpoint RocketRAID 232x
#device        iir        # Intel Integrated RAID
#device        ips        # IBM (Adaptec) ServeRAID
#device        mly        # Mylex AcceleRAID/eXtremeRAID
#device        twa        # 3ware 9000 series PATA/SATA RAID

# RAID controllers 没有设备
#device        aac        # Adaptec FSA RAID
#device        aacp        # SCSI passthrough for aac (requires CAM)
#device        ida        # Compaq Smart RAID
#device        mfi        # LSI MegaRAID SAS
#device        mlx        # Mylex DAC960 family
#device        pst        # Promise Supertrak SX6000
#device        twe        # 3ware ATA RAID

# atkbdc0 controls both the keyboard and the PS/2 mouse
device        atkbdc        # AT keyboard controller 键盘控制器(atkbdc)提供AT键盘输入以及PS/2指针设备的I/O服务。键盘驱动程序(atkbd)与PS/2鼠标驱动程序(psm)需要这个控制器,所以不要删除它。
device        atkbd        # AT keyboard atkbd驱动程序,与atkbdc控制器一起使用, 提供连接到AT键盘控制器的AT 84键盘与AT加强型键盘的访问服务。
device        psm        # PS/2 mouse

device        kbdmux        # keyboard multiplexer 针对键盘多路选择器的基本支持

device        vga        # VGA video card driver 显卡驱动

device        splash        # Splash screen and screen saver support 启动时的 splash 画面!屏幕保护程序也需要这一选项

# syscons is the default console driver, resembling an SCO console 默认的控制台驱动程序, 类似 SCO 控制台
device        sc

# Enable this for the pcvt (VT220 compatible) console driver
#device        vt
#options     XSERVER        # support for X server on a vt console
#options     FAT_CURSOR    # start with block cursor

device        agp        # support several AGP chipsets 如果您的机器使用 AGP 卡, 请把上面一行加入配置。 这将启用 AGP, 以及某些卡上的 AGP GART 支持

# Power management support (see NOTES for more options)高级电源管理支持。 对笔记本有用, 不过在 FreeBSD 5.X 和更高版本中的 GENERIC 里默认禁用。
device        apm
# Add suspend/resume support for the i8254. 用于电源管理事件, 例如 APM 和 ACPI 的时钟设备驱动。
device        pmtimer

# PCCARD (PCMCIA) support   PCMCIA支持。如果您使用膝上型计算机,您需要这个。
# PCMCIA and cardbus bridge support
#device        cbb        # cardbus (yenta) bridge
#device        pccard        # PC Card (16-bit) bus
#device        cardbus        # CardBus (32-bit) bus

# Serial (COM) ports 串口链接
#device        sio        # 8250, 16[45]50 based serial ports

# Parallel port
device        ppc        # ISA-bus并行接口
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模式

# If you've got a "dumb" serial or parallel PCI card that is
# supported by the puc(4) glue driver, uncomment the following
# line to enable it (connects to the sio and/or ppc drivers):
#device        puc

# PCI Ethernet NICs. 多种PCI网卡驱动器。注释或删除您系统中没有的设备
#device        de        # DEC/Intel DC21x4x (``Tulip'')
#device        em        # Intel PRO/1000 adapter Gigabit Ethernet Card
#device        ixgb        # Intel PRO/10GbE Ethernet Card
#device        txp        # 3Com 3cR990 (``Typhoon'')
#device        vx        # 3Com 3c590, 3c595 (``Vortex'')

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device        miibus        # MII bus support MII总线支持对于一些PCI 10/100 Ethernet NIC来说是必需的
#device        bce        # Broadcom BCM5706/BCM5708 Gigabit Ethernet
#device        bfe        # Broadcom BCM440x 10/100 Ethernet
#device        bge        # Broadcom BCM570xx Gigabit Ethernet
#device        dc        # DEC/Intel 21143 and various workalikes
#device        fxp        # Intel EtherExpress PRO/100B (82557, 82558)
#device        lge        # Level 1 LXT1001 gigabit Ethernet
#device        nge        # NatSemi DP83820 gigabit Ethernet
#device        nve        # nVidia nForce MCP on-board Ethernet Networking
#device        pcn        # AMD Am79C97x PCI 10/100(precedence over 'lnc')
#device        re        # RealTek 8139C+/8169/8169S/8110S
#device        rl        # RealTek 8129/8139
#device        sf        # Adaptec AIC-6915 (``Starfire'')
#device        sis        # Silicon Integrated Systems SiS 900/SiS 7016
#device        sk        # SysKonnect SK-984x & 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 ``EPIC'')
#device        vge        # VIA VT612x gigabit Ethernet
device        vr        # VIA Rhine, Rhine II 我的网卡设备
#device        wb        # Winbond W89C840F
#device        xl        # 3Com 3c90x (``Boomerang'', ``Cyclone'')

# ISA Ethernet NICs.  pccard NICs included. ISA 以太网卡驱动
#device        cs        # Crystal Semiconductor CS89x0 NIC
# 'device ed' requires 'device miibus'
#device        ed        # NE[12]000, SMC Ultra, 3c503, DS8390 cards
#device        ex        # Intel EtherExpress Pro/10 and Pro/10+
#device        ep        # Etherlink III based cards
#device        fe        # Fujitsu MB8696x based cards
#device        ie        # EtherExpress 8/16, 3C507, StarLAN 10 etc.
#device        lnc        # NE2100, NE32-VL Lance Ethernet cards
#device        sn        # SMC's 9000 series of Ethernet chips
#device        xe        # Xircom pccard Ethernet

# Wireless NIC cards 用以支持多种无线网卡
#device        wlan        # 802.11 support
#device        wlan_wep    # 802.11 WEP support
#device        wlan_ccmp    # 802.11 CCMP support
#device        wlan_tkip    # 802.11 TKIP support
#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.
#device        wl        # Older non 802.11 Wavelan wireless NIC.

# Pseudo devices.
device        loop        # Network loopback 这是 TCP/IP 的通用回环设备。如果您 telnet 或 FTP 到 localhost (也就是 127.0.0.1) 则将通过这个设备回到本机。 这个设备是 必需的。
device        random        # Entropy device
device        ether        # Ethernet support 只有在使用以太网卡时才需要。它包含了通用的以太网协议代码
#device        sl        # Kernel SLIP 用以提供 SLIP 支持。目前它几乎已经完全被 PPP 取代了,因为后者更容易配置,而且更适合调制解调器之间的连接, 并提供了更强大的功能。
device        ppp        # Kernel PPP 这一选项用以提供内核级的 PPP 支持,用于拨号连接。 也有以用户模式运行的 PPP 实现,使用 tun 并提供包括按需拨号在内的更为灵活的功能。
device        tun        # Packet tunnel. 它会被用户模式的 PPP 软件用到。参考本书的 PPP 以了解更多的细节。
device        pty        # Pseudo-ttys (telnet etc) 这是一个 “pseudo-terminal” 或模拟登入端口。 它用来接收连入的 telnet 以及 rlogin 会话、 xterm, 以及一些其它程序如 Emacs 等。
device        md        # Memory "disks" 内存盘伪设备
device        gif        # IPv6 and IPv4 tunneling 它实现了在 IPv4 上的 IPv6 隧道、 IPv6 上的 IPv4 隧道、 IPv4 上的 IPv4 隧道、以及IPv6 上的 IPv6隧道。 gif 设备是 “自动克隆” 的,它会根据需要自动创建设备节点。
device        faith        # IPv6-to-IPv4 relaying (translation) 这个伪设备能捕捉发给它的数据包,并把它们转发给 IPv4/IPv6 翻译服务程序。

# The `bpf' device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
# Note that 'bpf' is required for DHCP.
device        bpf        # Berkeley packet filter 这是 Berkeley 包过滤器。这个伪设备允许网络接口被置于混杂模式, 从而,截获广播网 (例如,以太网) 上的每一个数据包。截获的数据报可以保存到磁盘上,也可以使用 tcpdump(1) 程序来分析。
                # 注意: bpf(4) 设备也被用于 dhclient(8) 来获取默认路由器(网关)的 IP 地址。如果使用DHCP,就不要注释掉这行
# USB support 支持各类 USB 设备
device        uhci        # UHCI PCI->USB interface
#device        ohci        # OHCI PCI->USB interface
device        ehci        # EHCI PCI->USB interface (USB 2.0)
device        usb        # USB Bus (required)
#device        udbp        # USB Double Bulk Pipe devices
#device        ugen        # Generic
#device        uhid        # "Human Interface Devices"
#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 miibus
#device        aue        # ADMtek USB Ethernet
#device        axe        # ASIX Electronics USB Ethernet
#device        cdce        # Generic USB over Ethernet
#device        cue        # CATC USB Ethernet
#device        kue        # Kawasaki LSI USB Ethernet
#device        rue        # RealTek RTL8150 USB Ethernet

# FireWire support 支持各类火线设备
#device        firewire    # FireWire bus code
#device        sbp        # SCSI over FireWire (Requires scbus and da)
#device        fwe        # Ethernet over FireWire (non-standard!)
阅读(668) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~