3 # SPDX-License-Identifier: GPL-2.0+
5 # Copyright (C) 2019 Jagan Teki <jagan@amarulasolutions.com>
7 # Based on the board/sunxi/mksunxi_fit_atf.sh
9 # Script to generate FIT image source for 64-bit puma boards with
10 # U-Boot proper, ATF, PMU firmware and devicetree.
12 # usage: $0 <dt_name> [<dt_name> [<dt_name] ...]
14 [ -z "$BL31" ] && BL31="bl31.bin"
16 if [ ! -f $BL31 ]; then
17 echo "WARNING: BL31 file $BL31 NOT found, resulting binary is non-functional" >&2
18 echo "Please read Building section in doc/README.rockchip" >&2
22 [ -z "$PMUM0" ] && PMUM0="rk3399m0.bin"
24 if [ ! -f $PMUM0 ]; then
25 echo "WARNING: PMUM0 file $PMUM0 NOT found, resulting binary is non-functional" >&2
26 echo "Please read Building section in doc/README.rockchip" >&2
31 /* SPDX-License-Identifier: GPL-2.0+ OR X11 */
33 * Copyright (C) 2017 Theobroma Systems Design und Consulting GmbH
35 * Minimal dts for a SPL FIT image payload.
41 description = "FIT image with U-Boot proper, ATF bl31, M0 Firmware, DTB";
46 description = "U-Boot (64-bit)";
47 data = /incbin/("u-boot-nodtb.bin");
54 description = "ARM Trusted Firmware";
55 data = /incbin/("$BL31");
58 os = "arm-trusted-firmware";
64 description = "Cortex-M0 firmware";
65 data = /incbin/("$PMUM0");
66 type = "pmu-firmware";
71 description = "RK3399-Q7 (Puma) flat device-tree";
72 data = /incbin/("$1");
78 cat << __CONF_HEADER_EOF
84 description = "Theobroma Systems RK3399-Q7 (Puma) SoM";
86 loadables = "uboot", "pmu";