mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Michael Olbrich <m.olbrich@pengutronix.de>
To: barebox@lists.infradead.org
Subject: Re: Flashing automatically the default environment
Date: Tue, 10 Jul 2012 10:18:33 +0200	[thread overview]
Message-ID: <20120710081833.GC27035@pengutronix.de> (raw)
In-Reply-To: <4FFAE124.8040703@yahoo.fr>

On Mon, Jul 09, 2012 at 03:48:20PM +0200, Patrick wrote:
> When booting a new board with barebox it detect that the nand
> partition dedicated to environment is invalid and barebox use the
> default config.
> I would like that in this case (the first boot) the default config
> is flashed in the nand (save) command.
> 
> Any idea how to do that ?

if [ ! -e /dev/saved ]; then
	echo -o /dev/saved
	saveenv
fi

Michael

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

  parent reply	other threads:[~2012-07-10  8:18 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-09 13:48 Patrick
2012-07-09 14:33 ` Uwe Kleine-König
2012-07-10  8:18 ` Michael Olbrich [this message]
2012-07-10  9:06   ` Uwe Kleine-König
2012-07-10  9:12     ` Re[2]: " Alexander Shiyan
2012-07-11  6:46     ` Michael Olbrich

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=20120710081833.GC27035@pengutronix.de \
    --to=m.olbrich@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /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