diff options
author | Jett Rink <jettrink@chromium.org> | 2020-03-12 11:25:25 -0600 |
---|---|---|
committer | Jett Rink <jettrink@chromium.org> | 2020-03-12 20:09:50 +0000 |
commit | f8ed81321862e43ab5beaa0df9f060053dd07605 (patch) | |
tree | 781edbccd77388c74b4b1c9c2c71e35b6c91b428 /util | |
parent | c79b2278103e077ddb6e04b43c248f25b03b7af4 (diff) | |
download | chrome-ec-f8ed81321862e43ab5beaa0df9f060053dd07605.tar.gz |
flash_ec: add error text when c2d2 needs upgrade
If the flash script detects an older version of hdctools or c2d2 fw,
then it tells the user which command to run to get to latest binaries.
BUG=none
BRANCH=none
TEST=tested with old c2d2 image and old hdctools and got new error
message
Change-Id: I415abcad6c88e5b7a0d4eb96448ca1e9b661c47e
Signed-off-by: Jett Rink <jettrink@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2101207
Commit-Queue: Justin TerAvest <teravest@chromium.org>
Reviewed-by: Justin TerAvest <teravest@chromium.org>
Diffstat (limited to 'util')
-rwxr-xr-x | util/flash_ec | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/util/flash_ec b/util/flash_ec index 13ddfb2f5c..37290aed8a 100755 --- a/util/flash_ec +++ b/util/flash_ec @@ -1367,6 +1367,11 @@ function flash_npcx_uut() { # C2D2 does not use waits and has to ensure that the EC does not come # out of reset after using a H1-level reset if [[ "${SERVO_TYPE}" =~ "c2d2" ]] ; then + # Ensure we have the latest c2d2 fw and hdctools. This could + # be removed eventually (estimate removal 2020/06/01) + dut_control h1_vref_present || die "Need to kill servod and run: +repo sync && sudo emerge hdctools servo-firmware && sudo servo_updater -b c2d2" + # Handle the case when flash_ec starts before DUT power is # applied. Otherwise just use h1-level reset. if [[ "$(dut_control_get h1_vref_present)" = "off" ]] ; then |