Re[2]: Flashing automatically the default environment
Alexander Shiyan
shc_work at mail.ru
Tue Jul 10 05:12:30 EDT 2012
Hello.
Tue, 10 Jul 2012 11:06:47 +0200 от Uwe Kleine-König <u.kleine-koenig at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/barebox/attachments/20120710/89b28a64/attachment.html>
More information about the barebox
mailing list