Skip to content

Commit 8d92547

Browse files
committed
Added test for sim-encrypt-delta-nvm-writeonce
1 parent 9b12acf commit 8d92547

File tree

2 files changed

+59
-0
lines changed

2 files changed

+59
-0
lines changed

.github/workflows/test-powerfail-simulator.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,3 +380,39 @@ jobs:
380380
- name: Run update-revert test with power failures (AES128 NVM_WRITEONCE FLAGS_HOME FLAGS_INVERT)
381381
run: |
382382
tools/scripts/sim-update-powerfail-resume.sh
383+
384+
# TEST with encryption (aes128) and NVM_WRITEONCE and DELTA updates
385+
- name: make clean
386+
run: |
387+
make distclean
388+
- name: Select config with encrypted updates
389+
run: |
390+
cp config/examples/sim-encrypt-delta-nvm-writeonce-update.config .config
391+
392+
- name: Build tools
393+
run: |
394+
make -C tools/keytools && make -C tools/bin-assemble
395+
396+
- name: Build wolfboot.elf
397+
run: |
398+
make clean && make test-sim-external-flash-with-enc-delta-update
399+
400+
- name: Run sunny day update test (AES128 DELTA)
401+
run: |
402+
tools/scripts/sim-sunnyday-update.sh
403+
404+
- name: Rebuild wolfboot.elf
405+
run: |
406+
make clean && make test-sim-external-flash-with-enc-delta-update
407+
408+
- name: Run update-revert test (AES128 DELTA)
409+
run: |
410+
tools/scripts/sim-update-fallback.sh
411+
412+
- name: Rebuild wolfboot.elf
413+
run: |
414+
make clean && make test-sim-external-flash-with-enc-delta-update
415+
416+
- name: Run update-revert test with power failures (AES128 DELTA)
417+
run: |
418+
tools/scripts/sim-update-powerfail-resume.sh
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
ARCH=sim
2+
TARGET=sim
3+
SIGN?=ED25519
4+
HASH?=SHA256
5+
WOLFBOOT_SMALL_STACK=1
6+
SPI_FLASH=0
7+
EXT_FLASH=1
8+
ENCRYPT=1
9+
ENCRYPT_WITH_AES128=1
10+
DEBUG=1
11+
DELTA_UPDATES=1
12+
NVM_FLASH_WRITEONCE=1
13+
14+
# sizes should be multiple of system page size
15+
WOLFBOOT_PARTITION_SIZE=0x40000
16+
WOLFBOOT_SECTOR_SIZE=0x1000
17+
WOLFBOOT_PARTITION_BOOT_ADDRESS=0x20000
18+
# if on external flash, it should be multiple of system page size
19+
WOLFBOOT_PARTITION_UPDATE_ADDRESS=0x00000
20+
WOLFBOOT_PARTITION_SWAP_ADDRESS=0x40000
21+
22+
# required for keytools
23+
WOLFBOOT_FIXED_PARTITIONS=1

0 commit comments

Comments
 (0)