你好!这里是风筝的博客,
欢迎和我一起交流。
现在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