Commit c321d519 authored by zhang sanshan's avatar zhang sanshan Committed by Jason Liu

MA-10557 [Android] enlarge malloc size

uboot will have below error log when verify boot.img
avb_util.c:199: ERROR: Failed to allocate memory.

the default size of malloc is 36M. But we need to load boot.img
with malloc addr. enlarge the size of malloc to 64M.

Change-Id: I64d0403b0cc970128cdfd1eafe7a4680a92f7c25
Signed-off-by: default avatarzhang sanshan <sanshan.zhang@nxp.com>
parent 2d442a01
......@@ -21,6 +21,11 @@
#define CONFIG_FASTBOOT_LOCK
#define FSL_FASTBOOT_FB_DEV "mmc"
#ifdef CONFIG_SYS_MALLOC_LEN
#undef CONFIG_SYS_MALLOC_LEN
#define CONFIG_SYS_MALLOC_LEN (64 * SZ_1M)
#endif
#define CONFIG_USB_FUNCTION_FASTBOOT
#define CONFIG_CMD_FASTBOOT
#define CONFIG_ANDROID_BOOT_IMAGE
......
......@@ -25,6 +25,11 @@
#define CONFIG_FASTBOOT_LOCK
#define FSL_FASTBOOT_FB_DEV "mmc"
#ifdef CONFIG_SYS_MALLOC_LEN
#undef CONFIG_SYS_MALLOC_LEN
#define CONFIG_SYS_MALLOC_LEN (64 * SZ_1M)
#endif
#define CONFIG_USB_FUNCTION_FASTBOOT
#define CONFIG_CMD_FASTBOOT
#define CONFIG_ANDROID_BOOT_IMAGE
......
......@@ -30,6 +30,11 @@
#define CONFIG_FASTBOOT_LOCK
#define FSL_FASTBOOT_FB_DEV "mmc"
#ifdef CONFIG_SYS_MALLOC_LEN
#undef CONFIG_SYS_MALLOC_LEN
#define CONFIG_SYS_MALLOC_LEN (64 * SZ_1M)
#endif
#define CONFIG_FSL_FASTBOOT
#define CONFIG_ANDROID_RECOVERY
......
......@@ -25,6 +25,11 @@
#define CONFIG_FASTBOOT_LOCK
#define FSL_FASTBOOT_FB_DEV "mmc"
#ifdef CONFIG_SYS_MALLOC_LEN
#undef CONFIG_SYS_MALLOC_LEN
#define CONFIG_SYS_MALLOC_LEN (64 * SZ_1M)
#endif
#define CONFIG_USB_FUNCTION_FASTBOOT
/*#define CONFIG_CMD_FASTBOOT*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment