mirror of https://github.com/wolfSSL/wolfBoot.git
leave the encryption key for wolfBoot_success to erase. FINAL_SWAP was also stopping the case where the partition was put into testing before the update sector status flags could be erased. now, don't erase the update sector flags. instead put the update partition in IMG_STATE_FINAL_FLAGS state before putting the boot partition in IMG_STATE_TESTING. Then only erase the update sector flags on wolfBoot_update_trigger. under this scheme, the sector flags are intact if the power failed before we could set IMG_STATE_TESTING but are wiped if we do need to swap over after after wolfBoot_success fails to be called |
||
|---|---|---|
| .. | ||
| wolfboot | ||
| x86 | ||
| delta.h | ||
| elf.h | ||
| encrypt.h | ||
| hal.h | ||
| image.h | ||
| keystore.h | ||
| loader.h | ||
| multiboot.h | ||
| pci.h | ||
| printf.h | ||
| spi_drv.h | ||
| spi_flash.h | ||
| stage1.h | ||
| target.h.in | ||
| tpm.h | ||
| uart_drv.h | ||
| uart_flash.h | ||
| user_settings.h | ||