uuu isuse while downloading imx8 mini an image into emmc

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

uuu isuse while downloading imx8 mini an image into emmc

869 Views
shai_b
Senior Contributor II

Dear team,

My customer has an issue while downloading an image to the emmc on their custom PCB.

A note: their PCB is working well since they already have managed to download an image into the board 

please review their LOG below and advise back what could be the issue: 

 

Spoiler

user@user-OptiPlex-780:~/mfgtools/uuu$ sudo ./uuu -v -b emmc_all imx-boot-imx8mmevk-emmc.bin-flash_evk fsl-image-multimedia-full-imx8mmevk-20211116145311.rootfs.sdcard.bz2
[sudo] password for user:
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.193-0-ge56424c

Build in config:
Pctl Chip Vid Pid BcdVersion
==================================================
SDPS: MX8QXP 0x1fc9 0x012f [0x0002..0xffff]
SDPS: MX8QM 0x1fc9 0x0129 [0x0002..0xffff]
SDPS: MX8DXL 0x1fc9 0x0147
SDPS: MX28 0x15a2 0x004f
SDPS: MX815 0x1fc9 0x013e
SDPS: MX865 0x1fc9 0x0146
SDPS: MX8ULP 0x1fc9 0x014a
SDPS: MX8ULP 0x1fc9 0x014b
SDP: MX7D 0x15a2 0x0076
SDP: MX6Q 0x15a2 0x0054
SDP: MX6D 0x15a2 0x0061
SDP: MX6SL 0x15a2 0x0063
SDP: MX6SX 0x15a2 0x0071
SDP: MX6UL 0x15a2 0x007d
SDP: MX6ULL 0x15a2 0x0080
SDP: MX6SLL 0x1fc9 0x0128
SDP: MX7ULP 0x1fc9 0x0126
SDP: MXRT106X 0x1fc9 0x0135
SDP: MX8MM 0x1fc9 0x0134
SDP: MX8MQ 0x1fc9 0x012b
SDPU: SPL 0x0525 0xb4a4 [0x0000..0x04ff]
SDPV: SPL1 0x0525 0xb4a4 [0x0500..0x9998]
SDPV: SPL1 0x1fc9 0x0151 [0x0500..0x9998]
SDPU: SPL 0x0525 0xb4a4 [0x9999..0x9999]
SDPU: SPL 0x3016 0x1001 [0x0000..0x04ff]
SDPV: SPL1 0x3016 0x1001 [0x0500..0x9998]
FBK: 0x066f 0x9afe
FBK: 0x066f 0x9bff
FBK: 0x1fc9 0x0153
FB: 0x0525 0xa4a5
FB: 0x18d1 0x0d02
FB: 0x3016 0x0001
FB: 0x1fc9 0x0152

Run built-in script:

uuu_version 1.4.149

# @_flash.bin | bootloader, which can extract from wic image
# @_image [_flash.bin] | wic image burn to emmc.


# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f imx-boot-imx8mmevk-emmc.bin-flash_evk -scanlimited 0x800000

# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM
SDPS: boot -scanterm -f imx-boot-imx8mmevk-emmc.bin-flash_evk -scanlimited 0x800000

# These commands will be run when use SPL and will be skipped if no spl
# SDPU will be deprecated. please use SDPV instead of SDPU
# {
SDPU: delay 1000
SDPU: write -f imx-boot-imx8mmevk-emmc.bin-flash_evk -offset 0x57c00
SDPU: jump -scanlimited 0x800000
# }

# These commands will be run when use SPL and will be skipped if no spl
# if (SPL support SDPV)
# {
SDPV: delay 1000
SDPV: write -f imx-boot-imx8mmevk-emmc.bin-flash_evk -skipspl -scanterm -scanlimited 0x800000
SDPV: jump -scanlimited 0x800000
# }


FB: ucmd setenv fastboot_dev mmc
FB: ucmd setenv mmcdev ${emmc_dev}
FB: ucmd mmc dev ${emmc_dev}
FB: flash -raw2sparse all fsl-image-multimedia-full-imx8mmevk-20211116145311.rootfs.sdcard.bz2/*
FB: flash -scanterm -scanlimited 0x800000 bootloader imx-boot-imx8mmevk-emmc.bin-flash_evk
FB: ucmd if env exists emmc_ack; then ; else setenv emmc_ack 0; fi;
FB: ucmd mmc partconf ${emmc_dev} ${emmc_ack} 1 0
FB: done


Wait for Known USB Device Appear...
New USB Device Attached at 2:6
2:6>Start Cmd:FB: ucmd setenv fastboot_dev mmc
2:6>Okay (0.002s)
2:6>Start Cmd:FB: ucmd setenv mmcdev ${emmc_dev}
2:6>Okay (0.002s)
2:6>Start Cmd:FB: ucmd mmc dev ${emmc_dev}
2:6>Fail Bulk(R):LIBUSB_ERROR_TIMEOUT(2.004s)

 

as you can see the first two steps have passed but when the UUU tool tries to write or read from the emmc we get a TIMEOUT error (from libusb).

 

please advise back on how to resolve this issue?, thanks in advance.

KR,

Shai 

Tags (2)
0 Kudos
3 Replies

748 Views
hansung_jung
Contributor I

Did you solve the issue of Fail Bulk(R):LIBUSB_ERROR_TIMEOUT?

Could you please let me know how to solve it?

BR

Hansung Jung / software engineer, Korea

0 Kudos

857 Views
AldoG
NXP TechSupport
NXP TechSupport

Hello,

Could you share the debug uart log?

It could be that you are using a different device number for the eMMC in your custom board than the one defined in the macro emmc_dev

Best regards,
Aldo.

0 Kudos

863 Views
josephzhou1
Contributor V

mmc dev ${emmc_dev} = eMMc0 part 0 ?

Best Regards,
Joseph Zhou Jianhui / Senior Embedded Software Engineer, Singapore
0 Kudos