主题 : 求助,在Ubuntu904下用dnw2和usb2ram都无法烧写 复制链接 | 浏览器收藏 | 打印
级别: 新手上路
UID: 16841
精华: 0
发帖: 6
金钱: 30 两
威望: 6 点
综合积分: 12 分
注册时间: 2010-03-22
最后登录: 2010-04-04
楼主  发表于: 2010-03-26 12:12

 求助,在Ubuntu904下用dnw2和usb2ram都无法烧写

管理提醒: 本帖被 qq2440 从 micro2440技术交流专区 移动到本区(2013-11-18)

其中dnw2提示Cannot claim interface    usb2arm提示 unable to claim usb interface,请问这到底该怎么解决呢?

libusb-dev包也安装了。

看网上找的资料,似乎人家都没有这个问题,真郁闷
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
1楼  发表于: 2010-03-26 12:43
在命令前面加'sudo', 这些东西需要root权限的
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 16841
精华: 0
发帖: 6
金钱: 30 两
威望: 6 点
综合积分: 12 分
注册时间: 2010-03-22
最后登录: 2010-04-04
2楼  发表于: 2010-03-26 18:18
谢谢版主,原来如此啊。

还想问您个问题,dnw2能不能像usb2ram一样在参数中指定烧写地址?我看dnw2的源码好像只能固定烧写到30000000,如果想烧写到其他地方该怎么操作呢?

这两种工具比较,感觉dnw2的速度要稍快一些。
*無鈳取玳
级别: 论坛版主
UID: 27
精华: 12
发帖: 5398
金钱: 40120 两
威望: 17929 点
综合积分: 11036 分
注册时间: 2008-01-16
最后登录: 2014-11-22
3楼  发表于: 2010-03-27 09:21

 回 2楼(hglpx) 的帖子

在dnw2源代码的dnw2.c里

复制代码
  1. unsigned char* prepare_write_buf(char *filename, unsigned int *len)
  2. {
  3. ...
  4.     *((u_int32_t*)write_buf) = 0x30000000;        //download address
  5.     *((u_int32_t*)write_buf+1) = fs.st_size + 10;    //download size;
  6.     *len = fs.st_size + 10;
  7.     return write_buf;
  8. ...
  9. }

可以试着把0x30000000改为命令行参数指定
[ 此帖被kasim在2010-03-27 09:27重新编辑 ]
"If you have an apple and I have an apple and we exchange apples, then you and I will
still each have one apple. But if you have an idea and I have an idea and we exchange
these ideas, then each of us will have two ideas."
级别: 新手上路
UID: 16841
精华: 0
发帖: 6
金钱: 30 两
威望: 6 点
综合积分: 12 分
注册时间: 2010-03-22
最后登录: 2010-04-04
4楼  发表于: 2010-03-27 21:40
嗯,大概要加一个字符串转十六进制。
级别: 侠客
UID: 21258
精华: 1
发帖: 120
金钱: 655 两
威望: 131 点
综合积分: 260 分
注册时间: 2010-05-13
最后登录: 2023-11-17
5楼  发表于: 2010-08-15 11:43
我的疑问,dnw怎么能决定把东西烧到目标板的哪里呢,这个应该是目标板里程序才能够做到的啊。
顶多是pc端把这个地址信息告诉目标板 ,目标板 决定放在哪里的啊