From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SoWPE-0007PD-5e for barebox@lists.infradead.org; Tue, 10 Jul 2012 09:06:53 +0000 Received: from dude.hi.pengutronix.de ([2001:6f8:1178:2:21e:67ff:fe11:9c5c]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SoWPA-0004hc-1y for barebox@lists.infradead.org; Tue, 10 Jul 2012 11:06:48 +0200 Received: from ukl by dude.hi.pengutronix.de with local (Exim 4.80) (envelope-from ) id 1SoWPA-0000gW-0w for barebox@lists.infradead.org; Tue, 10 Jul 2012 11:06:48 +0200 Date: Tue, 10 Jul 2012 11:06:47 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Message-ID: <20120710090647.GN4687@pengutronix.de> References: <4FFAE124.8040703@yahoo.fr> <20120710081833.GC27035@pengutronix.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20120710081833.GC27035@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: Flashing automatically the default environment To: barebox@lists.infradead.org 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? Uwe -- = Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | http://www.pengutronix.de/ | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox