mirror of https://github.com/wolfSSL/wolfBoot.git
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> |
||
|---|---|---|
| .. | ||
| armclang | ||
| bin-assemble | ||
| check_config | ||
| ci | ||
| delta | ||
| efi | ||
| elf-parser | ||
| fdt-parser | ||
| fs-test | ||
| keytools | ||
| linux/wolfboot-sbi | ||
| lms | ||
| openocd | ||
| renode | ||
| sbom | ||
| scripts | ||
| squashelf | ||
| test-expect-version | ||
| test-update-server | ||
| tpm | ||
| uart-flash-server | ||
| unit-tests | ||
| x86_fsp | ||
| xmss | ||
| config.mk | ||
| test-delta.mk | ||
| test-enc.mk | ||
| test-renode.mk | ||
| test.mk | ||
| wolfboot-rpi-devicetree.diff | ||