From 08919d381cf3d2adb2c2c15b9598767720ad3c7b Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Fri, 3 May 2019 14:05:04 -0300 Subject: [PATCH] imx: Use a convenient default value for SYS_MALLOC_F_LEN Commit 3a7c45f6a772 ("simple-bus: add DM_FLAG_PRE_RELOC flag to simple-bus driver") causes some i.MX boards that were converted to DM, such as warp7, to fail to boot. As explained by Lukas Auer: "With the patch, U-Boot probes the drivers for devices under simple-bus device tree nodes in the pre-relocation device model. The default value of CONFIG_SYS_MALLOC_F_LEN (0x400) leaves U-Boot with not enough memory to do this, causing it to hang." Fix this problem by providing a convenient default value for CONFIG_SYS_MALLOC_F_LEN. Reported-by: Pierre-Jean Texier Suggested-by: Lukas Auer Signed-off-by: Fabio Estevam Tested-by: Pierre-Jean Texier Tested-by: Bryan O'Donoghue Reviewed-by: Lukas Auer Reviewed-by: Peng Fan Tested-by: Heiko Schocher --- Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Kconfig b/Kconfig index a02168690f..9d83d1a22c 100644 --- a/Kconfig +++ b/Kconfig @@ -138,6 +138,8 @@ config SYS_MALLOC_F_LEN depends on SYS_MALLOC_F default 0x1000 if AM33XX default 0x2800 if SANDBOX + default 0x2000 if (ARCH_IMX8 || ARCH_IMX8M || ARCH_MX7 || \ + ARCH_MX7ULP || ARCH_MX6 || ARCH_MX5) default 0x400 help Before relocation, memory is very limited on many platforms. Still, -- 2.25.1