summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaoran Wang <elven.wang@nxp.com>2017-04-11 21:26:48 +0800
committerHaoran Wang <elven.wang@nxp.com>2017-04-11 21:26:48 +0800
commit5f1cf1c789cc3fecd536c330cc31056415e0460d (patch)
tree470fcf8e5fd1b259e319ecb346e7c41f35b6bd4c
parent94734eeca56e8d1b9f1baedf67e16cd0397fc178 (diff)
downloadu-boot-imx-5f1cf1c789cc3fecd536c330cc31056415e0460d.zip
u-boot-imx-5f1cf1c789cc3fecd536c330cc31056415e0460d.tar.gz
u-boot-imx-5f1cf1c789cc3fecd536c330cc31056415e0460d.tar.bz2
MA-9432 set boot slot when avb verified success
Set ab_suffix into second bootargs when avb verified pass. Change-Id: I53feba41ad256c1d14e0aad1e2cc02e15a986801 Signed-off-by: Haoran Wang <elven.wang@nxp.com>
-rwxr-xr-xdrivers/usb/gadget/f_fastboot.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/usb/gadget/f_fastboot.c b/drivers/usb/gadget/f_fastboot.c
index a2481e8..bc59211 100755
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -2043,7 +2043,9 @@ int do_boota(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) {
goto fail;
}
printf(" verify OK, boot '%s%s'\n", avb_loadpart->partition_name, avb_out_data->ab_suffix);
- setenv("bootargs_sec", avb_out_data->cmdline);
+ char bootargs_sec[2048];
+ sprintf(bootargs_sec, "androidboot.slot_suffix=%s %s", avb_out_data->ab_suffix, avb_out_data->cmdline);
+ setenv("bootargs_sec", bootargs_sec);
#ifdef CONFIG_SYSTEM_RAMDISK_SUPPORT
if(!is_recovery_mode)
fastboot_setup_system_boot_args(avb_out_data->ab_suffix);