Flashing automatically the default environment
m.olbrich at pengutronix.de
Wed Jul 11 02:46:34 EDT 2012
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.
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 |
More information about the barebox