hi nxp,
I am a fresher to imx8mp evk board, and i download yocto branch zeus to compile a version of uboot 2020.04 branch , but i find that i can not flash my emmc to bring my board up. the specific operation steps are as follows.
U-Boot SPL 2020.04-5.4.70-2.3.0+ge42dee801e (May 25 2023 - 05:07:48 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
Normal Boot
Trying to boot from BOOTROM
Find FIT header 0x&480331a0, size 1031
Need continue download 1024
Download 3023360, total fit 3024992
NOTICE: BL31: v2.2(release):rel_imx_5.4.70_2.3.0-0-gf1d7187f2
NOTICE: BL31: Built : 05:33:04, May 25 2023
U-Boot 2020.04-5.4.70-2.3.0+ge42dee801e (May 25 2023 - 05:07:48 +0000)
CPU: i.MX8MP[8] rev1.1 1600 MHz (running at 1200 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 34C
Reset cause: POR
Model: NXP i.MX8MPlus LPDDR4 EVK board
DRAM: 6 GiB
tcpc_init: Can't find device id=0x50
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
[*]-Video Link 0Can't find cec device id=0x3c
fail to probe panel device adv7535@3d
fail to get display timings
probe video device failed, ret -19
[0] lcd-controller@32e80000, video
[1] mipi_dsi@32e60000, video_bridge
[2] adv7535@3d, panel
Can't find cec device id=0x3c
fail to probe panel device adv7535@3d
fail to get display timings
probe video device failed, ret -19
In: serial
Out: serial
Err: serial
BuildInfo:
- ATF f1d7187
- U-Boot 2020.04-5.4.70-2.3.0+ge42dee801e
MMC: no card present
Detect USB boot. Will enter fastboot mode!
Net:
Error: ethernet@30be0000 address not set.
Error: ethernet@30be0000 address not set.
Error: ethernet@30bf0000 address not set.
Error: ethernet@30bf0000 address not set.
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 ...
USB init failed: -22
u-boot=>
Hello,
I hope you are doing well.
The logs show that you are on U-boot.
To flash it, I suggest use the next command:
uuu -b emmc_all <Your file name>.bin-flash_evk
But on your logs, I can see that you are on U-boot.
Best regards.
Jorge.
thank for your reply.
yes i just only want to flash uboot, but actually uuu just send it to ram memory and finally report usb_init failed -22.
is that any place need to be configured or modifyed?
do you encounter similar problems or any directional suggestions can be given?
thank you so much.
thank you so much.
yes i get the same error as before. so i enable the DEBUG macro in boot source and capture the more detail message info as attachments.
the difference between your print and mine are mainly:
......
switch to partitions #0, OKmmc2(part 0) is current deviceflash target is MMC:2Net: eth0: ethernet@30be0000, eth1: ethernet@30bf0000 [PRIME]Fastboot: NormalNormal BootHit any key to stop autoboot: 0
......
and mine are:
....
Command failed, result=1Run fastboot ...USB init failed: -22Command failed, result=1
.......
could you help me analyze the reason for this difference?
Hello,
It is not needed to modify, using the command on my last post should be enough.
If you want to try, you can flash U-boot with the next command and attached files:
uuu -b emmc_all flash.bin u-boot.bin
But I think you will get the same result, also I will attach the log that I got.
Best regards.
Jorge.
NXP Jorge7u7,
uuu -b emmc_all flash.bin u-boot.bin
It seems the build-in script will flash the u-boot to the use partition at offset 0.
and burn flash.bin to the boot1 emmc boot partition.
And the i.MX8MP bootloader is not u-boot only, it is combined by aft, ddr firmware, u-boot with checksum to make sure its integration.
It seems could not direction replace the u-boot in flash.bin, which is wrapped by imx-mkimage, because of the crc.
To speak frankly, NXP Jorge7u7, your command is totally wrong. And the understanding of i.MX8MP bootloader(flash.bin) is totally wrong.
But it is very basic knowledge for you NXP tech support.
uuu -bshow emmc_all
uuu_version 1.4.149
.......
.......
FB: flash -raw2sparse all _image
FB: flash -scanterm -scanlimited 0x800000 bootloader _flash.bin
..........