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 1SoVed-0007mD-Cp for barebox@lists.infradead.org; Tue, 10 Jul 2012 08:18:44 +0000 Received: from mediacenter.hi.pengutronix.de ([2001:6f8:1178:2::65]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1SoVeT-0002Kr-Nl for barebox@lists.infradead.org; Tue, 10 Jul 2012 10:18:33 +0200 Received: from mol by mediacenter.hi.pengutronix.de with local (Exim 4.72) (envelope-from ) id 1SoVeT-0003SF-MS for barebox@lists.infradead.org; Tue, 10 Jul 2012 10:18:33 +0200 Date: Tue, 10 Jul 2012 10:18:33 +0200 From: Michael Olbrich Message-ID: <20120710081833.GC27035@pengutronix.de> References: <4FFAE124.8040703@yahoo.fr> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <4FFAE124.8040703@yahoo.fr> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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 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 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