Flash dev watch script
parent
3e78d5baa4
commit
01762ca9dd
|
@ -0,0 +1,28 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Need to be in root dir of jebbatime git archive.
|
||||||
|
# Get config
|
||||||
|
. ~/.config/jebbatime.conf
|
||||||
|
|
||||||
|
# Download latest release. XXX better link to latest.
|
||||||
|
rm -f /tmp/micropython.zip
|
||||||
|
wget -O /tmp/micropython.zip \
|
||||||
|
https://spacecruft.org/attachments/9238c4cc-cd29-4b95-89fe-b3246609339c
|
||||||
|
|
||||||
|
# Reboot thang into bootloader
|
||||||
|
echo "Rebooting development PineTime watch into bootloader..."
|
||||||
|
./tools/wasptool \
|
||||||
|
--verbose \
|
||||||
|
--bootloader \
|
||||||
|
--device $JEBBATIMEDEVMAC
|
||||||
|
|
||||||
|
echo "Waiting..."
|
||||||
|
sleep 4
|
||||||
|
|
||||||
|
# Flash
|
||||||
|
echo "Flashing..."
|
||||||
|
./tools/ota-dfu/dfu.py \
|
||||||
|
--legacy \
|
||||||
|
--verbose \
|
||||||
|
--address=$JEBBATIMEDEVDFUMAC \
|
||||||
|
--zip=/tmp/micropython.zip
|
||||||
|
|
Loading…
Reference in New Issue