+80
−19
Loading
This adds a new option that allows copying slot0, from the contents
of slot1, if slot0 is found out to be erased and not validated, and
the contents of slot1 are validated.
This mechanism basically enables a device to "bootstrap" from the
contents of an external flash that has a valid image, given that the
only flashed thing in the internal flash is the bootloader.
Signed-off-by:
Fabio Utzig <utzig@apache.org>
CRA Git | Maintained and supported by SUSTech CRA and CCSE