firmware-open/scripts/spipi-flash.sh

25 lines
325 B
Bash
Raw Normal View History

#!/usr/bin/env bash
# shellcheck disable=SC2087
set -e
if [ -z "$1" ]
then
echo "$0 [model]" >&2
exit 1
fi
MODEL="$1"
. scripts/_spipi.sh
sftp "${SPIPI}" <<EOF
cd firmware
2020-04-08 13:32:25 -06:00
put "build/${MODEL}/firmware.rom" "${MODEL}.rom"
EOF
ssh -T "${SPIPI}" <<EOF
cd firmware
./scripts/spipi.sh -c "${CHIP}" -w "${MODEL}.rom"
EOF