wolfBoot/tools
Daniele Lacamera 4c447f4bf9 F-12104: Kontron TGL: apply the SPI BIOS-region lock through the BAR
tgl_lock_bios_region() wrote the protected range and the FLOCKDN
value through PCI configuration space (offsets 0x48 and 0x04, the
status/command dword) instead of the SPI controller's
memory-mapped registers at the BAR0 base, and took the range from
FREG1 (non-BIOS) instead of FREG0 (BIOS). The lock now writes
FPR0 and BIOS/H SFSTS/CTL through mmio_write32(), verifies both
by readback, and returns an error if the bits do not stick.

The helper had no callers: no hal_flash_protect() override
existed, so the weak no-op default ran before handoff and the
BIOS region stayed writable. Add the override routing to
tgl_lock_bios_region().

Including <hal.h> for the hook signature also exposes the
hal_flash_write/hal_flash_erase stubs as mismatching the HAL
contract; fix their address parameter to haladdr_t.

Add unit-kontron-tgl-spi: runs the extracted
tgl_lock_bios_region() and hal_flash_protect() against mocked
PCI config space and an MMIO array at the BAR address (build
fails pre-fix - hal_flash_protect undefined - 4/4 pass
post-fix).
2026-09-02 12:15:51 +02:00
..
armclang Remove obvious/redundant comments 2026-07-31 16:00:14 +02:00
bin-assemble renesas-rx: fix build for GCC RX 8.3/14.2 2026-07-30 15:32:31 +02:00
check_config
ci ci: add pic32cz stub build 2026-08-28 13:11:26 +02:00
delta
efi efi: sign the x86_64_efi reference kernel with an authenticated HDR_CMDLINE 2026-08-10 21:03:50 +02:00
elf-parser
fdt-parser fdt: rewrite device tree parser with capacity bound and full validation 2026-09-02 10:48:52 +02:00
fs-test update_disk: load signed image from a file when a filesystem is present 2026-09-02 10:47:33 +02:00
keytools fdt: rewrite device tree parser with capacity bound and full validation 2026-09-02 10:48:52 +02:00
lms
openocd Support for MAX32666 2026-07-31 14:33:56 +02:00
renode
sbom sbom: re-vendor wolfGlass at b44ae8d 2026-08-20 15:22:16 +02:00
scripts update_disk: load signed image from a file when a filesystem is present 2026-09-02 10:47:33 +02:00
squashelf add O_BINARY flag for msys2/windows builds 2026-08-11 08:35:12 -06:00
test-expect-version
test-update-server
tpm
uart-flash-server
unit-tests F-12104: Kontron TGL: apply the SPI BIOS-region lock through the BAR 2026-09-02 12:15:51 +02:00
xmss
config.mk
test-delta.mk
test-enc.mk
test-renode.mk
test.mk lib/wolfssl: bump to ti_c25 merge (e71b086fc) for CHAR_BIT!=8 wide-byte support 2026-08-25 00:01:33 +02:00
wolfboot-rpi-devicetree.diff