summaryrefslogtreecommitdiff
path: root/include/configs/imx8mm_evk_android.h
diff options
context:
space:
mode:
authorJi Luo <ji.luo@nxp.com>2019-12-10 17:54:40 +0800
committerJi Luo <ji.luo@nxp.com>2019-12-10 20:26:21 +0800
commit7740677930170f694766ce4c8a4be231b8a7f937 (patch)
tree55beb44e20ca879f35acdfdfc3da659128ad8811 /include/configs/imx8mm_evk_android.h
parentce15b01bac8f6a0cf9265eca913bf4560513c0af (diff)
MA-16048 Fix imx8q u-boot hang
Address 0x8880_0000 is reserved for M4 image on imx8q, which leaves limited memory region for the malloc pool. The avb will consume much heap memory to verify the kernel and dtbo image, memory conflicts may happen as the kernel/dtbo image size is getting larger. As the avb will load kernel/dtbo in every avb_slot_verify(), but will only free the memory after both slots are checked(if needed). And for trusty enabled platforms, extra heap memory will be used to do the hash calculation. This commit will free the slot memory once it's marked as unbootable and will use fixed memory started from CONFIG_FASTBOOT_BUF_ADDR to help store the data to do the hash calculation. With above change, we get a chance to decrease the malloc pool size. Test: boot on imx8qxp and imx8mn. Change-Id: Id95b9becf6fa7fae4f120a4dc9e9a3ba90da578c Signed-off-by: Ji Luo <ji.luo@nxp.com>
Diffstat (limited to 'include/configs/imx8mm_evk_android.h')
-rw-r--r--include/configs/imx8mm_evk_android.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/configs/imx8mm_evk_android.h b/include/configs/imx8mm_evk_android.h
index ddfda6cba2..eeba699ad3 100644
--- a/include/configs/imx8mm_evk_android.h
+++ b/include/configs/imx8mm_evk_android.h
@@ -24,7 +24,7 @@
#ifdef CONFIG_SYS_MALLOC_LEN
#undef CONFIG_SYS_MALLOC_LEN
-#define CONFIG_SYS_MALLOC_LEN (96 * SZ_1M)
+#define CONFIG_SYS_MALLOC_LEN (64 * SZ_1M)
#endif
#define CONFIG_USB_FUNCTION_FASTBOOT
@@ -36,7 +36,7 @@
#define CONFIG_FSL_FASTBOOT
#define CONFIG_ANDROID_RECOVERY
-#define CONFIG_FASTBOOT_BUF_ADDR CONFIG_SYS_LOAD_ADDR
+#define CONFIG_FASTBOOT_BUF_ADDR 0x44800000
#define CONFIG_FASTBOOT_BUF_SIZE 0x19000000
#define CONFIG_CMD_BOOTA