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

Support for RK3399 #11

Open jalr opened 7 years ago

jalr commented 7 years ago

I'm trying to get my brand new RK3399 flashed simply adding the missing device id 2207:330c didn't work, when I do a rkflashkit reboot, I get:

Found devices:
0x2207:0x330c
libusb: error [submit_bulk_transfer] submiturb failed error -1 errno=2
Traceback (most recent call last):
  File "/usr/bin/rkflashkit", line 17, in <module>
    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 130, in parse_and_execute
    self.reboot()
  File "/usr/share/rkflashkit/lib/rkflashkit/climain.py", line 205, in reboot
    op.reboot()
  File "/usr/share/rkflashkit/lib/rkflashkit/rktalk.py", line 359, in reboot
    self.__init_device()
  File "/usr/share/rkflashkit/lib/rkflashkit/rktalk.py", line 128, in __init_device
    2, ''.join(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]
linuxerwang commented 7 years ago

Sorry about that. I don't have any device with rk3399 so I am not sure what's wrong. It seems the USB product id is correct though.

tx0h commented 7 years ago

i have the same error. what board do you use?

jalr commented 7 years ago

I've got a Firefly RK3399. Currently I'm using rkdeveloptool from https://github.com/rockchip-linux/rkbin in a Docker container. I would be very happy if rkflashkit had support for rk3399.