Commit Graph

1978 Commits (a04f234b85825f7f2a6d469cbb2225311b49f65c)

Author SHA1 Message Date
Daniele Lacamera 4f50f423a8 Take into account bank swapping on erase.
Fixes update demo.
2024-07-09 10:22:42 -07:00
Daniele Lacamera 107247f0fb Fix xmodem packet number sync 2024-07-09 10:22:42 -07:00
Daniele Lacamera 9d563ae60f Added XMODEM update 2024-07-09 10:22:42 -07:00
Daniele Lacamera aff2072694 Demo app: added test, benchmark, other gadgets 2024-07-09 10:22:42 -07:00
Daniele Lacamera 34d5ec15ea Fixed UART devices in NS-mode, fixed H5 clock 2024-07-09 10:22:42 -07:00
Daniele Lacamera 059868ec45 STM32H5 uart support, work in progress 2024-07-09 10:22:42 -07:00
David Garske 78c9e11203
Merge pull request #468 from danielinux/otpgen
Add command line tool to generate otp.bin
2024-07-09 10:21:08 -07:00
Daniele Lacamera c6586f2d85 test: Delete keystore after removing private key 2024-07-09 18:59:17 +02:00
Daniele Lacamera 4f5e168350 Moved keystore.c overwrite check 2024-07-09 18:03:51 +02:00
Daniele Lacamera 46f0d87946 test: revert keystore.c overwrite check 2024-07-09 17:42:58 +02:00
Daniele Lacamera 8f41132ca3 Added more verbosity to key import failure error 2024-07-09 16:31:18 +02:00
Daniele Lacamera 398c660827 External key test: cleanup keystore.c before importing 2024-07-09 16:01:13 +02:00
Daniele Lacamera b59f11bc88 Integrated documentation for otpgen 2024-07-09 09:35:14 +02:00
Daniele Lacamera 2082bd003c Avoid to silently overwrite keystore.c 2024-07-09 09:28:40 +02:00
Daniele Lacamera 213315507c Add command line tool to generate otp.bin 2024-07-09 08:42:33 +02:00
David Garske 626fcf01b9
Merge pull request #466 from danielinux/delta_base_version_fix
Bugfix: delta update not rejecting wrong base_version
2024-07-05 11:02:24 -07:00
David Garske 7b5012b374 Cleanups from testing. 2024-07-05 09:44:59 -07:00
Daniele Lacamera 32d6592e50 Fixed regression on powerfail resume 2024-07-04 18:19:02 +02:00
Daniele Lacamera 68f3bfad58 Take into account resumed delta updates due to powerfail events 2024-07-04 17:31:17 +02:00
Daniele Lacamera 929f9d3343 Fix base_version mismatch 2024-07-04 17:27:04 +02:00
Daniele Lacamera 597ca3a406 Added test to reproduce "wrong delta base version" bug 2024-07-04 17:14:36 +02:00
David Garske 40ccd9ea22
Merge pull request #464 from MulattoKid/flexspi_safe
Fix DCache not being invalidated after erasing/writing to flash on i.MX RT10xx
2024-07-03 15:11:16 -07:00
David Garske 83359a2b1e Added RT1062 EVKB support and tested on real hardware. Updated documentation. 2024-07-03 14:58:04 -07:00
David Garske de9a3cd0bf Fix with PKA=1 were fsl_cache is added twice. 2024-07-03 14:52:16 -07:00
David Garske f60de60195
Merge pull request #465 from danielinux/azure-keyvault-docs
Added documentation for signing with Azure Key Vault
2024-07-03 13:25:43 -07:00
David Garske 06c5280211 Minor doc fixes. 2024-07-03 11:48:17 -07:00
Daniele Lacamera 57796c25ac Added documentation for signing with Azure Key Vault 2024-07-03 19:46:00 +02:00
Daniel Fedai Larsen 74270cdc56 Add fsl_cache to test-app 2024-07-03 07:44:54 +02:00
Daniel Fedai Larsen 9526fbb680 Fix compile error and clean up 2024-07-03 07:33:31 +02:00
Daniel Fedai Larsen b7fc25c0a3 Invalidate cache after flash_write/erase and disable+enable IRQs 2024-07-01 12:55:27 +02:00
David Garske 918fdc57fd Added keygen `--der` option to allow ECC private key as ASN.1/DER. Added sign tool ECC key load support for ASN.1/DER private key (default is raw pub x/y, priv d). Refactored sign tool RSA/ECC logic to consolidate code and allow proper "auto" detection for different RSA key sizes. 2024-06-26 20:11:04 +02:00
Marco Oliverio 0f8f30d6b8
Merge pull request #457 from danielinux/otp-regressions
Fix build OTP options
2024-06-26 12:07:02 +02:00
Daniele Lacamera 52e62688e0 [QSPI] Fixed OCTOSPI base address on stm32u5 2024-06-26 12:01:46 +02:00
Daniele Lacamera 24fdeb54d4 [QSPI] Fixed registers and pin config on STM32U5 2024-06-26 11:52:05 +02:00
David Garske 1967cc2670 STM32U5: Only try and invalidate cache if enabled. 2024-06-25 21:57:54 +02:00
David Garske a92c1b9ad9 STM32U5 cache support. Including cache invalidate on `nvm_select_fresh_sector`. ZD 18210 2024-06-25 18:12:47 +02:00
David Garske 6f83a798b3
Merge pull request #456 from rizlik/backport_debug0
qemu x86 fsp: fix support for DEBUG=0 build; fix conditional OTP compilation in Makefile
2024-06-20 08:22:57 -07:00
Marco Oliverio a413cc11ef mptable: abide GCC diagnostic false positive 2024-06-19 09:47:13 +02:00
Marco Oliverio dbdb08b3eb x86: misc fixes
fix various issues found by clangd-static-analyzer
2024-06-19 09:47:06 +02:00
Marco Oliverio 829f7b1705 fix: add image alignment costraints 2024-06-19 09:47:06 +02:00
Daniel Pouzzner 441200f469 fix: support DEBUG=0 build
* build lib/wolfssl/wolfcrypt/src/logging.o unconditionally,
* gate debug printing in do_tpm_selftest() appropriately,
* initialize top_address in src/boot_x86_fsp.c:start() to fix -Wmaybe-uninitialized,
* and add __attribute__((used)) to static src/x86/exceptions.c:common_exception_handler() and _timer_handler() implementations to accommodate asm-only calling;
* fix parallel make: add dependency of stage1/loader_stage1.bin on wolfboot.elf.
* add -ffreestanding -static flags to avoid gcc compiler optimize strings functions

Co-authored-by: Daniel Pouzzner <douzzer@wolfssl.com>
2024-06-19 09:47:06 +02:00
Daniele Lacamera 391e8d05d8 Fix build OTP options
- ARMORED option is not needed in otp_primer
- do not attempt to compile otp_primer if the option is not declared
2024-06-18 15:00:54 +02:00
David Garske ca3e8dc990
Merge pull request #454 from danielinux/armv8_ns_vtor
Set VTOR_NS instead of VTOR upon staging when TrustZone is enabled
2024-06-04 08:55:12 -07:00
Daniele Lacamera 9575bbc725 Set VTOR_NS instead of VTOR upon staging [TZEN] 2024-06-04 17:35:53 +02:00
David Garske 53a7f643b2
Merge pull request #451 from danielinux/pkcs11-fix-non-ecc-build
Fix building PKCS11 TrustZone with any authentication algorithm
2024-05-29 08:56:42 -07:00
Daniele Lacamera 7b3328ff2f Fix regression with ECC build 2024-05-29 15:18:19 +02:00
Daniele Lacamera 4dda0571c7 Fix building PKCS11 Trustzone with any auth algo 2024-05-29 15:05:56 +02:00
David Garske 971cbe0ecc
Merge pull request #449 from danielinux/stm32h7_otp
Support for OTP Flash as trust anchor for keystore
2024-05-24 16:34:29 -07:00
Daniele Lacamera 8834e344a9 Fixed build error due to missing keystore.c in otp 2024-05-24 17:01:01 +02:00
Daniele Lacamera 9b378d005b Reviewer requests: fix portability of "packed"
+ separate object for hal in otp-keystore-primer
2024-05-24 16:42:07 +02:00