./../scripts/pad_image.sh tee.bin ./../scripts/pad_image.sh bl31.bin ./../scripts/pad_image.sh u-boot-nodtb.bin evk.dtb DEK_BLOB_LOAD_ADDR=0x40400000 TEE_LOAD_ADDR=0xfe000000 ATF_LOAD_ADDR=0x00910000 ./mkimage_fit_atf.sh evk.dtb > u-boot.its bl31.bin size: 37088 Building with TEE support, make sure your bl31 is compiled with spd. If you do not want tee, please delete tee.bin tee.bin size: 524448 u-boot-nodtb.bin size: 984416 evk.dtb size: 47072 ./mkimage_uboot -E -p 0x3000 -f u-boot.its u-boot.itb FIT description: Configuration to load ATF before U-Boot Created: Fri Apr 29 16:36:38 2022 Image 0 (uboot-1) Description: U-Boot (64-bit) Created: Fri Apr 29 16:36:38 2022 Type: Standalone Program Compression: uncompressed Data Size: 984416 Bytes = 961.34 KiB = 0.94 MiB Architecture: AArch64 Load Address: 0x40200000 Entry Point: unavailable Image 1 (fdt-1) Description: evk Created: Fri Apr 29 16:36:38 2022 Type: Flat Device Tree Compression: uncompressed Data Size: 47072 Bytes = 45.97 KiB = 0.04 MiB Architecture: Unknown Architecture Image 2 (atf-1) Description: ARM Trusted Firmware Created: Fri Apr 29 16:36:38 2022 Type: Firmware Compression: uncompressed Data Size: 37088 Bytes = 36.22 KiB = 0.04 MiB Architecture: AArch64 OS: Unknown OS Load Address: 0x00910000 Image 3 (tee-1) Description: TEE firmware Created: Fri Apr 29 16:36:38 2022 Type: Firmware Compression: uncompressed Data Size: 524448 Bytes = 512.16 KiB = 0.50 MiB Architecture: AArch64 OS: Unknown OS Load Address: 0xfe000000 Default Configuration: 'config-1' Configuration 0 (config-1) Description: evk Kernel: unavailable Firmware: uboot-1 FDT: fdt-1 Loadables: atf-1 tee-1 ./mkimage_imx8 -fit -signed_hdmi signed_hdmi_imx8m.bin -loader u-boot-spl-ddr.bin 0x7E1000 -second_loader u-boot.itb 0x40200000 0x60000 -out flash.bin Platform: i.MX8M (mScale) Using FIT image SIGNED HDMI FW: signed_hdmi_imx8m.bin LOADER IMAGE: u-boot-spl-ddr.bin start addr: 0x007e1000 SECOND LOADER IMAGE: u-boot.itb start addr: 0x40200000 offset: 0x00060000 Output: flash.bin ========= IVT HEADER [PLUGIN] ========= header.tag: 0x0 header.length: 0x0 header.version: 0x0 entry: 0x0 reserved1: 0x0 dcd_ptr: 0x0 boot_data_ptr: 0x0 self: 0x0 csf: 0x0 reserved2: 0x0 boot_data.start: 0x0 boot_data.size: 0x0 boot_data.plugin: 0x0 ========= IVT HEADER [LOADER IMAGE] ========= header.tag: 0xd1 header.length: 0x2000 header.version: 0x41 entry: 0x7e1000 reserved1: 0x0 dcd_ptr: 0x0 boot_data_ptr: 0x7e0fe0 self: 0x7e0fc0 csf: 0x814bc0 reserved2: 0x0 boot_data.start: 0x7e0bc0cd im boot_data.size: 0x36060 boot_data.plugin: 0x0 ========= OFFSET dump ========= SIGNED HDMI FW: header_hdmi_off 0x0 Loader IMAGE: header_image_off 0x1a000 dcd_off 0x0 image_off 0x1a040 csf_off 0x4dc00 spl hab block: 0x7e0fc0 0x1a000 0x33c00 Second Loader IMAGE: sld_header_off 0x57c00 sld_csf_off 0x58c20 sld hab block: 0x401fcdc0 0x57c00 0x1020