On 15.07.24 08:09, Parikshit Patel wrote:
> From the command line I have tried: 1) fw_printenv , 2) fw_setenv.
>
> But fw_setenv is generating error as below.
>
> *=> fw_setenv dummy dummy*
> * Cannot read environment, using default*
> * Error storing the env*
>
> **
>
>>My conf/local.conf has: *PREFERRED_PROVIDER:u-boot-fw-utils = "libubootenv"*
>
>>etc/fw_env.conf : */dev/mmcblk0boot0 0x3400 0x100*
> * /dev/mmcblk0boot1 0x3400 0x100*
This is surely wrong. The configuration must match what is in U-boot, so
you have to understand where U-Boot is storing the env. If it does not
match, you get the message above.
And if there is no environment at all in flash, because board is booting
with default environment (compiled into the binary), you should start
fw_setenv / fw_printenv with -f u-boot-initial-env (or which file
contains the default env).
>
> **
>
> What is the reason behind getting the error while using fw_saveenv?
Wrongly configured.
Best regards,
Stefano Babic