CRC32 error
Created by: Razriel3
We are working on imx8 bsp by nxp ( Yocto Kirkstone). libubootenv recipe version 0.3.2
I have cloned meta-swupdate and did modifiacations to adapt it to IMX.(see below defconfig modifications)
When running fw_printenv, fw_setenv for the first time it print "Cannot read environment, using default" (libuboot_open returns -61 nodata)
in next runs fw_printenv, fw_setenv are loading the config and the env file correctly
when I run setenv the value is changed as expected in the "current" env and the CRC is calculated and stored.
when uboot loads in the next power cycle it complains about bad CRC and loads default evniorment instead.
I suspect there is somekind of missalignment between the CRC calculation of u-boot and the CRC calculation done in libubootenv uboot_env.c.
are you farmiliar with such a problem ?
CONFIG_BOOTCOUNT_LIMIT=y CONFIG_BOOTCOUNT_ENV=y CONFIG_SYS_REDUNDAND_ENVIRONMENT=y CONFIG_ENV_OFFSET_REDUND=0x402000 CONFIG_BOOTCOUNT_BOOTLIMIT=3