Adds a 12K OTA stub 3rd stage bootloader, which reads new firmware from the LittleFS filesystem and flashes on reboot. By storing the OTA commands in a file in flash, it is possible to recover from a power failure during OTA programming. On power resume, the OTA block will simply re-program from the beginning. Support cryptographic signed OTA updates, if desired. Includes host-side signing logic via openssl. Add PicoOTA library which encapsulates the file format for the updater, including CRC32 checking. Add LEAmDNS support to allow Arduino IDE discovery Add ArduinoOTA class for IDE uploads Add MD5Builder class Add Updater class which supports writing and validating cryptographically signed binaries from any source (http, Ethernet, WiFi, Serial, etc.) Add documentation and readmes.
12 lines
210 B
Bash
Executable file
12 lines
210 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -e # Exit on error
|
|
|
|
export PICO_SDK_PATH="$(cd ../pico-sdk/; pwd)"
|
|
export PATH="$(cd ../../system/arm-none-eabi/bin; pwd):$PATH"
|
|
|
|
rm -rf build
|
|
mkdir build
|
|
cd build
|
|
cmake ..
|
|
make -j # VERBOSE=1
|