meta-raspberrypi icon indicating copy to clipboard operation
meta-raspberrypi copied to clipboard

Wrong ROOT_FS size

Open b4u-mw opened this issue 7 months ago • 3 comments

Hello,

I have set my rootfs size to a fixed size via

IMAGE_ROOTFS_SIZE = "524288"
IMAGE_OVERHEAD_FACTOR = "1.0"
IMAGE_ROOTFS_EXTRA_SPACE = "0 #"

(the comment in IMAGE_ROOTFS_EXTRA_SPACE is to ensure that nothing is added via "append").

I have printed the the calculated variables in poky/meta/classes-recipe/image.bbclass:get_rootfs_size() and there everythig is fine. But in the created WIC image, the rootfs images are ~650 MB.

I have no idea how to debug it further but I think it's within the wic file generation.

b4u-mw avatar Jun 05 '25 19:06 b4u-mw

look at wic template used, there might be additional partitions or padding coming into picture.

kraj avatar Jun 05 '25 19:06 kraj

I saw that the filesystems (*.ext3, *.ext4) are also too big. I try to find out if this comes also from the raspberry layer or poky.

b4u-mw avatar Jun 06 '25 06:06 b4u-mw

seems the easy way is just to set fixed-size in my wic file

micw avatar Jun 06 '25 10:06 micw