aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDoug Zongker <dougz@android.com>2013-07-08 09:42:54 -0700
committerDoug Zongker <dougz@android.com>2013-07-08 12:59:22 -0700
commit044a0b4d49a11edfa13471ce20914b0514eb7e0e (patch)
tree18a9dd9d0859f251fb4d194816bdf4f3a93d989d /tools
parent2f6877a0220475303907203308c018d789ea1a53 (diff)
downloadbootable_recovery-044a0b4d49a11edfa13471ce20914b0514eb7e0e.zip
bootable_recovery-044a0b4d49a11edfa13471ce20914b0514eb7e0e.tar.gz
bootable_recovery-044a0b4d49a11edfa13471ce20914b0514eb7e0e.tar.bz2
recovery: try to write EMMC partitions more reliably
Nexus 4 has flash errors that manifest during large writes (eg, of the radio partition). Writes of some blocks seem to be dropped silently, without any errors being returned to the user level. Make two changes to the partition-writing code: - break it up into 1MB writes instead of writing partitions with a single fwrite() call. Pause for 50ms in between every chunk. - read the partition back after writing and verify that we read what we wrote. Drop caches before reading so we (hopefully) are reading off the actual flash and not some cache. Neither of these should be necessary. Bug: 9602014 Change-Id: Ice2e24dd4c11f1a57968277b5eb1468c772f6f63
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions