Making a small image using BusyBox

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Making a small image using BusyBox

1,010 次查看
MichaelBMiner
Contributor IV

I have created an image using bitbake imx-image-core. My wic.bz file for my SD card is 167.6MB. I want to make my kernel and image as a whole as small as possible. To do this I am trying to use busybox.

In my local.conf I added the line

VIRTUAL-RUNTIME_dev_manager = "busybox-mdev" as per the yocto mega manual.

I performed the commands

bitbake -c menuconfig busybox

bitbake busybox

bitbake imx-image-core

I am told this was successful but my wic.bz image has remained the same size.

 

Are there any other steps to getting busybox active on the device, and is there a way to view kernel build size?

标签 (3)
0 项奖励
3 回复数

996 次查看
b36401
NXP Employee
NXP Employee

Please check if much space is reserved with IMAGE_ROOTFS_EXTRA_SPACE option.

0 项奖励

987 次查看
MichaelBMiner
Contributor IV

Where is this option? 

0 项奖励

980 次查看
josephzhou1
Contributor V

Alternatively, you can ensure a specific amount of free disk space is added to the image by using the IMAGE_ROOTFS_EXTRA_SPACE variable.

 

 

put it to zero 

Best Regards,
Joseph Zhou Jianhui / Senior Embedded Software Engineer, Singapore
0 项奖励