From: Emanuele Ghidoli Date: Thu, 16 Feb 2023 11:31:15 +0000 (+0100) Subject: configs: verdin-imx8mp: Fix wrong early malloc() heap size X-Git-Tag: baikal/mips/sdk6.2~4^2~3^2~175^2~16^2~4 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=7571bccf0d49f85f3d1c7d28702b74ff396a8485;p=uboot.git configs: verdin-imx8mp: Fix wrong early malloc() heap size Set, previously unset, CONFIG_SPL_SYS_MALLOC_F_LEN to 0x4000 whose default value is 0x10000. Early malloc() uses CRAM_S at 0x184000 (CFG_MALLOC_F_ADDR), this ram area end at 0x188000. Fixes: 0461c5f01362 ("board: toradex: add verdin imx8m plus support") Signed-off-by: Emanuele Ghidoli Signed-off-by: Francesco Dolcini Acked-by: Marcel Ziswiler --- diff --git a/configs/verdin-imx8mp_defconfig b/configs/verdin-imx8mp_defconfig index 359e51ab1b..4efe6f9c21 100644 --- a/configs/verdin-imx8mp_defconfig +++ b/configs/verdin-imx8mp_defconfig @@ -50,6 +50,7 @@ CONFIG_SPL_BOARD_INIT=y CONFIG_SPL_BOOTROM_SUPPORT=y CONFIG_SPL_SYS_MALLOC_SIMPLE=y # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set +CONFIG_SPL_SYS_MALLOC_F_LEN=0x4000 CONFIG_SYS_SPL_MALLOC=y CONFIG_HAS_CUSTOM_SPL_MALLOC_START=y CONFIG_CUSTOM_SYS_SPL_MALLOC_ADDR=0x42200000