diff options
author | Ji Luo <ji.luo@nxp.com> | 2019-07-18 13:56:45 +0800 |
---|---|---|
committer | Ji Luo <ji.luo@nxp.com> | 2019-07-19 13:14:15 +0800 |
commit | 2a43c3e702720fab67ae9af73634a958a1b62044 (patch) | |
tree | 0399901533ba4e194f3d89235496e04082da32cf /include | |
parent | 3f94cf98113af6c31e146afcf394f34ff4d2bc00 (diff) |
MA-15158 Set spl recovery mode for dual bootloader
The A/B slot selection is moved to spl, it may lead to hang
if no bootable slots found. The only way to recover the board
is re-flash images with uuu tool, which is quite inconvenient
for some customers who can't enter serial download mode.
This patch will set "spl recovery mode" which will give us a
chance to re-flash images with fastboot commands.
Test: Enter spl recovery mode and flash images when no bootable
slots found.
Change-Id: I31278f5212bde7609fe2f49e77b3849e92c0c516
Signed-off-by: Ji Luo <ji.luo@nxp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/fsl_avb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/fsl_avb.h b/include/fsl_avb.h index 7f2b46f20bc..abc751e68d7 100644 --- a/include/fsl_avb.h +++ b/include/fsl_avb.h @@ -275,4 +275,7 @@ int avb_set_public_key(uint8_t *staged_buffer, uint32_t size); /* Get manufacture protection public key */ int fastboot_get_mppubk(uint8_t *staged_buffer, uint32_t *size); +/* Return if device is in spl recovery mode. */ +bool is_spl_recovery(void); + #endif /* __FSL_AVB_H__ */ |