Commit Graph

643 Commits (master)

Author SHA1 Message Date
David Garske c5072bf34c Add NXP S32G2 (S32G274A GoldBox) target: wolfBoot as the Boot ROM image, booting a signed FIT from SD, eMMC or QuadSPI NOR 2026-11-25 18:34:24 +01:00
David Garske fca9a96b35 Add a minimal PSCI 1.1 runtime for firmware that stays resident at EL3 2026-11-25 18:34:24 +01:00
David Garske a2a94f2b79 Extend disk boot confirmation to FAT32 and ext4 file slots 2026-11-25 18:34:24 +01:00
David Garske f5df448095 Add fs_map to locate a file range on the media for the disk filesystem layer 2026-11-25 18:34:24 +01:00
Mattia Moffa 0625155068
Merge pull request #960 from dgarske/samd21
Add SAMD21 support (example configs, SERCOM console and NVMCTRL fixes)
2026-11-19 19:04:06 +01:00
David Garske 47a7b188a0
Merge pull request #997 from bigbrett/self-update-mono-fixes
quickfixes: monolithic self-updates
2026-11-19 08:58:38 -08:00
David Garske 08276544ba Fix SAMD21 PAC write-protect handling in the flash lock and boot paths 2026-11-19 08:35:54 -08:00
David Garske f1e810ae2d samd21: protect the bootloader region with the NVMCTRL lock regions 2026-11-19 08:35:54 -08:00
David Garske 26a21a5fe1 samd21: add example configs, SERCOM console and NVMCTRL fixes 2026-11-19 08:35:54 -08:00
Brett Nicholas 6119e3b2c8 Reject monolithic self-update if self-header version is unreadable 2026-11-19 08:08:48 -08:00
Marco Oliverio cbfc1e3a8c
Merge pull request #959 from dgarske/nai_lpss_acpi
NAI 68INT6: board devices, ACPI tables, PCIe bring-up, Multiboot2 payloads, faster cold boot and an ATA write fix
2026-11-18 09:31:19 +01:00
David Garske 254cfa50fd
Merge pull request #975 from aidangarske/psoc6-eval
PSoC 6 parity and CY8CEVAL-062S2 support, with two core power cut fixes
2026-11-13 14:27:57 -08:00
Aidan Garske 3eaf2f03b7 Stop PSoC 6 UART output after the first TX timeout 2026-11-13 13:06:25 -08:00
David Garske 8c1f19e71d
Merge pull request #987 from aidangarske/stm32l5-wolftrust-handoff
Add an STM32L5 secure application handoff for wolfTrust
2026-11-13 12:27:11 -08:00
David Garske 538c134fd0 x86 fsp: fix review findings in the training data cache and ELF map 2026-11-12 17:57:53 -08:00
David Garske 78843ce13c x86 fsp: check cached training data against a TPM NV hash in stage 1 2026-11-12 17:57:53 -08:00
David Garske c96b3d7f57 x86 fsp: list only RAM and reserved memory in the Linux e820 map 2026-11-12 17:57:53 -08:00
David Garske 6c3f439ab3 x86 fsp: mark a boot with cached training data until FSP-S succeeds 2026-11-12 17:57:53 -08:00
David Garske c9a41c5cdf elf: reject p_filesz above p_memsz and sizes the map callback truncates 2026-11-12 17:57:53 -08:00
David Garske 6e76bd022c x86 fsp: time the SPI hardware-sequencing waits from the TSC 2026-11-12 17:57:53 -08:00
David Garske 855a67e56f x86 ata: use WRITE DMA EXT for sector writes and return command errors 2026-11-12 17:57:53 -08:00
David Garske 4a0685c968 x86 fsp: CPU list from topology, TPM2/HPET/DMAR, root port routing, _OSC 2026-11-12 17:57:53 -08:00
David Garske 4987d221b2 x86 fsp: bound the ELF load, re-hash PCR 0, use a signed HDR_CMDLINE 2026-11-12 17:57:53 -08:00
David Garske 1efd95b2f4 x86 fsp: cache FSP-M training data in flash, stop the NAI global reset 2026-11-12 17:57:53 -08:00
Aidan Garske 3a3c11fc24 Add tests for the PSoC 6 UART and timer fail-safe paths 2026-11-12 15:55:54 -08:00
Aidan Garske 63592c28ee Remove late setvbuf calls from the power-cut test fixtures 2026-11-12 15:55:54 -08:00
Aidan Garske 9e99523e17 Describe the small-sector unit test variant accurately 2026-11-12 15:23:57 -08:00
Aidan Garske e0af8d0cd2 Add a 256-byte-sector unit test variant for the swap resume paths 2026-11-12 15:00:09 -08:00
Aidan Garske e5275058e9 Clock the PSoC 6 QSPI interface from the PLL 2026-11-12 13:53:12 -08:00
Aidan Garske cc091aa1ad Add CY8CEVAL-062S2 support and bring the PSoC 6 port to parity 2026-11-12 13:53:12 -08:00
Aidan Garske fe42b07813 Keep the FLAGS_HOME final swap resumable across a power cut 2026-11-12 13:52:41 -08:00
Aidan Garske 39b72f2616 Keep a rollback on the original image across a power cut 2026-11-12 13:52:41 -08:00
David Garske 16a0113abf PolarFire SoC: keep the golden image encrypted across a zeroize 2026-11-11 03:10:16 +01:00
Aidan Garske f00ac707ff Report STM32L5 RDP level 1 as Non-PSA RoT debug and drop the overlapping layout example 2026-11-10 13:42:55 -08:00
Dirk Van Haerenborgh 96cd40ba53 Use flash erase units for encryption key updates
Add FLASH_ERASE_UNIT / WOLFBOOT_FLASH_ERASE_UNIT independently of the
logical sector size, with a sector-sized fallback and a 128-byte default
for STM32L0.

Update non-write-once hal_set_key() to cache and rewrite only the erase
units touched by the key, nonce, and trailer magic. Preserve surrounding
data, handle fields spanning units and FLAGS_HOME, and validate geometry
and partition bounds before accessing flash.

Default NVM_CACHE_SIZE to the erase unit in non-write-once builds while
keeping write-once caches and redundant trailer copies sector-sized.
On STM32L0 with 4 KiB sectors, the cache shrinks to 128 bytes.

Add erase-geometry, data-preservation, error-handling, and cache-scrubbing
tests for ChaCha20, AES-256, straddling fields, FLAGS_HOME, and the sector
fallback. Document the configuration and HAL erase contract.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-11-10 11:19:28 +01:00
Hideki Miyazaki 226538aca0 imx8mm: move macros to headers, use the HAL UART in the test-app 2026-11-10 09:26:57 +01:00
Hideki Miyazaki b0972c4a5d imx8mm, imx8qm: share the uSDHC -> SDHCI shim 2026-11-10 09:26:57 +01:00
Aidan Garske 709faedd94 Derive the STM32L5 PSA lifecycle from the RDP and TZEN option bytes 2026-11-09 14:56:39 -08:00
David Garske 3309e771a1 efi: use HDR_CMDLINE only from the signed part of the manifest 2026-11-06 01:57:48 +01:00
David Garske 767ef3de3c Add compressed firmware updates installed into an execute-in-place slot 2026-11-04 14:35:53 +01:00
David Garske 80a186f5c5
Merge pull request #953 from bigbrett/tc3-port-tweaks
Monolithic self-update version check + TC3xx/wolfHSM changes
2026-10-30 10:47:03 -07:00
Mattia Moffa 24776f3b7a
Merge pull request #949 from dgarske/psoc_e8
Add wolfBoot target for Infineon PSOC Edge E8
2026-10-28 23:02:17 +01:00
David Garske eca987ba9d
Merge pull request #952 from danielinux/signer-claimed-role-fix
boot: bind image partition claim to the booting core
2026-10-28 14:35:37 -07:00
David Garske 3681ea8996 Add wolfBoot target for Infineon PSOC Edge E8 2026-10-28 14:24:42 -07:00
twcook86 aa9685b03a
Merge pull request #950 from aidangarske/lpc55s69-port-update
Harden LPC55S69 TrustZone isolation and add tests, CI and docs
2026-10-28 15:12:27 -04:00
Daniele Lacamera f462765545 unit-tests: stub part check in update-disk-failover 2026-10-28 14:48:44 +01:00
Daniele Lacamera ea9c4c3120 unit-tests: stub part check in update-disk-fs, test disk partition mismatch 2026-10-28 14:37:09 +01:00
Daniele Lacamera c51b353521 boot: bind image partition claim to the booting core
Add wolfBoot_image_part_matches(), which requires the image's claimed
partition id to match HDR_IMG_TYPE_APP.
2026-10-28 14:37:09 +01:00
Daniele Lacamera 97a87d3655 Custom trailer: record the rollback direction in the UPDATE state 2026-10-28 14:35:31 +01:00
Daniele Lacamera 1b9cb03aba Make the custom-trailer final step power-fail safe 2026-10-28 14:35:31 +01:00