linux kernel定制(四)

4 内核选项
内核选项这里我们主要说明驱动的选择:

Device Drivers  --->
Generic Driver Options  --->
(/sbin/hotplug) path to uevent helper
[*] Prevent firmware from being built
-*- Userspace firmware loading support
[*]   Include in-kernel firmware blobs in kernel binary
()    External firmware blobs to build into the kernel binary
[ ] Driver Core verbose debug messages
[ ] Managed device resources verbose debug messages <=== 管理设备资源的冗长调试信息,我不需要
<*> Connector - unified userspace <-> kernelspace linker  --->// 内核空间与用户空间的信道
[*]   Report process events to userspace // 报告处理时间给用户空间
< > Memory Technology Device (MTD) support  --->
< > Parallel port support  --->
-*- Plug and Play support  --->
[ ]   PNP debugging messages <=== 调试信息,
[ ] Block devices  ---> <===比如ramdisk, 磁盘阵列,CD/DVD刻录等,详见内部选项
[ ] Misc devices  ---> <=== 没有需要支持的杂项设备
< > ATA/ATAPI/MFM/RLL support  --->
SCSI device support  --->
< > RAID Transport Class
-*- SCSI device support
[] legacy /proc/scsi/ support <=== SCSI设备
*** SCSI support type (disk, tape, CD-ROM) ***
<*> SCSI disk support // 就算你用SATA,此选项也必选
< > SCSI tape support
< > SCSI OnStream SC-x0 tape support
<> SCSI CDROM support <=== SCSI设备
<> SCSI generic support <=== SCSI设备
< > SCSI media changer support
[ ] Probe all LUNs on each SCSI device
[] Verbose SCSI error reporting (kernel size +=12K) <=== SCSI设备
[ ] SCSI logging facility
[ ] Asynchronous SCSI scanning
SCSI Transports  --->
<> Parallel SCSI (SPI) Transport Attributes <=== SCSI设备
< > FiberChannel Transport Attributes
< > iSCSI Transport Attributes
< > SAS Domain Transport Attributes
< > SRP Transport Attributes
[ ] SCSI low-level drivers  --->
< > SCSI Device Handlers  --->
< > OSD-Initiator library
Serial ATA (prod) and Parallel ATA (experimental) drivers  --->
        [*]  Verbose ATA error reporting
[*]   ATA ACPI Support
[ ]   SATA Port Multiplier support <=== 我SATA设备,没有使用 多路SATA/SATA Hub 的需求。Port Multiplier是南桥芯片提供的一种支持多块SATA设备,并共享总带宽的技术。
<*>   AHCI SATA support
< >      Platform AHCI SATA support
< >      Inito 162x SATA support
< >   Silicon Image 3124/3132 SATA support
[*]   ATA SFF support // 选择自己硬件对应的驱动即可
< >     ServerWorks Frodo / Apple K2 SATA support
<*>     Intel ESB, ICH, PIIX3, PIIX4 PATA/SATA support // Intel ICH,G系列chipset driver
< >     Marvell SATA support 
< >     NVIDIA SATA support  
< >     Pacific Digital ADMA support                  
< >     Pacific Digital SATA QStor support            
< >     Promise SATA TX2/TX4 support                  
< >     Silicon Image SATA support                    
< >     SiS 964/965/966/180 SATA support              
< >     ULi Electronics SATA support                  
< >     VIA SATA support     
< >     VITESSE VSC-7174 / INTEL 31244 SATA support   
< >     Initio 162x SATA support                      
< >     ACPI firmware driver for PATA                 
< >     ALi PATA support     
< >     AMD/NVidia PATA support <=== PATA支持
< >     ARTOP 6210/6260 PATA support                  
< >     ATI PATA support     
< >     CMD64x PATA support  
< >     CS5510/5520 PATA support                      
< >     CS5530 PATA support
< >     CS5536 PATA support                            
< >     EFAR SLC90E66 support                         
< >     Generic ATA support                           
< >     HPT 366/368 PATA support                      
< >     HPT 343/363 PATA support                      
< >     IT8211/2 PATA support                         
< >     JMicron PATA support                          
< >     Compaq Triflex PATA support                   
< >     Marvell PATA support via legacy mode          
<>     Intel PATA MPIIX support <=== PATA支持
< >     Intel PATA old PIIX support <=== PATA支持
< >     NETCELL Revolution RAID support               
< >     Nat Semi NS87410 PATA support                 
< >     Nat Semi NS87415 PATA support                 
< >     Older Promise PATA controller support         
< >     PC Tech RZ1000 PATA support                   
< >     SC1200 PATA support                           
< >     SERVERWORKS OSB4/CSB5/CSB6/HT1000 PATA support
< >     Promise PATA 2027x support                     
< >     CMD / Silicon Image 680 PATA support          
< >     SiS PATA support                              
< >     VIA PATA support                              
< >     Winbond SL82C105 PATA support                 
< >     Intel SCH PATA support <=== PATA支持
[ ] Multiple devices driver support (RAID and LVM)  ---> <===(磁盘阵列)和LVM(逻辑卷管理器,添加,删除逻辑分区)的需求
[ ] Fusion MPT device support  --->
IEEE 1394 (FireWire) support  --->
< > I2O device support  --->
[ ] Macintosh device drivers  ---> <=== Mac系统硬件设备驱动, 
[*] Network device support  --->
< >   Dummy net driver support                        
< >   Bonding driver support                          
< >   EQL (serial line load balancing) support        
< >   Universal TUN/TAP device driver support         
< >   Virtual ethernet pair device                    
< >   General Instruments Surfboard 1000              
< >   ARCnet support  ---> 
-*-   PHY Device support and infrastructure  ---> <=== PHY (物理层控制芯片)  
[ ]   Ethernet (10 or 100Mbit)  ---> <=== 如果你是百 M卡,请自行选择
[*]   Ethernet (1000 Mbit)  ---> // 选择自己对应的硬件
[ ]   Ethernet (10000 Mbit)  ---> <=== 如果你是万M卡,请自行选择
<>   Token Ring driver support  ---> <=== IBM的令牌环网,用以太网的忽略
[ ]     Wireless LAN  --->  <=== 不用无线网络
      *** Enable WiMAX (Networking options) to see the WiMAX drivers *** 
      USB Network Adapters  --->           
[ ]   Wan interfaces support  --->                    
<>   FDDI driver support <=== 光纤卡驱动,相信没几个人能用上这玩意
< >   PPP (point-to-point protocol) support           
< >   SLIP (serial line) support                      
[ ]   Fibre Channel driver support
[ ]    Network console logging support
[ ]    VMware VMXNET3 ethernet driver
[ ] ISDN support  --->       
< > Telephony support  --->  
Input device support  --->
-*- Generic input layer (needed for keyboard, mouse, ...)
-*-   Support for memoryless force-feedback devices   
<>   Polled input device skeleton  <=== 一种周期性轮询硬件状态的驱动,去掉后没什么副作用
      *** Userland interfaces ***                     
-*-   Mouse interface
[ ]     Provide legacy /dev/psaux device 
(1024)  Horizontal screen resolution                  
(768)   Vertical screen resolution                    
< >   Joystick interface                              
<*>   Event interface  // 将输入设备的事件存储到/dev/input/eventX供应用程序读取
< >   Event debugging                                 
      *** Input Device Drivers ***                    
-*-   Keyboards  --->
[*]   Mice  --->                             
[]   Joysticks/Gamepads  --->  <=== 游戏设备
[]   Tablets  ---> <=== 平板PC
[]   Touchscreens  --->  <=== 触摸屏
[]   Miscellaneous devices  ---> <=== 杂七杂八的驱动,扬声器,笔记本扩展按键等
Hardware I/O ports  --->
Character devices  ---> 
-*- Virtual terminal         
[*]   Support for binding and unbinding console drivers // 在某些系统上可以使用多个控制台驱动程序(如framebuffer控制台驱动程序),该选项使得你可以选择其中之一 ,我一般只用默认的虚拟终端
[] /dev/kmem virtual device support  <=== 支持/dev/kmem设备,很少用    
[] Non-standard serial port support  <===非标准的串口设备
 Serial drivers  --->
< > 8250/16550 and compatible serial support <=== 兼容一些老式的串口设备,一般不用
    *** Non-8250 serial port support ***
< > Digi International NEO PCI Support
-*- Unix98 PTY support       
[ ]   Support multiple instances of devpts            
[ ] Legacy (BSD) PTY support 
< > IPMI top-level message handler  --->              
<*> Hardware Random Number Generator Core support     
< >   Timer IOMEM HW Random Number Generator support  
<*>   Intel HW Random Number Generator support    
<>   AMD HW Random Number Generator support  <=== AMD主板
< >   AMD Geode HW Random Number Generator support <===AMD主板
<>   VIA HW Random Number Generator support <=== VIA主板    
<> /dev/nvram support  <=== 直接存取CMOS,太危险,关
< > Siemens R3964 line discipline
< > Applicom intelligent fieldbus card support        
< > ACP Modem (Mwave) support
< > NatSemi PC8736x GPIO Support                      
< > NatSemi Base GPIO Support
< > AMD CS5535/CS5536 GPIO (Geode Companion Device)   
< > RAW driver (/dev/raw/rawN)
[*] HPET - High Precision Event Timer              
[ ]   Allow mmap of HPET     
< > Hangcheck timer
-*- I2C support  ---> // 感知硬件状态,比如温度,风扇转速
[ ] SPI support  --->        
    PPS support  --->        
[ ] GPIO Support  --->       
< > Dallas's 1-wire support  --->                     
-*- Power supply class support  --->                  
<*> Hardware Monitoring support  --->      
-*- Generic Thermal sysfs driver  --->                
[] Watchdog Timer Support  ---> <=== 系统监视程序
    Sonics Silicon Backplane  --->                    
[*]    Multifunction device drivers  --->                
[ ] Voltage and Current Regulator Support  --->       
< > Multimedia support  ---> 
Graphics support  --->
< > /dev/agpgart (AGP Support)  ---> < --- virtualbox不支持虚拟独立显卡
-*-  VGA arbitration
(16) Maximium number of GPU
[ ] Latop Hybird Graphics – GPU switch support           
<*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support)  --->
<> Lowlevel video output switch controls 
<> Support for frame buffer devices  --->
[ ] Backlight & LCD device support  --->  < --- 支持背光设置,比如pda等
    Display device support  ---> 
    Console display driver support  --->  
[ ]   Enable Scrollback Buffer in System RAM
<> Sound card support  --->  <===声卡
[] HID Devices  --->  <===人力工程学设备
[] USB support  --->  <=== 这个选项,对于跑物理机建议开启,因为有可能你的键盘是USB的, 
< > MMC/SD/SDIO card support  --->  
< > Sony MemoryStick card support (EXPERIMENTAL)  --->
[] LED Support  --->  <=== 发光二级管,应该是跟显示器相关的驱动, 
[ ] Accessibility support  --->
< > InfiniBand support  ---> 
[*] EDAC (Error Detection And Correction) reporting  ---> // 硬件故障repoting
<*> Real Time Clock  --->
[*] DMA Engine support  ---> 
[ ] Auxiliary Display support  --->                   
< > Userspace I/O drivers  --->                       
    TI VLYNQ  --->           
[ ] Staging drivers  --->    
[] X86 Platform Specific Device Drivers  ---> <=== 一些笔记本的驱动, 

如果你想了解更多的内核选项,可以参考kernel-options文件。

发表评论

您的电子邮箱地址不会被公开。