sunxi: Select SPL_SEPARATE_BSS
PATCH 1/1 sunxi: Select SPL_SEPARATE_BSS
sunxi-common.h defines CONFIG_SPL_BSS_START_ADDR to put SPL's BSS in DRAM. Due to this, we must select SPL_SEPARATE_BSS, or else SPL will attempt to load its DTB from the wrong address (after BSS in DRAM).
This change fixes booting with SPL_OF_CONTROL=y.
Signed-off-by Samuel Holland <[email protected]>
---
arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/Kconfig +1 -0
@@ -1008,6 +1008,7 @@ config ARCH_SUNXI select OF_CONTROL select OF_SEPARATE select SPECIFY_CONSOLE_INDEX + select SPL_SEPARATE_BSS if SPL select SPL_STACK_R if SPL select SPL_SYS_MALLOC_SIMPLE if SPL select SPL_SYS_THUMB_BUILD if !ARM64
Signature · 1 line
2.31.1
Quoted 7 lines · On Sun, 22 Aug 2021 13:23:53 -0500 Samuel Holland <[email protected]> wrote:
sunxi-common.hdefinesCONFIG_SPL_BSS_START_ADDRto put SPL's BSS in DRAM. Due to this, we must selectSPL_SEPARATE_BSS, or else SPL will attempt to load its DTB from the wrong address (after BSS in DRAM).This change fixes booting with SPL_OF_CONTROL=y.
Signed-off-by Samuel Holland <[email protected]>
Makes sense, although I think we don't use that atm?
Anyway:
Reviewed-by Andre Przywara <[email protected]>
Cheers,
Andre
Quoted 17 lines
---
arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)arch/arm/Kconfig +1
-0@@ -1008,6 +1008,7 @@ config ARCH_SUNXI select OF_CONTROL select OF_SEPARATE select SPECIFY_CONSOLE_INDEX + select SPL_SEPARATE_BSS if SPL select SPL_STACK_R if SPL select SPL_SYS_MALLOC_SIMPLE if SPL select SPL_SYS_THUMB_BUILD if !ARM64