MA-15158 Set spl recovery mode for dual bootloader
authorJi Luo <ji.luo@nxp.com>
Thu, 18 Jul 2019 05:56:45 +0000 (13:56 +0800)
committerJi Luo <ji.luo@nxp.com>
Thu, 13 May 2021 01:49:17 +0000 (09:49 +0800)
commite96b68d22e89e4031d1117ab347f042577c5c8f1
treed8b3a8c089a78ceb71ef5485c31a53222c5733e8
parent6c7c67500cb033c0cbb227845052a42413728af1
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>
(cherry picked from commit 46cc755cf3f42422ee1d7783394e14e8125df2b6)
(cherry picked from commit 047f09ef2ef33657d76fd92d8f5599e00158cd6b)
common/board_r.c
drivers/fastboot/fb_fsl/fastboot_lock_unlock.c
include/fsl_avb.h
lib/avb/fsl/fsl_avb_ab_flow.c
lib/avb/libavb_ab/avb_ab_flow.h