Reducing the kernel image size of the LS1043ARDB?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reducing the kernel image size of the LS1043ARDB?

628 Views
ts1234
Contributor III

How do I reduce the LS1043ARDB's kernel image size in the LSDK build?

Currently the size is around 35+MB. Is there any minimal config file for LS1043ARDB?

LSDK is creating the image with defconfig+lsdk.config.

I have checked the following discussion. Looking for LS1043ARDB specific inputs.

https://community.nxp.com/t5/Layerscape/How-to-reduce-the-kernel-image-size/m-p/415343.

 

0 Kudos
1 Reply

617 Views
yipingwang
NXP TechSupport
NXP TechSupport

In flex-builder environment, you could generate RAM-bootable FIT image with the following command.

$ flex-builder -i mkitb -r yocto:tiny

The generated itb image lsdk2012_yocto_tiny_LS_arm64.itb includes uImage(13.5M), dtb and ramdisk rootfs filesystem.

 

You could generate uImage(13.5M) with the following command.

mkimage -A arm64 -O linux -T kernel -C none -a 0x84080000 -e 0x84080000 -n "Linux kernel" -d Image.gz uImage

 

0 Kudos