最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[已解决]Ubuntu +dnw: Cannot claim interface: Operation not permitted

工作和技术 crifan 3891浏览 0评论

[问题]
开发板是TQ2440,网上找了个dnw for linux:
不需要加载kernel模块的linux dnw
http://www.arm9home.com/bbs/read.php?tid-1502.html
然后参考这个帖子:
Linux下的DNW工具测试
http://hi.baidu.com/caicry/blog/item/9b87643fd4c02ecb7d1e7109.html
去编译dnw。不过,我的此处,在安装的时候,直接是
sudo apt-get install libusb-dev
没有输入 libusb-0.1-4,好像系统自动去找依赖关系,所以连libusb-0.1-4 也一起安装了。

在Ubuntu下面,先拷贝过来一个我之前编译的u-boot.bin,然后直接运行:
./dnw2 u-boot.bin
结果显示:
Cannot claim interface: Operation not permitted
[解决过程]
网上找了一会,终于找到一个相关的帖子:
xdnw的问题,帮忙看下
“试试用root权限?xdnw是需要root权限执行的。”
所以,就试试:
sudo ./dnw2 u-boot.bin
就可以正常运行了:
crifan@ubuntu904:dnw2$ sudo ./dnw2 u-boot.bin
USB ID:vendor=0x64e, product=0xa111
USB ID:vendor=0x1d6b, product=0x2
USB ID:vendor=0x1d6b, product=0x1
USB ID:vendor=0x5345, product=0x1234
Target usb device found!
Filename : u-boot.bin
Filesize : 222116 bytes
Writing data …
100%     222126 bytes     Done!

其中,上面那些打印信息,是我后来自己加上去的。
对应的,另外一个终端中从minicom输出的信息,也是正常了:
。。。。
Enter your selection: 7                                                        
USB host is connected. Waiting a download.                                     

Now, Downloading [ADDRESS:30000000h,TOTAL:222126]                              
RECEIVED FILE SIZE:  222126 (216KB/S, 1S)                                      
## Starting application at 0x30000000 …  

转载请注明:在路上 » [已解决]Ubuntu +dnw: Cannot claim interface: Operation not permitted

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (1)

  1. thanks 对我有用
    57575470314年前 (2010-11-10)回复
82 queries in 0.160 seconds, using 22.14MB memory