summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/flash_ec2
-rw-r--r--util/iteflash.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/util/flash_ec b/util/flash_ec
index dc2f462947..4f63aefaa1 100755
--- a/util/flash_ec
+++ b/util/flash_ec
@@ -1033,7 +1033,7 @@ function flash_it83xx() {
dut_control ftdii2c_cmd:close
info "Run iteflash..."
- sudo ${ITEFLASH} -w ${IMG}
+ sudo ${ITEFLASH} -e -w ${IMG}
}
function flash_lm4() {
diff --git a/util/iteflash.c b/util/iteflash.c
index bdbdf757f1..d0c79fa0cb 100644
--- a/util/iteflash.c
+++ b/util/iteflash.c
@@ -1583,7 +1583,7 @@ int main(int argc, char **argv)
goto terminate;
}
- if (flags & FLAG_ERASE || output_filename) {
+ if (flags & FLAG_ERASE) {
if (is8320dx)
/* Do Normal Erase Function */
command_erase2(&chnd, flash_size, 0, 0);