Hello,
I am working on a project with OMAP-L137 EVM. I mistakenly input an u-boot environment command and couldn't delete it by using "setenv" or refreshing u-boot.
Is there anyway to erase the u-boot environments?
Thank you!
Zhe
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I am working on a project with OMAP-L137 EVM. I mistakenly input an u-boot environment command and couldn't delete it by using "setenv" or refreshing u-boot.
Is there anyway to erase the u-boot environments?
Thank you!
Zhe
Hi Zhe,
yes, using the same "setenv" or "Set" commands you can delete the u-boot environment variable by following the syntax given below
setenv ipaddr 10.100.2.202 --- > will set the ipaddr
setenv ipaddr ---> will delete the ipaddr if the argument is NIL.
Regards,
Shankari.
-------------------------------------------------------------------------------------------------------
Please click the Verify Answer button on this post if it answers your question.
--------------------------------------------------------------------------------------------------------
Hi Shankari,
Thank you for the reply. I did try the setenv command but it is not working. I used printenv and it showed:
s fprobe 0=sf write
I tried:
setenv s --> it returned s is not exit
setenv "s fprobe 0" --> returns s fprobe 0 is not exit
setenv s" "fprobe" "0 --> returns s fprobe 0 is not exit
I guess the variable name is including some strange symbols that do not print in the console. So I want to erase it directly from memory.
Thank you
Zhe
What is the version of PSP package are you using. The prebuilt uboot part of the PSP 3.21 release shouldn`t have this issue.
http://processors.wiki.ti.com/index.php/DaVinci_%28ARM9%29_PSP_Releases
Regards,
Rahul
The PSP 03.20.00.14 (Linux kernel version 2.6.33-rc4). I think the problem happens because of my Minicom. It cannot handle arrow key properly. I tried to refresh the u-boot using the prebuilt one. But it did not reset the environments variables. I am now trying to recompile u-boot to enable some commands like flinfo and hopefully it can help me located where the variables are store.
Thank you
Zhe
Hello Zhe,
Use the following technique:
sf probe 0
mw.b 0x81000000 0xff <env section size in spi>
sf write 0x81000000 <env section start addr in spi> <env section size in spi>
reset
saveenv
<set the variables you want>
You can find out the environment size and section start address by looking at the config header for your board's uboot (for example uboot_folder/include/configs/da830evm.h). Environment size = CONFIG_ENV_SIZE and start address = CONFIG_ENV_OFFSET.
Bindu