Skip to contentSkip to conversation

configs: am62x_evm_r5: Increase size of malloc_simple heap after relocation

PATCH In review Judith Mendez 4 participants 4 messages Apr 29, 2024 – May 3, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: am62x_evm_r5: Increase size of malloc_simple heap after relocation

On AM62x SK we can see a boot failure with signature "alloc space exhausted", so fix by increasing size of SPL_STACK_R_MALLOC_SIMPLE_LEN.

Fixes 128f81290b ("arm: dts: k3: binman: am625: add support for signing TIFSSTUB Images")
---
 configs/am62x_evm_r5_defconfig | 1 +
 1 file changed, 1 insertion(+)
configs/am62x_evm_r5_defconfig +1 -0
index 4b2e57b13a0..648241488ed 100644
@@ -26,6 +26,7 @@ CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
 CONFIG_SPL_BSS_START_ADDR=0x43c3b000
 CONFIG_SPL_BSS_MAX_SIZE=0x3000
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x200000
 CONFIG_SPL_SIZE_LIMIT=0x3A7F0
 CONFIG_SPL_SIZE_LIMIT_PROVIDE_STACK=0x3500
 CONFIG_SPL_FS_FAT=y

base-commit: 174ac987655c888017c82df1883c0c2ea0dc2495

Signature · 1 line
2.43.2
Tested-by on v1 1/1
#1 lore raw

Hi Judith!

Quoted 5 lines · Judith Mendez

On AM62x SK we can see a boot failure with signature "alloc space exhausted", so fix by increasing size of SPL_STACK_R_MALLOC_SIMPLE_LEN.

Fixes 128f81290b ("arm: dts: k3: binman: am625: add support for signing TIFSSTUB Images")

This also helped me to enable DFU on AM625, so:

Quoted 16 lines

---
 configs/am62x_evm_r5_defconfig | 1 +

 1 file changed, 1 insertion(+)
configs/am62x_evm_r5_defconfig +0 -0
index 4b2e57b13a0..648241488ed 100644
@@ -26,6 +26,7 @@ CONFIG_SPL_HAS_BSS_LINKER_SECTION=y

 CONFIG_SPL_BSS_START_ADDR=0x43c3b000
 CONFIG_SPL_BSS_MAX_SIZE=0x3000
 CONFIG_SPL_STACK_R=y
+CONFIG_SPL_STACK_R_MALLOC_SIMPLE_LEN=0x200000
 CONFIG_SPL_SIZE_LIMIT=0x3A7F0
 CONFIG_SPL_SIZE_LIMIT_PROVIDE_STACK=0x3500
 CONFIG_SPL_FS_FAT=y

Signature · 3 lines
Alexander Sverdlin
Siemens AG
www.siemens.com
Reviewed-by on v1 1/1
#2 lore raw
In reply to Judith Mendez

Thanks Judith!

On April 29, 2024 thus sayeth Judith Mendez:

Quoted 9 lines

On AM62x SK we can see a boot failure with signature "alloc space exhausted", so fix by increasing size of SPL_STACK_R_MALLOC_SIMPLE_LEN.

Fixes 128f81290b ("arm: dts: k3: binman: am625: add support for signing TIFSSTUB Images")
---
 configs/am62x_evm_r5_defconfig | 1 +
 1 file changed, 1 insertion(+)

This fixes the 62 for me

~Bryan

#3 lore raw
In reply to Judith Mendez
Quoted 7 lines · Judith Mendez

On AM62x SK we can see a boot failure with signature "alloc space exhausted", so fix by increasing size of SPL_STACK_R_MALLOC_SIMPLE_LEN.

Fixes 128f81290b ("arm: dts: k3: binman: am625: add support for signing TIFSSTUB Images")

Applied to u-boot/master, thanks!

Signature · 1 line
Tom