From 86b9b5ef9709bebf3dfbd2bbc3f0c09ba7b2ace8 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Thu, 10 Nov 2011 13:08:07 +0800 Subject: [PATCH] reflash_ben.sh : add clean bootloader env command, update version --- nanonote-files/data/qi_lb60/scripts/reflash_ben.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nanonote-files/data/qi_lb60/scripts/reflash_ben.sh b/nanonote-files/data/qi_lb60/scripts/reflash_ben.sh index ae8a51f..06731f3 100755 --- a/nanonote-files/data/qi_lb60/scripts/reflash_ben.sh +++ b/nanonote-files/data/qi_lb60/scripts/reflash_ben.sh @@ -1,6 +1,6 @@ #!/bin/bash # version of me -__VERSION__="2011-08-19" +__VERSION__="2011-11-11" # use 'http' to download and flash images, use 'file' to flash images present in the PROTOCOL="http" @@ -214,6 +214,10 @@ fi log "booting device..." usbboot -c "boot" >> "${LOG_FILE}" || abort "can't boot device - xburst-tools setup correctly? device in boot-mode? device connected?" +if [ "$ALL" == "TRUE" ]; then + log "clean bootloader env data ..." + usbboot -c "nerase 2 2 0 0" >> "${LOG_FILE}" 2>&1 +fi if [ "$B" == "TRUE" ]; then log "flashing bootloader..." progress_prepare