Flashing NAND from NAND
Matthias Huber
matthias.huber at wollishausen.de
Mon Oct 19 20:19:31 CEST 2009
Werner Almesberger schrieb:
> 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 ?
>
>
No, erasing seemed not to be necessary.
why should i erase it ?
Bad Blocks: No i didnt even thing of it.
the four times i did a backup and two or three times i did a restore,
there was no problem.
but you are of course right, one has to have a look at it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/support/attachments/20091019/b76e222f/attachment.htm
More information about the support
mailing list