1
0
Fork 0
jebbatime/scripts/jebbatime-flash-build

27 lines
531 B
Plaintext
Raw Normal View History

2021-06-12 15:50:30 -06:00
#!/bin/bash
# Need to be in root dir of jebbatime git archive.
# Get config
. ~/.config/jebbatime.conf
cd $JEBBATIMEGITROOT
# Reboot thang into bootloader
echo "Rebooting development PineTime watch into bootloader..."
./tools/wasptool \
--verbose \
--bootloader \
--device $JEBBATIMEMAC
echo "Waiting..."
sleep 4
# Flash
echo "Flashing..."
# Use image in build dir
./tools/ota-dfu/dfu.py \
--legacy \
--verbose \
--address=$JEBBATIMEDFUMAC \
--zip=build-pinetime/micropython.zip