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

2440移植Linux Kernel笔记(六)------剪裁Kernel

2017-06-03 17:13 441 查看
你好!这里是风筝的博客,欢迎和我一起交流。

如果本篇博客对您有帮助,或许可以在下方评论给我留个言。

现在make出来的uImage大概3.1M大左右,我们不需要那么多功能,对Kernel进行剪裁.

cd /worl/system/linux-4.4.66

vi .config把一些不需要的去掉

make menuconfig

取消 System type->SAMSUNG S3C24XX SoCs Support一些单板: 





取消 File system的一些文件系统,ext2和ext3和ext4都不需要:



取消Device Drivers->Input device support->Mice.

取消Device Drivers->Input device support->Provide legacy /dev/psaux device

取消 File system->CD-ROM/DVD Filesystems->ISO 9660 CDROM file system support

取消 File system->Miscellaneous filesystems->Include support for ZLIB compressed file systems

取消usb声卡:Device Drivers->Sound card support->Advanced Linux Sound Architecture->USB sound devices

选上触摸屏输入:Device Drivers->Input device support->Touchscreens->Samsung S3C2410/generic touchscreen input driver

现在,make出来的uImage只有2.8M
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: