I2S-mic./DMA & ESP32 Assembler FFT etc.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

25 lines
935 B

#!/bin/sh
#
# MakeFirmware.sh
# Launch from VSC terminal within project directory:
# ./MakeFirmware.sh NodeSP2
#
# 04.03.20/KQ My little helper script ...
#
# TODO: Please adjust next line path to mkfw according to your local system!
PATH2MKFW="/mnt/a30054ad-3fe6-444a-8d93-16df937e448e/projects/ESP32/Odroid/odroid-go-firmware/tools/mkfw"
if [ "$1" = "" ]
then
echo "usage: echo y | ./MakeFirmware.sh <filebasename_no_extension>"
else
echo "Working within directory:" `pwd`
echo "Converting res/$1.png -> tile.raw ..."
ffmpeg -i ./res/$1.png -f rawvideo -pix_fmt rgb565 ./res/tile.raw
echo ""
echo "Converting firmware.bin to firmware.fw ..."
$PATH2MKFW/mkfw $1 ./res/tile.raw 0 16 1048576 app .pio/build/odroid_esp32/firmware.bin
echo "Renaming firmware.fw to $1.fw"
mv firmware.fw $1.fw
ls -l *.fw
echo "\n\n!!! Done, $1.fw created, copy to SD-Card (subdir: /odroid/firmware) !!!"
fi