OVMS3-idf/components/bootloader_support
Ivan Grokhotkov 96d0f7f5e2 bootloader: account for load address when mapping cache pages
Bootloader used to calculate the number of cache pages assuming that
load address was aligned, while in reality load address for DROM and
IROM was offset by 0x20 bytes from the start of 64kB page. This
caused the bootloader to map one less page if the size of the image
was 0x4..0x1c less than a multiple of 64kB.

Reported in https://esp32.com/viewtopic.php?f=13&t=6952.
2019-01-19 14:44:55 +08:00
..
include bootloader app_update: Refactoring otadata part 2018-12-05 11:20:03 +08:00
include_bootloader bootloader: account for load address when mapping cache pages 2019-01-19 14:44:55 +08:00
src bootloader: account for load address when mapping cache pages 2019-01-19 14:44:55 +08:00
test bootloader: verify that loaded image does not overlap bootloader code 2018-10-26 12:44:10 +08:00
CMakeLists.txt CMake : Secure Boot support added 2018-11-06 17:09:55 +05:30
component.mk bootloader_support: exclude bootloader_init.c when building app 2018-10-02 01:20:04 +00: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.)