Skip to contentSkip to conversation

configs: toradex-smarc-imx95: set spl_stack

PATCH In review [email protected] 4 participants 4 messages Nov 26, 2025 – Nov 27, 2025 Arm i.MX and Layerscape

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: toradex-smarc-imx95: set spl_stack

From: Max Krummenacher <[email protected]>

The SPL_STACK config option now depends on having SPL_HAVE_INIT_STACK defined. This made savedefconfig dropping SPL_STACK when sending the initial configuration.
Note that SPL/U-Boot are able to boot linux from mass storage with SPL_STACK not set but other use cases might run out of stack or overlap with other RAM use.

Compare with:
commit d6a53f523afe ("spl: Add an SPL_HAVE_INIT_STACK option") commit 25fefa05d732 ("configs: Resync with savedefconfig")

Fixes ff0540fcfe49 ("board: toradex: add Toradex SMARC iMX95")

---

 configs/toradex-smarc-imx95_defconfig | 2 ++
 1 file changed, 2 insertions(+)
configs/toradex-smarc-imx95_defconfig +2 -0
index c5cea6e4e5f5..5ab420ae519e 100644
@@ -17,6 +17,7 @@ CONFIG_SYS_MONITOR_LEN=524288
 CONFIG_SPL_MMC=y
 CONFIG_SPL_SERIAL=y
 CONFIG_SPL_DRIVERS_MISC=y
+CONFIG_SPL_STACK=0x204d6000
 CONFIG_SPL_TEXT_BASE=0x20480000
 CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
 CONFIG_SPL_BSS_START_ADDR=0x204d6000
@@ -49,6 +50,7 @@ CONFIG_SPL_BOARD_INIT=y
 CONFIG_SPL_LOAD_IMX_CONTAINER=y
 CONFIG_IMX_CONTAINER_CFG="arch/arm/mach-imx/imx9/scmi/container.cfg"
 # CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
+CONFIG_SPL_HAVE_INIT_STACK=y
 CONFIG_SPL_SYS_MALLOC=y
 CONFIG_SPL_HAS_CUSTOM_MALLOC_START=y
 CONFIG_SPL_CUSTOM_SYS_MALLOC_ADDR=0x93200000
Signature · 1 line
2.42.0
Acked-by on v1 1/1
#1 lore raw
Quoted 9 lines · On Wed, Nov 26, 2025 at 02:41:04PM +0100, [email protected] wrote:

From: Max Krummenacher <[email protected]>

The SPL_STACK config option now depends on having SPL_HAVE_INIT_STACK defined. This made savedefconfig dropping SPL_STACK when sending the initial configuration.
Note that SPL/U-Boot are able to boot linux from mass storage with SPL_STACK not set but other use cases might run out of stack or overlap with other RAM use.

Quoted 6 lines

Compare with:
commit d6a53f523afe ("spl: Add an SPL_HAVE_INIT_STACK option") commit 25fefa05d732 ("configs: Resync with savedefconfig")

Fixes ff0540fcfe49 ("board: toradex: add Toradex SMARC iMX95")
reviewer Reviewed-by
#2 lore raw

Hi Tom,

Quoted 11 lines · Francesco Dolcini
Quoted 9 lines · On Wed, Nov 26, 2025 at 02:41:04PM +0100, [email protected] wrote:

From: Max Krummenacher <[email protected]>

The SPL_STACK config option now depends on having SPL_HAVE_INIT_STACK defined. This made savedefconfig dropping SPL_STACK when sending the initial configuration.
Note that SPL/U-Boot are able to boot linux from mass storage with SPL_STACK not set but other use cases might run out of stack or overlap with other RAM use.

Quoted 8 lines
Quoted 6 lines

Compare with:
commit d6a53f523afe ("spl: Add an SPL_HAVE_INIT_STACK option") commit 25fefa05d732 ("configs: Resync with savedefconfig")

Fixes ff0540fcfe49 ("board: toradex: add Toradex SMARC iMX95")

Feel free to pick up this one directly to master.

Currently, I don't have any outstanding patches for master in my queue.

#3 lore raw
In reply to [email protected]
Quoted 8 lines · On Wed, 26 Nov 2025 14:41:04 +0100, [email protected] wrote:

The SPL_STACK config option now depends on having SPL_HAVE_INIT_STACK defined. This made savedefconfig dropping SPL_STACK when sending the initial configuration.
Note that SPL/U-Boot are able to boot linux from mass storage with SPL_STACK not set but other use cases might run out of stack or overlap with other RAM use.

[...]

Applied to u-boot/master, thanks!

[1/1] configs: toradex-smarc-imx95: set spl_stack

      commit: 610a3eb27ea1e68363fffcb3f14b7fc097ef08b6
Signature · 1 line
Tom