From f8ed81321862e43ab5beaa0df9f060053dd07605 Mon Sep 17 00:00:00 2001 From: Jett Rink Date: Thu, 12 Mar 2020 11:25:25 -0600 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2101207 Commit-Queue: Justin TerAvest Reviewed-by: Justin TerAvest --- util/flash_ec | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.1