[PATCH v2 2/3] riscv: dts: starfive: Prevent binman from relocating symbols in SPL
Yao Zi
ziyao at disroot.org
Wed Apr 16 18:25:32 CEST 2025
SPL and proper U-Boot are split into two images with default binman
configuration of StarFive VisionFive 2, thus proper U-Boot symbols
cannot be found in the SPL image. This fixes errors like
Section '/binman/spl-img': Symbol '_binman_u_boot_any_prop_size'
in entry '/binman/spl-img/mkimage/u-boot-spl/u-boot-spl-nodtb':
Entry 'u-boot-any' not found in list (u-boot-spl-nodtb,
u-boot-spl-dtb,u-boot-spl,mkimage,spl-img)
Fixes: 90602e779d3 ("riscv: dts: starfive: generate u-boot-spl.bin.normal.out")
Suggested-by: Jonas Karlman <jonas at kwiboo.se>
Signed-off-by: Yao Zi <ziyao at disroot.org>
---
arch/riscv/dts/starfive-visionfive2-binman.dtsi | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/riscv/dts/starfive-visionfive2-binman.dtsi b/arch/riscv/dts/starfive-visionfive2-binman.dtsi
index 4cce001e80d..10e3d964588 100644
--- a/arch/riscv/dts/starfive-visionfive2-binman.dtsi
+++ b/arch/riscv/dts/starfive-visionfive2-binman.dtsi
@@ -96,6 +96,7 @@
args = "-T sfspl";
u-boot-spl {
+ no-write-symbols;
};
};
};
--
2.49.0
More information about the U-Boot
mailing list