[i.mx8mn][ddr4][ab2] emmc boot failed.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[i.mx8mn][ddr4][ab2] emmc boot failed.

1,965 Views
bryan_hong
Contributor V

Hello 

I have download 5.10.52 and complete build. and then success flash emmc as below.

uuu -b emmc_all imx-boot-imx8mnddr4ab2-ab2.bin-flash_ddr4_evk fsl-image-af-littlekernel-imx8mnddr4ab2-20220110053440.rootfs.wic

uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.139-0-g1a8f760

Success 1 Failure 0


1:13 8/ 8 [Done ] FB: done

But, boot was failed like emmc_boot_fail_ab2.txt attached file.

Let me know any clue to solve this issue.

thanks

Bryan

0 Kudos
7 Replies

1,948 Views
bryan_hong
Contributor V

Hello igor, thasnk for your reply and sorry for late my response.

Anyway, 

I have 2 ea compute module for i.mx8mn and download emmc each compute module's emmc using uuu as below

A = imx-boot-imx8mnddr4ab2-ab2.bin-flash_ddr4_evk + fsl-image-af-littlekernel-imx8mnddr4ab2-20220110053440.rootfs.wic

B = imx-boot-imx8mnddr4evk-sd.bin-flash_ddr4_evk + fsl-image-af-littlekernel-imx8mnddr4ab2-20220110053440.rootfs.wic

AND I have install each A, B compute module in AB2. and then

Case 1 is that the booting was failed on A + AB2. This is before `emmc_boot_fail_ab2.txt`
Case 2 is that the booting was succeed on B + AB2.

If we look at Case 2, My opinion is that this issue doesn't seem to be related to ddr stress test.

The only difference is the bootloader. so When I write to emmc, Which bootloader file should I use?

Finally,  I don't understand below on your comments.

   image updated according to ddr test documentation

It would be nice if you could capture detailed commands or reference points.

thanks
Bryan

0 Kudos

1,941 Views
igorpadykov
NXP Employee
NXP Employee

> image updated according to ddr test documentation

 

please download ddr test package, inside there is MSCALE_DDR_Tool_User_Guide.pdf.

p.13 shows steps for updating image.

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8M-Family-DDR-Tool-Release/ta-p/110...

 

Best regards
igor

0 Kudos

1,928 Views
bryan_hong
Contributor V

Hello igor

I have complete downloading ddr script for i.mx8mn compute module embeded ddr4.

But, This issue still happened. let me know any clue to slove this issue.

thanks
Bryan

0 Kudos

1,917 Views
igorpadykov
NXP Employee
NXP Employee

had you updated image as described in p.13 MSCALE_DDR_Tool_User_Guide.pdf

"9. Press Gen Code button to generate u-boot SPL DDR initialization code."

put it on below and rebuild image

https://source.codeaurora.org/external/imx/uboot-imx/tree/board/freescale/imx8mn_evk/ddr4_timing.c?h...

 

Best regards
igor

0 Kudos

1,892 Views
bryan_hong
Contributor V

Hello igor

1. I replace 
tmp/work/imx8mnddr4ab2-poky-linux/u-boot-imx/2021.04-r0/git/board/freescale/imx8mm_ab2/ddr4_imx8mn_som.c  with file generated by click  `Gen Code button`.

2.
bitbake -c clean -f u-boot-imx
bitbake -c compile -f u-boot-imx
bitbake u-boot-imx
bitbake -c cleansstate fsl-image-af-littlekernel
bitbake fsl-image-af-littlekernel

3. 
uuu -b emmc_all imx-boot-imx8mnddr4ab2-ab2.bin-flash_ddr4_evk fsl-image-af-littlekernel-imx8mnddr4ab2-20220110053440.rootfs.wic

and then, the booting was failed with same issue.

Since I modified the u-boot file(ddr4_imx8mn_som.c), I think I need to replace the u-boot instead of the bootloader(imx-boot-imx8mnddr4ab2-ab2.bin-flash_ddr4_evk), right? If so, let me know how to replace u-boot by using `uuu`. or other way.

thanks
Bryan

0 Kudos

1,850 Views
Yuri
NXP Employee
NXP Employee

@bryan_hong 
Hello,

   I think, it makes sense to rebuild U-boot with new memory initialization
under stand alone configuration.  Look at Chapter 3 (Porting U-Boot)
of "IMX_PORTING_GUIDE.pdf".

https://www.nxp.com/docs/en/user-guide/IMX_PORTING_GUIDE.pdf

 

Regards,
Yuri.

0 Kudos

1,962 Views
igorpadykov
NXP Employee
NXP Employee

Hi Bryan

 

had board passed ddr test and image updated according to ddr test documentation

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8M-Family-DDR-Tool-Release/ta-p/110...

 

Best regards
igor

0 Kudos