[PATCH v4 09/25] rockchip: Add a template for SPL
Simon Glass
sjg at chromium.org
Sun May 25 12:47:45 CEST 2025
The SPL phase has a single SPL binary plus a devicetree for each board
we need to support.
The devicetree is run through fdtgrep to remove unwanted nodes and
properties and reduce its size.
While it would be nicer to just have a single FIT holding both the SPL
and U-Boot images, there may not be enough SRAM to support that. So we
end up providing this special image just for SPL.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
Changes in v4:
- Use FIT_ARCH instead of ARCH
Changes in v3:
- Move template to the vpl file
arch/arm/dts/rockchip-vpl-u-boot.dtsi | 43 +++++++++++++++++++++++++++
1 file changed, 43 insertions(+)
diff --git a/arch/arm/dts/rockchip-vpl-u-boot.dtsi b/arch/arm/dts/rockchip-vpl-u-boot.dtsi
index dc1664d7b2d..9604972543b 100644
--- a/arch/arm/dts/rockchip-vpl-u-boot.dtsi
+++ b/arch/arm/dts/rockchip-vpl-u-boot.dtsi
@@ -66,4 +66,47 @@
};
};
};
+
+ spl_template: template-2 {
+ type = "fit";
+ description = "FIT image for U-Boot SPL";
+ #address-cells = <1>;
+ fit,fdt-list = "of-list";
+ fit,align = <512>;
+ fit,external-offset = <0>;
+ images {
+ spl {
+ description = "U-Boot SPL";
+ type = "firmware";
+ os = "u-boot";
+ arch = FIT_ARCH;
+ compression = "lz4";
+ load = <CONFIG_SPL_TEXT_BASE>;
+ entry = <CONFIG_SPL_TEXT_BASE>;
+ section {
+ compress = "lz4";
+ u-boot-spl-nodtb {
+ };
+ u-boot-spl-bss-pad {
+ };
+ };
+ };
+ @fdt-SEQ {
+ description = "fdt-NAME";
+ compression = "none";
+ type = "flat_dt";
+ fit,fdt-phase = "spl";
+ };
+ };
+ configurations {
+ default = "@config-DEFAULT-SEQ";
+ @config-SEQ {
+ description = "NAME.dtb";
+ fdt = "fdt-SEQ";
+ fit,firmware = "spl";
+ fit,loadables;
+ fit,compatible;
+ };
+ };
+ };
};
--
2.34.1
More information about the U-Boot
mailing list