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一些单板:
![](https://img-blog.csdn.net/20170603170838699?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvR3VldF9LaXRl/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
![](https://img-blog.csdn.net/20170603170853981?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvR3VldF9LaXRl/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
取消 File system的一些文件系统,ext2和ext3和ext4都不需要:
![](https://img-blog.csdn.net/20170603171032217?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvR3VldF9LaXRl/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center)
取消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
如果本篇博客对您有帮助,或许可以在下方评论给我留个言。
现在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
相关文章推荐
- 2440移植Linux Kernel笔记(一)------编译kernel
- 2440移植Linux Kernel笔记(七)------网卡驱动
- smdk2440移植、修改、编译kernel笔记
- 2440移植Linux Kernel笔记(四)------yaffs2打补丁
- 2440移植Linux Kernel笔记(五)------制作yaffs2映像文件
- 2440移植Linux Kernel笔记(三)------制作jffs2映像文件
- kernel 移植笔记(从omap linux-02.01.03.11 到 fred 版本kernel 学习)
- Linux kernel移植笔记
- 把linux kernel 2.4 上的driver 移植到 2.6 kernel
- 升级Red Hat 9.0(Kernel 2.4.20-8) 至 Linux Kernel 2.6.15 笔记(最全)
- 2440超详细uboot移植笔记(十一)------支持NAND FLASH
- u-boot-2016.01移植笔记之让u-boot在2440中能正确的运行
- TQ2440 学习笔记—— 27、移植U-Boot【Bootloader 作用、工作流程】
- [IMX6Q][Android5.1]移植笔记 --- kernel移植
- 升级Red Hat 9.0(Kernel 2.4.20-8) 至 Linux Kernel 2.6.15 笔记(最全)
- u-boot-2009.08移植笔记二,平台TQ2440
- linux-2.6.32内核移植至2440笔记
- 2440超详细uboot移植笔记(三)------指定交叉编译链
- 2440超详细uboot移植笔记(十二)------移植网卡驱动
- 2440超详细uboot移植笔记(十五)------支持YAFFFS文件系统