NextVOD_Baremetal_Benchmark/tools/flash_image.sh

14 lines
219 B
Bash
Raw Normal View History

2022-08-08 01:16:52 +00:00
#!/bin/sh
IMAGE_NAME=$1
if [ -z "${IMAGE_NAME}" ] ; then
IMAGE_NAME=image.bin
fi
if [ ! -f "${IMAGE_NAME}" ] ; then
echo "binary not exist."
exit -1
fi
flashrom --programmer ch341a_spi -w "${IMAGE_NAME}"