Commit Graph

196 Commits (d2811b2538149ecff7a8ce150f58d9e9f024b51e)

Author SHA1 Message Date
Daniele Lacamera 30a1f67e43
Added 32bit simulator via TARGET=sim FORCE_32BIT=1 (#485)
* Added 32bit simulator via TARGET=sim FORCE_32BIT=1

Tests can now run on 32bit simulator (e.g. to match XMALLOC fixed
sizes with sp_math and WOLFBOOT_SMALL_STACK).

* Added draft for new workflow: test simulator with different memory config

* Fix 64bit, SMALL_STACK xmalloc sizes

* Test defaults to SPMATH

* Fixed test: defaults to spmath. Added RSA tests (failing)

* Fixed RSA allocation sizes for 64bit build

* Added 64bit fastmath test (failing)

* Fixed ecc_point size for 64bit builds (FASTMATH)

* simulator config: use SPMATH by default

* Attempt to fix i386 libc dep in workflow

* Added HUGE_STACK to silence warning in FASTMATH+RSA4096 tests
2024-08-09 06:46:15 -07:00
Daniel Fedai Larsen e0126ff4e8 Add support for building for HAB for i.MX RT targets 2024-07-22 08:14:33 +02:00
David Garske f4935268fa
Merge pull request #460 from danielinux/stm32u5_spi
[QSPI] Fixed registers and pin config on STM32U5
2024-07-19 07:33:01 -07:00
David Garske 3444c47fdb * Added support for RX65N and RX72N with native Makefile and RX ELF GCC compiler.
* Added initialization of the clocks and UART driver.
   - wolfBoot uses on chip high speed oscillator (HOCO) at (120MHz RX65N and 240Mhz for RX72N).
* Added RX RSPI and QSPI driver support with external SPI flash
* Improve documentation and fix spelling errors.
* Added .srec (s-record) format support
* Added RX TSIP support for ECDSA (requires https://github.com/wolfSSL/wolfssl/pull/7685).
* Allow custom implementation of `get_trailer_at`, `set_trailer_at` and `set_partition_magic` using `CUSTOM_PARTITION_TRAILER`
2024-07-17 06:08:31 +02:00
David Garske ace95cc2dc Added instructions for STM32H5 demo to `docs/flash-OTP.md`. 2024-07-09 10:27:52 -07:00
David Garske 7b5012b374 Cleanups from testing. 2024-07-05 09:44:59 -07: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
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
Marco Oliverio bf55ac1ab5 x86_efi: fixes
- do not use a custom section for the keystore as it will not be loaded in the
UEFI env
- remove and disable WOLFBOOT_LOAD_ADDRESS
- copy .rodata from .elf to .efi as the new version of gnu-efi ld scripts do
not merge .rodata into .data anymore
- fix typo in compile_efi_linux.sh
2024-05-20 17:03:16 +02:00
Daniele Lacamera 84282c9bb1 Added full setup on stm32h5 2024-05-20 11:00:32 +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
Daniele Lacamera 3ec982109c STM32H5: added support for TrustZone
- Unified TZ support for STM32L5, STM32H5, STM32U5
- Fixed/added example configuration files
- Expanded documentation
- Added new configurations to automated tests
2024-05-09 16:33:40 +02:00
Daniele Lacamera fbba5d8370 Added build test for stm32h5-dualbank 2024-05-09 16:28:33 +02:00
Daniele Lacamera 81187ffa53 STM32H5: DUAL BANK update 2024-05-09 16:28:20 +02:00
Daniele Lacamera 19fdbb8998 Initial support for STM32H5, sunny day boot
STM32H5: Tested sunny day boot

- Temporarily decreased clock speed to 125MHz
- Test app working
- Re-mapped Nucleo board LEDs
- Tested on STM32H563ZI
2024-05-09 16:28:06 +02:00
jordan 338ab1e357 Update stm32c0-lms to use LMS. 2024-05-07 19:25:18 +02:00
jordan 726cd28ea1 Update PQ docs, and fix spelling errors. 2024-05-07 19:25:18 +02:00
jordan 92e048a429 Update stm32c0-lms to use ext_LMS for now. 2024-05-07 19:25:18 +02:00
Marco Oliverio 53312441f6 config: examples: kontron vx3060 s2
- use sha256 as hashing algo
- enable measure_boot and tpm seal
2024-04-29 09:53:49 +02:00
Marco Oliverio 6c5efe246f config: examples: use ecc256 and sha256 for basic QEMU FSP example 2024-04-29 09:53:49 +02:00
Marco Oliverio 4e99075e85 x86_fsp: remove unused configuration 2024-04-29 09:53:49 +02:00
Marco Oliverio 22b1f3efa1 kontron: fix WOLFBOOT load address to not touch memory <1408MB 2024-04-29 09:53:49 +02:00
Marco Oliverio 62c938f99d x86: tgl: remove binary FSP_S upd parameters
The parameters are configured in fsp_set_silicon_cfg
2024-04-29 09:53:49 +02:00
Daniel Fedai Larsen d4df974efb Disable DCACHE when using PKA for CI tests 2024-04-29 07:49:22 +02:00
Marco Oliverio 84350a9e96 x86_fsp: add QEMU test app (ELF 64bit) 2024-04-24 10:50:50 +02:00
Marco Oliverio c4e2afd75f kontron: update default config to load wolfboot at 1408 MB 2024-04-23 10:41:25 +02:00
David Garske 1db41896e2
Merge pull request #431 from danielinux/update-wolfssl-v5.7.0
Updated submodules: wolfSSL-v5.7.0 + wolfTPM latest
2024-04-11 17:00:27 +02:00
Daniele Lacamera 737ecaf338 wolfBoot partition size on stm32c0-lms: 10KB
With gcc < 13, LMS setup won't fit in 8KB (overflow of 32B).
2024-04-11 11:45:42 +02:00
Daniele Lacamera 655ba461ac Added more configuration options for stm32c0 2024-04-11 11:27:56 +02:00
Daniele Lacamera caf9577613 Switch STM32C0 default config to ed25519 2024-04-10 13:08:20 +02:00
David Garske bc0d909d5c Fix for SP ASM (this MCX A Cortex-M33 apparently doesn't have `UMAAL` or is not compatible). Removed the NVM flash write once (not required). 2024-03-29 13:33:34 -07:00
David Garske 49699bcc03 Add example for larger wolfBoot partition scheme (all partitions 40KB). Added instructions for debugging. 2024-03-29 11:39:40 -07:00
Daniele Lacamera dfc53df909 Added support for NXP MCXA153 2024-03-29 10:25:08 +01:00
David Garske e8ce553ce8 Change the STM32U5 default image header size to resolve vector table alignment issues with the Cortex-M33. ZD 17661 2024-03-15 21:10:43 +01:00
Daniele Lacamera 2500266c7f Fixed sector size for SAME51
According to datasheet DS60001507, section 25.6.2:

"The NVM is organized into two banks, each bank is organized into blocks, where each block contains
sixteen pages and page size is 512 bytes."
2024-03-11 12:25:57 +01:00
Daniele Lacamera a9ba39b07e Added more tests 2024-02-26 12:34:55 +01:00
Daniele Lacamera bfe9e4fdf9 Added update+powerfail test for DISABLE_BACKUP 2024-02-22 16:27:59 +01:00
David Garske 11017d8af2
Merge pull request #405 from MulattoKid/mimxrt1040evk_support
Add support for MIMXRT1042XJM5B
2024-02-15 15:02:09 -08:00
Daniele Lacamera c70c8a470d Added support for Microchip SAM E51 2024-02-15 17:30:11 +01:00
Daniel Fedai Larsen 0f25c80114 Add support for MIMXRT1042XJM5B 2024-02-13 11:50:21 +01:00
David Garske 57b4ee2bbc Adjust NXP T1024 flash layout, so existing device tree location does not have to move. 2024-02-12 19:54:12 +01:00
David Garske dd11fad566
Merge pull request #385 from danielinux/test-delta
Improve delta tests + fix delta+encrypt bug
2023-11-06 07:52:04 -08:00
jordan 79aadb5cc1 XMSS wolfBoot support. 2023-11-06 14:31:05 +01:00
Daniele Lacamera 8d92547f1e Added test for sim-encrypt-delta-nvm-writeonce 2023-11-04 18:53:08 +01:00
David Garske 758eda1ad4 Add support for sealing/unsealing a secret with auth. 2023-10-25 13:24:27 +02:00
David Garske a6fc952328 Improve C0/G0 secure hide protection feature documentation. 2023-10-13 14:34:01 +02:00
David Garske c4dfa3f986 PR cleanups based on peer review. Fixes to support < 10KB wolfBoot for either RSA2048 or ED25519. Partition scheme allows 10KB application partition or (6KB actual due to NVM write once). Made space using NO_MPU=1, RAM_CODE=0, USE_SLOW_SHA256 and !FLASH_SECURABLE_MEMORY_SUPPORT. 2023-10-13 14:34:01 +02:00
Bill Phipps a1d584b838 STM32C0 support 2023-10-13 14:34:01 +02:00
David Garske 3e8d6fb061 Added NXP IFC NOR Flash erase/write. 2023-10-06 15:28:16 +02:00
David Garske 322d1b3a36 Refactor DDR law setup for use with stage 2 as stack. 2023-10-06 15:28:16 +02:00