Caglayan Dokme
Caglayan Dokme

Reputation: 1138

Unknown command 'saveenv' error in U-Boot

I have a prebuilt image of the U-Boot. I can change the configıration using the setenv command. But, I can't save the current environment variables as the saveenv command is not recognized by the U-Boot. Also, there is no command called saveenv in the help list. U-Boot version is 2020.01. Other things such as booting works well.

Upvotes: 0

Views: 3836

Answers (1)

Caglayan Dokme
Caglayan Dokme

Reputation: 1138

The reason is simple. The prebuilt image was compiled without support to the saveenv command. If you have the chance to recompile the U-Boot, you can find it in menuconfig screen. Just go to the Command Line Interface -> Environment Commands and enable the saveenv.

I guess that there isn't an alternative way to save your current environment. You may want to search more on it.

Upvotes: 3

Related Questions