Image cannot be burnt to emmc with UUU tool for iMX8mm board

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

Image cannot be burnt to emmc with UUU tool for iMX8mm board

Jump to solution
4,428 Views
hongtao_li
Contributor III

Hi support,

I am bringing up a board with iMX8mm CPU, I want to boot from the emmc, but I cannot burn the image to it with UUU tool. It stops as below.

uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.127-4-g1b0e385

Success 0 Failure 0

1:2 1/ 1 [=================100%=================] SDP: boot -f ../image-boot-L5.4/fsl-imx8mm-evk.bin

Is the bootloader not correct? What should I modify in the SPL and uboot?

Thanks.

 

 

 

Labels (1)
0 Kudos
1 Solution
4,286 Views
hongtao_li
Contributor III

Thans Joan, it is resolved now.

View solution in original post

0 Kudos
11 Replies
4,287 Views
hongtao_li
Contributor III

Thans Joan, it is resolved now.

0 Kudos
4,414 Views
joanxie
NXP TechSupport
NXP TechSupport

where did you get the images? your own build or demo images? and what download command do you use? share with me your download steps, let me check it

0 Kudos
4,399 Views
hongtao_li
Contributor III

Hi Joan,

Thanks your reply. The image is compiled by myself. Attached is the script I use to flash the emmc.

0 Kudos
4,394 Views
joanxie
NXP TechSupport
NXP TechSupport

did you use customized board or nxp imx8mm evk board, if nxp board, do you mind downloading the demo images, and use "uuu.exe uuu.auto" to test again?

"https://www.nxp.com/design/software/embedded-software/i-mx-software/embedded-linux-for-i-mx-applicat..."

0 Kudos
4,387 Views
hongtao_li
Contributor III

Hi Joan,

I used our own customized board. I have no NXP EVK board but have an i.MX8mm EVK board of other company. And they use this  command "uuu.exe uuu.auto" to flash their image successfully. 

0 Kudos
4,380 Views
joanxie
NXP TechSupport
NXP TechSupport

is fsl-imx8mm-evk.bin your bootloader file? how did you get this? I couldn't confirm this according to this name, or maybe you can try the command as below to download uboot to the board to check if your board can boot up or not

$ sudo dd if=<U-Boot image> of=/dev/sdx bs=1k seek=<offset> conv=fsync

• 32 - for i.MX 8QuadXPlus B0, i.MX 8QuadMax B0, i.MX 8DualX, i.MX 8DXL, i.MX 8M Nano, i.MX 8M Mini, and i.MX 8M Plus

0 Kudos
4,378 Views
hongtao_li
Contributor III

Yes, fsl-imx8mm-evk.bin is my bootloader including spl,uboot, atf and ddr firmware.

The dd command is executed in kernel, right? So how can I run it? Because I am in the serial download mode and there is no any image on the boot device, such as emmc.

0 Kudos
4,366 Views
joanxie
NXP TechSupport
NXP TechSupport

you also can use "uuu -b spl fsl-imx8mm-evk.bin" to download the uboot to the board, how about the result? dd command is for loading the only uboot image to the board

0 Kudos
4,304 Views
hongtao_li
Contributor III

Hi Joan,

Can you please help to check my log below? Is there any configration change in uboot for emmc boot?

U-Boot SPL 2021.04-dirty (Nov 03 2021 - 09:39:16 +0800)
power init succeed.
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
Trying to boot from USB SDP
SDP: initialize...
SDP: handle requests...
Downloading file of size 1218992 to 0x40400000... done
Jumping to header at 0x40400000
Header Tag is not an IMX image
Found header at 0x404291a0
NOTICE: BL31: v2.4(release):imx_5.10.35_2.0.0_imx8ulp_er-0-g2353cae
NOTICE: BL31: Built : 11:01:56, Sep 13 2021


U-Boot 2021.04-dirty (Nov 03 2021 - 09:39:16 +0800)

alloc space exhausted
CPU: i.MX8MMQ rev1.0 1600 MHz (running at 1200 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 35C
Reset cause: POR
Model: NXP i.MX8MM EVK board
DRAM: 2 GiB
FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... Card did not respond to voltage select! : -110
*** Warning - No block device, using default environment

[*]-Video Link 0adv7535_mipi2hdmi adv7535@3d: Can't find cec device id=0x3c
fail to probe panel device adv7535@3d
mxs_video lcdif@32e00000: failed to get any video link display timings
probe video device failed, ret -22

[0] lcdif@32e00000, video
[1] mipi_dsi@32e10000, video_bridge
[2] adv7535@3d, panel
adv7535_mipi2hdmi adv7535@3d: Can't find cec device id=0x3c
fail to probe panel device adv7535@3d
mxs_video lcdif@32e00000: failed to get any video link display timings
probe video device failed, ret -22
In: serial
Out: serial
Err: serial
SEC0: RNG instantiated

BuildInfo:
- ATF 2353cae

Card did not respond to voltage select! : -110
Detect USB boot. Will enter fastboot mode!
Net: Could not get PHY for FEC0: addr 0
Could not get PHY for FEC0: addr 0
No ethernet found.

Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for mfgtools
, using default environment

Run bootcmd_mfg: run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else booti ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Run fastboot ..."; fastboot 0; fi;
Hit any key to stop autoboot: 0

## Checking Image at 43800000 ...
Unknown image format!
Run fastboot ...
No USB device found
USB init failed: -19
u-boot=>

0 Kudos
4,343 Views
hongtao_li
Contributor III

Hi Joan,

We found something wrong with our hardware design, which leads the CPU to enter TEST MODE.

After fixing it ,when I run the command "uuu -b spl  fsl-imx8mm-evk.bin", the log is as below.

U-Boot SPL 2021.04-dirty (Oct 29 2021 - 13:42:56 +0800)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 3000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
Trying to boot from USB SDP
SDP: initialize...
SDP: handle requests...
Downloading file of size 1226736 to 0x40400000... done
Jumping to header at 0x40400000
Header Tag is not an IMX image
Found header at 0x404291a0
NOTICE: BL31: v2.4(release):imx_5.10.35_2.0.0_imx8ulp_er-0-g2353cae
NOTICE: BL31: Built : 11:01:56, Sep 13 2021


U-Boot 2021.04-dirty (Oct 29 2021 - 13:42:56 +0800)

alloc space exhausted
CPU: i.MX8MMQ rev1.0 1600 MHz (running at 1200 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 44C
Reset cause: POR
Model: NXP i.MX8MM EVK board
DRAM: 2 GiB
tcpc_init: Can't find device id=0x52
setup_typec: tcpc port2 init failed, err=-19
tcpc_init: Can't find device id=0x50
setup_typec: tcpc port1 init failed, err=-19
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... Card did not respond to voltage select! : -110
*** Warning - No block device, using default environment

[*]-Video Link 0adv7535_mipi2hdmi adv7535@3d: Can't find cec device id=0x3c
fail to probe panel device adv7535@3d
mxs_video lcdif@32e00000: failed to get any video link display timings
probe video device failed, ret -22

[0] lcdif@32e00000, video
[1] mipi_dsi@32e10000, video_bridge
[2] adv7535@3d, panel
adv7535_mipi2hdmi adv7535@3d: Can't find cec device id=0x3c
fail to probe panel device adv7535@3d
mxs_video lcdif@32e00000: failed to get any video link display timings
probe video device failed, ret -22
In: serial
Out: serial
Err: serial
SEC0: RNG instantiated

BuildInfo:
- ATF 2353cae

Card did not respond to voltage select! : -110
Detect USB boot. Will enter fastboot mode!
Net: Could not get PHY for FEC0: addr 0
Could not get PHY for FEC0: addr 0
No ethernet found.

Fastboot: Normal
Boot from USB for mfgtools
*** Warning - Use default environment for mfgtools
, using default environment

Run bootcmd_mfg: run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else booti ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Run fastboot ..."; fastboot 0; fi;
Hit any key to stop autoboot: 0

## Checking Image at 43800000 ...
Unknown image format!
Run fastboot ...
No USB device found
USB init failed: -19
u-boot=>

0 Kudos
4,294 Views
joanxie
NXP TechSupport
NXP TechSupport

because you only flash uboot image to the board, so you get the information about "Unknown image format!", since your uboot is available, you can use the command as below to flash images to your board

"uuu -b emmc_all <bootloader> <rootfs.wic>" the bootloader is fsl-imx8mm-evk.bin

0 Kudos