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.
已解决! 转到解答。
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?
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.
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
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.
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=>
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=>
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