Hi,
Can anyone share instructions to program an app image to eMMC flash on iMX8QM MEK at some address and then to boot this image from uboot-imx?
Can this be done using uboot-imx or also need a debugger like Lauterbach?
I can boot this image via TFTP from uboot-imx programmed on eMMC flash using bootm command.
Thanks.
Ravi
Solved! Go to Solution.
If I understand you correctly, your image does not contain a boot loader, only the A53 code. I think you have two options:
1. Continue using u-boot: In this case you have to program both the original u-boot image and additionally your image to a separate address in eMMC flash. Once both are programmed, boot into u-boot and configure it to copy your image from eMMC to RAM address 0xF0000000. Once this is done you can boot it using bootm 0xf0000000 as usual
2. Without u-boot: You have to create a eMMC image that follows the format expected by the iMX8QM boot ROM. The boot ROM will then read the information from the header and set up the system as defined in the header.
Best regards,
Reinhard
Understood. Thanks for clarifying. I will try the procedure.
Regards
Ravi
Hi Ravi,
if you want to program the EMMC flash with the Lauterbach TRACE32 debugger, you can find the eMMC flash script in your TRACE32 installation folder in
\demo\arm\flash\imx8qm-emmc.cmm
Best regards
Reinhard
Thanks Reinhard, I could use the script and load eMMC with my binary at an address of my choice. I'd like to load this image on an A53 core now. When I run a new script to init the A53 core, I see the eMMC is no longer accessible or initialized any more. Is that expected, or is it a behavior of the Lauterbach script (imx8qm-emmc.cmm) that I used ?
Regards
Ravi
I assume that the image you programmed is not in the form that is expected by the boot ROM. Does everything work as before when you program the proginal image?
Yes, the pre-built image I programmed works fine when I boot it using TFTP (see below) from u-boot.
I'd like to eliminate TFTP and boot from the eMMC flash instead.I'm trying to use Lauterbach to do this. I tried "uuu -b emmc_all" and I don't see an option to program it. Can you help suggest the correct steps?
Uboot:
setenv ipaddr x.x.x.x
setenv serverip x.x.x.x
tftpboot 0xf0000000 App.bin
bootm 0xf0000000
If I understand you correctly, your image does not contain a boot loader, only the A53 code. I think you have two options:
1. Continue using u-boot: In this case you have to program both the original u-boot image and additionally your image to a separate address in eMMC flash. Once both are programmed, boot into u-boot and configure it to copy your image from eMMC to RAM address 0xF0000000. Once this is done you can boot it using bootm 0xf0000000 as usual
2. Without u-boot: You have to create a eMMC image that follows the format expected by the iMX8QM boot ROM. The boot ROM will then read the information from the header and set up the system as defined in the header.
Best regards,
Reinhard