linuxerwang / rkflashkit

rkflashkit is an open source toolkit for flashing Linux kernel images to rockchip rk3066/rk3188/rk3288 etc. based devices. It's programmed with python and gtk2.
214 stars 74 forks source link

LIBUSB_ERROR_IO [-1] #26

Open Huiso-Jeong opened 1 year ago

Huiso-Jeong commented 1 year ago

Hi.

I was trying to use your rkflashkit for RK3568 chip board I tried it on Ubuntu 22.04 LTS at the first time, however, it was failed to build with "/waf debian Node.py line 282 raises StopIteration" error message.

SO, I downgraded my Ubuntu to 18.04 LTS and I succeeded to build rkflashkit.deb and install it. But, the thing is I added PID for RK3568, which is 0x2207:0x350a, and it worked though LIBUSB_ERROR_IO [-1] error came up. // Found devices: 0x2207:0x350a libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=2 Traceback (most recent call last): File "/usr/bin/rkflashkit", line 17, in sys.exit(app.main(sys.argv[1:])) File "/usr/share/rkflashkit/lib/rkflashkit/climain.py", line 99, in main self.parse_and_execute(args) File "/usr/share/rkflashkit/lib/rkflashkit/climain.py", line 106, in parse_and_execute self.load_partitions() File "/usr/share/rkflashkit/lib/rkflashkit/climain.py", line 157, in load_partitions loaded_parts = op.load_partitions() File "/usr/share/rkflashkit/lib/rkflashkit/rktalk.py", line 194, in load_partitions self.__init_device() File "/usr/share/rkflashkit/lib/rkflashkit/rktalk.py", line 154, in __init_device prepare_cmd(0x80, 0x00060000, 0x00000000, 0x00000000)) File "/usr/share/rkflashkit/lib/rkflashkit/usb1.py", line 1145, in bulkWrite return self._bulkTransfer(endpoint, data, sizeof(data), timeout) File "/usr/share/rkflashkit/lib/rkflashkit/usb1.py", line 1129, in _bulkTransfer raise libusb1.USBError(result) rkflashkit.libusb1.USBError: LIBUSB_ERROR_IO [-1] //

  1. How can I solve this LIBUSB_ERROR_IO [-1] error?
  2. Can you support RK3568 chip for rkflashkit?