public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] auto-save environment if using default environment?
Date: Tue, 25 Mar 2008 21:23:40 +0100	[thread overview]
Message-ID: <20080325202340.223CF248BF@gemini.denx.de> (raw)
In-Reply-To: Your message of "Tue, 25 Mar 2008 17:00:03 +0100." <873aqedcak.fsf@denx.de>

In message <873aqedcak.fsf@denx.de> you wrote:
> 
> AFAIK there is currently no way to check this from the U-Boot
> shell. Nevertheless I think that would be the way to go instead of
> hard-coding this. How about setting an environment variable like
> "env_default" if the default environment is used? That way scripts can
> be used to run saveenv but could also do more complex initialization.

There are certain things  I  recommend  never  to  do  automatically.
Erasing  and  overwriting  vital  parts of the flash belong to these.
Don't do it. Leave the decision when and how  often  to  do  that  to
something that claims to have a brain.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Vulcans believe peace should not depend on force.
	-- Amanda, "Journey to Babel", stardate 3842.3

  parent reply	other threads:[~2008-03-25 20:23 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-25 13:36 [U-Boot-Users] auto-save environment if using default environment? w.wegner at astro-kom.de
2008-03-25 15:24 ` Jean-Christophe PLAGNIOL-VILLARD
2008-03-25 15:36   ` w.wegner at astro-kom.de
2008-03-25 16:00 ` Markus Klotzbücher
2008-03-25 16:18   ` w.wegner at astro-kom.de
2008-03-25 20:23   ` Wolfgang Denk [this message]
2008-03-25 20:16 ` Wolfgang Denk
2008-03-25 23:15   ` Wolfgang Wegner
2008-03-25 23:49     ` Aras Vaichas
2008-03-26  7:28       ` Markus Klotzbücher
2008-03-26  4:51 ` Mike Frysinger
2008-03-26  7:30   ` Wolfgang Denk
2008-03-26 14:49     ` Mike Frysinger
2008-03-26 15:01       ` Wolfgang Denk
2008-03-30 20:28         ` Mike Frysinger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080325202340.223CF248BF@gemini.denx.de \
    --to=wd@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox