Can not burn Linux prebuilt image to iMX 8M Mini EVK with uuu

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

Can not burn Linux prebuilt image to iMX 8M Mini EVK with uuu

3,416件の閲覧回数
im_tlau
Contributor II

Hi NXP Community team,

I got an iMX 8M Mini EVK board, I was trying to burn Linux prebuilt images to MicroSD card, it always fails.

Images I tried are L4.14.78_1.0.0_ga_images_MX8MMEVK.zip and L4.14.98_2.0.0_ga_images_MX8MMEVK.zip.

Host Linux is Debian 10.0.

uuu is built from ttps://github.com/NXPmicro/mfgtools.git.

Switches on board set to SD Mode: 1010xxxxxx xxxxxxxxx0, 16G MicroSD card inserted.

Ran following command on Host Linux

uuu L4.14.78_1.0.0_ga_images_MX8MMEVK.zip
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.3.34-8-g8bb3f01

Success 0 Failure 0

1:2 1/ 1 [=================100%=================] SDP: boot -f imx-boot-imx8mmevk-sd.bin-flash_evk

It hangs there forever.

Could you tell me anything I did wrong and what else I can try?

And the error messages on USB debug console (continuously if useing L4.14.98_2.0.0_ga_images_MX8MMEVK.zip):

U-Boot SPL 2018.03-imx_v2018.03_4.14.78_1.0.0_ga+g654088c (Nov 28 2018 - 19:15:55 +0000)

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: 00000000007e595c lr : 00000000007e58b4

x0 : 05081c63c21b0000 x1 : 05081c637ffaf011

x2 : 0000000042200010 x3 : 00000000007f5f30

x4 : 00000000007f5f20 x5 : fffffffffffffff8

x6 : 0000000000000000 x7 : 000000000091de38

x8 : 000000000091dc40 x9 : 0000000000000002

x10: 00000000ffffffd0 x11: 0000000000000006

x12: 000000000001869f x13: 0000000000000008

x14: 000000000090e558 x15: 00000000ffffffff

x16: 0000000000000000 x17: 0000000000000005

x18: 000000000091de40 x19: 0000000000000ff0

x20: 0000000000001000 x21: 0000000042200ff0

x22: 0000000000000310 x23: 0000000000000300

x24: 00000000007f0bef x25: 00000000007f7000

x26: 00000000deadbeef x27: 0000000000000000

x28: 0000000000000000 x29: 000000000091dca0

Resetting CPU ...

resetting ...

U-Boot SPL 2018.03-imx_v2018.03_4.14.78_1.0.0_ga+g654088c (Nov 28 2018 - 19:15:55 +0000)

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

g_dnl_register: failed!, error: -12

SDP: initialize...

ラベル(2)
タグ(3)
9 返答(返信)

2,697件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

I will test it on my board and give you detail steps.

2,697件の閲覧回数
im_tlau
Contributor II

One thing I missed, my board is i.MX 8M Mini DDR4 EVK.

Should be different with or without DDR4.

0 件の賞賛
返信

2,697件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

Yes, that's the problem. You are using the 8MMINID4-EVK board, the demo images are default for 8MMINILPD4-EVK. When you download the images you need to choose the uboot with the ddr4.  I do not have the board you are using, but I will do further confirming for you.

0 件の賞賛
返信

2,698件の閲覧回数
im_tlau
Contributor II

Hi Rita,

I guess you meant imx-boot-imx8mmddr4evk-sd.bin-flash_ddr4_evk in the L4.14.98_2.0.0_ga_images_MX8MMEVK.zip tarbal, I also notice the Image-fsl-imx8mm-ddr4-evk.dtb file, but there's only one fsl-image-validation-imx-imx8mmevk.sdcard file, and after flash this one to MicroSD card, it doesn't work with my DDR4 board.

The same reason uuu tool doesn't work since there's no parameter for DDR4, so it'll be great if you have any suggestions/steps to load prebuilt image on DDR4 board.

By the way, I've built the images by myself with following configurations:

repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m imx-4.14.78-1.0.0_ga.xml
DISTRO=fsl-imx-xwayland MACHINE=imx8mmddr4evk source fsl-setup-release.sh -b build

And I could flash the .sdcard image to MicsoSD card then running Linux on my DDR4 board successfully, didn't try uuu, but at least I can move forward now, but it'll be better if you can provide more information on DDR4 usage.

Thanks!

0 件の賞賛
返信

2,698件の閲覧回数
Rita_Wang
NXP TechSupport
NXP TechSupport

I do not get this board you are using, the only different is the DDR. So on software, only u-boot DDR configurations are different. When you are using the demo images you need to use with DDR4 as I told you above. And when you build BSP yourself, you need to confirm if the board.c file with ddr4 are exist. If yes you can build directly, if no, you need to configure the DDR first. I am try to get more information on this board. By now , no more materials found on our website. I get the update and will send to you as soon as possible.

0 件の賞賛
返信

2,697件の閲覧回数
fcastelli05
Contributor I

Hi Rita and Hongbo, pleased to meet you,

I'm pretty sure I'm working on the same board as Hongbo does, since my logs look identical:

namely, it is the i.MX 8M Mini DDR4 EVK, where the bold word was added to mean "no LPDDR4", I guess.

I confirm that I managed to burn the 4.14.78-1.0.0_ga prebuilt images via UUU as soon as I replaced the u-boot file:

imx-boot-imx8mmevk-sd.bin-flash_evk

with:

imx-boot-imx8mmddr4evk-sd.bin-flash_ddr4_evk

now, since I have to move to a custom board and possibly make adaptations to u-boot code, can you confirm that I have to change the MACHINE variable from imx8mmevk to imx8mmddr4evk, and re-launch the yocto build?

Rita, can you please share any resource you may have found and shared to Hongbo? Thanks in advance.

0 件の賞賛
返信

2,697件の閲覧回数
im_tlau
Contributor II

More info, I ran following command to flash the image to SD card:

dd if=fsl-image-validation-imx-imx8mmevk.sdcard of=/dev/sdb bs=1M && sync

When booting it on the board, it hangs there with the following messages:

U-Boot SPL 2018.03-imx_v2018.03_4.14.78_1.0.0_ga+g7ade5b407f (Aug 16 2019 - 04:05:30 +0000)

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 MMC1

Do you have any idea about this?

Thanks again!

0 件の賞賛
返信

2,697件の閲覧回数
im_tlau
Contributor II

I reviewed other posts, is it possible that I use wrong USB Type A to USB Type C cable? I just used a normal one from the EVK connected to board's Port 1.

And I've built the images on my server with following configurations:



bitbake fsl-image-validation-imx

Could you let me know the steps to put the images I built to MicroSD card manually on Linux host?

Very appreciated for you help!

0 件の賞賛
返信

2,697件の閲覧回数
im_tlau
Contributor II

Thanks Rita!

0 件の賞賛
返信