* [PATCH v2 0/5] arm: rockchip: TPL/SPL config options minor fixes
@ 2026-11-23 18:00 Massimo Pegorer
2026-11-23 18:00 ` [PATCH v2 1/5] arm: rockchip: rv1126: Remove unneeded TPL_LDSCRIPT default Massimo Pegorer
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Massimo Pegorer @ 2026-11-23 18:00 UTC (permalink / raw)
To: u-boot, Quentin Schulz, Jonas Karlman
Cc: Tom Rini, Ilias Apalodimas, Johan Jonker, Massimo Pegorer,
Quentin Schulz
The series fixes some minor issues in TPL and SPL configuration options
handling, improving configurations consistency. Neither functional nor
binary changes intended.
Signed-off-by: Massimo Pegorer <massimo.pegorer+oss@gmail.com>
---
Changes in v2:
- new patch [3/5] related to SPL_BSS_MAX_SIZE case
- simplify SPL_BSS_MAX_SIZE case solution
- update and reword commit messages
- collect tags
- rebase on next
- Link to v1: https://patch.msgid.link/20261002-config-v1-0-11bb20983682@gmail.com
---
Massimo Pegorer (5):
arm: rockchip: rv1126: Remove unneeded TPL_LDSCRIPT default
arm: rockchip: Avoid TPL_LDSCRIPT configuration when unneeded
arm: rockchip: Move SPL_BSS_MAX_SIZE default value defintion
arm: rockchip: Avoid SPL_BSS_START_ADDR definition if unneeded
arm: rockchip: Remove unneeded SPL_SHARES_INIT_SP_ADDR check
arch/arm/mach-rockchip/Kconfig | 8 ++------
arch/arm/mach-rockchip/px30/Kconfig | 2 +-
arch/arm/mach-rockchip/rk3328/Kconfig | 2 +-
arch/arm/mach-rockchip/rk3399/Kconfig | 2 +-
arch/arm/mach-rockchip/rv1126/Kconfig | 3 ---
common/spl/Kconfig | 1 +
6 files changed, 6 insertions(+), 12 deletions(-)
---
base-commit: d22f61a39fb68bc697e67df45f2e3103378bc7cd
change-id: 20261002-config-36524677a702
Best regards,
--
Massimo Pegorer <massimo.pegorer+oss@gmail.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH v2 1/5] arm: rockchip: rv1126: Remove unneeded TPL_LDSCRIPT default
2026-11-23 18:00 [PATCH v2 0/5] arm: rockchip: TPL/SPL config options minor fixes Massimo Pegorer
@ 2026-11-23 18:00 ` Massimo Pegorer
2026-11-23 18:00 ` [PATCH v2 2/5] arm: rockchip: Avoid TPL_LDSCRIPT configuration when unneeded Massimo Pegorer
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Massimo Pegorer @ 2026-11-23 18:00 UTC (permalink / raw)
To: u-boot, Quentin Schulz, Jonas Karlman
Cc: Tom Rini, Ilias Apalodimas, Johan Jonker, Massimo Pegorer,
Quentin Schulz
The arch/arm/mach-rockchip/u-boot-tpl.lds linker script file does not
exist. Therefore, in the end, scripts/Makefile.xpl logic fallbacks on
using the arch common linker script: arch/$(ARCH)/cpu/u-boot-spl.lds.
This is also the default value of TPL_LDSCRIPT option common definition
in common/spl/Kconfig, thus dropping this RV1126 specific definition
simplifies the configuration and has no side effect on binary outputs.
The RV1126 Kconfig file with TPL_LDSCRIPT definition has been added by
ffb191e458c ("arm: rockchip: Add RV1126 arch core support") just a few
days after 957848882c8 ("rk32xx: Use standard TPL linker script") that
removed the arch/arm/mach-rockchip/u-boot-tpl.lds linker script file.
The commit date of the second follows the author date of the first: I
suppose this caused the inconsistency.
Fixes: ffb191e458cf ("arm: rockchip: Add RV1126 arch core support")
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Massimo Pegorer <massimo.pegorer+oss@gmail.com>
---
Changes in v2:
- collect Fixes and Reviewed-by tags
- reword commit message title
---
arch/arm/mach-rockchip/rv1126/Kconfig | 3 ---
1 file changed, 3 deletions(-)
diff --git a/arch/arm/mach-rockchip/rv1126/Kconfig b/arch/arm/mach-rockchip/rv1126/Kconfig
index d066df9a86e..57ef4e1aaf7 100644
--- a/arch/arm/mach-rockchip/rv1126/Kconfig
+++ b/arch/arm/mach-rockchip/rv1126/Kconfig
@@ -43,9 +43,6 @@ config SPL_STACK
config SPL_STACK_R_ADDR
default 0x800000
-config TPL_LDSCRIPT
- default "arch/arm/mach-rockchip/u-boot-tpl.lds"
-
config TPL_STACK
default 0xff718000
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 2/5] arm: rockchip: Avoid TPL_LDSCRIPT configuration when unneeded
2026-11-23 18:00 [PATCH v2 0/5] arm: rockchip: TPL/SPL config options minor fixes Massimo Pegorer
2026-11-23 18:00 ` [PATCH v2 1/5] arm: rockchip: rv1126: Remove unneeded TPL_LDSCRIPT default Massimo Pegorer
@ 2026-11-23 18:00 ` Massimo Pegorer
2026-11-23 18:00 ` [PATCH v2 3/5] arm: rockchip: Move SPL_BSS_MAX_SIZE default value defintion Massimo Pegorer
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Massimo Pegorer @ 2026-11-23 18:00 UTC (permalink / raw)
To: u-boot, Quentin Schulz, Jonas Karlman
Cc: Tom Rini, Ilias Apalodimas, Johan Jonker, Massimo Pegorer
When CONFIG_TPL is not selected, there is no need to define a TPL linker
script file through TPL_LDSCRIPT configuration option's value. Skipping
it avoids an unnecessary line in the .config, and therefore in the
qconfig database, without any effect on the built artifacts.
Affected board configurations are the ones related to RK3328 and RK3399
SoCs that do not include TPL. All the board configurations related to
the PX30 SoC include TPL; nevertheless, align the PX30 Kconfig with
this fix too.
Signed-off-by: Massimo Pegorer <massimo.pegorer+oss@gmail.com>
---
Changes in v2:
- reword commit message
---
arch/arm/mach-rockchip/px30/Kconfig | 2 +-
arch/arm/mach-rockchip/rk3328/Kconfig | 2 +-
arch/arm/mach-rockchip/rk3399/Kconfig | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm/mach-rockchip/px30/Kconfig b/arch/arm/mach-rockchip/px30/Kconfig
index 0088d436d36..23f1667f07a 100644
--- a/arch/arm/mach-rockchip/px30/Kconfig
+++ b/arch/arm/mach-rockchip/px30/Kconfig
@@ -75,7 +75,7 @@ config SPL_SERIAL
default y
config TPL_LDSCRIPT
- default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds"
+ default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds" if TPL
config TPL_TEXT_BASE
default 0xff0e1000
diff --git a/arch/arm/mach-rockchip/rk3328/Kconfig b/arch/arm/mach-rockchip/rk3328/Kconfig
index ec1dae8d413..032d90927f3 100644
--- a/arch/arm/mach-rockchip/rk3328/Kconfig
+++ b/arch/arm/mach-rockchip/rk3328/Kconfig
@@ -22,7 +22,7 @@ config SYS_SOC
default "rk3328"
config TPL_LDSCRIPT
- default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds"
+ default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds" if TPL
config TPL_TEXT_BASE
default 0xff091000
diff --git a/arch/arm/mach-rockchip/rk3399/Kconfig b/arch/arm/mach-rockchip/rk3399/Kconfig
index d84a9da8ed5..250e3728948 100644
--- a/arch/arm/mach-rockchip/rk3399/Kconfig
+++ b/arch/arm/mach-rockchip/rk3399/Kconfig
@@ -142,7 +142,7 @@ config SYS_SOC
default "rk3399"
config TPL_LDSCRIPT
- default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds"
+ default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds" if TPL
config TPL_STACK
default 0xff8effff
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 3/5] arm: rockchip: Move SPL_BSS_MAX_SIZE default value defintion
2026-11-23 18:00 [PATCH v2 0/5] arm: rockchip: TPL/SPL config options minor fixes Massimo Pegorer
2026-11-23 18:00 ` [PATCH v2 1/5] arm: rockchip: rv1126: Remove unneeded TPL_LDSCRIPT default Massimo Pegorer
2026-11-23 18:00 ` [PATCH v2 2/5] arm: rockchip: Avoid TPL_LDSCRIPT configuration when unneeded Massimo Pegorer
@ 2026-11-23 18:00 ` Massimo Pegorer
2026-11-23 18:00 ` [PATCH v2 4/5] arm: rockchip: Avoid SPL_BSS_START_ADDR definition if unneeded Massimo Pegorer
2026-11-23 18:00 ` [PATCH v2 5/5] arm: rockchip: Remove unneeded SPL_SHARES_INIT_SP_ADDR check Massimo Pegorer
4 siblings, 0 replies; 6+ messages in thread
From: Massimo Pegorer @ 2026-11-23 18:00 UTC (permalink / raw)
To: u-boot, Quentin Schulz, Jonas Karlman
Cc: Tom Rini, Ilias Apalodimas, Johan Jonker, Massimo Pegorer
All ARCH_ROCKCHIP board configurations using SPL_BSS_MAX_SIZE have
0x8000 as the value for this option, except one, the evb-px5_defconfig,
which has 0x20000 instead. Now that most Rockchip board configurations
have migrated to use the same default, there is no further need for a
second SPL_BSS_MAX_SIZE config statement definition, with different
defaults based on complex conditions. Instead, in the common/spl/Kconfig
file, declare 0x8000 as the default value for SPL_BSS_MAX_SIZE when
ARCH_ROCKCHIP is selected.
Signed-off-by: Massimo Pegorer <massimo.pegorer+oss@gmail.com>
---
New patch in v2:
- split from patch v1 [3/4]
---
arch/arm/mach-rockchip/Kconfig | 5 -----
common/spl/Kconfig | 1 +
2 files changed, 1 insertion(+), 5 deletions(-)
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index c1dbcce1e27..86eb5012192 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -840,11 +840,6 @@ config SPL_BSS_START_ADDR
default 0x43f80000 if SPL_TEXT_BASE = 0x40000000
default 0x03f80000 if SPL_TEXT_BASE = 0x00000000
-config SPL_BSS_MAX_SIZE
- default 0x8000 if SPL_BSS_START_ADDR = 0x63f80000
- default 0x8000 if SPL_BSS_START_ADDR = 0x43f80000
- default 0x8000 if SPL_BSS_START_ADDR = 0x03f80000
-
config SPL_STACK_R
default y if CUSTOM_SYS_INIT_SP_ADDR = 0x63f00000
default y if CUSTOM_SYS_INIT_SP_ADDR = 0x43f00000
diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 4930ecb0861..216542c0288 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -150,6 +150,7 @@ config SPL_BSS_MAX_SIZE
default 0x100000 if ARCH_MX6 || RISCV
default 0x80000 if ARCH_OMAP2PLUS || ARCH_SUNXI
default 0x10000 if ARCH_SC5XX
+ default 0x8000 if ARCH_ROCKCHIP
help
When non-zero, the linker checks that the actual memory used by SPL
from __bss_start to __bss_end does not exceed it.
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 4/5] arm: rockchip: Avoid SPL_BSS_START_ADDR definition if unneeded
2026-11-23 18:00 [PATCH v2 0/5] arm: rockchip: TPL/SPL config options minor fixes Massimo Pegorer
` (2 preceding siblings ...)
2026-11-23 18:00 ` [PATCH v2 3/5] arm: rockchip: Move SPL_BSS_MAX_SIZE default value defintion Massimo Pegorer
@ 2026-11-23 18:00 ` Massimo Pegorer
2026-11-23 18:00 ` [PATCH v2 5/5] arm: rockchip: Remove unneeded SPL_SHARES_INIT_SP_ADDR check Massimo Pegorer
4 siblings, 0 replies; 6+ messages in thread
From: Massimo Pegorer @ 2026-11-23 18:00 UTC (permalink / raw)
To: u-boot, Quentin Schulz, Jonas Karlman
Cc: Tom Rini, Ilias Apalodimas, Johan Jonker, Massimo Pegorer
In the common/spl/Kconfig file, the config option SPL_BSS_START_ADDR
is defined under the SPL_HAS_BSS_LINKER_SECTION guard. Adding another
config statement for SPL_BSS_START_ADDR without 'depends on' guard here
causes this option and its value to be put in the .config file even
when the guard is not selected, which is unneeded and sounds wrong.
Moreover, the qconfig.py tool would report SPL_BSS_START_ADDR to be
used by configurations which are not really using it.
Signed-off-by: Massimo Pegorer <massimo.pegorer+oss@gmail.com>
---
Changes in v2:
- move SPL_BSS_MAX_SIZE case in a new patch of the series
- update commit message to patch content
---
arch/arm/mach-rockchip/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index 86eb5012192..11062c4c5c1 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -836,6 +836,7 @@ config SPL_HAS_BSS_LINKER_SECTION
default y if ARM64
config SPL_BSS_START_ADDR
+ depends on SPL_HAS_BSS_LINKER_SECTION
default 0x63f80000 if SPL_TEXT_BASE = 0x60000000
default 0x43f80000 if SPL_TEXT_BASE = 0x40000000
default 0x03f80000 if SPL_TEXT_BASE = 0x00000000
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH v2 5/5] arm: rockchip: Remove unneeded SPL_SHARES_INIT_SP_ADDR check
2026-11-23 18:00 [PATCH v2 0/5] arm: rockchip: TPL/SPL config options minor fixes Massimo Pegorer
` (3 preceding siblings ...)
2026-11-23 18:00 ` [PATCH v2 4/5] arm: rockchip: Avoid SPL_BSS_START_ADDR definition if unneeded Massimo Pegorer
@ 2026-11-23 18:00 ` Massimo Pegorer
4 siblings, 0 replies; 6+ messages in thread
From: Massimo Pegorer @ 2026-11-23 18:00 UTC (permalink / raw)
To: u-boot, Quentin Schulz, Jonas Karlman
Cc: Tom Rini, Ilias Apalodimas, Johan Jonker, Massimo Pegorer,
Quentin Schulz
The ROCKCHIP_COMMON_STACK_ADDR configuration option depends on
SPL_SHARES_INIT_SP_ADDR, therefore the logical AND of the two options
values is equal to the to value of ROCKCHIP_COMMON_STACK_ADDR.
Reviewed-by: Jonas Karlman <jonas@kwiboo.se>
Fixes: 008ba0d56d00 ("rockchip: Add common default bss and stack addresses")
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
Signed-off-by: Massimo Pegorer <massimo.pegorer+oss@gmail.com>
---
Changes in v2:
- collect Fixes and Reviewed-by tags
- reword commit message title
---
arch/arm/mach-rockchip/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig
index 11062c4c5c1..7720c928e90 100644
--- a/arch/arm/mach-rockchip/Kconfig
+++ b/arch/arm/mach-rockchip/Kconfig
@@ -798,7 +798,7 @@ source "arch/arm/mach-rockchip/rk3588/Kconfig"
source "arch/arm/mach-rockchip/rv1108/Kconfig"
source "arch/arm/mach-rockchip/rv1126/Kconfig"
-if ROCKCHIP_COMMON_STACK_ADDR && SPL_SHARES_INIT_SP_ADDR
+if ROCKCHIP_COMMON_STACK_ADDR
config CUSTOM_SYS_INIT_SP_ADDR
default 0x63f00000 if SPL_TEXT_BASE = 0x60000000
--
2.34.1
^ permalink raw reply related [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-11-23 18:00 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-23 18:00 [PATCH v2 0/5] arm: rockchip: TPL/SPL config options minor fixes Massimo Pegorer
2026-11-23 18:00 ` [PATCH v2 1/5] arm: rockchip: rv1126: Remove unneeded TPL_LDSCRIPT default Massimo Pegorer
2026-11-23 18:00 ` [PATCH v2 2/5] arm: rockchip: Avoid TPL_LDSCRIPT configuration when unneeded Massimo Pegorer
2026-11-23 18:00 ` [PATCH v2 3/5] arm: rockchip: Move SPL_BSS_MAX_SIZE default value defintion Massimo Pegorer
2026-11-23 18:00 ` [PATCH v2 4/5] arm: rockchip: Avoid SPL_BSS_START_ADDR definition if unneeded Massimo Pegorer
2026-11-23 18:00 ` [PATCH v2 5/5] arm: rockchip: Remove unneeded SPL_SHARES_INIT_SP_ADDR check Massimo Pegorer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox