sunxi: Select SPL_SEPARATE_BSS
authorSamuel Holland <samuel@sholland.org>
Sun, 22 Aug 2021 18:23:53 +0000 (13:23 -0500)
committerAndre Przywara <andre.przywara@arm.com>
Mon, 25 Oct 2021 13:48:58 +0000 (14:48 +0100)
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 <samuel@sholland.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
arch/arm/Kconfig

index 504abca..ebd9468 100644 (file)
@@ -1037,6 +1037,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