summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorChen Guoyin <guoyin.chen@nxp.com>2016-11-23 14:03:59 +0800
committerChen Guoyin <guoyin.chen@nxp.com>2016-11-23 14:03:59 +0800
commit08762032aac126483ce0505834032d1aee9781a1 (patch)
tree4314a992fec5f3d37550751b7b0608efa6648886 /drivers
parentc07160aec4aea92d403a384b75a4b3a83c462b2d (diff)
downloadu-boot-imx-08762032aac126483ce0505834032d1aee9781a1.zip
u-boot-imx-08762032aac126483ce0505834032d1aee9781a1.tar.gz
u-boot-imx-08762032aac126483ce0505834032d1aee9781a1.tar.bz2
MA-9043 Append the real selected slot in bootargs_sec env
Set the args androidboot.slot_suffix based on the real selected slot in unlock state Change-Id: I83e60a346d52e3fbba708f26595400df1af77383 Signed-off-by: Chen Guoyin <guoyin.chen@nxp.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/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 b1a4dbb..4ab75d4 100644
--- a/drivers/usb/gadget/f_fastboot.c
+++ b/drivers/usb/gadget/f_fastboot.c
@@ -1945,7 +1945,9 @@ int do_boota(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) {
printf("boota: read boot image error\n");
goto fail;
}
- setenv("bootargs_sec", "androidboot.slot_suffix=_a");
+ char bootargs_sec[ANDR_BOOT_ARGS_SIZE];
+ sprintf(bootargs_sec, "androidboot.slot_suffix=%s", slot);
+ setenv("bootargs_sec", bootargs_sec);
#ifdef CONFIG_FASTBOOT_LOCK
}
#endif