Res: Flashing NAND from NAND

Rask Ingemann Lambertsen ccc94453 at
Tue Oct 20 18:02:06 CEST 2009

On Tue, Oct 20, 2009 at 09:20:13AM -0300, Werner Almesberger wrote:

> Yes, DFU follows all the NAND erasing rituals properly. The rootfs
> is very tricky, because there you also have JFFS2 that tries to
> hide problems from you.

   Flashing the u-boot partition is also tricky because it contains a
pointer to the u-boot_env partition in the OOB data. You can't simply write
a U-Boot image to the u-boot partition using nandwrite and expect it to

> For your backup system, you should at least add flash_eraseall
> to the restore procedure. To make things work also for systems
> that have bad NAND blocks, you would have to use nanddump and
> nandwrite. (And you still have to erase explicitly - nandwrite
> won't do it for you.)

   What is the difference between nandwrite and flashcp?

Rask Ingemann Lambertsen
Danish law requires addresses in e-mail to be logged and stored for a year

More information about the support mailing list