factory_installer: update flashrom --wp-range syntax
This change moves from chromium syntax --wp-range <start> <len> to
--wp-range <start>,<len>
BUG=b:186696898
TEST=tryjobs
Cq-Depend: chromium:2857373
Change-Id: Iddd53d135192e31bf60385518286e0b64700a5e4
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/factory_installer/+/2858016
Reviewed-by: Cheng-Han Yang <chenghan@chromium.org>
Tested-by: Daniel Campello <campello@chromium.org>
Commit-Queue: Daniel Campello <campello@chromium.org>
diff --git a/factory_install.sh b/factory_install.sh
index 861f083..b629267 100644
--- a/factory_install.sh
+++ b/factory_install.sh
@@ -203,7 +203,7 @@
if [ "${EC_PRESENT}" -eq 1 ]; then
flashrom -p ec --wp-disable
fi
- flashrom -p host --wp-disable --wp-range 0 0
+ flashrom -p host --wp-disable --wp-range 0,0
log "WP registers should be cleared now"
}