imx image not able to flash into emmc using uuu

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

imx image not able to flash into emmc using uuu

1,123 Views
Cyriactoms
Contributor II

I have an yocto build image for imx8mp trying to flash with uuu i am getting like this in the console

DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0: RNG instantiated
Normal Boot
Trying to boot from BOOTROM
Boot Stage: USB boot
Find img info 0x&48023ba0, size 1064
Need continue download 1024
Download 1702272, Total size 1703392
NOTICE: BL31: v2.6(release):automotive-13.0.0_1.1.0-0-g3c1583ba0
NOTICE: BL31: Built : 11:00:38, Nov 21 2022


U-Boot 2022.04-lf_v2022.04+g181859317bf (Mar 04 2025 - 12:22:38 +0000)

CPU: i.MX8MP Lite[4] rev1.1 1600 MHz (running at 1200 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 46C
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
Core: 194 devices, 29 uclasses, devicetree: separate
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from nowhere... OK
[*]-Video Link 0adv7535_mipi2hdmi adv7535@3d: 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

[0] lcd-controller@32e80000, video
[1] mipi_dsi@32e60000, video_bridge
[2] adv7535@3d, panel
adv7535_mipi2hdmi adv7535@3d: 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
SEC0: RNG instantiated

BuildInfo:
- ATF 3c1583b

MMC: no card present
Detect USB boot. Will enter fastboot mode!
Net:
Warning: ethernet@30bf0000 (eth1) using random MAC address - ba:01:d5:aa:94:8f

Warning: ethernet@30be0000 (eth0) using random MAC address - f6:10:53:31:b9:20
eth0: ethernet@30be0000, eth1: ethernet@30bf0000 [PRIME]
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=>

The problem is not flashing into emmc 

when i check the mmc list its showing 

mmc list
FSL_SDHC: 1
FSL_SDHC: 2

FSL_SDHC:2 is my emmc but its taking the first one what could be the reason for this

in the uuu file i have added manually to flash to emmc dev 2

FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev 1
FB: ucmd mmc dev 1
FB: flash -raw2sparse all core-image-weston-imx8mp-lpddr4-evk.wic.bz2
FB: flash bootloader imx-boot-imx8mp-lpddr4-evk-sd.bin-flash_evk
FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;
FB: ucmd mmc partconf 1 ${emmc_ack} 1 0
FB: done

 

Its not working

0 Kudos
Reply
7 Replies

1,098 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Cyriactoms!|

Thank you for contacting NXP Support!

 

What BSP version are you using?

What board are you using?

What commands are you using to flash your board?

 

Best Regards!

Chavira

 

0 Kudos
Reply

1,084 Views
Cyriactoms
Contributor II
BSP version 5.15
Iam using a custom som with imx8mp
I am using the script to flash which i have mentioned in the post
otherthan that iam using the command uuu -b emmc_all flash_evk image
0 Kudos
Reply

1,077 Views
Chavira
NXP TechSupport
NXP TechSupport

HI @Cyriactoms!

 

Are you trying to flash our pre-compiled image to your board?

You should port our BSP to your board following our porting guide.

 

0 Kudos
Reply

1,043 Views
Cyriactoms
Contributor II
I build an yocto image using yocto project user guide for my imx8mp
0 Kudos
Reply

1,030 Views
Chavira
NXP TechSupport
NXP TechSupport

HI @Cyriactoms!

 

What machine target do you select when you compile the image?

 

Can you describe the steps that you followed to generate the image?

 

What BSP version are you using?

0 Kudos
Reply

987 Views
Cyriactoms
Contributor II
i am using the machine target as imx8mp_lpddr4_evk

I have followed the imx yocto build user guide

5.15
0 Kudos
Reply

969 Views
Chavira
NXP TechSupport
NXP TechSupport

Hi @Cyriactoms!

 

The machine that you used works only in our iMX8MP-EVK board, you should port our BSP to your board following our porting guide.

 

 

0 Kudos
Reply