Commit Graph

1448 Commits (master)

Author SHA1 Message Date
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
Sameeh Jubran abbcd4d640 sbom: re-pin wolfssl-compliance-tooling at 2a2e04a
Brings toolkit #58: one timestamp for Make and CMake when --root is
passed, one gen-sbom --help per run, and the Windows DESTDIR path in
install-sbom and uninstall-sbom.
2026-11-19 15:09:50 +01:00
Sameeh Jubran 6c33866b68 sbom: re-pin wolfssl-compliance-tooling at 1bec96c, read Zephyr sources from west
- Re-pin with wolfssl-compliance-tooling-sync. The pin brings the python3
  fallback (configure no longer needs python3), the TARGETS/LIB checks,
  the launcher strip in the Zephyr front end and the weak-entropy marker.
- The Zephyr front end reads the compile_commands.json of a west build.
  The ide-sbom wrapper now sets --root, not the removed --cmakelists, and
  docs/SBOM.md shows the west command.
2026-11-19 15:09:50 +01:00
Sameeh Jubran a5071de6ba sbom: move to wolfssl-compliance-tooling and pin its current master
wolfGlass is now wolfssl-compliance-tooling. Its master removed the old
macro, function, and script names, so a re-sync alone breaks the build.

- Re-vendor tools/sbom/ at 8a96c64 and pin it in
  .wolfssl-compliance-tooling-rev.
- Call wolfssl_compliance_tooling_sbom_rule in the Makefile and
  wolfssl_compliance_tooling_add_sbom in cmake/sbom.cmake.
- Point the drift check at wolfSSL/wolfssl-compliance-tooling and rename
  the job to compliance_tooling_drift.
- Use the new name in the docs and comments.

The CMake helper now also adds install-sbom and uninstall-sbom targets.
2026-11-19 15:09:50 +01: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
Dirk Van Haerenborgh 6d94df425b add WOLFBOOT_VERSION_SECTION to tools/config.mk 2026-11-16 13:50:32 +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 82601efd5e Fix the CI jobs that fail on the Ubuntu 26.04 runner image 2026-11-13 11:02:19 -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 62c077f138 Match only BL and BLX call mnemonics in the RAM-code checker 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 6155973541
Merge pull request #983 from twcook86/mcxe247_port
nxp mcx e247 port
2026-11-12 09:44:05 -08:00
Thomas Cook bcaf3c65ed address pr comments 2026-11-12 11:12:10 -05:00
Thomas Cook 8d9863307f fix source path resolution for wolfip objects 2026-11-11 13:08:54 -05:00
Thomas Cook 64628f4b23 Add trace32 scripts 2026-11-11 12:09:46 -05:00
Daniele Lacamera e3242eec96 keytools: document stateful LMS/XMSS signing as demo/development only
LMS/HSS and XMSS/XMSS^MT are stateful hash-based signature schemes: each
signature consumes one-time key material, and reusing it breaks the whole
key. The key tools store the private key in a plain local file and sign
rewrites it in place, a pattern that does not meet production storage
requirements (atomic, durable, protected).

- keygen: print a warning after generating an LMS/XMSS key
- sign: print a warning (once per run) after a successful LMS/XMSS
  signature; other algorithms are unaffected
- docs/Signing.md: new "Stateful signatures" section explaining the
  statefulness, the file-based demo/development pattern, and the
  production guidance (stateless algorithm, or protected storage)

Verification:
- make -C tools/keytools: builds clean
- keygen --lms / --xmss: warning printed, rc=0; keygen --ed25519: none
- sign --lms / --xmss: warning printed once, rc=0; sign --ed25519: none
- sign --lms --delta (two signatures per run): warning printed once
- make -C tools/unit-tests run: exit 0
2026-11-11 16:41:25 +01:00
David Garske 16a0113abf PolarFire SoC: keep the golden image encrypted across a zeroize 2026-11-11 03:10:16 +01:00
David Garske d37751d308 Add PolarFire SoC Icicle Kit support to the M-mode LPDDR4 boot 2026-11-11 03:07:11 +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
Hideki Miyazaki 4c2cefbcb0 imx8mm: RAM-boot image: check the kernel against WOLFBOOT_RAMBOOT_MAX_SIZE
The limit is read from the build configuration.
2026-11-10 09:26:57 +01:00
Hideki Miyazaki 2b64e20b62 imx8mm: mkfit: append root= when bootargs has none 2026-11-10 09:26:57 +01:00
Hideki Miyazaki 766bf4d52c imx8mm: RAM-boot image: check wolfBoot's _end against the kernel offset
wolfboot.bin omits the BSS that startup clears.
2026-11-10 09:26:57 +01:00
Hideki Miyazaki 3068af629b imx8mm: add docs and image build scripts
Scripts for flash.bin (BL33), the signed FIT and the RAM-boot image.
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