Thanks for the reply @evanwilliams .
Even after setting the ${mmcargs}, I am still stuck at ATF jump to bl33 (Linux kernel). I verified the memory 0x40480000 -> kernel loadaddr and 0x43000000 -> FDT args using md command. Memory is written correctly. I have also aligned ATF and uImage for this loadaddr.
* setting mem=6000MB, didn't help either.
Steps::
u-boot=> edit mmcargs
edit: setenv bootargs console=ttymxc0,115200 root=/dev/mmcblk1p1 rootwait rw cma=960M
u-boot=> run mmcargs; run loadfdt;
u-boot=> ext4load mmc 1:1 $loadaddr boot/uImage;mmc write $loadaddr 0x2FAF200 0xc000
u-boot=> spl export fdt $loadaddr - $fdt_addr_r
u-boot=> mmc write 0x43000000 0x2FAF080 0x80
SPL Log::
U-Boot SPL 2021.04-lf_v2021.04_var02+gfe9769c023 (Aug 14 2023 - 14:38:00 +0000)
>>SPL: board_init_r()
spl_init
SEC0: RNG instantiated
Normal Boot
Trying to boot from MMC1
spl: mmc boot mode: raw
hdr read sector 2faf200, count=1
SPL: payload image: Linux Kernel load addr: 0x4047ffc0 size: 17479752
read 855d sectors to 4047ffc0
SPL::mmc_load_legacy end
Jumping to Linux
SPL::before Image_entry
INFO: iMX8MP: Preparing to boot 64-bit Linux kernel
NOTICE: BL31: v2.4(release):devtool-patched-0-g646bcc384-dirty
NOTICE: BL31: Built : 10:10:04, Aug 14 2023
INFO: GICv3 with legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: BL31: Initializing runtime services
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address :: = 0x40480000
INFO: SPSR = 0x3c9
Is there anyway to switch on all the debug log ir printout the registers values in ATF just before the jump?
Additionally, would it be possible to share your uboot and ATF patches for comparison.