嵌入式Linux内核优化裁剪

嵌入式Linux内核优化裁剪

                                    

 优化1、取消虚拟内存的支持
General setup  --->
     [ ] Support for paging of anonymous memory (swap)

 优化2、使用默认的IO调度器,取消其他的调度器
-*- Enable the block layer  --->
      IO Schedulers  --->
  < > Anticipatory I/O scheduler
  <*> Deadline I/O scheduler
  < > CFQ I/O scheduler
  Default I/O scheduler (Deadline)  --->

 优化3、取消对旧版本二进制执行文件的支持
Userspace binary formats  --->
 < > Kernel support for a.out and ECOFF binaries

 优化4、取消不必要的设备的支持
Device Drivers  --->
 <*> Memory Technology Device (MTD) support  ---> 
  [*]   MTD partitioning support
  < >     RedBoot partition table parsing
    RAM/ROM/Flash chip drivers  --->
   < > Detect flash chips by Common Flash Interface (CFI) probe
   < > Detect non-CFI AMD/JEDEC-compatible flash chips
   < > Support for RAM chips in bus mapping
   < > Support for ROM chips in bus mapping
   < > Support for absent chips in bus mapping
 < > Parallel port support  --->
 [ ] Block devices  --->
 < > ATA/ATAPI/MFM/RLL support  --->
   Input device support  --->
  [*]   Keyboards  --->
   < >   AT keyboard
  Character devices  --->
  [ ] Non-standard serial port support
    Serial drivers  --->
   < > 8250/16550 and compatible serial support
       *** Non-8250 serial port support ***
   <*> Samsung S3C2410/S3C2440/S3C2442/S3C2412 Serial port support
   [*]   Support for console on S3C2410 serial port
  [ ] Legacy (BSD) PTY support
   SPI support  --->
  [ ] SPI support
 < > Hardware Monitoring support  --->

 优化5、取消不需要的文件系统的支持
File systems  --->
  < > Second extended fs support  
  < > Ext3 journalling file system support  
  < > Ext4dev/ext4 extended fs support development (EXPERIMENTAL)
   Miscellaneous filesystems  ---> 
   < > Journalling Flash File System v2 (JFFS2) support

完成以上的优化配置有,内核镜像会由之前的1.9MB缩减到1.7MB左右。

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值