m1/tools/m1nor: erase data partition before reflash

This commit is contained in:
Xiangfu 2012-07-12 09:16:56 +08:00
parent c9efa64c09
commit c84ba205c0
1 changed files with 3 additions and 0 deletions

View File

@ -100,6 +100,9 @@ endian big
EOF
for n in "$@"; do
classify "$n"
if [ "$off" == "0xd20000" ]; then
echo eraseflash 0xd20000 151
fi
echo flashmem "$off" "$n" noverify
done
echo lockflash 0 55