New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
iMXRT support #28
Merged
Merged
iMXRT support #28
Conversation
This file contains 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
This means that defconfig does not have to be copied to .config. Also it properly expands to a full config, so the Makefile has access to all config values, including default values
Allows setting a custom main linker file, and also supply a different default for when building into a flash (execute-in-place XIP) and ram combination.
Previously it would result in NULL ptr dereferences if less than CONFIG_CRYPTO_MAX_HASH_OPS or CONFIG_CRYPTO_MAX_DSA_OPS operations had been registered
Adds basic support for ARMv7-M CPUs (most commonly Cortex-M4 and M7 range), without support for MMU.
This adds (limited) iMXRT support, with certain things missing or not implemented yet. Notable parts not yet supported: - Key revokation, including querying for revoked keys. - SLC fusing - UART/console is hard-coded - No boot reason detection
thebolt
force-pushed
the
imxrt-support
branch
from
October 23, 2023 12:53
4e6209c
to
4667ce5
Compare
On bare metal systems we might not want to verify the partitions inside a bpak header, so split auth_header into two functions to allow reuse of the hashing and signature verification part.
This version of the helper will copy partitions from one source range to a destination range, such as from (memory mapped) flash to RAM and do payload hashing of it for boot authentication. In the future this could be accelerated via the crypto api for platforms that has accelerators that do copy+hash in one go, such as iMXRT
…processing This lets board logic totally control the reading/copying and authentication of the next image to boot. Potentially dangerous but required to handle cases where for example board-specific logic decides between multiple in-memory boot images.
When _not_ selecting all of the CONFIG_MBEDTLS_MD_ values, ensure to only build and register the parts configured and built with.
Select asm optimizations as well as ECP optimizations. Slightly increases binary size but payoff is big.
thebolt
force-pushed
the
imxrt-support
branch
from
October 23, 2023 13:02
4667ce5
to
1785dd2
Compare
Codecov Report
@@ Coverage Diff @@
## master #28 +/- ##
==========================================
- Coverage 68.15% 66.54% -1.61%
==========================================
Files 54 54
Lines 2795 2828 +33
==========================================
- Hits 1905 1882 -23
- Misses 890 946 +56
|
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.
This adds support for ARMv7M / iMXRT as well as a few minor bugfixes found while doing the port.