]> git.sur5r.net Git - u-boot/commitdiff
bootm: Support android boot on sandbox
authorSimon Glass <sjg@chromium.org>
Thu, 12 Jun 2014 13:24:48 +0000 (07:24 -0600)
committerTom Rini <trini@ti.com>
Thu, 19 Jun 2014 15:19:00 +0000 (11:19 -0400)
A small change allows this to operate on sandbox.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/bootm.c
include/configs/sandbox.h

index 338f647e419b9500ca20950ff4d6ea3cf5fe0064..1e66929387e896afec2b4245d458981d8f82650c 100644 (file)
@@ -793,7 +793,7 @@ static const void *boot_get_kernel(cmd_tbl_t *cmdtp, int flag, int argc,
 #ifdef CONFIG_ANDROID_BOOT_IMAGE
        case IMAGE_FORMAT_ANDROID:
                printf("## Booting Android Image at 0x%08lx ...\n", img_addr);
-               if (android_image_get_kernel((void *)img_addr, images->verify,
+               if (android_image_get_kernel(buf, images->verify,
                                             os_data, os_len))
                        return NULL;
                break;
index 6bb2546eda5664a82289e5879a7068e3254363a6..a14509404253fd78b0d47131e4d6888953d54dc7 100644 (file)
@@ -41,6 +41,7 @@
 #define CONFIG_RSA
 #define CONFIG_CMD_FDT
 #define CONFIG_DEFAULT_DEVICE_TREE     sandbox
+#define CONFIG_ANDROID_BOOT_IMAGE
 
 #define CONFIG_FS_FAT
 #define CONFIG_FS_EXT4