← index #7982PR #12475
Related · high · value 0.492
QUERY · ISSUE

esp32: No OTA images generated anymore since switch to cmake

openby mirkoopened 2021-11-10updated 2021-12-01
port-esp32

For versions using an ESP IDF SDK version using gmake I used to find binary files for (almost) each partition inside the build dir (ports/esp32/build-$$BOARD$$/):

  • bootloader.bin
  • partitions.bin
  • application.bin
  • firmware.bin

It seems, though, that at least the OTA image (formerly application.bin) is missing since switching to cmake.

Given that at least the upstream supported board SIL_WESP32 also uses OTA (CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions-16MiB-ota.csv in sdkconfig), I would have expected to also find an OTA binary image (or an equivalent) - however I can't find anything alike.

The only thing I can see is the file ports/esp32/build-$$BOARD$$/ota_data_initial.bin, which however is basically empty (well, 8KiB of 0xFF).

What's the supposedly correct way generating/obtaining OTA images with micropython v1.17 onwards?

CANDIDATE · PULL REQUEST

esp32: Add bootloader rollback support for all boards.

mergedby glenn20opened 2023-09-18updated 2023-09-29
port-esp32

This PR adds support for OTA rollback to the bootloader for all ESP32 builds:

  • Add CONFIG_BOOTLOADER_ROLLBACK_ENABLE=y to ports/esp32/boards/sdkconfig.base so that all micropython esp32 images support OTA rollback in the bootloader.

With this change:

There appears to be no detrimental impact arising rom enabling this feature in all ESP32 builds (see Espressif's App Rollback documentation).

This can also eliminate the need to build OTA variants of all esp32 boards for distribution if desired.

Keyboard

j / / n
next pair
k / / p
previous pair
1 / / h
show query pane
2 / / l
show candidate pane
c
copy suggested comment
r
toggle reasoning
g i
go to index
?
show this help
esc
close overlays

press ? or esc to close

copied