Files
system76-firmware-open/scripts/ch341a-flash.sh
2022-02-24 16:31:43 -07:00

15 lines
198 B
Bash
Executable File

#!/usr/bin/env bash
set -e
if [ -z "$1" ]
then
echo "$0 [model]" >&2
exit 1
fi
MODEL="$1"
source scripts/_ch341a.sh
sudo flashrom -p ch341a_spi -c "${CHIP}" -w "build/${MODEL}/firmware.rom"