How to clear environment variables previously saved with u-boot?

I work with the linux built-in suite that runs u-boot. In order for everything to load correctly, I had to change some environment variables and save them with the "saveenv" command.

Now I would like to go back and see what the default is, check that I know exactly what has been changed, and find out how to change these default values ​​so that each unit in production does not need to be individually downloaded and modified.

Is there a way to tell u-boot to clear the stored data so that I can see what are the default values ​​again? The flash type is QSPI, if that matters.

+8
environment-variables u-boot
source share
2 answers

In your set try

help env 

and find "env default".

 env default [-f] var [...] - [forcibly] reset variable(s) to their default values 

This is similar to what you are looking for.

 env default -a 

makes an intolerable change, then "printenv" shows the default values.

To change the default settings, you must rebuild your u-boot.bin with the changes, for example. to CONFIG_EXTRA_ENV_SETTINGS.

+13
source share

Use default vanes without removing them from flash execution

 env default -a 

in u-boot, and then run $bootcmd . Joe Kul decision.

To erase vars from Flash SPI execute

 run eraseenv 

in u-boot and then reboot.

0
source share

All Articles