uuu fails with LIBUSB_ERROR_TIMEOUT
uuu fails to flash the emmc for me :-(
£ ./scripts/librem5-devkit-flash-image --skip-cleanup --dir tmp/
2019-06-13 11:29:26,227 INFO Looking for devkit buster+ci image
2019-06-13 11:29:28,116 INFO Found disk image Build 1666 'devkit buster+ci latest image' from Wed Jun 12 23:15:00 2019
2019-06-13 11:29:29,033 INFO Found uboot Build 24 from Sat Feb 9 00:12:23 2019
2019-06-13 11:29:29,034 INFO Downloading to tmp/
2019-06-13 11:29:29,221 INFO Calculating sha256sum of tmp/devkit.img
2019-06-13 11:30:07,046 INFO Image already up to date - no download needed.
2019-06-13 11:30:07,046 INFO Downloading uboot from https://arm01.puri.sm/job/u-boot_builds/job/devkit-recovery_uboot_build/24/artifact/build/u-boot-devkit-recovery.imx
uuu (Universal Update Utility) for nxp imx chips -- uuu_uuu_1.2.135_4_g9360b9c
Success 0 Failure 0
2:21 1/ 0 [ ]
Success 0 Failure 0
2:21 1/ 4 [ ] SDPU: delay 1000
Success 0 Failure 0
2:21 1/ 4 [ ] SDPU: delay 1000
Success 0 Failure 0
2:21 2/ 4 [ ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 0
2:21 2/ 4 [=> 5% ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 0
2:21 2/ 4 [===> 11% ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 0
2:21 2/ 4 [=====> 17% ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 0
2:21 2/ 4 [=======> 23% ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 0
2:21 2/ 4 [==========> 29% ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 0
2:21 2/ 4 [============> 35% ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 0
2:21 2/ 4 [==============> 40% ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 0
2:21 2/ 4 [================>46% ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 0
2:21 2/ 4 [=================52% ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 0
2:21 2/ 4 [=================58%=> ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 0
2:21 2/ 4 [=================64%===> ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 0
2:21 2/ 4 [=================70%=====> ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 0
2:21 2/ 4 [=================75%=======> ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 0
2:21 2/ 4 [=================81%==========> ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 0
2:21 2/ 4 [=================87%============> ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 0
2:21 2/ 4 [=================93%==============> ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 0
2:21 2/ 4 [=================99%================> ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 1
2:21 2/ 4 [HID(R):LIBUSB_ERROR_TIMEOUT ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Success 0 Failure 1
2:21 2/ 4 [HID(R):LIBUSB_ERROR_TIMEOUT ] SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
Traceback (most recent call last):
File "./scripts/librem5-devkit-flash-image", line 317, in <module>
sys.exit(main())
File "./scripts/librem5-devkit-flash-image", line 301, in main
flash_image(uuu_target, args.debug)
File "./scripts/librem5-devkit-flash-image", line 235, in flash_image
subprocess.check_call(['uuu', uuu_target])
File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['uuu', 'tmp/flash_devkit.lst']' returned non-zero exit status 255.
I've tried with or without a USB 3.0 HUB between (LogiLink UA0145).
Wait for Known USB Device Appear...
New USB Device Attached at 2:21
2:21>Start Cmd:SDP: boot -f u-boot-devkit-recovery.imx
6400%2:21>Okay
libusb: error [udev_hotplug_event] ignoring udev action bind
New USB Device Attached at 2:21
2:21>Start Cmd:SDPU: delay 1000
2:21>Okay
2:21>Start Cmd:SDPU: write -f u-boot-devkit-recovery.imx -offset 0x57c00
99%2:21>Fail HID(R):LIBUSB_ERROR_TIMEOUT