Boot from eMMC flash on iMX8QM MEK

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Boot from eMMC flash on iMX8QM MEK

ソリューションへジャンプ
5,529件の閲覧回数
rkohli2000
Contributor III

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

ラベル(1)
0 件の賞賛
返信
1 解決策
5,474件の閲覧回数
rweiss
Contributor V

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

 

元の投稿で解決策を見る

0 件の賞賛
返信
6 返答(返信)
5,471件の閲覧回数
rkohli2000
Contributor III

Understood. Thanks for clarifying. I will try the procedure.

Regards

Ravi

0 件の賞賛
返信
5,521件の閲覧回数
rweiss
Contributor V

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

 

0 件の賞賛
返信
5,507件の閲覧回数
rkohli2000
Contributor III

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

0 件の賞賛
返信
5,493件の閲覧回数
rweiss
Contributor V

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?

0 件の賞賛
返信
5,479件の閲覧回数
rkohli2000
Contributor III

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

 

0 件の賞賛
返信
5,475件の閲覧回数
rweiss
Contributor V

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

 

0 件の賞賛
返信