Cortex-A auto-bootable image for i.MX8QM

cancel
Showing results for 
Search instead for 
Did you mean: 

Cortex-A auto-bootable image for i.MX8QM

31 Views
Contributor III

Hi,

I can create a Cortex-A53 bootable uboot image using the uboot-atf instructions in the following white-paper. I can then autoboot another Cortex-A test image via tftp using the "bootcmd" uboot env var.

Instead of tftp, I'd like to boot the image from a given RAM address specified in the flash.bin image that I can create. Creating the flash.bin image using imx-mkimage as follows:

flash_b0_test: $(MKIMG) mx8qm-ahab-container.img scfw_tcm.bin u-boot-atf.bin test.bin
# ./$(MKIMG) -soc QM -rev B0 -append mx8qm-ahab-container.img -c -scfw scfw_tcm.bin -ap u-boot-atf.bin a53 0x80000000 -ap test.bin a53 0x<addr> -out flash.bin

fails under UUU:

1:11 4/ 7 [image too large for partition ] FB: flash bootloader flash.bin

Can someone clarify the correct way to prepare a flash.bin target image that contains the uboot and a bootable test image ? What's the reason for this error from UUU ?

Thanks

Ravi

0 Kudos
1 Reply

21 Views
NXP TechSupport
NXP TechSupport

Hi rkohli2000

 

from log : ".-ap test.bin a53 0x<addr> .."

1.jpg

seems correct address should be set, imx-mkimage usage :

 

https://source.codeaurora.org/external/imx/imx-mkimage/tree/README?h=imx_4.14.98_2.0.0_ga

also may be useful partition management description:

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/System-Controller-Firmware-101-Resource-...

 

Best regards
igor

 

0 Kudos