免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1044 | 回复: 0
打印 上一主题 下一主题

内核编译定制说明(部分) [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-12-04 17:48 |只看该作者 |倒序浏览
设定编译模式:
目前的 Kernel 可以允许多种编译的模式,包括了:
    make config :这种模式需要逐行输入所需要设定的项目,无法往前修改设定,所以目前很少使用这种方式来设定 Kernel 的项目了;
    make xconfig :这种模式则是使用 X-Window 为主要环境的设定模式!除非你有 X-Window 在执行,否则没有办法使用这种模式;
    make menuconfig :这种模式有点像是文字界面的选单模式,较为简便,而且可以在纯文字界面下面执行编辑动作!是目前最常使用的模式。
开始设定:
    底下的设定项目非常的多,其中,如果您使用的是比 2.4.18 还要新的版本时,那么有可能会出现更多的选项!如果不确定选项的内容是什么?请千万以 Help 进入看一下该项目的设定值,如果还是不清楚怎么办?那么就直接以 Kernel 的预设值保留即可!我在底下的设定中,仅列出个人认为比较重要的项目,其他的项目您就得自己看一下罗?其实,基本上,只要底下这些项目您都了解之後,那么核心编译大抵上就没有很严重的困扰罗!
  [root @test linux]# make mrproper                                                            Toshiba Laptop support                   Dell laptop support
         /dev/cpu/microcode - Intel IA32 CPU microcode support   /dev/cpu/*/msr - Model-specific register support     /dev/cpu/*/cpuid - CPU information support                                
                 PCMCIA/CardBus support          
        
  • System V IPC                    Kernel support for a.out binaries
             Kernel support for ELF binaries
             Kernel support for MISC binari
            
  • Power Management support
               Advanced Power Management BIOS support     
             Memory Technology Device (MTD) support      
         Parallel port support         
             Plug and Play support           ISA Plug and Play support      
    Block devices  --->                Normal PC floppy disk support
            XT hard disk support
             Compaq SMART2 support
             Compaq Smart Array 5xxx support
             Mylex DAC960/DAC1100 PCI RAID Controller support
             Loopback device support
             Network block device support
             RAM disk support
    Multi-device support (RAID and LVM)  --->
            [ ] Multiple devices driver support (RAID and LVM)                      Packet socket
            
  •    Packet socket: mmapped IO
             Netlink device emulation (NEW)
            
  • Network packet filtering (replaces ipchains)
            [ ]   Network packet filtering debugging (NEW)
            
  • Socket Filtering
             Unix domain sockets
            
  • TCP/IP networking
            
  •    IP: multicasting
            
  •    IP: advanced router
            
  •      IP: policy routing (NEW)
            
  •        IP: use netfilter MARK value as routing key (NEW)
            
  •        IP: fast network address translation (NEW)
            
  •      IP: equal cost multipath (NEW)
            
  •      IP: use TOS value as routing key (NEW)
            
  •      IP: verbose route monitoring (NEW)
            [ ]     IP: large routing tables (NEW)
            
  •    IP: kernel level autoconfiguration
            
  •      IP: DHCP support (NEW)
            
  •      IP: BOOTP support (NEW)
            
  •      IP: RARP support (NEW)
              IP: tunneling
               IP: GRE tunnels over IP
            
  •      IP: broadcast GRE over IP (NEW)
            
  •    IP: multicast routing
            
  •      IP: PIM-SM version 1 support (NEW)
            
  •      IP: PIM-SM version 2 support (NEW)
            
  •    IP: TCP Explicit Congestion Notification support
            
  •    IP: TCP syncookie support (disabled per default)
              IP: Netfilter Configuration  --->             Connection tracking (required for masq/NAT) (NEW)
                       FTP protocol support (NEW)
                       IRC protocol support (NEW)
                     IP tables support (required for filtering/masq/NAT) (NEW)
                       limit match support (NEW)
                       MAC address match support (NEW)
                       netfilter MARK match support (NEW)
                       Multiple port match support (NEW)
                       TOS match support (NEW)
                       AH/ESP match support (NEW)
                       LENGTH match support (NEW)
                       TTL match support (NEW)
                       tcpmss match support (NEW)
                       Connection state match support (NEW)
                       Packet filtering (NEW)
                         REJECT target support (NEW)
                       Full NAT (NEW)
                         MASQUERADE target support (NEW)
                         REDIRECT target support (NEW)
                       Packet mangling (NEW)
                         TOS target support (NEW)
                         MARK target support (NEW)
                       LOG target support (NEW)
                       TCPMSS target support (NEW)
                     ipchains (2.2-style) support (NEW)
                     ipfwadm (2.0-style) support (NEW)
             The IPX protocol
            [ ]   IPX: Full internal IPX network (NEW)
             Appletalk protocol support
             DECnet Support
             802.1d Ethernet Bridging
            QoS and/or fair queueing  --->
                    [ ] QoS and/or fair queueing
    Telephony Support  --->             Linux telephony support
    ATA/IDE/MFM/RLL support  --->       ATA/IDE/MFM/RLL support
            IDE, ATA and ATAPI Block devices  --->
                     Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support
                       Include IDE/ATA-2 DISK support
                   
  •      Use multi-mode by default
                       Include IDE/ATAPI CDROM support
                    ---- IDE chipset support/bugfixes
                   
  •    CMD640 chipset bugfix/support
                   
  •    RZ1000 chipset bugfix/support
                   
  •    Generic PCI IDE chipset support
                   
  •      Sharing PCI IDE interrupts support
                   
  •      Generic PCI bus-master DMA support
                   
  •        Use PCI DMA by default when available
                   
  •      Intel PIIXn chipsets supportt
                   
  •        PIIXn Tuning supportt
    SCSI support  --->         SCSI support
    Fusion MPT device support  --->
    I2O device support  --->  
             I2O support
    Network device support  --->   Dummy net driver support   Bonding driver support
             EQL (serial line load balancing) support
             Universal TUN/TAP device driver support
             General Instruments Surfboard 1000
            Ethernet (10 or 100Mbit)  --->      EtherExpressPro/100 support
                         RealTek RTL-8139 PCI Fast Ethernet Adapter support
                   
  •        Use PIO instead of MMIO
                   
  •        Support for older RTL-8129/8130 boards
                         VIA Rhine support   PPP (point-to-point protocol) support      PPP support for async serial ports (NEW)
               PPP support for sync tty ports (NEW)
               PPP Deflate compression (NEW)
               PPP BSD-Compress compression (NEW)
               PPP over ATM (EXPERIMENTAL) (NEW)
    Amateur Radio support  --->   
    ISDN subsystem  --->
    Old CD-ROM drivers (not SCSI, not IDE)  --->
    Input core support  --->   Input core support
               Keyboard support
               Mouse support
            (1024)    Horizontal screen resolution (NEW)
            (768)    Vertical screen resolution (NEW)
               Joystick support
               Event interface support
    Character devices  --->    Standard/generic (8250/16550 and compatible UARTs) serial support
            
  • Unix98 PTY support
             Mouse Support (not serial and bus mice)
            
  •    PS/2 mouse (aka "auxiliary device") support
             /dev/agpgart (AGP Support)     3dfx Banshee/Voodoo3+  
               ATI Rage 128  
               ATI Radeon  
               Intel I810  
               Matrox g200/g400  
               SiS (NEW)  
            [ ] Direct Rendering Manager (XFree86 DRI support)
    Multimedia devices  --->
    File systems  --->       Kernel automounter support
             Kernel automounter version 4 support (also supports v3)
             Ext3 journalling file system support (EXPERIMENTAL)
             DOS FAT fs supportt
               MSDOS fs supportt
                 UMSDOS: Unix-like file system on top of standard MSDOS fss
               VFAT (Windows-95) fs supportt
             Compressed ROM file system support
            
  • Virtual memory file system support (former shm fs)
             ISO 9660 CDROM file system support    Minix fs support
             NTFS file system support (read only)
            
  • /proc file system support
            
  • /dev/pts file system for Unix98 PTYs
             Second extended fs support
             System V/Xenix/V7/Coherent file system support
            Network File Systems  --->
                     Coda file system support (advanced network fs)
                     NFS file system support   SMB file system support (to mount Windows shares etc.)   
            Native Language Support  --->  Traditional Chinese charset (Big5) (NEW)
                     NLS ISO 8859-1  (Latin 1; Western European Languages) (NEW)
                     for others
    Console drivers  --->
            
  • VGA text console
    Sound  --->
             Sound card support   
             Support for USB
    Kernel hacking  --->
        好了!编译完成之後选择『Save Configuration to an Alternate File』然後写成一个你喜欢的档名,这个档案内容就是你刚刚编译完成的资料啦!然後选择  之後,再储存一次到系统当中!接著下来就准备要编译罗!


    本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/60/showart_7299.html
  • 您需要登录后才可以回帖 登录 | 注册

    本版积分规则 发表回复

      

    北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
    未成年举报专区
    中国互联网协会会员  联系我们:huangweiwei@itpub.net
    感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

    清除 Cookies - ChinaUnix - Archiver - WAP - TOP