But, during the Yocto build, I’m getting the below error:
error ‘CONFIG_ENV_SIZE’ define must be equal to bitbake variable ‘BOOTENV_SIZE’ set in U-Boot build recipe.
When I checked the “config_mender_defines.h”, the BOOTENV_SIZE = “0x1000” but, the u-boot header file shows the “#define CONFIG_ENV_SIZE 0x20000”
Whatever value I put for the BOOTENV_SIZE, the #define CONFIG_ENV_SIZE remains 0x20000 only.
This is happening only with Mender 1.6 and Rocko. I have a similar set-up with Mender 1.7 and Sumo where this is working as expected.
Any idea why this is happening? I know the default value in mender source for BOOTENV_SIZE is 0x20000 but, not sure how to change it to required one (to change the CONFIG_ENV_SIZE)
I will check it. But, CONFIG_ENV_SIZE value usually modified by the Mender with BOOTENV_SIZE right?
Nope, meta-mender does not modify the CONFIG_ENV_SIZE. They just have be equally defined because meta-mender uses this value to perform sanity checks and other calculations.