We have IMX8mini with 2G RAM and 8G emmc.
But after we build the yocto linux, the whole rootfs file size is the same as the rootfs.sdcard.bz2, which is 1.3G,
How to build a 7G,or 8G rootfs?
Could you tell us which version of BSP are you using?
It's Linux BSP 4.14.98. I don't want use the solution such as IMAGE_ROOTFS_EXTRA_SPACE=" xxxxxx" in Yocto, as it would forcely expand the rootfs to a useless large size. e.g, for my 8GB emmc case, above solution would cause my rootfs.sdcard file to 8GB as well, while my real data is only 800MB, it use ZERO-padding to force the whole file to 8GB.
I felt it's really a bad and dull design, as this useless large size is really a waste of time for both my flashing time and my hard disk storeage.
I'm wondering if there is any way to let it behavior as Android's way. You know, Android's system image is the real user data size, e.g, only 800MB size, after flashing it to EVK, the whole system storeage is 8GB instead of 800MB, that's really comfortable for me. But for Yocto, this is really bad for me, and I am really feel confused about the behavior on Yocto.
Thanks a lot.
The Yocto Project build creates an SD card image that can be flashed directly. This is the simplest way to load everything needed onto the card with one command. This is convenient to use.An .sdcard image contains all four images properly configured for an SD card. The release contains a pre-built .sdcard image that is built specifically for the one board configuration.
The rootfs on the default .sdcard image is limited to a bit less than 4 GB, but re-partitioning and re-loading the rootfs can increase that to the size of the card. The rootfs can also be changed to specify the graphical backend that is used.
Retrieving data ...