Open LuKks opened 2 months ago
Investigate:
Also thinking:
esptool.py
esp_ota_get_app_description()
app_elf_sha256
python3 -m esptool --chip=esp32 image_info ./firmware.bin --version=2 https://github.com/lukks/iot-dev/blob/main/lib/elf-hash.js
python3 -m esptool --chip=esp32 image_info ./firmware.bin --version=2
That way the device can detect it's not running the latest firmware when force uploading a different one via USB. It's not real protection, it's just so the device is not stuck without OTA updates on development
Unit tests are missing also
Investigate:
Also thinking:
esptool.py
esp_ota_get_app_description()
->app_elf_sha256
python3 -m esptool --chip=esp32 image_info ./firmware.bin --version=2
https://github.com/lukks/iot-dev/blob/main/lib/elf-hash.jsThat way the device can detect it's not running the latest firmware when force uploading a different one via USB. It's not real protection, it's just so the device is not stuck without OTA updates on development