libusb error while flashing iMX6ULL NAND device using UUU

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

libusb error while flashing iMX6ULL NAND device using UUU

350 Views
asurti9
Contributor III

Hello NXP team,

I am trying to flash my custom iMX6ULL devicehaving NAND flash. It is based on iMX6ULL EVK design

I have downloaded the YOCTO source and built it with UBOOT_CONFIG = "nand" in local.conf.

The image generated is u-boot-nand-2023.04-r0.imx

When I try flashing the device with the above mentioned u-boot, I am facing below error:

 

 

sudo uuu -v -V -pp 1 -b nand u-boot-nand-2023.04-r0.imx
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.21-0-g1f42172

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
	SDPS:	 MX93		 0x1fc9	 0x014e
	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
	FB:	 		 0x0483	 0x0afb

Run built-in script:
 
uuu_version 1.2.39

# @_flash.bin            | bootloader
# @_image   [_flash.bin] | image burn to nand, default is the same as bootloader

# This command will be run when i.MX6/7 i.MX8MM, i.MX8MQ
SDP: boot -f u-boot-nand-2023.04-r0.imx

# This command will be run when ROM support stream mode
# i.MX8QXP, i.MX8QM
SDPS: boot -f u-boot-nand-2023.04-r0.imx

# 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 u-boot-nand-2023.04-r0.imx -offset 0x57c00
SDPU: jump
# }

# 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 u-boot-nand-2023.04-r0.imx -skipspl
SDPV: jump
# }

FB: ucmd setenv fastboot_buffer ${loadaddr}
FB: download -f u-boot-nand-2023.04-r0.imx
FB: ucmd if test ! -n "$fastboot_bytes"; then setenv fastboot_bytes $filesize; else true; fi
# Burn image to nandfit partition if needed
FB: ucmd if env exists nandfit_part; then nand erase.part nandfit; nand write ${fastboot_buffer} nandfit ${fastboot_bytes}; else true; fi;
FB: ucmd nandbcb init ${fastboot_buffer} nandboot ${fastboot_bytes}
FB: Done


Wait for Known USB Device Appear...
New USB Device Attached at 1:13
1:13>Start Cmd:SDP: boot -f u-boot-nand-2023.04-r0.imx
100%1:13>Okay (0.318s)
New USB Device Attached at 1:13
1:13>Start Cmd:SDP: boot -f u-boot-nand-2023.04-r0.imx
100%libusb: error [udev_hotplug_event] ignoring udev action bind
1:13>Fail HID(R):LIBUSB_ERROR_TIMEOUT(1.003s)

 

 

I tried the prebuilt images from NXP , but it is also giving the same error. I tried the example uuu script as well, with the modifications needed. But I am facing the same issue.

If needed I can share the schematic of our custom board privately to get it reviewed.

Can you please help us resolving the issue?

Thanks!
- Ali

Tags (4)
0 Kudos
2 Replies

265 Views
asurti9
Contributor III

Hello @JosephAtNXP ;

I tried what you suggested, but still I am facing the similar issue.

Can you suggest whether the issue is with the u-boot which I am building or something related to usb driver on host?

Attaching the generated u-boot for your reference.

Thanks!

-Ali

0 Kudos

309 Views
JosephAtNXP
NXP TechSupport
NXP TechSupport

Hi,

Thank you for your interest in NXP Semiconductor products,

You could try this porting guide but for 6ULL, i.e., you have to make modifications to support 6ULL's nand boot and there are in latest release as:

configs/mx6ull_14x14_evk_nand_defconfig

In that case, you'd take upon the test and update to latest release and latest UUU release, please update how did it went.

Regards

0 Kudos