[U-Boot-Users] Delete all env vars except read onlys

Matthias Fuchs matthias.fuchs at esd-electronics.com
Tue Feb 12 09:44:42 CET 2008


Hi,

I am wondering if there is a way to delete all environment variables
but not the readonly ones. The common way to delete all variables
is to make the environment CRC invalid an do a reset. After reset
a saveenv saves a default environment. 

What I want to do is to delete all variables (preferable from an autoscr script)
but not the vendor variables like serial# and eth?addr.

Wildcards in the setenv parameters would solve this issue, 
but chars like '*' or '?' are valid chars for environment variables.

Any idea?

Matthias




More information about the U-Boot mailing list