From patchwork Mon Apr 20 05:43:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Simek X-Patchwork-Id: 238065 List-Id: U-Boot discussion From: michal.simek at xilinx.com (Michal Simek) Date: Mon, 20 Apr 2020 07:43:55 +0200 Subject: [PATCH] ARM: zynq: Change SYS_MALLOC_LEN in zynq_cse_nand_defconfig Message-ID: From: T Karthik Reddy nand_scan_tail() function allocates memory dynamically for struct nand_buffers which needs ~21kbytes of memory. But the memory alloted with CONFIG_SYS_MALLOC_LEN is 4k which is insufficient. Increase CONFIG_SYS_MALLOC_LEN to 32Kbytes from which struct nand_buffers uses ~21kbytes & remaining memory is used for other. Signed-off-by: T Karthik Reddy Signed-off-by: Michal Simek --- configs/zynq_cse_nand_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/zynq_cse_nand_defconfig b/configs/zynq_cse_nand_defconfig index 2b58c461c390..80a427d905d3 100644 --- a/configs/zynq_cse_nand_defconfig +++ b/configs/zynq_cse_nand_defconfig @@ -4,7 +4,7 @@ CONFIG_SYS_ICACHE_OFF=y CONFIG_SYS_DCACHE_OFF=y CONFIG_ARCH_ZYNQ=y CONFIG_SYS_TEXT_BASE=0x100000 -CONFIG_SYS_MALLOC_LEN=0x1000 +CONFIG_SYS_MALLOC_LEN=0x8000 CONFIG_ENV_SIZE=0x190 CONFIG_SPL_STACK_R_ADDR=0x200000 CONFIG_SPL=y