diff options
author | zhang sanshan <sanshan.zhang@nxp.com> | 2017-05-10 10:14:27 +0800 |
---|---|---|
committer | zhang sanshan <sanshan.zhang@nxp.com> | 2017-05-18 22:15:01 +0800 |
commit | efe9096bdc405c935248eaa6fed8096d82887cde (patch) | |
tree | e377ffed7389da037415c9681bb011b47f5d1cf5 /common/image-android.c | |
parent | 950b322fb0cc2fab8fe7418b952bb4f7ab19554c (diff) |
MA-9375 [Android IMX] uboot: enable BCB and bootctrl
* Add API to read\write MISC partition.
* get the boot mode from BCB command when boot up.
* get the boot up tactics from bootctrl.
Change-Id: Icbba6340e10983dddc1b04804ecc012a3a3c57d0
Signed-off-by: zhang sanshan <sanshan.zhang@nxp.com>
Diffstat (limited to 'common/image-android.c')
-rw-r--r-- | common/image-android.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/common/image-android.c b/common/image-android.c index de5e97c9f2..4f1408b65f 100644 --- a/common/image-android.c +++ b/common/image-android.c @@ -19,6 +19,12 @@ static char andr_tmp_str[ANDR_BOOT_ARGS_SIZE + 1]; +#ifdef CONFIG_FSL_BOOTCTL +#include <linux/usb/ch9.h> +#include <linux/usb/gadget.h> +#include "../drivers/usb/gadget/bootctrl.h" +#endif + static ulong android_image_get_kernel_addr(const struct andr_img_hdr *hdr) { /* @@ -125,6 +131,11 @@ int android_image_get_kernel(const struct andr_img_hdr *hdr, int verify, } else printf("boot device type is incorrect.\n"); +#ifdef CONFIG_FSL_BOOTCTL + char suffixStr[64]; + sprintf(suffixStr, " androidboot.slot_suffix=%s", get_slot_suffix()); + strcat(commandline, suffixStr); +#endif setenv("bootargs", commandline); if (os_data) { |