On 09/13/2011 01:25 PM, Boaz Ben-David wrote: > There's something I don't get. > > If loadenv/saveenv are not bad-block aware, why are they used in barebox > by default? They operate on bad block aware devices (in barebox) by default. > When the system boots envfs_load is used to load the environment from > /dev/env0 or whatever. > > If /dev/env0 is not bad-block aware device (like the bb devices) this > means this could fail because of > a bad block in the env partition. Am I right? Nope - the raw NAND is usually attached as "/dev/env0_raw" and the bad block aware device as "/dev/env0". cheers, Marc -- Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |