-
Notifications
You must be signed in to change notification settings - Fork 147
Added Vorago VA416x0 wolfBoot support #626
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
Merged
Merged
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| # ML-DSA signature example, based on sim.config example. | ||
| # | ||
| # The acceptable parameter values are those in FIPS 204: | ||
| # | ||
| # ML_DSA_LEVEL = {2, 3, 5} | ||
| # | ||
| # This corresponds to these security levels (from FIPS 204, Table 1.): | ||
| # | ||
| # Claimed Security Strength | ||
| # ML-DSA-44 Category 2 | ||
| # ML-DSA-65 Category 3 | ||
| # ML-DSA-87 Category 5 | ||
| # | ||
| # The signature, pub key, and priv key lengths are all a function | ||
| # of this parameter. Refer to this table (from FIPS 204, Table 2.) | ||
| # to configure your IMAGE_SIGNATURE_SIZE: | ||
| # | ||
| # Table 2. Sizes (in bytes) of keys and signatures of ML-DSA | ||
| # | ||
| # Private Key Public Key Signature Size | ||
| # ML-DSA-44 2560 1312 2420 | ||
| # ML-DSA-65 4032 1952 3309 | ||
| # ML-DSA-87 4896 2592 4627 | ||
| # | ||
|
|
||
| ARCH=sim | ||
| TARGET=sim | ||
| SIGN=ML_DSA | ||
| HASH=SHA256 | ||
| WOLFBOOT_SMALL_STACK=0 | ||
| SPI_FLASH=0 | ||
| DEBUG=0 | ||
| DELTA_UPDATES=0 | ||
|
|
||
| # | ||
| # ML-DSA config examples: | ||
| # | ||
| # Category 3: | ||
| ML_DSA_LEVEL=3 | ||
| IMAGE_SIGNATURE_SIZE=3309 | ||
| IMAGE_HEADER_SIZE=8192 | ||
|
|
||
| # sizes should be multiple of system page size | ||
| WOLFBOOT_PARTITION_SIZE=0x40000 | ||
| WOLFBOOT_SECTOR_SIZE=0x2000 | ||
| WOLFBOOT_PARTITION_BOOT_ADDRESS=0x20000 | ||
| # if on external flash, it should be multiple of system page size | ||
| WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x60000 | ||
| WOLFBOOT_PARTITION_SWAP_ADDRESS=0xA0000 | ||
|
|
||
| # required for keytools | ||
| WOLFBOOT_FIXED_PARTITIONS=1 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| # ML-DSA signature example, based on sim.config example. | ||
| # | ||
| # The acceptable parameter values are those in FIPS 204: | ||
| # | ||
| # ML_DSA_LEVEL = {2, 3, 5} | ||
| # | ||
| # This corresponds to these security levels (from FIPS 204, Table 1.): | ||
| # | ||
| # Claimed Security Strength | ||
| # ML-DSA-44 Category 2 | ||
| # ML-DSA-65 Category 3 | ||
| # ML-DSA-87 Category 5 | ||
| # | ||
| # The signature, pub key, and priv key lengths are all a function | ||
| # of this parameter. Refer to this table (from FIPS 204, Table 2.) | ||
| # to configure your IMAGE_SIGNATURE_SIZE: | ||
| # | ||
| # Table 2. Sizes (in bytes) of keys and signatures of ML-DSA | ||
| # | ||
| # Private Key Public Key Signature Size | ||
| # ML-DSA-44 2560 1312 2420 | ||
| # ML-DSA-65 4032 1952 3309 | ||
| # ML-DSA-87 4896 2592 4627 | ||
| # | ||
|
|
||
| ARCH=sim | ||
| TARGET=sim | ||
| SIGN=ML_DSA | ||
| HASH=SHA256 | ||
| WOLFBOOT_SMALL_STACK=0 | ||
| SPI_FLASH=0 | ||
| DEBUG=0 | ||
| DELTA_UPDATES=0 | ||
|
|
||
| # | ||
| # ML-DSA config examples: | ||
| # | ||
| # Category 5: | ||
| ML_DSA_LEVEL=5 | ||
| IMAGE_SIGNATURE_SIZE=4627 | ||
| IMAGE_HEADER_SIZE=12288 | ||
|
|
||
| # sizes should be multiple of system page size | ||
| WOLFBOOT_PARTITION_SIZE=0x40000 | ||
| # This example needs larger sector size. | ||
| WOLFBOOT_SECTOR_SIZE=0x3000 | ||
| WOLFBOOT_PARTITION_BOOT_ADDRESS=0x20000 | ||
| # if on external flash, it should be multiple of system page size | ||
| WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x60000 | ||
| WOLFBOOT_PARTITION_SWAP_ADDRESS=0xA0000 | ||
|
|
||
| # required for keytools | ||
| WOLFBOOT_FIXED_PARTITIONS=1 |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,79 @@ | ||
| ARCH?=ARM | ||
| CORTEX_M4?=1 | ||
| TARGET?=va416x0 | ||
|
|
||
| # ECDSA P384 and SHA384 | ||
| SIGN?=ECC384 | ||
| HASH?=SHA384 | ||
| IMAGE_HEADER_SIZE=512 | ||
|
|
||
| # ML-DSA Level 5 (87) | ||
| #SIGN=ML_DSA | ||
| #HASH=SHA256 | ||
| #ML_DSA_LEVEL=5 | ||
| #IMAGE_SIGNATURE_SIZE=4627 | ||
| #IMAGE_HEADER_SIZE=12288 | ||
|
|
||
| WOLFBOOT_VERSION?=1 | ||
| ARMORED?=1 | ||
| DEBUG?=0 | ||
| DEBUG_SYMBOLS?=1 | ||
| DEBUG_UART?=1 | ||
| VTOR?=1 | ||
| EXT_FLASH?=1 | ||
| SPI_FLASH?=0 | ||
| NO_XIP?=1 | ||
| NVM_FLASH_WRITEONCE?=0 | ||
| UART_FLASH?=0 | ||
| V?=0 | ||
| NO_MPU?=1 | ||
| RAM_CODE?=0 | ||
| SPMATH?=1 | ||
| DUALBANK_SWAP?=0 | ||
| PKA?=0 | ||
| ENCRYPT=0 | ||
| WOLFTPM?=0 | ||
| OPTIMIZATION_LEVEL=1 | ||
|
|
||
| # Optionally allow downgrade to older valid version in update partition | ||
| ALLOW_DOWNGRADE?=0 | ||
|
|
||
| # Use assembly version of ECDSA and SHA | ||
| NO_ASM?=0 | ||
| NO_ARM_ASM?=0 | ||
|
|
||
| # Optional: Use smaller SHA512 | ||
| #CFLAGS_EXTRA+=-DUSE_SLOW_SHA512 | ||
|
|
||
| # 38KB boot, 108KB partitions, 2KB swap | ||
| WOLFBOOT_SECTOR_SIZE?=0x800 | ||
| WOLFBOOT_PARTITION_SIZE?=0x1B000 | ||
| WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x9800 | ||
| WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x24800 | ||
| WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x3F800 | ||
|
|
||
| # ML-DSA 5: 36KB boot, 104KB partitions, 12KB swap | ||
| #WOLFBOOT_SECTOR_SIZE?=0x3000 | ||
| #WOLFBOOT_PARTITION_SIZE?=0x1A000 | ||
| #WOLFBOOT_PARTITION_BOOT_ADDRESS?=0x9000 | ||
| #WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x23000 | ||
| #WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x3D000 | ||
|
|
||
| # Debug: 64KB boot, 95KB partitions, 2KB swap | ||
| #WOLFBOOT_SECTOR_SIZE?=0x800 | ||
| #WOLFBOOT_PARTITION_SIZE?=0x18000 | ||
| #WOLFBOOT_PARTITION_BOOT_ADDRESS?=0xFC00 | ||
| #WOLFBOOT_PARTITION_UPDATE_ADDRESS?=0x27C00 | ||
| #WOLFBOOT_PARTITION_SWAP_ADDRESS?=0x3FC00 | ||
|
|
||
| # Vorago SDK common drivers directory | ||
| VORAGO_SDK_DIR?=$(PWD)/../VA416xx_SDK/ | ||
|
|
||
| # Use Vorago FRAM driver | ||
| USE_HAL_SPI_FRAM=1 | ||
|
|
||
| #CFLAGS_EXTRA+=-DWOLFBOOT_EDAC_RAM_SCRUB=1000 | ||
| #CFLAGS_EXTRA+=-DWOLFBOOT_EDAC_ROM_SCRUB=125 | ||
|
|
||
| # Optionally restore clock to heart-beat oscillator after boot | ||
| #CFLAGS_EXTRA+=-DWOLFBOOT_RESTORE_CLOCK | ||
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.