From: "Alexander Shiyan" <shc_work@mail.ru>
To: "Uwe Kleine-König" <u.kleine-koenig@pengutronix.de>
Cc: barebox@lists.infradead.org
Subject: Re[2]: Flashing automatically the default environment
Date: Tue, 10 Jul 2012 13:12:30 +0400 [thread overview]
Message-ID: <1341911550.557697326@f326.mail.ru> (raw)
In-Reply-To: <20120710090647.GN4687@pengutronix.de>
[-- Attachment #1.1: Type: text/plain, Size: 666 bytes --]
Hello.
Tue, 10 Jul 2012 11:06:47 +0200 от Uwe Kleine-König <u.kleine-koenig@pengutronix.de>:
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?IMHO He mean about /env/saved
[-- Attachment #1.2: Type: text/html, Size: 1462 bytes --]
[-- Attachment #2: Type: text/plain, Size: 149 bytes --]
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2012-07-10 9:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-09 13:48 Flashing automatically the default environment 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 ` Alexander Shiyan [this message]
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=1341911550.557697326@f326.mail.ru \
--to=shc_work@mail.ru \
--cc=barebox@lists.infradead.org \
--cc=u.kleine-koenig@pengutronix.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.