[PATCH 1/2] configs: j721s2_evm_r5_defconfig: Increase malloc pool size in DRAM

Udit Kumar u-kumar1 at ti.com
Sun Jun 4 23:47:14 PDT 2023


The malloc capacity in DRAM at R5 SPL is set to 1MB which isn't
sufficient to load the new tispl.bin to
enable loading of tispl.bin the size is increased by 256KB to 1.25MB.

Cc: Manorit Chawdhry <m-chawdhry at ti.com>
Cc: Neha Francis <n-francis at ti.com>
Cc: Vignesh Raghavendra <vigneshr at ti.com>
Cc: Nikhil M Jain <n-jain1 at ti.com>
Cc: Kamlesh Gurudasani <kamlesh at ti.com>
Signed-off-by: Udit Kumar <u-kumar1 at ti.com>
---
Uboot was getting stuck at below
U-Boot SPL 2023.04-g495e929147 (Jun 03 2023 - 04:02:26 +0000)
SYSFW ABI: 3.1 (firmware rev 0x0008 '8.6.3--1-g2249f (Chill Capybara')
SPL initial stack usage: 13424 bytes
Trying to boot from MMC2
alloc space exhausted
spl_load_image_ext: ext4fs mount err - 0
SPL: failed to boot from all boot devices
### ERROR ### Please RESET the board ### 

With patch
boot logs: http://serenity.dal.design.ti.com:7777/jidenicozi.yaml

 configs/j721s2_evm_r5_defconfig | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configs/j721s2_evm_r5_defconfig b/configs/j721s2_evm_r5_defconfig
index c197504eec..6910705d59 100644
--- a/configs/j721s2_evm_r5_defconfig
+++ b/configs/j721s2_evm_r5_defconfig
@@ -178,3 +178,4 @@ CONFIG_FS_FAT_MAX_CLUSTSIZE=16384
 CONFIG_PANIC_HANG=y
 CONFIG_LIB_RATIONAL=y
 CONFIG_SPL_LIB_RATIONAL=y
+CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x140000
-- 
2.34.1




More information about the linux-arm-kernel mailing list