From: Michael Olbrich <m.olbrich@pengutronix.de>
To: barebox@lists.infradead.org
Subject: Re: Flashing automatically the default environment
Date: Wed, 11 Jul 2012 08:46:34 +0200 [thread overview]
Message-ID: <20120711064634.GI27035@pengutronix.de> (raw)
In-Reply-To: <20120710090647.GN4687@pengutronix.de>
On Tue, Jul 10, 2012 at 11:06:47AM +0200, Uwe Kleine-König wrote:
> On Tue, Jul 10, 2012 at 10:18:33AM +0200, Michael Olbrich wrote:
> > 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
> Is /dev/saved persistent over a reboot?
I meant /env/saved of course.
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
prev parent reply other threads:[~2012-07-11 6:46 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
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 [this message]
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=20120711064634.GI27035@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