OVMS3-idf/components/bootloader_support/src
Vikram Dattu caa1ef0cb6 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://github.com/espressif/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://github.com/espressif/esp-idf/blob/master/components/bootloader_support/src/esp_image_format.c#L371

Signed-off-by: Vikram Dattu <vikram.dattu@espressif.com>
2019-08-05 05:34:11 +00:00
..
bootloader_clock.c soc: define named constants for DPORT_CPUPERIOD_SEL values 2019-02-26 17:07:59 +08:00
bootloader_common.c feat(psram): config SPI psram pins based on efuse value 2019-07-02 14:15:55 +08:00
bootloader_flash.c Bugfix: ota fails with secure boot on for image size greater than 3.2MB 2019-08-05 05:34:11 +00:00
bootloader_init.c bugfix(flash): fix flash read error in DIO/26MHz mode 2019-07-15 14:26:53 +08:00
bootloader_random.c esp32: Add esp_fill_random() function 2018-09-03 04:39:45 +00:00
bootloader_sha.c app_update: Add API for getting sha256_of_partition 2018-08-13 13:59:07 +05:00
bootloader_utility.c remove secure boot test mode 2019-06-14 14:37:02 +05:30
esp_image_format.c bootloader: verify that loaded image does not overlap bootloader code 2018-10-26 12:44:10 +08:00
flash_encrypt.c Enable secure boot only after encrypting flash 2019-05-06 11:34:12 +05:30
flash_partitions.c bootloader: Don't verify Partition Table as part of Secure Boot 2018-07-13 15:45:15 +10:00
flash_qio_mode.c feature(flash): support for QIO mode of XM25QU64A 2018-07-11 22:28:01 +08:00
secure_boot.c remove secure boot test mode 2019-06-14 14:37:02 +05:30
secure_boot_signatures.c Bugfix: ota fails with secure boot on for image size greater than 3.2MB 2019-08-05 05:34:11 +00:00