defaultenv-2: how to update a flash partition?

Sascha Hauer s.hauer at pengutronix.de
Mon Nov 12 02:55:36 EST 2012


On Fri, Nov 09, 2012 at 12:06:38PM +0100, Fabio Porcedda wrote:
> Hi all,
> 
> I want to use the defaultenv-2 but i don't find any more the "update"
> command
> like in the defaultenv.
> What is the recommended way to update a flash partition in the new
> environment?

erase /dev/env0
cp /mnt/tftp/your-new-env /dev/env0

(I was thinking about adding a -e parameter to cp to eventually skip the
first step)

Sascha

-- 
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 mailing list