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, 25 Jul 2019 09:06:00 +0000 (17:06 +0800)
commit46cc755cf3f42422ee1d7783394e14e8125df2b6
treedccecbe1911b1e77492f5970c4a796b51aa94cd5
parentb81f0b617d23548cd30953b94aca4ff8cc4da723
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>
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