public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Duplicate environment variables in RAM?!?
@ 2010-09-01  0:26 dbrazeau
  2010-09-01 21:08 ` dbrazeau
  0 siblings, 1 reply; 2+ messages in thread
From: dbrazeau @ 2010-09-01  0:26 UTC (permalink / raw)
  To: u-boot


For some variables, for example "ipaddr",  when I try to change them using
"setenv" it does not update the current "ipaddr" variable in RAM it creates
a new one and append it to the end of the variable list.  As a result I end
up having two "ipaddr" variables in RAM, one with the original value and one
with the new value at the end of the list.  If I try to set the variable a
second time it deletes the first instance (the original) and adds the second
new one to the end of the variable list.

This may be a little confusing so here is an abbreviated example. The
'.....' represent the rest of the variables in the list.

Original list of variables
---------------------
.......
ipaddr=10.0.5.2
.......
---------------------

=>setenv ipaddr 10.0.16.4
Now the variables look like this
---------------------
.......
ipaddr=10.0.5.2
.......
ipaddr=10.0.16.4
---------------------

=>setenv ipaddr 10.0.28.7
And now the variables look like this
---------------------
.......
.......
ipaddr=10.0.16.4
ipaddr=10.0.28.7
---------------------

Is this the intended behavior?  I am running an older version (U-Boot 1.3.4)
so maybe this has been fixed. If this is the case could you point me to the
version that it is fixed in.

Thanks.
-- 
View this message in context: http://old.nabble.com/Duplicate-environment-variables-in-RAM-%21--tp29588954p29588954.html
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-09-01 21:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-01  0:26 [U-Boot] Duplicate environment variables in RAM?!? dbrazeau
2010-09-01 21:08 ` dbrazeau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox