1. Why do you need to crop the kernel

In the previous transplant process, the compiled kernel was 2414KB, while the MTD partition of Nand Flash specified the kernel partition as 2M=2048KB, so the kernel needs to be trimmed to remove unnecessary content.

2. Kernel clipping method

The kernel clipping method is very simple, first configure:

make s3c2410_defconfig
Copy the code

Then open build configuration:

make menuconfig
Copy the code

Then close the configurations you don’t need.

3. Kernel clipping process

3.1. Tailor supported machines

System Type -> SAMSUNG S3C24XX SoCs Support:



3.2. Tailor supported file systems

Enter File Systems:



Go to File Systems -> CD-ROM/DVD Filesystems:



Go to File Systems -> DOS/FAT/NT Filesystems:



Enter File Systems -> Miscellaneous Filesystems:



3.3. Tailor supported device drivers

Go to Device Drivers -> SCSI Device Support:



Go to Device Drivers -> Input Device support:



Go to Device Drivers -> Network Device Support -> Ethernet Driver Support (reserved for DM9000 only) :



Go to Device Drivers -> Input Device Support -> Touchscreens:



Device Drivers -> Sound Card Support -> Advanced Linux Sound Architecture:

Go to Device Drivers -> Multifunction Device Drivers:

Go to Device Drivers -> USB Support:









Go to Device Drivers -> MMC/SD/SDIO card support:

4. Compile and download tests

make uImage
Copy the code



Download to the development board to start the test, successfully started, entered the Linux system, now size <2MB, can be burned to the kernel partition of Nand Falsh:



To receive more exciting articles and resources, please subscribe to my wechat official account: “McUlover666”.