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.przyw...@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@1 { + description = "U-Boot (64-bit)"; + data = /incbin/("../../u-boot-nodtb.bin"); + type = "standalone"; + arch = "arm64"; + compression = "none"; + load = <0x4a000000>; + }; + atf@1 { + description = "ARM Trusted Firmware"; + data = /incbin/("../../bl31.bin"); + type = "firmware"; + arch = "arm64"; + compression = "none"; + load = <0x44000>; + entry = <0x44000>; + }; + fdt@1 { + description = "Pine64+ DT"; + data = /incbin/("../../arch/arm/dts/sun50i-a64-pine64-plus.dtb"); + type = "flat_dt"; + compression = "none"; + }; + fdt@2 { + description = "Pine64 DT"; + data = /incbin/("../../arch/arm/dts/sun50i-a64-pine64.dtb"); + type = "flat_dt"; + compression = "none"; + }; + }; + configurations { + default = "config@1"; + + config@1 { + description = "sun50i-a64-pine64-plus"; + firmware = "uboot@1"; + loadables = "atf@1"; + fdt = "fdt@1"; + }; + config@2 { + description = "sun50i-a64-pine64"; + firmware = "uboot@1"; + loadables = "atf@1"; + fdt = "fdt@2"; + }; + }; +}; -- 2.8.2 _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot