Add MCUBoot support for FRDM-K64F board#7181
Closed
kYc0o wants to merge 10 commits intoRIOT-OS:masterfrom
Closed
Conversation
The clock setting on this board depends on the existence of an external RMII crystal, which is not mandatory for the CPU itself.
910438b to
5848cc8
Compare
5848cc8 to
a9e82c9
Compare
Contributor
Author
|
@kaspar030 I added a test application for this PR but it seems that Murdock always builds using |
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
"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."[1]
This PR aims to add support for MCUBoot using the FRDM-K64F board.
The goal is to produce an ELF file specifically linked to take into account the allowed space for MCUBoot. This ELF file is then converted to binary, in order to add headers, hashes and signatures required by the bootloader.
The process mentioned above for the binary file is done by the imgtool.py script which is added in the dis/tools directory. This script is maintained by MCUBoot and I will update the script according to the changes upstream.
A new target
mcubootneeds to be called to generate automatically such binary, which can be flashed by callingmake mcuboot flash. In order to make the program work, MCUBoot needs also to be flashed into the device. This can be done through mynewt or zephyr by following the instructions on the MCUBoot repository.This is the first step towards MCUBoot full integration with RIOT, which should come soon.
This PR is based on #6986 to include last changes which will be done for the FRDM-K64F platform.
[1] https://github.com/runtimeco/mcuboot