您的位置:首页 > 运维架构 > Linux

嵌入式Linux内核优化裁剪

2010-02-23 11:00 281 查看
嵌入式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左右。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: