Dear all,
I'm trying to upgrade uboot (BSP 5.4.70_2.3.0) to uboot (BSP 5.10.72_2.2.0) and got an issue when read environment variables.
In uboot (BSP 5.4.70_2.3.0), CONFIG_ENV_SIZE=0x1000
In uboot (BSP 5.10.72_2.2.0), CONFIG_ENV_SIZE=0x4000
I save uboot environment at an offset of eMMC, but because the sizes are different between 2 version, new uboot can not read successfully older uboot environment and it will use default. This makes a wrong behavior in upgrade flow by SWUpdate (double copying).
I'm trying to reduce size of default enviorment variables in uboot 5.10.72_2.2.0 by removing unnecessary variables and continue use CONFIG_ENV_SIZE=0x1000.
This way is working but I do not know if there are better solutions. It's great if you can share your experience. Thanks in advance !
maybe you can refer to the SWupdate
Thanks @joanxie for reply. I am using SWUpdate and it worked for some firmwares. But the issue occured when I was trying to upgrade to new uboot with bigger ENV size.
I remember I mailed to you, did you receive it? how about now?