summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/board_r.c2
-rw-r--r--common/image-android.c11
2 files changed, 12 insertions, 1 deletions
diff --git a/common/board_r.c b/common/board_r.c
index 014dbff..a69bc3f 100644
--- a/common/board_r.c
+++ b/common/board_r.c
@@ -731,7 +731,7 @@ static int initr_fastboot_setup(void)
static int initr_check_fastboot(void)
{
- check_fastboot();
+ fastboot_run_bootmode();
return 0;
}
#endif
diff --git a/common/image-android.c b/common/image-android.c
index de5e97c..4f1408b 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) {