linux4.10.8 Kernel porting (iii)---clipping kernel

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.