@AldoG Thank you for helping me
We are following the i.MX Linux User's Guide (IMXLUG) LF6.1.55_2.2.0 15 December 2023 when we are building U-Boot.
Our code comes from the repo at https://github.com/nxp-imx/uboot-imx and we are using the branch lf_v2023.04.
To compile U-Boot, we cd to the Uboot code and then run these commands:
export CROSS_COMPILE=aarch64-none-elf-
make distclean
make imx8mp_ddr4_evk_defconfig
make
We then copy u-boot.bin and u-boot-spl.bin to the imx-mkimage code, cd to this location and run these commands to make the image:
make SOC=iMX8MP flash_ddr4_evk