Skip to contentSkip to conversation

configs: increasing SPL stack size

PATCH In review Troy Lee 2 participants 2 messages Feb 18, 2022

lore
Share & tools
lore

Troy Lee

author
#0 lore raw

PATCH 1/1 configs: increasing SPL stack size

With commit 5e8cacaa7096 ("Support UART1/2/3/4 as booting console"), the SPL requires more memory. Without this patch, the machine will stop execution right after "Trying to boot from RAM".

Tested with AST2600-A1 and AST2600-A3 evaluation board.

Fixes 5e8cacaa7096 ("Support UART1/2/3/4 as booting console")
---
 configs/ast2600_openbmc_spl_defconfig | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
configs/ast2600_openbmc_spl_defconfig +2 -2
index c1ed4f54d5..98aa3f160e 100644
@@ -22,14 +22,14 @@ CONFIG_ASPEED_KERNEL_FIT_DRAM_BASE=0x83000000
 CONFIG_TARGET_EVB_AST2600A1=y
 CONFIG_SPL_LIBCOMMON_SUPPORT=y
 CONFIG_SPL_LIBGENERIC_SUPPORT=y
-CONFIG_SYS_MALLOC_F_LEN=0x800
+CONFIG_SYS_MALLOC_F_LEN=0x2000
 CONFIG_SPL_MMC_SUPPORT=y
 CONFIG_SPL_SERIAL_SUPPORT=y
 CONFIG_SPL_DRIVERS_MISC_SUPPORT=y
 CONFIG_ENV_SIZE=0x10000
 CONFIG_ENV_OFFSET=0xE0000
 CONFIG_SPL=y
-CONFIG_SPL_STACK_R_ADDR=0x90300000
+CONFIG_SPL_STACK_R_ADDR=0x93000000
 CONFIG_ARMV7_BOOT_SEC_DEFAULT=y
 CONFIG_ARMV7_PSCI_NR_CPUS=2
 CONFIG_NR_DRAM_BANKS=1
Signature · 1 line
2.25.1
Tested-by on v1 1/1
#1 lore raw
Quoted 9 lines · Troy Lee

With commit 5e8cacaa7096 ("Support UART1/2/3/4 as booting console"), the SPL requires more memory. Without this patch, the machine will stop execution right after "Trying to boot from RAM".

Tested with AST2600-A1 and AST2600-A3 evaluation board.

Fixes 5e8cacaa7096 ("Support UART1/2/3/4 as booting console")

---

Signature · 1 line
Patrick Williams