From 81a1395fc768cbe1abca2dcbda000f14f64e9144 Mon Sep 17 00:00:00 2001 From: zhang sanshan Date: Tue, 31 Oct 2017 13:27:54 +0800 Subject: 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: zhang sanshan --- include/configs/imx8mq_evk_android.h | 5 +++++ include/configs/imx8qm_arm2_android.h | 5 +++++ include/configs/imx8qxp_arm2_android.h | 5 +++++ include/configs/imx8qxp_mek_android.h | 5 +++++ 4 files changed, 20 insertions(+) diff --git a/include/configs/imx8mq_evk_android.h b/include/configs/imx8mq_evk_android.h index bb9131c378..a49fc1b92f 100644 --- a/include/configs/imx8mq_evk_android.h +++ b/include/configs/imx8mq_evk_android.h @@ -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 diff --git a/include/configs/imx8qm_arm2_android.h b/include/configs/imx8qm_arm2_android.h index 0198273db6..7689761c7c 100644 --- a/include/configs/imx8qm_arm2_android.h +++ b/include/configs/imx8qm_arm2_android.h @@ -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 diff --git a/include/configs/imx8qxp_arm2_android.h b/include/configs/imx8qxp_arm2_android.h index a7c4374837..f5947d7e15 100644 --- a/include/configs/imx8qxp_arm2_android.h +++ b/include/configs/imx8qxp_arm2_android.h @@ -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 diff --git a/include/configs/imx8qxp_mek_android.h b/include/configs/imx8qxp_mek_android.h index 3b69980c8d..6063779887 100644 --- a/include/configs/imx8qxp_mek_android.h +++ b/include/configs/imx8qxp_mek_android.h @@ -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*/ -- cgit v1.2.3