mirror of https://github.com/wolfSSL/wolfBoot.git
wolfBoot_start() zeroed os_image once, before the retry loop, so the fallback iteration kept the stale img->hdr of the failed partition and wolfBoot_open_image_address() (which only adopts load_address when hdr is NULL) re-verified the wrong image. The external header cache had the same problem: it kept the first image opened. memset the struct and invalidate the EXT_FLASH header cache at the top of each loop iteration, per the documented precondition of wolfBoot_open_image_address(). Add unit-update-ram-nofixed-noramboot: the non-fixed-partition, non-RAMBOOT (XIP) layout where load_address varies per retry, with fallback tests both directions plus candidate-selection checks. |
||
|---|---|---|
| .. | ||
| MPLAB | ||
| wolfboot | ||
| x86 | ||
| c2000_stdint.h | ||
| ddr_cadence.h | ||
| delta.h | ||
| disk.h | ||
| disk_fs.h | ||
| elf.h | ||
| encrypt.h | ||
| ext4.h | ||
| fat32.h | ||
| fdt.h | ||
| gpt.h | ||
| gzip.h | ||
| hal.h | ||
| hal_fpga.h | ||
| hooks.h | ||
| image.h | ||
| keystore.h | ||
| loader.h | ||
| multiboot.h | ||
| otp_keystore.h | ||
| pci.h | ||
| printf.h | ||
| sdhci.h | ||
| spi_drv.h | ||
| spi_flash.h | ||
| stage2_params.h | ||
| target.h.in | ||
| tpm.h | ||
| uart_drv.h | ||
| uart_flash.h | ||
| ubootenv.h | ||
| user_settings.h | ||
| wolfboot_efi.h | ||
| wolfboot_smc.h | ||