commit | c50926f3c1b7af27cc595a0f09d45954764c7e91 | [log] [tgz] |
---|---|---|
author | Marti Bolivar <marti.bolivar@linaro.org> | Wed Jun 14 09:35:40 2017 -0400 |
committer | Marti Bolivar <marti.bolivar@linaro.org> | Thu Jun 15 13:24:15 2017 -0400 |
tree | d96932b87a827473d4df45dd5c63e82006d8b6c5 | |
parent | e10a7399d9f629363c3d53d3336440f94f60a896 [diff] |
bootutil: optionally use flash_area_get_sectors() Add a typedef which lets us use flash_sector or flash_area to contain the sectors within the boot_data global. When MCUBOOT_USE_FLASH_AREA_GET_SECTORS is defined, this is struct flash_sector. Also add struct boot_loader_state accessors to handle this case, and make the appropriate changes to where the sectors are allocated to use the new typedef. Finally, ensure MCUBOOT_USE_FLASH_AREA_GET_SECTORS is defined in the Zephyr Makefile, since flash_area_get_sectors() is already provided there. This lets mcuboot users convert to the new flash API gradually. Signed-off-by: Marti Bolivar <marti.bolivar@linaro.org>
MCUBoot is a secure bootloader for 32-bit MCUs. The goal of MCUBoot is to define a common infrastructure for the bootloader, system flash layout on microcontroller systems, and to provide a secure bootloader that enables easy software upgrade.
MCUboot is operating system and hardware independent, and relies on hardware porting layers from the operating system it works with. Currently mcuboot works with both the Apache Mynewt, and Zephyr operating systems, but more ports are planned in the future.
The MCUBoot project was originally taken from the Apache Mynewt operating system, which had secure boot and software upgrade functionality instrinsic to it. Currently development is heads down on a first release of MCUboot that works across both the Zephyr operating system and Apache Mynewt operating system.
For more information on what's being planned, and worked on, please visit:
https://runtimeco.atlassian.net/projects/MCUB/summary
Information and documentation on the bootloader is stored within the source, and on confluence:
https://runtimeco.atlassian.net/wiki/discover/all-updates
For more information in the source, here are some pointers:
Developers welcome! To join in the discussion, please join the developer mailing list:
http://lists.runtime.co/mailman/listinfo/dev-mcuboot_lists.runtime.co