From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andre Przywara Date: Fri, 20 Jan 2017 01:53:30 +0000 Subject: [U-Boot] [RFC PATCH 10/11] sunxi: Pine64: add FIT image source In-Reply-To: <1484877211-19332-1-git-send-email-andre.przywara@arm.com> References: <1484877211-19332-1-git-send-email-andre.przywara@arm.com> Message-ID: <1484877211-19332-11-git-send-email-andre.przywara@arm.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- 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