Re: [U-Boot] [PATCH 7/8] armv8: K3: am654: Introduce FIT generator script
On Friday 24 August 2018 07:41 PM, Tom Rini wrote: > On Tue, Aug 21, 2018 at 08:00:54PM +0530, Lokesh Vutla wrote: > >> Add a script that is capable of generating a FIT image >> source file that combines ATF, SPL(64 bit) and DT. >> This combined image is used by R5 SPL and start ATF >> on ARMv8 core. >> >> Signed-off-by: Lokesh Vutla >> --- >> tools/k3/k3_fit_atf.sh | 98 ++ >> 1 file changed, 98 insertions(+) >> create mode 100755 tools/k3/k3_fit_atf.sh >> >> diff --git a/tools/k3/k3_fit_atf.sh b/tools/k3/k3_fit_atf.sh >> new file mode 100755 >> index 00..ef84e3d182 >> --- /dev/null >> +++ b/tools/k3/k3_fit_atf.sh > > I know we have one thing in tools/omap/ but I'd rather see this as just > tools/k3_fit_atf.sh will fix it in v2. > >> @@ -0,0 +1,98 @@ >> +#!/bin/sh >> +# > > Missing SPDX tag. > Oops. will add it. Thanks and regards, Lokesh ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Re: [U-Boot] [PATCH 7/8] armv8: K3: am654: Introduce FIT generator script
On Tue, Aug 21, 2018 at 08:00:54PM +0530, Lokesh Vutla wrote: > Add a script that is capable of generating a FIT image > source file that combines ATF, SPL(64 bit) and DT. > This combined image is used by R5 SPL and start ATF > on ARMv8 core. > > Signed-off-by: Lokesh Vutla > --- > tools/k3/k3_fit_atf.sh | 98 ++ > 1 file changed, 98 insertions(+) > create mode 100755 tools/k3/k3_fit_atf.sh > > diff --git a/tools/k3/k3_fit_atf.sh b/tools/k3/k3_fit_atf.sh > new file mode 100755 > index 00..ef84e3d182 > --- /dev/null > +++ b/tools/k3/k3_fit_atf.sh I know we have one thing in tools/omap/ but I'd rather see this as just tools/k3_fit_atf.sh > @@ -0,0 +1,98 @@ > +#!/bin/sh > +# Missing SPDX tag. -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
[U-Boot] [PATCH 7/8] armv8: K3: am654: Introduce FIT generator script
Add a script that is capable of generating a FIT image source file that combines ATF, SPL(64 bit) and DT. This combined image is used by R5 SPL and start ATF on ARMv8 core. Signed-off-by: Lokesh Vutla --- tools/k3/k3_fit_atf.sh | 98 ++ 1 file changed, 98 insertions(+) create mode 100755 tools/k3/k3_fit_atf.sh diff --git a/tools/k3/k3_fit_atf.sh b/tools/k3/k3_fit_atf.sh new file mode 100755 index 00..ef84e3d182 --- /dev/null +++ b/tools/k3/k3_fit_atf.sh @@ -0,0 +1,98 @@ +#!/bin/sh +# +# script to generate FIT image source for K3 Family boards with +# ATF, OPTEE, SPL and multiple device trees (given on the command line). +# Inspired from board/sunxi/mksunxi_fit_atf.sh +# +# usage: $0 [ [&2 + ATF=/dev/null +fi + +[ -z "$TEE" ] && TEE="bl32.bin" + +if [ ! -f $TEE ]; then + echo "WARNING OPTEE file $TEE NOT found, resulting might be non-functional" >&2 + TEE=/dev/null +fi + +cat << __HEADER_EOF +/dts-v1/; + +/ { + description = "Configuration to load ATF and SPL"; + #address-cells = <1>; + + images { + atf { + description = "ARM Trusted Firmware"; + data = /incbin/("$ATF"); + type = "firmware"; + arch = "arm64"; + compression = "none"; + os = "arm-trusted-firmware"; + load = <0x7000>; + entry = <0x7000>; + }; + tee { + description = "OPTEE"; + data = /incbin/("$TEE"); + type = "tee"; + arch = "arm64"; + compression = "none"; + os = "tee"; + load = <0x9e80>; + entry = <0x9e80>; + }; + spl { + description = "SPL (64-bit)"; + data = /incbin/("spl/u-boot-spl-nodtb.bin"); + type = "standalone"; + os = "U-Boot"; + arch = "arm64"; + compression = "none"; + load = <0x8008>; + entry = <0x8008>; + }; +__HEADER_EOF + +for dtname in $* +do + cat << __FDT_IMAGE_EOF + $(basename $dtname) { + description = "$(basename $dtname .dtb)"; + data = /incbin/("$dtname"); + type = "flat_dt"; + arch = "arm"; + compression = "none"; + }; +__FDT_IMAGE_EOF +done + +cat << __CONF_HEADER_EOF + }; + configurations { + default = "$(basename $1)"; + +__CONF_HEADER_EOF + +for dtname in $* +do + cat << __CONF_SECTION_EOF + $(basename $dtname) { + description = "$(basename $dtname .dtb)"; + firmware = "atf"; + loadables = "tee", "spl"; + fdt = "$(basename $dtname)"; + }; +__CONF_SECTION_EOF +done + +cat << __ITS_EOF + }; +}; +__ITS_EOF -- 2.18.0 ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot