USB problem using uuu tool to program imx6UL

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

USB problem using uuu tool to program imx6UL

Jump to solution
935 Views
logman
Contributor II

Hello,
I have a problem flashing my imx6UL device using the UUU tool. I'd appreciate some help please.

I am powering-up the chip with the BM1 pin pulled low as required.

The uuu tool shows the following:

$ ./uuu.exe uuu_smartcom.auto
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.21-0-g1f42172

Success 0 Failure 1

3:1 1/ 0 [Failure open usb device ]

This is an extract from the uuu_smartcom.auto script:

uuu_version 1.4.193

SDP: boot -f u-boot.imx-nand
CFG: FB: -vid 0x0525 -pid 0xA4A5
CFG: FB: -vid 0x0525 -pid 0x4000
CFG: FB: -vid 0x0525 -pid 0x4025
CFG: FB: -vid 0x0525 -pid 0x402F
CFG: FB: -vid 0x0525 -pid 0x4030
CFG: FB: -vid 0x0525 -pid 0x4031
FB: ucmd setenv bootargs "console=ttymxc0,115200 clk_ignore_unused rdinit=/linuxrc mtdparts=gpmi-nand:64m(nandboot),16m(nandkernel),16m(nanddtb),16m(nandtee),-(nandrootfs)"
#FB: ucmd setenv bootargs "console=ttymxc0,115200 rdinit=/linuxrc mtdparts=gpmi-nand:0x4000000(u-boot_primary),0x1000000(u-boot_secondary),0x1000000(u-boot_Env),0x1000000(kernel_primary),0x1000000(initramfs_kernel),0x1000000(kernel_backup),0x400000(dtb_primary),0x400000(dtb_secondary),0x400000(dtb_backup1),0x400000(dtb_backup2),0x1000000(initramfs_rootfs),0x1f400000(persistent_data),-(rootfs_primary)"
FB: ucmd setenv fastboot_buffer ${loadaddr}
FB: download -f zImage
FB: ucmd setenv fastboot_buffer ${fdt_addr}
FB: download -f imx6ul-14x14-evk.dtb
FB: ucmd setenv fastboot_buffer ${initrd_addr}
FB: download -f fsl-image-mfgtool-initramfs-smartcom.cpio.gz.u-boot
FB: ucmd setenv bootargs ${bootargs} ${mtdparts}
FB: acmd ${kboot} ${loadaddr} ${initrd_addr} ${fdt_addr}

The uuu tool executes all of the above commands OK, then it hangs on the 'FB: acmd' command before it reports 'Failure open usb device'.
When I run my uuu script, the device shows the sequence copied below (from --- START OF TERMINAL TEXT) on the Putty COM1 linux terminal.
The terminal output indicatse that /dev/utp fails to appear in the device.
My machine is Windows 10, and I have seen the same behaviour when executing on WSL Ubuntu.
I have updated the utp USB Windows driver to 6.1.7600.16385 from libwdi.

My colleague has successfully run the same process on his setup, using the same target hardware and the same firmware and uuu setup.
I have run this process successfully last month, but it would appear that something is going wrong with the USB access now.

I have looked at various forum posts, including https://community.nxp.com/t5/i-MX-Processors/IMX8-board-recognized-as-SE-blank-815/td-p/1174462

Can anyone suggest what to try please? I'm out of ideas.
Thanks,
Tom.

--- START OF TERMINAL TEXT

U-Boot 2021.04-lf_v2021.04+g8b8a0e5567 (Sep 27 2022 - 02:05:23 +0000)

CPU: i.MX6UL rev1.2 528 MHz (running at 396 MHz)
CPU: Industrial temperature grade (-40C to 105C) at 39C
Reset cause: POR
Model: Freescale i.MX6 UltraLite 14x14 EVK Board
Board: MX6UL 14x14 EVK
DRAM: 512 MiB
NAND: 2048 MiB
MMC: FSL_SDHC: 0
Loading Environment from NAND... *** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
SEC0: RNG instantiated
Net: eth0: ethernet@2188000
Fastboot: Normal
Getting device i2c bus
Getting device by address from i2c bus
Reading from Eeprom device
Checking Bootflag...!!!
Boot from NAND primary-Texeconnect (normal boot)
Boot from USB for mfgtools
Run bootcmd_mfg: run mfgtool_args;if iminfo ${initrd_addr}; then if test ${tee} = yes; then bootm ${tee_addr} ${initrd_addr} ${fdt_addr}; else bootz ${loadaddr} ${initrd_addr} ${fdt_addr}; fi; else echo "Run fastboot ..."; fastboot 0; fi;
Hit any key to stop autoboot: 0

## Checking Image at 86800000 ...
Unknown image format!
Run fastboot ...
Starting download of 7286584 bytes
.......................................................
downloading of 7286584 bytes finished
Starting download of 32572 bytes

downloading of 32572 bytes finished
Starting download of 12695772 bytes
..........................................................................
......................
downloading of 12695772 bytes finished
Kernel image @ 0x80800000 [ 0x000000 - 0x6f2f38 ]
## Loading init Ramdisk from Legacy Image at 86800000 ...
Image Name: fsl-image-mfgtool-initramfs-smar
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 12695708 Bytes = 12.1 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Using Device Tree in place at 83000000, end 8300af3b
Modify /soc/bus@2000000/tsc@2040000 disabled
Modify /soc/bus@2100000/lcdif@21c8000 disabled
Modify /soc/bus@2100000/csi@21c4000 disabled
Modify /soc/bus@2000000/ethernet@20b4000 disabled
gpio@209c000: set_value: error: gpio GPIO1_8 not reserved
gpio@20ac000: set_value: error: gpio GPIO5_9 not reserved

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.10.72-lts-5.10.y+g764677fd5b68 (oe-user@oe-host) (arm-poky-linux-gnueabi-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.36.1.20210209) #1 SMP PREEMPT Tue Oct 25 12:05:04 UTC 2022
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Texecom: VICTOR-A5150 HUB Board <-> Yocto-HARDKNOTT
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] Reserved memory: created CMA memory pool at 0x96000000, size 160 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool

etc...

[ 4.359277] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 4.366674] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 4.377080] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 4.383409] Registering SWP/SWPB emulation handler
[ 4.389217] Loading compiled-in X.509 certificates
[ 4.396987] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 4.415773] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 4.436718] mmc1: queuing unknown CIS tuple 0x80 (6 bytes)
[ 4.456100] imx_usb 2184000.usb: No over current polarity defined
[ 4.574592] mmc1: new high speed SDIO card at address 0001
[ 4.744993] ci_hdrc ci_hdrc.1: EHCI Host Controller
[ 4.750063] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
[ 4.784180] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[ 4.790703] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[ 4.799164] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 4.806545] usb usb1: Product: EHCI Host Controller
[ 4.811480] usb usb1: Manufacturer: Linux 5.10.72-lts-5.10.y+g764677fd5b68 ehci_hcd
[ 4.819270] usb usb1: SerialNumber: ci_hdrc.1
[ 4.826551] hub 1-0:1.0: USB hub found
[ 4.830573] hub 1-0:1.0: 1 port detected
[ 4.840940] imx_thermal 20c8000.anatop:tempmon: Industrial CPU temperature grade - max:105C critical:100C passive:95C
[ 4.853870] clk: Not disabling unused clocks
[ 4.861396] Freeing unused kernel memory: 1024K
[ 4.867142] Run /linuxrc as init process
Found New UDC: ci_hdrc.0
ci_hdrc.0 0
ffs.utp0
[ 5.040530] file system registered
[ 5.093415] Mass Storage Function, version: 2009/09/11
[ 5.099028] LUN: removable file: (no medium)
run utp at /dev/usb-utp0/ep0
.
uuu fastboot client 1.0.0 [built [ 5.131365] read descriptors
Nov 7 2019 19:25:07]
Start init[ 5.137450] read strings
usb
write string
Start handle command
uuc /dev/utp
uuc 0.6 [built Nov 7 2019 19:25:07]
UTP: Waiting for /dev/utp to appear

--- END OF TERMINAL TEXT

 

Labels (1)
0 Kudos
Reply
1 Solution
917 Views
logman
Contributor II

Fixed!!!  I used the zadig utility to change the utp USB driver from "WinUSB (libusb)" to "libusb-win32".  The uuu tool runs smoothly now

View solution in original post

0 Kudos
Reply
1 Reply
918 Views
logman
Contributor II

Fixed!!!  I used the zadig utility to change the utp USB driver from "WinUSB (libusb)" to "libusb-win32".  The uuu tool runs smoothly now

0 Kudos
Reply