wolfBoot/tools
Daniele Lacamera f5401b0e23 F-7380: make SAMA5D3 ext_flash_read byte-accurate for partial pages
ext_flash_read() ignored the intra-page offset of the start address (a
partial read returned bytes from the head of the page), copied sub-page
reads in 32-bit words (dropping a sub-word tail), and wrote a full NAND
page into the caller's buffer when a multi-page read ended mid-page
(overrunning it). The integrity check hashes the image in 64-byte blocks
from fw_base + offset, so any read crossing a page mid-block returned the
wrong bytes.

Walk the read page by page from the exact address: full aligned pages go
straight into the caller's buffer; partial first/last pages are staged
through the page buffer and copied from the column offset.

Proven by unit-sama5d3-ext-read, which extracts the real function and
runs it against an emulated device: unaligned starts, 1-3 byte lengths,
the 64-byte integrity-hash block pattern, page/block boundaries, and
multi-page reads with a short tail. Pre-fix 6 of the 8 checks failed.
2026-08-21 08:52:59 +02:00
..
armclang
bin-assemble
check_config
ci
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
keytools add asymmetric partition sizing for monolithic updates 2026-08-19 17:47:48 +02:00
lms
openocd
renode
sbom sbom: re-vendor wolfGlass at b44ae8d 2026-08-20 15:22:16 +02:00
scripts Vendor wolfGlass SBOM tooling and switch wolfBoot to it 2026-08-20 15:22:16 +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-7380: make SAMA5D3 ext_flash_read byte-accurate for partial pages 2026-08-21 08:52:59 +02:00
xmss
config.mk
test-delta.mk
test-enc.mk
test-renode.mk
test.mk Add additional test coverage for monolithic self updates with asymmetric partition sizing 2026-08-19 17:47:48 +02:00
wolfboot-rpi-devicetree.diff