From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Wed, 18 Jul 2007 14:17:00 +0200 Subject: [U-Boot-Users] want to know scenario In-Reply-To: <7ee1596c0707161359hdaff987rf75580d08cb8c293@mail.gmail.com> (sapirf fersht's message of "Mon\, 16 Jul 2007 23\:59\:12 +0300") References: <7ee1596c0707161359hdaff987rf75580d08cb8c293@mail.gmail.com> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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