commit | d652f27470bd5d0eefd08a62d96861604d8368be | [log] [tgz] |
---|---|---|
author | Marti Bolivar <marti.bolivar@linaro.org> | Tue Jan 31 18:05:27 2017 -0500 |
committer | Marti Bolivar <marti.bolivar@linaro.org> | Tue Feb 07 16:59:50 2017 -0500 |
tree | 6e9fbbbef7090afcf41052d4e9ba0fc8959610ba | |
parent | 500705efce750f4455ba1f8b013d86bebbf0501f [diff] |
bootutil: add logging This patch adds platform-independent logging to bootutil. When bootutil is compiled as part of an application, the application environment can provide logging hooks using this file. Initially, hooks for Zephyr are provided. When built for simulation or unit testing, the logging macros produce no code (the ignore.h used by mynewt is used to avoid unused variable warnings in this case). Before including this file, users may define BOOT_LOG_LEVEL. If they do, it must be one of BOOT_LOG_LEVEL_OFF, BOOT_LOG_LEVEL_ERROR, ..., BOOT_LOG_LEVEL_DEBUG. This determines the log level for the current translation unit. If they do not, a default log level is determined in a target-specific way. After including bootutil_log.h, the macros BOOT_LOG_ERR(), BOOT_LOG_WRN(), etc. may be used to log messages. These take printf-like arguments. 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: