Unable to download img to imx8mm via uuu

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

Unable to download img to imx8mm via uuu

2,504 Views
xin_tong
Contributor I

Unable to download img to imx8mm via uuu

I followed the steps to set the imx8mm to SDP mode. Then I connect type C and debug cable to my laptop.

After downloading the android_p.9.0.0 , I started to run uuu uuu-android-mx8mm-evk-emmc.lst

however, the windows command line froze at the following point.

The console output keeps repeating the output for a while and finally stops.

I used to successfully download img to emmc via uuu with one IMX8mm evk board.

However, I failed to do so with another two boards arrived later.

The windows CMD output

uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.2.91-0-g3799f4d

Success 0 Failure 0

1:1 1/ 1 [============100%============] SDP: boot -f u-boot-imx8mm-evk-uuu.imx

The debug console output repeatly:

U-Boot SPL 2018.03 (Dec 19 2018 - 17:40:19 +0800)
power_bd71837_init
DDRINFO: start lpddr4 ddr init
DRAM PHY training for 3000MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training FAILED
DRAM PHY training for 3000MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training FAILED
DRAM PHY training for 400MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training FAILED
DRAM PHY training for 100MTS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training FAILED
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from USB SDP
"Synchronous Abort" handler, esr 0x96000000
elr: 00000000007e5c68 lr : 00000000007e5bbc
x0 : 20826298c58b00b0 x1 : 20826298836af0c1
x2 : 0000000042200010 x3 : 00000000007f8b20
x4 : 0000000000910bd8 x5 : 00000000007f8b30
x6 : 0000000000000000 x7 : 0000000000000000
x8 : 00000000007f69e8 x9 : 0000000000000002
x10: 00000000ffffffd0 x11: 000000000000000d
x12: 0000000000000006 x13: 0000000000000008
x14: 000000000090e558 x15: 0000000000013da4
x16: 0000000000000000 x17: 0000000000000005
x18: 000000000091de40 x19: 0000000000000ff0
x20: 0000000042201ff0 x21: 0000000042200ff0
x22: 0000000000000310 x23: 0000000000000300
x24: 00000000007f9000 x25: 00000000007f1952
x26: 00000000007f193a x27: 000000000091ddd0
x28: 0000000000000000 x29: 000000000091dca0

Resetting CPU ...

resetting ...

Labels (1)
Tags (1)
0 Kudos
5 Replies

1,834 Views
xin_tong
Contributor I

Thanks everyone.

The problem is resolved after a NXP engineer on site.

The reason is the DDR training part failed during boot.

The engineer changed it to DDR4 from DDR4L and it passed.

Now I can reboot to a SD card

0 Kudos

1,835 Views
bernhardfink
NXP Employee
NXP Employee

Hi Xin,

the DDR training is one of the first activities running on an 8M-Mini platform. If it fails at this step, then the board could have a problem.

It is easy to make some tests to verify this:

  1. Create an SD card on a PC with either Android or Linux on it and then try to boot the 8MM EVK from this SD card.
  2. Use the DDR test tool to perform some tests for the DDR. Download it here:  https://community.nxp.com/docs/DOC-340179 

In both cases the first activity is this DDR training. If it also fails in this test, then there is a problem with these boards.

Regards,

Bernhard.

0 Kudos

1,835 Views
xin_tong
Contributor I

Hi, Bernhard

Thanks a lot . I tried this tool 

Sorry I don't know how to create bootable sd from PC for Android, is it possible share a doc with me?

I test can pass when loading script with DDR type = DDR4

But it will fall when loading with DDR type = LPDDR4

Do you think it's because the default uboot comes with the demo image use LPDDR4 instead of DDR4 leads to this issue?

Should I create my own uboot img?

Failure output  mx8mm_micron_lpddr4_2gb_2d_1500m_200m_50m_32bit_1cs_RPAv10.ds

- MMU and cache setup complete

*************************************************************************
ARM clock(CA53) rate: 1200MHz
DDR Clock: 1500MHz

============================================
DDR configuration
DDR type is LPDDR4
Data width: 32, bank num: 8
Row size: 16, col size: 10
One chip select is used
Number of DDR controllers used on the SoC: 1
Density per chip select: 2048MB
Density per controller is: 2048MB
Total density detected on the board is: 2048MB
============================================

MX8M-mini: Cortex-A53 is found

*************************************************************************

============ Step 1: DDRPHY Training... ============
---DDR 1D-Training @1500Mhz...
PMU: Error: CA Training Failed.
PMU: ***** Assertion Error - terminating *****
[Result] FAILED

============ Step 1: DDRPHY Training... ============
---DDR 1D-Training @1500Mhz...
PMU: Error: CA Training Failed.
PMU: ***** Assertion Error - terminating *****
[Result] FAILED

Success output when loading mx8mm_micron_ddr4_2gb_2d_1200m_200m_50m_32bit_1cs_RPAv5.ds

0 Kudos

1,835 Views
igorpadykov
NXP Employee
NXP Employee

Hi xin

one can try latest Demo Images from below or build them using documentation:

https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-6ser...

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

1,835 Views
xin_tong
Contributor I

Hi, Igor

Thanks a lot.

I tried the latest version with command :uuu_imx_android_flash.bat -f imx8mm -a -e

I still got the same error output from serial port.

The progress stuck at the 1st one.

0 Kudos