paul@pau-ubt1804:~/300G_HDD/falcon_script$ cat generate_tispl-falcon.sh export IMAGES_DIR=/home/paul/300G_HDD/ti_am62x/build/arago-tmp-default-glibc/deploy/images/am62xx-evm ATF=$IMAGES_DIR/bl31.bin TEE=$IMAGES_DIR/bl32.bin \ DM=$IMAGES_DIR/ipc_echo_testb_mcu1_0_release_strip.xer5f \ /home/paul/300G_HDD/ti_am62x/build/arago-tmp-default-glibc/work/am62xx_evm_k3r5-oe-linux-gnueabi/u-boot-ti-staging/1_2023.04+gitAUTOINC+24098ea90d-r0_edgeai_2.psdk3/git/scripts/tispl-linux-falcon.sh \ $IMAGES_DIR/Image $IMAGES_DIR/k3-am625-sk.dtb > tispl-falcon.its mkimage -E -f tispl-falcon.its tispl-falcon.bin paul@pau-ubt1804:~/300G_HDD/falcon_script$ cat /home/paul/300G_HDD/ti_am62x/build/arago-tmp-default-glibc/work/am62xx_evm_k3r5-oe-linux-gnueabi/u-boot-ti-staging/1_2023.04+gitAUTOINC+24098ea90d-r0_edgeai_2.psdk3/git/scripts/tispl-linux-falcon.sh #!/bin/sh # SPDX-License-Identifier: GPL-2.0+ # # script to generate FIT image source for K3 Family boards with ATF, OPTEE, # Device Manager, Linux Kernel, and device tree (given on the command line) # to support a direct R5 SPL -> Linux Kernel boot flow. # # Inspired from toolsk3_fit_atf.sh # # Copyright (C) 2023 Texas Instruments Incorporated - http://www.ti.com/ # Andreas Dannenberg # # usage: $0 [ -z "$ATF" ] && ATF="bl31.bin" if [ ! -f $ATF ]; then echo "WARNING ATF file $ATF NOT found, resulting binary is non-functional" >&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 [ -z "$DM" ] && DM="dm.bin" if [ ! -e $DM ]; then echo "WARNING DM file $DM NOT found, resulting might be non-functional" >&2 DM=/dev/null fi cat << __ITS_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 = <0x9e780000>; /* This load/entry address pair is for use with AM62Ax */ entry = <0x9e780000>; }; tee { description = "OPTEE"; data = /incbin/("$TEE"); type = "tee"; arch = "arm64"; compression = "none"; os = "tee"; load = <0x9e800000>; /* Needs to match BL32_BASE in ATF */ entry = <0x9e800000>; }; dm { description = "DM binary"; data = /incbin/("$DM"); type = "firmware"; arch = "arm32"; compression = "none"; os = "DM"; load = <0x89000000>; entry = <0x89000000>; }; kernel { description = "Linux Kernel (64-bit)"; data = /incbin/("$1"); type = "standalone"; os = "linux"; arch = "arm64"; compression = "none"; load = <0x80080000>; /* Needs to match PRELOADED_BL33_BASE in ATF */ entry = <0x80080000>; }; fdt { description = "$(basename $2 .dtb)"; data = /incbin/("$2"); type = "flat_dt"; arch = "arm"; compression = "none"; load = <0x82000000>; /* Needs to match K3_HW_CONFIG_BASE in ATF */ }; }; configurations { default = "$(basename $2 .dtb)"; $(basename $2 .dtb) { description = "$(basename $2 .dtb)"; firmware = "atf"; loadables = "tee", "dm", "kernel", "fdt"; }; }; }; __ITS_EOF paul@pau-ubt1804:~/300G_HDD/falcon_script$ ./generate_tispl-falcon.sh FIT description: Configuration to load ATF and SPL Created: Wed Feb 26 16:27:41 2025 Image 0 (atf) Description: ARM Trusted Firmware Created: Wed Feb 26 16:27:41 2025 Type: Firmware Compression: uncompressed Data Size: 44056 Bytes = 43.02 KiB = 0.04 MiB Architecture: AArch64 OS: ARM Trusted Firmware Load Address: 0x9e780000 Image 1 (tee) Description: OPTEE Created: Wed Feb 26 16:27:41 2025 Type: Trusted Execution Environment Image Compression: uncompressed Data Size: 440416 Bytes = 430.09 KiB = 0.42 MiB Image 2 (dm) Description: DM binary Created: Wed Feb 26 16:27:41 2025 Type: Firmware Compression: uncompressed Data Size: 149940 Bytes = 146.43 KiB = 0.14 MiB Architecture: Unknown Architecture OS: Unknown OS Load Address: 0x89000000 Image 3 (kernel) Description: Linux Kernel (64-bit) Created: Wed Feb 26 16:27:41 2025 Type: Standalone Program Compression: uncompressed Data Size: 21836288 Bytes = 21324.50 KiB = 20.82 MiB Architecture: AArch64 Load Address: 0x80080000 Entry Point: 0x80080000 Image 4 (fdt) Description: k3-am625-sk Created: Wed Feb 26 16:27:41 2025 Type: Flat Device Tree Compression: uncompressed Data Size: 59084 Bytes = 57.70 KiB = 0.06 MiB Architecture: ARM Load Address: 0x82000000 Default Configuration: 'k3-am625-sk' Configuration 0 (k3-am625-sk) Description: k3-am625-sk Kernel: unavailable Firmware: atf Loadables: tee dm kernel fdt paul@pau-ubt1804:~/300G_HDD/falcon_script$ ls generate_tispl-falcon.sh tispl-falcon.bin tispl-falcon.its