27 lines
537 B
Bash
Executable File
27 lines
537 B
Bash
Executable File
#!/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
|
|
|