summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYilun Lin <yllin@google.com>2019-05-29 15:56:36 +0800
committerCommit Bot <commit-bot@chromium.org>2019-06-04 06:13:17 +0000
commitf23e57e73c38396ad89e58b7fc0918939e2ba372 (patch)
tree1d177fd93321545c70b6ffeed520ef59851bc1f4
parent3c328114e315b368163a77a8d01b831c98836b74 (diff)
downloadchrome-ec-f23e57e73c38396ad89e58b7fc0918939e2ba372.tar.gz
kukui_scp: Run 'sync' after update firmware.stabilize-12249.B
SCP firrmware is located at AP, and if AP is not properly shutdown (e.g. aps in EC console), then we will lost the newly pushed firmware on next boot. This CL ensure a 'sync' command after copying firmware to AP. BRANCH=None TEST=None BUG=None Change-Id: Ib74c82c10e19c3f3a23d5fef3e885bfd30dfcc9c Signed-off-by: Yilun Lin <yllin@google.com> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1634631 Reviewed-by: Pi-Hsun Shih <pihsun@chromium.org> Tested-by: Yilun Lin <yllin@chromium.org> Commit-Queue: Yilun Lin <yllin@chromium.org>
-rwxr-xr-xboard/kukui_scp/update_scp1
1 files changed, 1 insertions, 0 deletions
diff --git a/board/kukui_scp/update_scp b/board/kukui_scp/update_scp
index 15b7560e0f..df98fe8784 100755
--- a/board/kukui_scp/update_scp
+++ b/board/kukui_scp/update_scp
@@ -35,5 +35,6 @@ esac
scp "$INFILE" "$KUKUI_IP":/lib/firmware/scp.img
ssh "$KUKUI_IP" sh -x -c "'
+ sync;
echo stop > /sys/class/remoteproc/remoteproc0/state;
echo start > /sys/class/remoteproc/remoteproc0/state'"