mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2026-01-14 16:46:23 +00:00
flash_ec: add more verbose options
Print stm32mon command in verbose mode. BUG=None BRANCH=None TEST=it prints Signed-off-by: Nick Sanders <nsanders@chromium.org> Change-Id: I4b31d1212c139f64e34e92fa0def662202aa3b41 Reviewed-on: https://chromium-review.googlesource.com/1004436 Commit-Ready: Nick Sanders <nsanders@chromium.org> Tested-by: Nick Sanders <nsanders@chromium.org> Reviewed-by: Aseda Aboagye <aaboagye@chromium.org>
This commit is contained in:
@@ -798,8 +798,12 @@ function flash_stm32() {
|
||||
ec_reset
|
||||
fi
|
||||
# Unprotect flash, erase, and write
|
||||
STM32MON_COMMAND="${STM32MON} -d ${EC_UART} -U -u -e -w"
|
||||
if [ "${FLAGS_verbose}" = ${FLAGS_TRUE} ]; then
|
||||
echo "${STM32MON_COMMAND}" "${IMG}"
|
||||
fi
|
||||
timeout -k 10 -s 9 "${FLAGS_timeout}" \
|
||||
${STM32MON} -d ${EC_UART} -U -u -e -w "${IMG}"
|
||||
${STM32MON_COMMAND} "${IMG}"
|
||||
# Remove the Application processor reset
|
||||
# TODO(crosbug.com/p/30738): we cannot rely on servo_VARS to restore it
|
||||
if $(servo_has_warm_reset); then
|
||||
|
||||
Reference in New Issue
Block a user