OVMS3-idf/components/bootloader_support/include_bootloader
Vikram Dattu eb99b27f2e Bugfix: ota fails with secure boot on for image size greater than 3.2MB
When an OTA image size is larger than 50 MMU pages (approx. 3.2 MB), secure_boot_generate fails while trying to map it into memory:
https://gitlab.espressif.cn:6688/idf/esp-idf/blob/master/components/bootloader_support/src/esp32/secure_boot.c#L72
Instead of trying to map the whole image, secure boot code should split the image into chunks and map them one by one, like it is done in esp_image_format.c:
https://gitlab.espressif.cn:6688/idf/esp-idf/blob/master/components/bootloader_support/src/esp_image_format.c#L372

Closes https://jira.espressif.com:8443/browse/IDF-709

Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2019-07-01 20:04:15 +00:00
..
bootloader_config.h merge esp_flash_data_types into esp_flash_partitions 2019-03-18 08:51:55 +00:00
bootloader_flash.h Bugfix: ota fails with secure boot on for image size greater than 3.2MB 2019-07-01 20:04:15 +00:00
bootloader_init.h bootloader_support: Rename include_priv directory to include_bootloader 2018-07-23 15:58:27 +10:00
bootloader_sha.h make bootloader_support depend on IDF_TARGET 2019-04-16 17:37:56 +08:00
bootloader_utility.h make bootloader_support depend on IDF_TARGET 2019-04-16 17:37:56 +08:00
flash_qio_mode.h bootloader_support: Rename include_priv directory to include_bootloader 2018-07-23 15:58:27 +10:00