First, the cutting kernel 1.1 changes
Now the kernel size is about 2.8M, to crop to below 2.0M, after all, to the kernel partition is only 2.0M.
We don't have these two devices, cut them off.
Go to make menuconfig and search for Mousedev:
Go inside and crop as needed.
Search LP:
Hostname modification:
The file system is modified again:
Remove the following options:
Re-enter device driver,-input Device->touch creen
Configuration on
Remove:
When you are finished modifying, save. Then compile and execute to see the size of the Uimage
The cropped size is 2.66M, and you have to continue cropping.
1.2 Second modification
View the. config file to see what can be modified.
NETworking Support->bluetooth
Bluetooth device, we do not have Bluetooth on the Development Board, remove
Device Driver->network Device Support
Wireless WiFi is not supported, remove.
This is not going to go away, put it there.
Compile
There is not much reduction, only now the kernel comes with more and more properties. The partition can only be modified.
Modify two partitions, U-boot partitions and Linux partitions.
Second, modify the partition 2.1 to modify the U-boot partition
U-boot partition is modified in Include/configs/jz2440.h, modified to 4M size
Compile, and then download. Download using Openjtag
Partition:
Delete the original partition:
Mtdparts Delall
New partition: Mtdparts default
The partition has been established well.
2.2 Kernel Modifications
MACH-MINI2440.C (arch\arm\mach-s3c24xx)
Compile.
Burn write file system in:
1 30000000 192.168. 0.192:/home/ubuntu/work/nfs_root/fs_mini.yaffs22NAND erase.part rootfs3 30000000260000 $filesize4set Bootargs console=ttysac0 ,115200 Root=/dev/mtdblock3
Burn the kernel, and this time it will burn directly into the NAND.
1 30000000 192.168. 0.192:/home/ubuntu/work/nfs_root/uimage2NAND erase.part kernel3 30000000 Kernel
To set the startup parameters in U-boot:
1 Set ' NAND read 30000000 KERNEL;BOOTM 30000000 ' 2 set Bootargs console=ttysac0,115200 Root=/dev/mtdblock3
Start normally.
Iv. Making Patches
Kernel Patch production:
1 cp. config config_jz2440 2 Make Distclean 3 CD.. 4 MV linux-4.10. 8 linux-4.10. 8_jz24405 tar-jxvf linux-4.10. 8 . tar.gz 6 diff-urn linux-4.10. 8 linux-4.10. 8_jz2440 > linux-4.10. 8_jz2440.patch
Patching:
1 cd linux-4.10. 8 2 Patch-p1 <. /linux-4.10. 8_jz2440.patch
linux4.10.8 Kernel porting (iii)---clipping kernel