diff options
author | zhang sanshan <sanshan.zhang@nxp.com> | 2017-10-31 13:27:54 +0800 |
---|---|---|
committer | Jason Liu <jason.hui.liu@nxp.com> | 2017-11-03 02:37:29 +0800 |
commit | c321d5195826983f3b19b55853a98e2912588470 (patch) | |
tree | d8a9393c817f5bc098515c737280e575a9b533f8 | |
parent | 2d442a017eee0d3bed69bd3014f158895bfadfda (diff) |
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 <sanshan.zhang@nxp.com>
-rw-r--r-- | include/configs/imx8mq_evk_android.h | 5 | ||||
-rw-r--r-- | include/configs/imx8qm_arm2_android.h | 5 | ||||
-rw-r--r-- | include/configs/imx8qxp_arm2_android.h | 5 | ||||
-rw-r--r-- | include/configs/imx8qxp_mek_android.h | 5 |
4 files changed, 20 insertions, 0 deletions
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*/ |