Pulling flash image off device

Andy Green andy at openmoko.com
Thu Jul 31 20:27:24 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Somebody in the thread at some point said:
| This may seem trivial, but I can't seem to find anything on how to do
| this directly.
|
| Is there an easy way to pull my existing fs flash image OFF my phone
| so I can save the current config?  I want to have a backup so if I
| add a package or do an upgrade later that toasts my phone I don't
| have to start from square one again. ;)  I could probably remount the
| root as ro, and DD it out via ssh or to the mmc.  But is there
| anything I have to do otherwise to make it valid in dft-uilts eyes?

You'd think so... but no, raw NAND like we use is evil.  If you dd the
mtd block device directly, you will get any bad blocks inline with the
real filesystem data, without any OOB information to mark them as bad
and your image will be corrupted.

There are some nand_* utilities that can parse the OOB data as they go
through the block device and skip the bad blocks, you can try those.

There's also a dfu_util mode to read back the partiton over USB but it
is shaky in that read back mode.

- -Andy
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkiSBAwACgkQOjLpvpq7dMq7uACfRm2WVmmQAwGbjHGjFQbPh9Vf
65cAn14i6hbd16KP6wsR9iRTB7mppohb
=SvgQ
-----END PGP SIGNATURE-----




More information about the support mailing list