diff options
author | Michał Barnaś <mb@semihalf.com> | 2021-01-15 13:09:52 +0100 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-01-21 23:20:20 +0000 |
commit | 51dfc5be5bcbe5fc1445f90ce6c4bd3b51040f0e (patch) | |
tree | a98bbf36490ad0b62c4aafcfdc1fb8a71b911f7f /LICENSE | |
parent | 5c64785a3a93354cf401573e83fd9229c47c06e7 (diff) | |
download | chrome-ec-51dfc5be5bcbe5fc1445f90ce6c4bd3b51040f0e.tar.gz |
servo_updater.py: Make script more reliable and improve error reporting
Add verifying if jump to region was successful by executing sysinfo
after every jump.
Add retries if no response to command from servo was received.
BUG=b:177673664
BRANCH=main
TEST=Prepare a few firmware builds from different commits, to be able
to verify if they were successfully flashed.
Flash firmware using modified script from extra/usb_updater:
sudo ./servo_updater.py -b servo_v4p1 -f <fw>
Run servod to connect to servo console and execute command: version
Check if both RO and RW sections have the same FW version.
TEST=To check error handling, run servod in one terminal, and in
another one try flashing firmware.
There should be retries due to no response received.
After 2-3 retries, close servod and flashing should
automatically continue without errors.
Signed-off-by: Michał Barnaś <mb@semihalf.com>
Change-Id: Ic73e50592fdc5f0f8e2cd9cd2ab4f034ef17e4ec
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2633993
Reviewed-by: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Commit-Queue: Ruben Rodriguez Buchillon <coconutruben@chromium.org>
Diffstat (limited to 'LICENSE')
0 files changed, 0 insertions, 0 deletions