Hi Kashiwagi,
You could refer to U-Boot source code to determinate on which memory is running. On i.MX8M series, it was also included the use of the SPL, so, it may be required to also consider this. The following thread seems to be related:
Building SPL/u-boot to boot from SD on i.MX 8M QUAD EVK
Also, SPL is described on the link below, you could use it as reference:
http://trac.gateworks.com/wiki/ventana/bootloader
Additionally, in case of lacking capacity of the TCM, the M4 core could also run from DRAM; please refer to chapter 6 of “Getting Started with MCUXpresso SDK i.MX 8M Devices” document.
Hope this will be useful for you.
Best regards!
/Carlos
-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!
-------------------------------------------------------------------------------