-
Notifications
You must be signed in to change notification settings - Fork 145
Self update tweaks #711
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
Self update tweaks #711
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
ebdc82f
add build option to skip verification of boot image
bigbrett f2095be
add monoloithic self-update test case and docs
bigbrett d16fe4f
Fix self-update erase before write in boot partition, add monolithic …
bigbrett f45546f
add new AURIX monolithic self update config
bigbrett dd2d54b
add example to monolithic doc section
bigbrett caaba83
Document WOLFBOOT_SKIP_BOOT_VERIFY
bigbrett 754a9ba
code review fixes
bigbrett 3d2c9c5
fix typo in readme
bigbrett 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
47 changes: 47 additions & 0 deletions
47
config/examples/aurix-tc375-hsm-monolithic-update-wolfHSM-certs-rsa4096.config
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,47 @@ | ||
| ARCH?=AURIX_TC3 | ||
| TARGET?=aurix_tc3xx | ||
| AURIX_TC3_HSM=1 | ||
| SIGN?=RSA4096 | ||
| HASH?=SHA256 | ||
| DEBUG?=0 | ||
| WOLFBOOT_VERSION?=1 | ||
| V?=0 | ||
| SPMATH?=1 | ||
| RAM_CODE?=1 | ||
| EXT_FLASH?=1 | ||
| EXT_BOOT=1 | ||
| EXT_UPDATE=1 | ||
| EXT_SWAP=1 | ||
| FLAGS_INVERT=1 | ||
| FLASH_MULTI_SECTOR_ERASE=1 | ||
| DEBUG_UART=1 | ||
| PRINTF_ENABLED=1 | ||
|
|
||
| # wolfHSM options | ||
| WOLFHSM_SERVER=1 | ||
|
|
||
| # Cert chain options | ||
| CERT_CHAIN_VERIFY=1 | ||
|
|
||
| # RSA4096 cert chains need the larger header and stack | ||
| WOLFBOOT_HUGE_STACK=1 | ||
| IMAGE_HEADER_SIZE=4096 | ||
|
|
||
| # self-header feature (persist header in external flash) | ||
| WOLFBOOT_SELF_HEADER=1 | ||
| SELF_HEADER_EXT=1 | ||
|
|
||
| # Monolithic updates | ||
| SELF_UPDATE_MONOLITHIC=1 | ||
|
|
||
| # Enable wolfBoot hooks | ||
| WOLFBOOT_HOOK_LOADER_POSTINIT=1 | ||
| WOLFBOOT_HOOKS_FILE=../wolfBoot-callbacks/wolfboot_hooks.c | ||
|
|
||
| ARCH_FLASH_OFFSET=0x80028000 | ||
| WOLFBOOT_SECTOR_SIZE=0x4000 | ||
| WOLFBOOT_PARTITION_SIZE=0x30000 | ||
| WOLFBOOT_PARTITION_BOOT_ADDRESS=0x80038000 | ||
| WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x80068000 | ||
| WOLFBOOT_PARTITION_SWAP_ADDRESS=0x80098000 | ||
| WOLFBOOT_PARTITION_SELF_HEADER_ADDRESS=0x8009C000 |
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,20 @@ | ||
| ARCH=sim | ||
| TARGET=sim | ||
| SIGN?=ED25519 | ||
| HASH?=SHA256 | ||
| WOLFBOOT_SMALL_STACK?=0 | ||
| SPI_FLASH=0 | ||
| DEBUG=1 | ||
| RAM_CODE=1 | ||
| SELF_UPDATE_MONOLITHIC=1 | ||
| WOLFBOOT_VERSION=1 | ||
|
|
||
| # sizes should be multiple of system page size | ||
| WOLFBOOT_PARTITION_SIZE=0x40000 | ||
| WOLFBOOT_SECTOR_SIZE=0x1000 | ||
| WOLFBOOT_PARTITION_BOOT_ADDRESS=0x20000 | ||
| 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
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
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.