OVMS3-idf/components/bootloader_support
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
..
include bootloader_support: Add C++ header guards 2019-06-26 11:26:56 +10:00
include_bootloader Bugfix: ota fails with secure boot on for image size greater than 3.2MB 2019-07-01 20:04:15 +00:00
src Bugfix: ota fails with secure boot on for image size greater than 3.2MB 2019-07-01 20:04:15 +00:00
test components: use new component registration api 2019-06-21 19:53:29 +08:00
CMakeLists.txt bootloader: fix secure boot issues 2019-06-28 10:54:21 +08:00
component.mk make bootloader_support depend on IDF_TARGET 2019-04-16 17:37:56 +08:00
Makefile.projbuild Secure boot: Correctly re-sign if signing key changes, better error if missing 2016-12-01 23:49:12 -08:00
README.rst Refactor existing bootloader common functionality into bootloader_support component 2016-11-02 17:58:41 +11:00

Bootloader Support Component
============================

Overview
--------

"Bootloader support" contains APIs which are used by the bootloader but are also needed for the main app.

Code in this component needs to be aware of being executed in a bootloader environment (no RTOS available, BOOTLOADER_BUILD macro set) or in an esp-idf app environment (RTOS running, need locking support.)