public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] want to know scenario
@ 2007-07-16 20:59 sapirf fersht
  2007-07-18 12:17 ` Detlev Zundel
  0 siblings, 1 reply; 2+ messages in thread
From: sapirf fersht @ 2007-07-16 20:59 UTC (permalink / raw)
  To: u-boot

How u-boot treats the following commands:

setenv ipaddr 192.168.2.202
saveenv
printenv
reset
go
printenv

vs

saveenv
printenv
reset
go
printenv (is there a possiblity of failure in this command)?

Thanks in advance

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

* [U-Boot-Users] want to know scenario
  2007-07-16 20:59 [U-Boot-Users] want to know scenario sapirf fersht
@ 2007-07-18 12:17 ` Detlev Zundel
  0 siblings, 0 replies; 2+ messages in thread
From: Detlev Zundel @ 2007-07-18 12:17 UTC (permalink / raw)
  To: u-boot

Hi Sapirf,

> How u-boot treats the following commands:

Your question is really cryptic.  If you do have a running U-Boot, you
probably know the answers, but hey sometimes even I don't believe my
own eyes.

> setenv ipaddr 192.168.2.202
> saveenv
> printenv

This shold change ipaddr to what you tell U-Boot, save it to
persistent storage (whereever that is on your board) and finally dump
the whole environment.

> reset

Wow, now you reset your board...

> go

... and force the next incarnation of U-Boot to display an error
message as you didn't provide a second argumtn.

> printenv

But the environment is still there!

> vs
>
> saveenv
> printenv
> reset
> go
> printenv (is there a possiblity of failure in this command)?

Well, the error message is printed at a different time and you don't
change ipaddr - and no printenv will never fail as long as your
hardware lives.

By now I am pretty sure I did not understand your question, so maybe
you try again...

Cheers
  Detlev

-- 
Man is a fool, and woman, for tolerating him, is a damned fool
                       -- Mark Twain
--
DENX Software Engineering GmbH,      MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich,  Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de

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

end of thread, other threads:[~2007-07-18 12:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-16 20:59 [U-Boot-Users] want to know scenario sapirf fersht
2007-07-18 12:17 ` Detlev Zundel

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