diff options
Diffstat (limited to 'board/kukui_scp/update_scp')
-rwxr-xr-x | board/kukui_scp/update_scp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/board/kukui_scp/update_scp b/board/kukui_scp/update_scp deleted file mode 100755 index 846095a7f9..0000000000 --- a/board/kukui_scp/update_scp +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/bash -# Copyright 2019 The Chromium OS Authors. All rights reserved. -# Use of this source code is governed by a BSD-style license that can be -# found in the LICENSE file. - -usage() { - echo "Usage: $0 [IP] [bin/elf]" >&2 - echo >&2 - echo "Deploy kukui_scp image to DUT, and restart the remoteproc driver" >&2 - exit 2 -} - -if [[ -z "$1" ]]; then - usage -fi - -KUKUI_IP="$1" -INFILE="build/kukui_scp/ec.bin" - -case "$2" in -bin) - ;; -elf|"") # Default - # ec.obj is an elf file that has the right memory layout to be loaded - # from the AP/kernel. - INFILE="build/kukui_scp/ec.obj" - ;; -*) - usage - ;; -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'" |