AnsweredAssumed Answered

What happens for the Yocto Linux rootfs size?

Question asked by Yang Songxiang on Mar 18, 2020
Latest reply on Mar 18, 2020 by Yang Songxiang

We are using IMX8mini EVK, which is 8G emmc, running Yocto Linux

 

By default, the bitbake fsl-image-validation-imx would created a 1.3GB size of rootfs, like fsl-image-validation-imx-imx8mmevk.sdcard.bz2

 

After flashing the whole image, the linux would show the rootfs(/) is the same size as 1.3GB. But we all know our emmc is 8GB.

 

And I struggling this, found if add IMAGE_ROOTFS_SIZE with large number to increase the whole size. 

 

Obviouslly, this is un-reasonable, as we have to create 8GB file size of rootfs image, that's too large for both flash and copying. I am really feel confused that why Yocto Linux use such method? As most of the data byte must be ZERO-padding for this case, this is unnecessary at all.

 

For Android, the whole system.img is just 800MB, but the whole 8GB emmc can be usable and visable.

 

How could I let Yocto Linux have real data size(e.g, just 400MB), but the whole emmc storage also be visable and usable?

Outcomes