NextVOD_FreeRTOS_Hello/tools/flash_image.sh

14 lines
219 B
Bash
Raw Permalink Normal View History

2022-09-04 11:51:57 +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}"