Flashing NAND from NAND

Werner Almesberger werner at openmoko.org
Mon Oct 19 18:16:57 CEST 2009


Matthias Huber wrote:
> ># blockrestore.sh
> >#!/bin/sh -x
> >for i in 1 2 3 4 5 6 ; do echo cp ${i}_* /dev/mtdblock$i ; cp
> >${i}_* /dev/mtdblock$i ; done
> >
> >and in practice, this works for backup _and_ restore
> >
> but the backup with the assumption, that there are the destination
> files already in the directory, like:

Hmm, don't you also assume that the partition has been erased before
writing ? Also, what happens if you have any bad blocks ?

- Werner



More information about the support mailing list