主题 : 不需要加载kernel模块的linux dnw 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 944
精华: 3
发帖: 71
金钱: 22760 两
威望: 4838 点
贡献值: 20 点
综合积分: 202 分
注册时间: 2008-06-27
最后登录: 2017-07-16
楼主  发表于: 2009-04-11 21:54

 不需要加载kernel模块的linux dnw

管理提醒: 本帖被 qq2440 从 mini2440资料下载中心 移动到本区(2009-08-13)
这个不需要加载内核模块,省去了编译内核模块的麻烦,不过需要libusb的支持,安装libusb和libusb-dev这两个包就可以了,详见包里面的README
我在qq2440上测了下,烧写kernel时下载速度有250 KB/s,应该比较快了。
http://c8051f320dev.googlecode.com/files/dnw2_linux_latest.tgz
不懂就问,懂就答,都不懂,问神!
级别: 侠客
UID: 30116
精华: 0
发帖: 105
金钱: 525 两
威望: 105 点
贡献值: 1 点
综合积分: 210 分
注册时间: 2010-10-12
最后登录: 2020-03-10
1楼  发表于: 2011-09-23 15:13
# ./dnw2 /home/farce/u-boot.bin
Target usb device found!
Filename : /home/farce/u-boot.bin
Filesize : 196608 bytes
Writing data ...
usb_bulk_write failed: Input/output error

这个是怎么回事啊?
不懂就问,懂就答,都不懂,问神!
级别: 侠客
UID: 30116
精华: 0
发帖: 105
金钱: 525 两
威望: 105 点
贡献值: 1 点
综合积分: 210 分
注册时间: 2010-10-12
最后登录: 2020-03-10
2楼  发表于: 2011-09-23 15:54
以下显示的应该是USB设备了,我的是6410,是不是源码需要改一下?
#lsusb -t
Bus 001 Device 008: ID 5345:1234 Owon PDS6062T Oscilloscope
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass          255 Vendor Specific Class
  bDeviceSubClass         0
  bDeviceProtocol         0
  bMaxPacketSize0        64
  idVendor           0x5345 Owon
  idProduct          0x1234 PDS6062T Oscilloscope
  bcdDevice            1.00
  iManufacturer           1 System MCU
  iProduct                2 SEC S3C6400X Test B/D
  iSerial                 0
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           32
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0
    bmAttributes         0xc0
      Self Powered
    MaxPower               50mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           2
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass      0
      bInterfaceProtocol      0
      iInterface              0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
不懂就问,懂就答,都不懂,问神!
级别: 侠客
UID: 30116
精华: 0
发帖: 105
金钱: 525 两
威望: 105 点
贡献值: 1 点
综合积分: 210 分
注册时间: 2010-10-12
最后登录: 2020-03-10
3楼  发表于: 2011-09-23 16:02
找到原因了,6410的EP 2 OUT是0x02而源码中是03,还是下载另一个专用的吧http://www.aiothome.net/read.php?fid=59&tid=14235&u=30116
[ 此帖被farce在2011-09-28 16:58重新编辑 ]