开发板是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>