952ff8a8ea
This commit adds several small items to improve the support for OTA updates on an esp32: - a partition table for 4MB flash modules that has two OTA partitions ready to go to do updates - a GENERIC_OTA board that uses that partition table and that enables automatic roll-back in the bootloader - a new esp32.Partition.mark_app_valid_cancel_rollback() class-method to signal that the boot is successful and should not be rolled back at the next reset - an automated test for doing an OTA update - documentation updates
489 B
489 B
1 | # Partition table for MicroPython with OTA support using 4MB flash |
---|---|
2 | # Name, Type, SubType, Offset, Size, Flags |
3 | # Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild |
4 | nvs, data, nvs, 0x9000, 0x4000, |
5 | otadata, data, ota, 0xd000, 0x2000, |
6 | phy_init, data, phy, 0xf000, 0x1000, |
7 | ota_0, app, ota_0, 0x10000, 0x180000, |
8 | ota_1, app, ota_1, 0x190000, 0x180000, |
9 | vfs, data, fat, 0x310000, 0x0f0000, |