Re: Fw: Upgrade u-boot to use a redundant environment

2023-12-26 Thread Simon Glass
Hi Adrien,

On Thu, Dec 7, 2023 at 12:53 PM Hernot, Adrien  wrote:
>
>
> Hi,
>
> We are using u-boot and until now we are using a single env storage on the 
> eMMC.
>
> We want to change to using a redundant environment, and the way to do that is 
> well documented (thanks for that).
>
> The problem we are facing is transitioning from one single to redundant, as 
> the format of the env storage is different (redund has one byte flags right 
> ater the 4 bytes CRC, at offset 4).
> After the updating the u-boot binary and restarting the machine, u-boot CRC 
> check will fail and all environment will be lost, due to the format change.
>
> What is the ussual way to deal with this?
> Is there a tool to upgrade the environment blob format?

I am not sure about that. If you can suggest a solution you could send
a patch to code or docs?

Regards,
Simon


Fw: Upgrade u-boot to use a redundant environment

2023-12-07 Thread Hernot, Adrien


Hi,

We are using u-boot and until now we are using a single env storage on the eMMC.

We want to change to using a redundant environment, and the way to do that is 
well documented (thanks for that).

The problem we are facing is transitioning from one single to redundant, as the 
format of the env storage is different (redund has one byte flags right ater 
the 4 bytes CRC, at offset 4).
After the updating the u-boot binary and restarting the machine, u-boot CRC 
check will fail and all environment will be lost, due to the format change.

What is the ussual way to deal with this?
Is there a tool to upgrade the environment blob format?

Best regards,
Adrien