-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #348 from jpbland1/nvm-encrypt-configs
add configs for more NVM_FLASH_WRITEONCE combinations and fix powerfail problems
- Loading branch information
Showing
4 changed files
with
174 additions
and
10 deletions.
There are no files selected for viewing
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
24 changes: 24 additions & 0 deletions
24
config/examples/sim-encrypt-nvm-writeonce-flags-home-invert-update.config
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
ARCH=sim | ||
TARGET=sim | ||
SIGN?=ED25519 | ||
HASH?=SHA256 | ||
WOLFBOOT_SMALL_STACK=1 | ||
SPI_FLASH=0 | ||
EXT_FLASH=1 | ||
ENCRYPT=1 | ||
ENCRYPT_WITH_AES128=1 | ||
DEBUG=1 | ||
# it should be multiple of system page size | ||
NVM_FLASH_WRITEONCE=1 | ||
FLAGS_HOME=1 | ||
ALLOW_DOWNGRADE?=0 | ||
FLAGS_INVERT?=1 | ||
FILL_BYTE?=0x00 | ||
WOLFBOOT_PARTITION_SIZE=0x40000 | ||
WOLFBOOT_SECTOR_SIZE=0x1000 | ||
WOLFBOOT_PARTITION_BOOT_ADDRESS=0x20000 | ||
# if on external flash, it should be multiple of system page size | ||
WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x00000 | ||
WOLFBOOT_PARTITION_SWAP_ADDRESS=0x40000 | ||
# required for keytools | ||
WOLFBOOT_FIXED_PARTITIONS=1 |
21 changes: 21 additions & 0 deletions
21
config/examples/sim-encrypt-nvm-writeonce-flags-home-update.config
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
ARCH=sim | ||
TARGET=sim | ||
SIGN?=ED25519 | ||
HASH?=SHA256 | ||
WOLFBOOT_SMALL_STACK=1 | ||
SPI_FLASH=0 | ||
EXT_FLASH=1 | ||
ENCRYPT=1 | ||
ENCRYPT_WITH_AES128=1 | ||
DEBUG=1 | ||
# it should be multiple of system page size | ||
NVM_FLASH_WRITEONCE=1 | ||
FLAGS_HOME=1 | ||
WOLFBOOT_PARTITION_SIZE=0x40000 | ||
WOLFBOOT_SECTOR_SIZE=0x1000 | ||
WOLFBOOT_PARTITION_BOOT_ADDRESS=0x20000 | ||
# if on external flash, it should be multiple of system page size | ||
WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x00000 | ||
WOLFBOOT_PARTITION_SWAP_ADDRESS=0x40000 | ||
# required for keytools | ||
WOLFBOOT_FIXED_PARTITIONS=1 |
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