Dump a few words at the start of flash as a diagnostic for full-chip erase failure

Signed-off-by: Randall Spangler <rspangler@chromium.org>

BUG=chrome-os-partner:8632
TEST=manual; run flash_link

Change-Id: I87b02c766345182cea64c5bec980c3940a25b3cf
This commit is contained in:
Randall Spangler
2012-03-23 15:29:50 -07:00
parent 36572d45fa
commit d1a162d4b1

View File

@@ -10,6 +10,9 @@ proc flash_lm4 {path size} {
set lastsect [expr {$size / 1024 - 1}];
reset halt;
flash erase_sector 0 0 $lastsect;
# Note erase_sector silently fails sometimes; see crosbug.com/p/8632
# Dump a few words as a diagnostic for whether erase succeeded
mdw 0 16
flash write_image $path 0;
reset
}