diff options
author | Namyoon Woo <namyoon@chromium.org> | 2019-01-14 11:27:15 -0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2019-01-23 00:20:18 -0800 |
commit | 3961177e176760c383e3f9f55da5882cba3192f3 (patch) | |
tree | 9ed5a852d2ba496ef614fb621f7438a7648bf639 /board/ampton/board.c | |
parent | ffc8bd6373dd1046a830c7999e173c96e59faf63 (diff) | |
download | chrome-ec-3961177e176760c383e3f9f55da5882cba3192f3.tar.gz |
flash_ec: add "--read" and "--verify" flags for stm32 chip.
"--read" takes a following string as a path to store the image file.
If it is specified, flash_ec reads only an EC firmware image and store
it to the given path, but does not program EC firmware.
"--verify" lets flash_ec read EC firmware image after flashing it, and
compare the read image to the source image to check if they match.
These two flags are supported for stm32 chip only for now.
CQ-DEPEND=CL:1394284
BUG=b:112163028
BRANCH=none
TEST=manually ran flash_ec on scarlet.
util/flash_ec --board scarlet --image ${IMG_PATH} --verify
--bitbang_rate 57600 --logfile /tmp/flash_ec.log
util/flash_ec --board scarlet --read ${TEMP_IMG_PATH}
--bitbang_rate 57600 --logfile /tmp/flash_ec.log
util/flash_ec --chip stm32 --raiden --image ${IMG_PATH} --verify
--bitbang_rate 57600 --verbose --logfile /tmp/flash_ec.log
util/flash_ec --chip stm32 --raiden --read ${TEMP_IMG_PATH}
--bitbang_rate 57600 --verbose --logfile /tmp/flash_ec.log
Change-Id: I0913da7b8bf51313c7ff758a1ed3250a88c13b54
Signed-off-by: Namyoon Woo <namyoon@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1409497
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
Diffstat (limited to 'board/ampton/board.c')
0 files changed, 0 insertions, 0 deletions