ERROR: Actual rootfs size (21223 kB) is larger than allowed size 16384 kB

Hi, The build fails with the following message:

| + BUILDDIR=/home/ravi/mender_build_thud/mender-atmel/build wic create /home/ravi/mender_build_thud/mender-atmel/build/tmp/work/sama5d3_xplained_sd-poky-linux-gnueabi/core-image-base/1.0-r0/mender-sdimg.wks --vars /home/ravi/mender_build_thud/mender-atmel/build/tmp/sysroots/sama5d3-xplained-sd/imgdata/ -e core-image-base -o /home/ravi/mender_build_thud/mender-atmel/build/tmp/work/sama5d3_xplained_sd-poky-linux-gnueabi/core-image-base/1.0-r0/deploy-core-image-base-image-complete/core-image-base-sama5d3-xplained-sd-20200730093849-sdimg/ --no-fstab-update
| INFO: Creating image(s)…
|
| WARNING: overhead-factor was specified, but size was not, so bitbake variables will be used for the size. In this case both IMAGE_OVERHEAD_FACTOR and --overhead-factor will be applied
| ERROR: Actual rootfs size (21223 kB) is larger than allowed size 16384 kB
|
| + bb_exit_handler
| + ret=1
| + echo WARNING: exit code 1 from a shell command.
| WARNING: exit code 1 from a shell command.
| + exit 1
| ERROR: Function failed: do_image_sdimg (log file is located at /home/ravi/mender_build_thud/mender-atmel/build/tmp/work/sama5d3_xplained_sd-poky-linux-gnueabi/core-image-base/1.0-r0/temp/log.do_image_sdimg.13547)
ERROR: Task (/home/ravi/mender_build_thud/mender-atmel/build/…/sources/poky/meta/recipes-core/images/core-image-base.bb:do_image_sdimg) failed with exit code ‘1’
NOTE: Tasks Summary: Attempted 4380 tasks of which 5 didn’t need to be rerun and 1 failed.

Summary: 1 task failed:
/home/ravi/mender_build_thud/mender-atmel/build/…/sources/poky/meta/recipes-core/images/core-image-base.bb:do_image_sdimg
Summary: There were 7 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Hi @ravipathak, normally this just means that you need to increase MENDER_STORAGE_TOTAL_SIZE_MB.

Drew

Given the size involved, I would suspect that this is due to MENDER_BOOT_PART_SIZE_MB, not MENDER_STORAGE_TOTAL_SIZE_MB (which only affects the rootfs). Try to raise MENDER_BOOT_PART_SIZE_MB to 32 instead.