Closed
Conversation
530c28a to
ad1b281
Compare
ad1b281 to
5932b11
Compare
and bootloader images
5932b11 to
c1bc5e2
Compare
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.
Based on #6922 .
This update adds signature capabilities to the metadata generator, which will sign the hash of the firmware and store the signature in the metadata.
This approach utilises tweetnacl, with the ed25519 curve, to sign the hash.
A couple of example keys are provided with this PR, which can be of course replaced.
Since tweetnacl needs a considerable amount of ROM, the interactive bootloader doesn't fit in the originally 16K allowed to it, so it's disabled by default.
In order to test it, you can compile any image with the following command:
make FW_SLOT=1 APPID=0xabcd1234 VERSION=0x1 bootloaderwhich will generate a file in the bin/BOARD/slot1/ directory called bootloader-APPLICATION.elf, which can be flashed into the node.
If everything goes well, you should be able to see an output similar to
if you have nothing on slot 2, which will verify and boot slot 1.
As in #6922, you can also generate images for the slots independently of the bootloader (to send them OTA for example) which will be signed by default.
As for the other PRs related to this one, it only works on the iotlab-m3 platforms, for now.