Commit Graph

4162 Commits (855a67e56fd0ecd4796d7450fce9489fd04cc604)

Author SHA1 Message Date
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 d7f754c7c0 nai_68int6: stock BIOS PCIe switch sequence, GPIO levels and full reset 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
David Garske 9c9299b601 nai_68int6: board devices and a per-image Linux or Multiboot2 payload 2026-11-12 17:57:53 -08:00
Aidan Garske cedaf81086
Merge pull request #985 from dgarske/h7s_gfxmmu_mpu
Guard the STM32H7S GFXMMU window with an MPU region while the D-cache is on
2026-11-12 15:12:08 -08:00
David Garske 9d54377600 Drop the GFXMMU section from the STM32H7S target docs 2026-11-12 14:27:31 -08:00
David Garske e00f150e17 Guard the STM32H7S GFXMMU window with an MPU region while the D-cache is on 2026-11-12 09:54:34 -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 c8e32f3755 fix failed link up 2026-11-12 10:31:07 -05:00
Anthony Hu 226a2c7a81
Merge pull request #982 from danielinux/document-stateful-sign
keytools: document stateful LMS/XMSS signing as demo/development only
2026-11-11 17:42:46 -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
Thomas Cook bf2eb49e8f turn on ethernet, wolfip, and network test via new network command 2026-11-10 14:33:05 -05:00
Dirk Van Haerenborgh f1d99c60b5 restructure, remove empty loops 2026-11-10 18:42:55 +01:00
Dirk Van Haerenborgh be4f4366ce feat: optionally reset ext flash before use
Our ext flash has a rather peculiar 'feature' in that SPI sometimes
locks up when first accessing the ext flash. Resetting the flash chip
prior alleviates this problem.

This is highly specific and I don't expect this to make it into wolfboot
as is, but I'm hopeful we can come to some sort of solution where we
don't need to patch every new wolfboot version.
2026-11-10 18:42:55 +01:00
Alex Lanzano 3df34a3a77 Update wolfHAL submodule to latest commit 2026-11-10 11:20:27 +01:00
Alex Lanzano acc47de86c stm32wba: set HPRE5 to divide-by-4 for AHB5
HPRE5 value 0b101 divides by 3 per RM0493, which put HCLK5 at
33.3 MHz with a 100 MHz SYSCLK, above the 32 MHz AHB5 limit. Use
0b110 (divide-by-4) for 25 MHz.
2026-11-10 11:20:27 +01:00
Dirk Van Haerenborgh 660bae8c26 switch to modulo calc
Signed-off-by: Dirk Van Haerenborgh <dirk.vanhaerenborgh@aloxy.io>
2026-11-10 11:19:28 +01: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 cbc48970e1 aarch64: document invalidate_dcache_range alignment and EL2 set/way invalidate 2026-11-10 09:26:57 +01:00
Hideki Miyazaki c709d8fdd9 imx8mm: test-app: parse the DTB with fdt.c 2026-11-10 09:26:57 +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 6bcafbfdbc imx8mm, imx8qm: move the identity MMU and SDMA cache maintenance to assembly 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
Hideki Miyazaki 0e0de5bc8d Add NXP i.MX 8M Mini (imx8mm) target
Boots a signed Linux kernel, either loaded into DRAM and started from
U-Boot proper (RAM-boot, go) or started by ATF as BL33 reading a
signed FIT from eMMC (uSDHC3, FAT32).
Includes a test app and CI builds.
2026-11-10 09:26:57 +01:00
Hideki Miyazaki 973f177cac sdhci: optional 8-bit bus and High Speed timing for eMMC
SDHCI_EMMC_BUS_WIDTH (1/4/8, default 4) and SDHCI_EMMC_HS (CMD6
HS_TIMING, 50 MHz). Defaults are unchanged.
2026-11-10 09:26:57 +01:00
Aidan Garske 6147678f29
Merge pull request #978 from dgarske/imx8qm_scripts
Fix i.MX8QM SDP loading and stale wolfSSL port objects after make clean
2026-11-09 11:26:15 -08:00
Aidan Garske 529743d23e
Merge pull request #977 from dgarske/docs_index_stm32
Documentation cleanup: drop stale STM32.md index entry and add missing docs to docs/README.md
2026-11-09 11:24:04 -08:00
Thomas Cook 2a7a81289a Fix s32k148 flash layout 2026-11-09 12:48:31 -05:00
Thomas Cook 79622d3884 Initial support for mcxe247 2026-11-09 12:44:58 -05:00
David Garske a26d78c28e docs: drop stale STM32.md index entry and add missing docs to docs/README.md 2026-11-06 14:46:53 -08:00
David Garske 95b7d7b86e Remove all wolfSSL port objects in make clean 2026-11-06 14:45:31 -08:00
David Garske 1e9b367fe6 Fix the i.MX8QM SDP load command and add a keep-keys build option 2026-11-06 14:45:31 -08:00
David Garske 4702555fae
Merge pull request #979 from aidangarske/ci-macos-runner
Run the macOS CMake build on macos-latest
2026-11-06 13:41:15 -08:00
Aidan Garske e8eb7a060c Run the macOS CMake build on macos-latest 2026-11-06 21:11:36 +00: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 4bfe5e7035
Merge pull request #972 from danielinux/fix-makefile-assignments
make: let user-provided options win over target defaults
2026-11-05 10:53:38 -08:00
Daniele Lacamera 6b12eec974 make: treat empty LSCRIPT_IN as unset at every target default
Copilot review follow-up: ?= considers a defined-but-empty LSCRIPT_IN
(stale LSCRIPT_IN?= line in .config, exported empty env var) already
set, so it skipped every target-specific default and fell through to
the last-resort hal/$(TARGET).ld - e.g. TARGET=stm32l5 TZEN=0 lost its
hal/stm32l5-ns.ld layout. The strip-based last-resort check only fixed
that one line, not the 32 target sites.

Add the LSCRIPT_IN_DEFAULT helper in tools/config.mk (assigns only when
LSCRIPT_IN is undefined or empty) and convert all 29 arch.mk, 2
board.mk and 1 stage1/Makefile sites to it.
2026-11-04 20:56:20 +01:00
Thomas Cook fe7697aeda remove dead debug code 2026-11-04 20:24:54 +01:00
Thomas Cook ce94bdaf2e guard uart_write() with DEBUG_UART 2026-11-04 20:24:54 +01:00