Ubuntu +dnw: Cannot claim interface: Operation not permitted

开发板是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
[解决过程] http://www.arm9home.com/bbs/read.php?tid-1502.html
然后参考这个帖子:

网上找了一会,终于找到一个相关的帖子:
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 ... 
<转 :http://hi.baidu.com/serial_story/blog/item/95baf3bfbce2e10018d81f34.html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值