Brett Nicholas
2d6308ec2c
- Infineon TC3xx support
...
- fix (existing) unused variable compiler warnings
- documentation updates
- add multi-sector erase option
2024-07-31 09:22:31 +02:00
Daniele Lacamera
d390873096
Fix padding in test
2024-07-18 10:15:50 +02:00
John Bland
6c3940fafc
refactor final step of powerfail safe update and add
...
emergency fallback test
2024-07-10 16:58:23 -04:00
Daniele Lacamera
32d6592e50
Fixed regression on powerfail resume
2024-07-04 18:19:02 +02:00
Daniele Lacamera
597ca3a406
Added test to reproduce "wrong delta base version" bug
2024-07-04 17:14:36 +02:00
David Garske
027c6847e5
Merge pull request #443 from wolfSSL/x86_fsp_backport
...
x86 fsp backport
2024-05-09 07:46:56 -07:00
jordan
12d0bb9b81
Cleanup renode ext_LMS and ext_XMSS tests.
2024-05-07 19:25:18 +02:00
jordan
6029ddbf07
Update renode tests for LMS, XMSS, ext_LMS, ext_XMSS.
2024-05-07 19:25:18 +02:00
Marco Oliverio
53d012f0b8
x86_fsp: test_qemu.sh: allow grep to return error when checking output
2024-04-29 10:01:20 +02:00
Marco Oliverio
943edf93e7
tools: move tools/x86_fsp in tools/scripts/x86_fsp
2024-04-29 09:53:49 +02:00
Marco Oliverio
ac1465ed20
x86_fsp: qemu: move fsp qemu script in tools/x86_fsp/qemu folder
2024-04-29 09:53:49 +02:00
Marco Oliverio
d072f447e6
x86_fsp: qemu: remove redundant and unused qemu launch scripts
2024-04-29 09:53:49 +02:00
Marco Oliverio
bb7d90cbcd
x86: qemu: improve test_qemu.sh script, add it to github action
2024-04-24 10:50:50 +02:00
Tesfa Mael
371c03e398
Enhance QEMU scripts
2024-04-24 10:50:50 +02:00
Daniele Lacamera
bfe9e4fdf9
Added update+powerfail test for DISABLE_BACKUP
2024-02-22 16:27:59 +01:00
jordan
c31a2138ee
XMSS wolfBoot support: add renode-nrf52 test case.
2023-11-06 14:31:05 +01:00
John Bland
f4ea7784bf
add double fallback to update powerfail test since
...
NVM_FLASH_WRITEONCE can powerfail after FLAGS_FINAL and TESTING partition states have been set
2023-10-13 14:30:04 +02:00
John Bland
43453d4d18
fix extra fallback due to non-triggered power fail
2023-10-13 14:30:04 +02:00
John Bland
ffc7a435e5
add powerfail during final sector erase, exposing
...
the problems of losing the encryption key when the power fails before the key can be written back, failing to select the correct NVM_FLASH_WRITEONCE sector when a sector is corrupt, and losing the testing state when the power fails before the partition state can be set. these issues are addressed in the next commit
2023-10-13 14:30:04 +02:00
Marco Oliverio
5191828a77
tools/scripts/qemu: start QEMU with gdb server when env DEBUG = 1
2023-09-28 13:12:26 +02:00
Marco Oliverio
e8907a7dc2
tools/script: use env variable for SING and HASH algos
2023-09-28 13:12:26 +02:00
Daniele Lacamera
0babaae04a
Stage1: allow signing with ecc384/sha384
2023-09-19 09:33:16 +00:00
jordan
e23d450e45
LMS wolfBoot support.
2023-09-06 07:57:10 +02:00
David Garske
712a543c9d
Fixes and improvements for iMXRT1050 QSPI.
2023-08-21 11:08:48 +02:00
John Bland
0361629ded
add first sector powerfail to the powerfail-resume
...
test, this will cause the test to fail since a power failure here means the fw_size of boot will be missing
2023-08-15 14:43:51 -04:00
John Bland
a774da4821
fix powerfail test to actually trigger, previously
...
the test has been doing nothing but trigger the update and then fallback over and over again
2023-08-15 14:03:33 -04:00
David Garske
db032d1461
Merge pull request #330 from danielinux/stage1_verify
...
x86 Stage1: add verification of components
2023-08-10 13:52:24 -07:00
David Garske
7190392245
Simulator fixes and support for using MacOS:
...
* Added simulator support for Mac.
* Fix for simulator to properly assemble wolfboot.bin + signedtestapp + update + swap.
* Fixes for handling 64-bit assigned mmap virtual addresses. Added hal_flash_write and hal_flash_erase support for 64-bit address using uintptr_t. Enabled if platform is 64-bit and `FORCE_32BIT` is not defined
* Fix simulator conflict with src/libwolfboot.o object in test-app.
* Cleanup test-app linker flags.
2023-08-07 20:54:18 +02:00
Daniele Lacamera
2144057da8
Added option for authentication in stage1
2023-07-26 17:54:35 +02:00
Marco Oliverio
c4ec5eef35
x86: support Intel FSP (TigerLake and QEMU)
2023-07-24 18:12:32 +00:00
Daniele Lacamera
bc5831747c
Added extra clean round at the end of the powerfail test
2023-05-15 11:42:22 +02:00
John Bland
b94249f8f7
correctly identify a forward powerfail vs a revert
...
powerfail and add an exception to wolfBoot_delta_update when a revert gets
interrupted since the version will change in the middle of the update process
2023-04-22 06:13:53 +02:00
John Bland
14ec346e1c
before calling wolfBoot_delta_update, check if the
...
0th sector has been changed with the update partition still being in
IMG_STATE_UPDATING state. the state still being IMG_STATE_UPDATING means that a
delta update started and that the version may have been switched over, in which
case wolfBoot_current_firmware_version() >= wolfBoot_update_firmware_version()
no longer tells us if we need to perform an inverse operation on it's own.
also removes part of the update powerfail test that does checks for the
previous version without triggering a rollback
2023-04-21 20:31:58 +02:00
Daniele Lacamera
57a8fb30f1
Added test scripts
2023-03-21 18:03:38 +01:00
John Bland
92bd8b6757
update flashing documentation and update scripts for the stm32u5
2023-01-31 09:26:20 -08:00
Daniele Lacamera
4ee867b2dd
Fixes for stm32wb test
...
- added img->hdr_ok flag when opening external flash image
- correct return value for uart_flash ext_flash functions
- correct image size in prepare_encrypte_update.sh
2022-12-16 17:49:46 +01:00
Daniele Lacamera
186027b122
Github workflows: new test scripts
...
Moved most of the commands inside the renode container.
Updated docker image to compile and run all tools, wolfboot and test
image within the renode container.
2022-12-13 16:45:57 +01:00
Daniele Lacamera
a6fdec3901
self-encrypt prototype; tested on stm32l0
2022-09-21 18:49:52 +02:00
Daniele Lacamera
957b9d3c8c
Initial support for delta-encrypted updates
2022-05-23 12:00:57 +02:00
Daniele Lacamera
3815067fa0
Fixed SIGN=NONE. Improved tests
2022-04-08 13:04:26 +02:00
Daniele Lacamera
3f2eec8299
Add github actions for renode tests on docker
2022-03-03 16:40:46 +01:00
Daniele Lacamera
7b4054ab2c
Adjusted after review
2022-02-11 12:51:55 +01:00
Daniele Lacamera
d2482d97fa
Added script renode-test-all
2022-02-11 10:48:47 +01:00
David Garske
5463105eab
Adds STM32U5 support. Thank you ST.
2022-01-24 00:07:03 -08:00
Daniele Lacamera
8ffdf1997b
Fixed scripts by adding explicit "--ecc256" argument
2021-10-07 12:25:20 +02:00
David Garske
9d3f763354
Fix for scripts to detect and use C version of signing tool if available. Updated instructions to use correct address. Minor cleanups.
2020-09-30 11:45:53 -07:00
Daniele Lacamera
fd0b13079a
Added support for dual bank swap in stm32l5
2020-09-09 14:26:30 -07:00
Daniele Lacamera
5614c75f1e
Fixed address alignment, TZEN=0 mode not yet working
2020-09-09 14:26:30 -07:00
Daniele Lacamera
24538d19d9
Relocate temporary key slot to the end of the partition
2020-08-11 15:32:47 +02:00
Daniele Lacamera
f3f27ae2cb
Fixed ChaCha20 IV usage/setting. Test/docs updated.
2020-06-18 11:12:01 +02:00