Firefly开源社区

打印 上一主题 下一主题

rkflashkit libusb:error [submit_bulk_transfer] submiturb failed error -1

21

积分

0

威望

0

贡献

游客

积分
21

rkflashkit libusb:error [submit_bulk_transfer] submiturb failed error -1

发表于 2017-6-7 18:11:14      浏览:10285 | 回复:8        打印      只看该作者   [复制链接] 楼主
rk3399$ sudo rkflashkit flash @boot boot.img @kernel.img linux-kernel-firefly/kernel.img reboot
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 114, in parse_and_execute
    self.flash_image(args[0], args[1])
  File "/usr/share/rkflashkit/lib/rkflashkit/climain.py", line 182, in flash_image
    offset, size = self.get_partition(part_name)
  File "/usr/share/rkflashkit/lib/rkflashkit/climain.py", line 174, in get_partition
    self.load_partitions()
  File "/usr/share/rkflashkit/lib/rkflashkit/climain.py", line 156, in load_partitions
    loaded_parts = op.load_partitions()
  File "/usr/share/rkflashkit/lib/rkflashkit/rktalk.py", line 169, in load_partitions
    self.__init_device()
  File "/usr/share/rkflashkit/lib/rkflashkit/rktalk.py", line 130, 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]


How to resolve it?
回复

使用道具 举报

2965

积分

12

威望

22

贡献

高级创客

Rank: 6Rank: 6

积分
2965
发表于 2017-6-8 09:34:45        只看该作者  沙发
I sugguest you use upgrade_tool ,  the compatibility is better.
回复

使用道具 举报

21

积分

0

威望

0

贡献

游客

积分
21
发表于 2017-6-8 11:49:40        只看该作者  板凳
leung先森 发表于 2017-6-8 09:34
I sugguest you use upgrade_tool ,  the compatibility is better.

Linux_Upgrade_Tool_v1.24$ ./upgrade_tool
./upgrade_tool: error while loading shared libraries: libudev.so.1: cannot open shared object file: No such file or directory

I can't find the libudev.so.1, as my ubuntu version is 16.04 64 bits. And this tool needs a 32bit libudev.so.1 .  what is worse, I found nowhere to get libudev.so.1 32bit to install to /lib/i386-linux-gnu/.

Can you guide to finish this job? So appreciate.
回复

使用道具 举报

2965

积分

12

威望

22

贡献

高级创客

Rank: 6Rank: 6

积分
2965
发表于 2017-6-8 14:12:02        只看该作者  地板
braveboy1983 发表于 2017-6-8 11:49
Linux_Upgrade_Tool_v1.24$ ./upgrade_tool
./upgrade_tool: error while loading shared libraries: l ...

http://wiki.t-firefly.com/index. ... age/en#upgrade_tool
回复

使用道具 举报

21

积分

0

威望

0

贡献

游客

积分
21
发表于 2017-6-8 14:18:34        只看该作者  5#
leung先森 发表于 2017-6-8 14:12
http://wiki.t-firefly.com/index.php/Firefly-RK3399/Flash_image/en#upgrade_tool

My system has no libudev.so.0. as to your reference, the steps only tell us to symbol link this file from other version. The thing is that, I don't have any libudev.so files in directory /lib/i386.  in my system. First thing i need to do is get one 32 bit libudev.so.0 file or similar version one.
回复

使用道具 举报

2965

积分

12

威望

22

贡献

高级创客

Rank: 6Rank: 6

积分
2965
发表于 2017-6-8 15:14:42        只看该作者  6#
braveboy1983 发表于 2017-6-8 14:18
My system has no libudev.so.0. as to your reference, the steps only tell us to symbol link this fi ...

If it do not work , just use rkflashkit GUI.
What system u use now ? I remember ubuntu both have this file .
Or you can apt-get update your system.
回复

使用道具 举报

34

积分

0

威望

0

贡献

游客

积分
34
发表于 2017-9-4 13:05:23        只看该作者  7#
braveboy1983 发表于 2017-6-8 14:18
My system has no libudev.so.0. as to your reference, the steps only tell us to symbol link this fi ...

I've met the same issue. May I know if you fixed it or not?
回复

使用道具 举报

34

积分

0

威望

0

贡献

游客

积分
34
发表于 2017-9-4 13:06:32        只看该作者  8#
leung先森 发表于 2017-6-8 15:14
If it do not work , just use rkflashkit GUI.
What system u use now ? I remember ubuntu both have ...

GUI failed, too.
回复

使用道具 举报

24

积分

0

威望

0

贡献

技术小白

积分
24
发表于 2017-10-26 15:48:08        只看该作者  9#
Hi
please install 32bit libudev
for Ubuntu16.04 just "sudo apt-get install libudev-dev:i386"
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表