[U-Boot] [RFC PATCH 10/11] sunxi: Pine64: add FIT image source
Andre Przywara
andre.przywara at arm.com
Fri Jan 20 02:53:30 CET 2017
The Pine64 boards require an ARM Trusted Firmware (ATF) image to be
loaded and executes prior to the actual U-Boot proper.
Add a FIT image source file to describe the binaries, also add the
supported DTs to be able to boot multiple boards with one image. Use:
$ tools/mkimage -f boards/sunxi/pine64_atf.its -E pine64_image.itb
to create the image file. Copy (or symlink) the bl31.bin file from
the ARM Trusted Firmware build into the current directory.
Signed-off-by: Andre Przywara <andre.przywara at arm.com>
---
board/sunxi/pine64_atf.its | 54 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
create mode 100644 board/sunxi/pine64_atf.its
diff --git a/board/sunxi/pine64_atf.its b/board/sunxi/pine64_atf.its
new file mode 100644
index 0000000..53fce87
--- /dev/null
+++ b/board/sunxi/pine64_atf.its
@@ -0,0 +1,54 @@
+/dts-v1/;
+
+/ {
+ description = "Configuration to load ATF before U-Boot";
+ #address-cells = <1>;
+
+ images {
+ uboot at 1 {
+ description = "U-Boot (64-bit)";
+ data = /incbin/("../../u-boot-nodtb.bin");
+ type = "standalone";
+ arch = "arm64";
+ compression = "none";
+ load = <0x4a000000>;
+ };
+ atf at 1 {
+ description = "ARM Trusted Firmware";
+ data = /incbin/("../../bl31.bin");
+ type = "firmware";
+ arch = "arm64";
+ compression = "none";
+ load = <0x44000>;
+ entry = <0x44000>;
+ };
+ fdt at 1 {
+ description = "Pine64+ DT";
+ data = /incbin/("../../arch/arm/dts/sun50i-a64-pine64-plus.dtb");
+ type = "flat_dt";
+ compression = "none";
+ };
+ fdt at 2 {
+ description = "Pine64 DT";
+ data = /incbin/("../../arch/arm/dts/sun50i-a64-pine64.dtb");
+ type = "flat_dt";
+ compression = "none";
+ };
+ };
+ configurations {
+ default = "config at 1";
+
+ config at 1 {
+ description = "sun50i-a64-pine64-plus";
+ firmware = "uboot at 1";
+ loadables = "atf at 1";
+ fdt = "fdt at 1";
+ };
+ config at 2 {
+ description = "sun50i-a64-pine64";
+ firmware = "uboot at 1";
+ loadables = "atf at 1";
+ fdt = "fdt at 2";
+ };
+ };
+};
--
2.8.2
More information about the U-Boot
mailing list