mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-01 21:02:27 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user