From fc0c9bcfe3faec7ccd40cb75465bd2bc7e3ea0e7 Mon Sep 17 00:00:00 2001 From: Mark Huson Date: Wed, 6 May 2020 19:43:17 -0700 Subject: [PATCH 1/2] add update script and README changes --- README.md | 5 ++++- bin/device-update.sh | 8 ++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100755 bin/device-update.sh diff --git a/README.md b/README.md index cacf68c9..5e8bc192 100644 --- a/README.md +++ b/README.md @@ -70,7 +70,10 @@ Hard resetting via RTS pin... ``` 5. cd into the directory where the release zip file was expanded. -6. Install the correct firmware for your board with "device-install.sh firmware-_board_-_country_.bin". For instance "./device-install.sh firmware-HELTEC-US-0.0.3.bin". +6. Install the correct firmware for your board with `device-install.sh firmware-_board_-_country_.bin`. + - Example: `./device-install.sh firmware-HELTEC-US-0.0.3.bin`. +7. To update run `device-update.sh firmware-_board_-_country_.bin` + - Example: `./device-update.sh firmware-HELTEC-US-0.0.3.bin`. Note: If you have previously installed meshtastic, you don't need to run this full script instead just run "esptool.py --baud 921600 write*flash 0x10000 firmware-\_board*-_country_.bin". This will be faster, also all of your current preferences will be preserved. diff --git a/bin/device-update.sh b/bin/device-update.sh new file mode 100755 index 00000000..b8a8dcf9 --- /dev/null +++ b/bin/device-update.sh @@ -0,0 +1,8 @@ +#!/bin/bash + +set -e + +FILENAME=$1 + +echo "Trying to update $FILENAME" +esptool.py --baud 921600 writeflash 0x10000 $FILENAME From 4da5d79e883f0b10a0308a211264effff75c6926 Mon Sep 17 00:00:00 2001 From: Mark Huson Date: Wed, 6 May 2020 19:45:02 -0700 Subject: [PATCH 2/2] add device-update to zip --- bin/build-all.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/build-all.sh b/bin/build-all.sh index 44a7d875..edea28cd 100755 --- a/bin/build-all.sh +++ b/bin/build-all.sh @@ -64,6 +64,6 @@ Generated by bin/buildall.sh --> XML rm -f $ARCHIVEDIR/firmware-$VERSION.zip -zip --junk-paths $ARCHIVEDIR/firmware-$VERSION.zip $OUTDIR/bins/firmware-*-$VERSION.* images/system-info.bin bin/device-install.sh +zip --junk-paths $ARCHIVEDIR/firmware-$VERSION.zip $OUTDIR/bins/firmware-*-$VERSION.* images/system-info.bin bin/device-install.sh bin/device-update.sh -echo BUILT ALL \ No newline at end of file +echo BUILT ALL