cmd: boot fit: support a/b system

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I37452ec5ce107f864594c94411dc59a422c7cf47
This commit is contained in:
Joseph Chen 2020-10-22 17:41:13 +08:00 committed by Jianhong Chen
parent cee2fb0e57
commit c42dfcf531
1 changed files with 7 additions and 0 deletions

View File

@ -5,6 +5,7 @@
*/
#include <common.h>
#include <android_ab.h>
#include <bootm.h>
#include <boot_rkimg.h>
#include <image.h>
@ -93,6 +94,12 @@ static int do_boot_fit(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
printf("at %s with size 0x%08lx\n", fit_addr, size);
#ifdef CONFIG_ANDROID_AB
ab_update_root_uuid();
if (ab_decrease_tries())
printf("Decrease ab tries count fail!\n");
#endif
ret = do_bootm_states(NULL, 0, ARRAY_SIZE(bootm_args), bootm_args,
BOOTM_STATE_START |
BOOTM_STATE_FINDOS | BOOTM_STATE_FINDOTHER |