Skip to content

Commit 8705eb1

Browse files
committed
add sim rsa4096 config, rename sim config files
1 parent 3747cc6 commit 8705eb1

5 files changed

+67
-8
lines changed

config/examples/sim-wolfHSM-client-certchain.config renamed to config/examples/sim-wolfHSM-client-certchain-ecc.config

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ CERT_CHAIN_VERIFY=1
1414
# for actual length
1515
IMAGE_HEADER_SIZE=2048
1616

17-
# If SIGN=RSA4096, use the below options
18-
#WOLFBOOT_HUGE_STACK=1
19-
#IMAGE_HEADER_SIZE=4096
20-
2117
# wolfHSM options
2218
WOLFHSM_CLIENT=1
2319

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
ARCH=sim
2+
TARGET=sim
3+
SIGN?=RSA4096
4+
HASH?=SHA256
5+
WOLFBOOT_SMALL_STACK?=0
6+
SPI_FLASH=0
7+
DEBUG=0
8+
SPMATH=1
9+
10+
# Cert chain options
11+
CERT_CHAIN_VERIFY=1
12+
13+
# RSA4096 cert chains need the larger header and stack
14+
WOLFBOOT_HUGE_STACK=1
15+
IMAGE_HEADER_SIZE=4096
16+
17+
# wolfHSM options
18+
WOLFHSM_CLIENT=1
19+
20+
# sizes should be multiple of system page size
21+
#WOLFBOOT_PARTITION_SIZE=0x40000
22+
WOLFBOOT_PARTITION_SIZE=0x100000
23+
WOLFBOOT_SECTOR_SIZE=0x1000
24+
WOLFBOOT_PARTITION_BOOT_ADDRESS=0x80000
25+
# if on external flash, it should be multiple of system page size
26+
#WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x100000
27+
#WOLFBOOT_PARTITION_SWAP_ADDRESS=0x180000
28+
WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x180000
29+
WOLFBOOT_PARTITION_SWAP_ADDRESS=0x280000
30+
31+
# required for keytools
32+
WOLFBOOT_FIXED_PARTITIONS=1
33+
34+
# For debugging XMALLOC/XFREE
35+
#CFLAGS_EXTRA+=-DWOLFBOOT_DEBUG_MALLOC
File renamed without changes.

config/examples/sim-wolfHSM-server-certchain.config renamed to config/examples/sim-wolfHSM-server-certchain-ecc.config

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ CERT_CHAIN_VERIFY=1
1414
# for actual length
1515
IMAGE_HEADER_SIZE=2048
1616

17-
# If SIGN=RSA4096, use the below options
18-
#WOLFBOOT_HUGE_STACK=1
19-
#IMAGE_HEADER_SIZE=4096
20-
2117
# wolfHSM options
2218
WOLFHSM_SERVER=1
2319

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
ARCH=sim
2+
TARGET=sim
3+
SIGN?=RSA4096
4+
HASH?=SHA256
5+
WOLFBOOT_SMALL_STACK?=0
6+
SPI_FLASH=0
7+
DEBUG=0
8+
SPMATH=1
9+
10+
# Cert chain options
11+
CERT_CHAIN_VERIFY=1
12+
13+
# RSA4096 cert chains need the larger header and stack
14+
WOLFBOOT_HUGE_STACK=1
15+
IMAGE_HEADER_SIZE=4096
16+
17+
# wolfHSM options
18+
WOLFHSM_SERVER=1
19+
20+
# sizes should be multiple of system page size
21+
WOLFBOOT_PARTITION_SIZE=0x200000
22+
WOLFBOOT_SECTOR_SIZE=0x1000
23+
WOLFBOOT_PARTITION_BOOT_ADDRESS=0x80000
24+
# if on external flash, it should be multiple of system page size
25+
WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x280000
26+
WOLFBOOT_PARTITION_SWAP_ADDRESS=0x480000
27+
28+
# required for keytools
29+
WOLFBOOT_FIXED_PARTITIONS=1
30+
31+
# For debugging XMALLOC/XFREE
32+
#CFLAGS_EXTRA+=-DWOLFBOOT_DEBUG_MALLOC

0 commit comments

Comments
 (0)