From c321d5195826983f3b19b55853a98e2912588470 Mon Sep 17 00:00:00 2001 From: zhang sanshan Date: Tue, 31 Oct 2017 13:27:54 +0800 Subject: [PATCH] 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 887bdc4107..b2bf785eb0 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 536975c4cb..cc98c72c6b 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 3865918074..9660b297d8 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*/ -- 2.17.1