Commit Graph

1027 Commits (608610dc160dd24ef57ae3f4e4ae4b76323d8a42)

Author SHA1 Message Date
David Garske 608610dc16 imx95_a55: add the Cortex-A55 target and a stage 1 replacing U-Boot SPL 2026-10-15 15:27:28 -07:00
David Garske b02dbaaf97 imx95_m7: do not issue D-cache clean by address while the cache is disabled 2026-10-15 15:26:59 -07:00
Aidan Garske 1b425abfe8 Add Agilex 5 FCS and wolfBoot integration 2026-10-15 10:25:33 -07:00
Mattia Moffa 400bce6317
Merge pull request #924 from dgarske/stm32h7s
Add wolfBoot target for STM32H7S3L8 with partitions on external Octo-SPI NOR
2026-10-12 20:40:19 +02:00
David Garske e415826eb7 Add STM32H7S target with partitions on external Octo-SPI NOR 2026-10-11 21:45:53 -07:00
David Garske 1f6f27cb4b
Merge pull request #930 from aidangarske/nrf54lm20-port
Add nRF54LM20 support and fix nRF54L RAM code, keyvault, and cache
2026-10-11 21:29:37 -07:00
David Garske 70381154e5
Merge pull request #934 from aidangarske/mcxw71-port
Harden the NXP MCX W71 port and add console, timer, and wolfCrypt-TZ
2026-10-09 15:03:48 -07:00
Brett Nicholas 9415491f16
Merge pull request #928 from Frauschi/tc4-port-mk
AURIX TC4xx: take the wolfHSM port objects from the port's makefile
2026-10-09 14:32:27 -06:00
Aidan Garske e493aee67f Harden the NXP MCX W71 port and add console, timer and wolfCrypt-TZ 2026-10-09 21:04:57 +01:00
David Garske 79fe3e694e
Merge pull request #926 from aidangarske/rw612
Add NXP FRDM-RW612 port and test NXP HALs against the real MCUXpresso SDK
2026-10-09 12:26:07 -07:00
Aidan Garske d147db6dfd Add NXP RW612 target with TrustZone support 2026-10-09 17:06:01 +01:00
David Garske cd4174ccc9 update_disk: fail closed when the boot-part DTB fixup does not land, and run it on the BL31 handoff 2026-10-07 20:44:28 -07:00
David Garske 339d3a6396 update_disk: tell the OS which slot it booted from via /chosen/wolfboot,boot-part 2026-10-07 20:07:38 -07:00
Aidan Garske 7abadf1ae0 Add nRF54LM20 support to the nRF54L port 2026-10-07 22:52:28 +01:00
David Garske 2a337e72c6 i2c: add a bit-banged back-end selectable with I2C_BITBANG 2026-10-06 18:14:10 +02:00
David Garske 508ad6a26d Add wolfBoot target for Infineon PSOC Control C3 2026-10-06 18:14:10 +02:00
David Garske 97e895613d tpm: add a TIS-over-I2C transport and a generic I2C driver interface 2026-10-06 18:14:10 +02:00
Tobias Frauenschläger af5965a88e aurix_tc4xx: drop the interrupt enable from hal_hsm_init_connect()
The comment said the HSM-to-host wake ISR needs interrupts. The wolfHSM
TC4xx port no longer has that ISR: the client polls its response buffer,
and the host-to-HSM notify saves and restores the interrupt state
itself. Nothing on the wolfBoot host side registers an interrupt
handler, so the call and its comment go.
2026-10-06 13:23:43 +02:00
Tobias Frauenschläger 69823bfae0 aurix_tc4xx: check tchsm_client_init() in hal_hsm_init_connect()
The HAL dropped the return value, so a failed client init surfaced as
WH_ERROR_BADARGS from the following tchsm_client_wait_ready() instead
of the actual cause. Return it directly, as the calls after it do.
2026-10-05 19:16:13 +02:00
Tobias Frauenschläger 55039e525c aurix_tc4xx: take the wolfHSM port objects from the port's makefile
arch.mk and test-app/Makefile listed the TC4xx wolfHSM port's objects
and include paths one by one, so every rename or new object in the port
needed a matching wolfBoot change. They now include
port/wolfboot/tchsm_wolfboot.mk from the port, next to the device.mk
already included there, and use the object lists, include paths and
CommBuf placement flags it defines.

That also carries the port's COMMBUF option (DSPR or LMU): device.mk
validates it, and the port's linker scripts read the
TCHSM_LSL_COMMBUF_LMU symbol the flags define, so the flags apply with
or without wolfHSM enabled.

hal/aurix_tc4xx.c includes tchsm_topology.h, which now holds the
client ids it uses.
2026-10-05 17:55:53 +02:00
David Garske a16e2e8f11
Merge pull request #912 from bigbrett/tc3-toolchain-support
Expand TC3xx toolchain support
2026-10-02 08:02:29 -07:00
David Garske 26a157868f
Merge pull request #917 from danielinux/fenrir-fixes-2026-09-30
Fenrir fixes 2026 09 30
2026-09-30 16:11:29 -07:00
Daniele Lacamera 78797a946d hal: scrub the TRNG staging buffers without wolfCrypt
F-14487/F-14488 scrubbed the TRNG staging buffers with wc_ForceZero,
which links the hal objects to wolfCrypt's memory.c. The OTP keystore
primer links the hal without wolfCrypt and failed to build
(undefined reference to wc_ForceZero) in the stm32h5_tz_dualbank_otp
and trustzone-emulator configs. Scrub with a local volatile loop, the
same pattern nvm_cache_scrub uses for the same reason.
2026-09-30 19:59:33 +02:00
David Garske c83238ae71
Merge pull request #914 from bigbrett/tc3-host-park
TC3: Add host park functionality
2026-09-30 09:07:45 -07:00
Daniele Lacamera ce814dd532 F-14488: scrub the STM32 TZ TRNG word in hal_trng_get_entropy
The secure-mode TRNG seed helper (shared by the STM32L5/U5/H5
TrustZone ports) staged each TRNG_DR word in a stack local and
returned without clearing it. Force-zero the local before the
return, mirroring the existing scrub in hal/cm4.c.
2026-09-30 16:33:53 +02:00
Daniele Lacamera e280cf1e7c F-14487: scrub the nRF5340 TRNG staging batch in hal_trng_get_entropy
The secure-mode TRNG seed helper copied each 24-byte CryptoCell EHR
batch into a stack array and returned without clearing it, leaving
raw TRNG output in the retired secure frame. Force-zero the batch at
the end of each iteration, mirroring the existing scrub in hal/cm4.c.
2026-09-30 16:33:53 +02:00
Brett Nicholas 7c16bfdd1c fix typo 2026-09-29 11:48:32 -06:00
Brett Nicholas 97258d10db Remove park enabled flag, rename host trigger macro 2026-09-29 10:45:39 -06:00
David Garske 8f4578c84e Add optional boot confirmation and rollback for the disk boot path 2026-09-29 07:41:43 +02:00
Brett Nicholas 2880b1d07f Add in TC3 host park support 2026-09-28 15:40:36 -06:00
Brett Nicholas dd7a5d7822 Expand TC3xx toolchain support:
- HighTec GCC on both tricore and HSM
 - HighTec LLVM on both tricore and HSM
 - Open source GCC for both tricore and HSM
2026-09-28 15:02:05 -06:00
David Garske df9367297a
Merge pull request #910 from danielinux/fenrir-fixes-2026-09-24
Batch of Fenrir fixes: 2026 09 24
2026-09-28 10:36:12 -07:00
David Garske 490a3791f9 Fix to keep the FIT DTB's own bootargs unless LINUX_BOOTARGS is explicitly configured 2026-09-24 16:03:12 +02:00
David Garske 23989067ec zynqmp: add non-cacheable DMA window and hal_dma_set_noncached() 2026-09-24 13:27:04 +02:00
David Garske 7b71f28aa3 versal: support DDR apertures above 1 TB in the translation table 2026-09-24 13:13:33 +02:00
Aidan Garske 20310a9014 Align the i.MX RT700 HAL license headers to GPLv3 2026-09-24 13:12:36 +02:00
Aidan Garske f8a1e540b9 Require WOLFBOOT_SECURE_APP for i.MX RT700 TrustZone builds 2026-09-24 13:12:36 +02:00
Aidan Garske 62c7fe30b2 Add unit tests for the i.MX RT700 flash address gate 2026-09-24 13:12:36 +02:00
Aidan Garske 3833df9f97 Harden the i.MX RT700 flash HAL with bounded polls and a locked boot region 2026-09-24 13:12:36 +02:00
Aidan Garske f16e9dc048 Use the shared secure application SAU default on the i.MX RT700 2026-09-24 13:12:36 +02:00
Aidan Garske 02f001ef03 Add a TrustZone secure application boot config for the i.MX RT700 2026-09-24 13:12:36 +02:00
Aidan Garske 61ce5144c5 Use the NXP SDK XSPI driver for i.MX RT700 flash program and erase 2026-09-24 13:12:36 +02:00
Aidan Garske be34f8572b Add a debug UART on LPUART0 for the i.MX RT700 HAL 2026-09-24 13:12:36 +02:00
Aidan Garske 628759110f Add an i.MX RT700 (MIMXRT798S) HAL target that boots from XSPI0 NOR 2026-09-24 13:12:36 +02:00
Daniele Lacamera 9bc15c1656 fix Fenrir review: ls1028a test_flash return contract, x86 FSP stop bits
- hal/nxp_ls1028a.c: ext_flash_erase/write return len on success, not
  0, so the F-12067 follow-up guards (ret != 0) always tripped and
  test_flash could never pass; check ret < 0
- src/x86/qemu_fsp.c: the F-12885 stop-bit guard rejects the in-tree
  uart_init(115200, 8, 'N', 0) call, leaving the FSP QEMU debug UART
  unprogrammed; pass 1 stop bit
2026-09-24 12:48:08 +02:00
Daniele Lacamera c74ed95407 F-12886: reject non-positive length in HiFive1 flash write
The write loop cast len to uint32_t, so a negative length became
a huge iteration count and read past the source buffer; a zero
length is a no-op success, matching the erase side.
2026-09-24 12:03:20 +02:00
Daniele Lacamera d07d9818d2 F-12067: check erase/write results in test_flash
Only the final read result reached the return value; a failed
erase or write was reported as success.
2026-09-24 12:03:20 +02:00
Daniele Lacamera 75707384fa F-6871: bound ext_flash_erase to the device size
Erase was the only ext_flash op without the layout check, so an
out-of-range request reached the SDK. Also replace the lone
_Static_assert with the tree's typedef char idiom.
2026-09-24 12:01:52 +02:00
Daniele Lacamera f528cabfd0 F-14131: pass the byte length to FLASH_EraseSector
The MCXA ROM API (fsl_romapi.h) takes lengthInBytes, not a sector
count, so the original pass-through was already correct and the
sector-count conversion erased almost nothing. It also called
FLASH_GetFlashConfig, which does not exist in the MCXA ROM API and
only compiled against the unit-test stub. Restore the byte length,
keep the len guard, and drop the invented call from the stub.
2026-09-24 12:01:43 +02:00
Daniele Lacamera 641c9cf4a0 F-12871: compare against the absolute bank 2 base
The dispatcher split cross-bank requests at FLASH_BANK2_BASE_REL
(0x00100000), but callers pass absolute flash addresses in
FLASHMEM_ADDRESS_SPACE, so the split never fired and the whole
request was programmed on the bank of the start address. Compare
against FLASH_BANK2_BASE (0x08100000); the test now drives
absolute addresses so it exercises the real call convention.
2026-09-24 12:01:43 +02:00