27 lines
537 B
Plaintext
27 lines
537 B
Plaintext
|
#!/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 $JEBBATIMEDEVMAC
|
||
|
|
||
|
echo "Waiting..."
|
||
|
sleep 4
|
||
|
|
||
|
# Flash
|
||
|
echo "Flashing..."
|
||
|
# Use image in build dir
|
||
|
./tools/ota-dfu/dfu.py \
|
||
|
--legacy \
|
||
|
--verbose \
|
||
|
--address=$JEBBATIMEDEVDFUMAC \
|
||
|
--zip=build-pinetime/micropython.zip
|
||
|
|