主题 : mini6410的USB HOST移植不完全啊 复制链接 | 浏览器收藏 | 打印
级别: 侠客
UID: 11611
精华: 0
发帖: 50
金钱: 250 两
威望: 50 点
综合积分: 100 分
注册时间: 2009-12-14
最后登录: 2018-02-08
楼主  发表于: 2010-07-28 15:55

 mini6410的USB HOST移植不完全啊

管理提醒: 本帖被 arm9home 从 Linux技术交流专区 移动到本区(2010-09-09)

插入U盘报错!

复制代码
  1. [root@FriendlyARM /]# usb 1-1: new low speed USB device using s3c2410-ohci and a
  2. ddress 6
  3. usb 1-1: device descriptor read/64, error -62
  4. usb 1-1: device descriptor read/64, error -62
  5. usb 1-1: new low speed USB device using s3c2410-ohci and address 7
  6. usb 1-1: device descriptor read/64, error -62
  7. usb 1-1: device descriptor read/64, error -62
  8. usb 1-1: new low speed USB device using s3c2410-ohci and address 8
  9. usb 1-1: device not accepting address 8, error -62
  10. usb 1-1: new low speed USB device using s3c2410-ohci and address 9
  11. usb 1-1: device not accepting address 9, error -62
  12. hub 1-0:1.0: unable to enumerate USB device on port 1

自由,自强,共享,共创。
级别: 论坛版主
UID: 12573
精华: 27
发帖: 8838
金钱: 46490 两
威望: 9298 点
综合积分: 18216 分
注册时间: 2010-01-09
最后登录: 2019-07-16
1楼  发表于: 2010-07-28 16:28
没有遇到过这样的错误,换个优盘呢
新手如何向我们反馈有效的信息,以便解决问题,见此贴:
http://www.arm9home.net/read.php?tid-14431.html

[注]: 此处签名链接仅为指引方向,而非解答问题本身.
级别: 圣骑士
UID: 9221
精华: 0
发帖: 376
金钱: 2110 两
威望: 539 点
综合积分: 752 分
注册时间: 2009-09-22
最后登录: 2016-07-04
2楼  发表于: 2010-07-28 16:32
6410怎么会显示s3c2410-ohci
usb 1-1: new low speed USB device using s3c2410-ohci and
一起学习,一起进步
级别: 侠客
UID: 11611
精华: 0
发帖: 50
金钱: 250 两
威望: 50 点
综合积分: 100 分
注册时间: 2009-12-14
最后登录: 2018-02-08
3楼  发表于: 2010-07-29 10:31

 回 2楼(guoyin88) 的帖子

应该是把s3c2410的USB总线移植过去的,我用过的飞凌的 6410都没能够移植好USB HOST,友善虽然移植过去了 有赶工之嫌,不能兼容一些USB设备,只支持OCHI!
自由,自强,共享,共创。
级别: 论坛版主
UID: 12573
精华: 27
发帖: 8838
金钱: 46490 两
威望: 9298 点
综合积分: 18216 分
注册时间: 2010-01-09
最后登录: 2019-07-16
4楼  发表于: 2010-07-29 15:09
2.6.28大部分是三星所做的移植,这是为何目前大部分6410开发板均采用该版本的主要原因,我们在上面的改动很少,总体而言,这不是我们移植的版本,更新的内核我们正在移植之中,使用“赶工”这样的说法未免过于夸张了。即使是2440,目前也有达不到某些人需求的地方,大家需要共同的进步和改进。

第一版软件,主要是在bootloader上打通了以后快速前进的道路,而系统内容部分,则需要很长的时间来填砖加瓦来实现,并非一朝一夕所能达到的。
新手如何向我们反馈有效的信息,以便解决问题,见此贴:
http://www.arm9home.net/read.php?tid-14431.html

[注]: 此处签名链接仅为指引方向,而非解答问题本身.
级别: 侠客
UID: 11611
精华: 0
发帖: 50
金钱: 250 两
威望: 50 点
综合积分: 100 分
注册时间: 2009-12-14
最后登录: 2018-02-08
5楼  发表于: 2010-08-09 16:29
搜索了kernel tree, 在/drivers/usb/core/hub.c 中打印了 device descriptor read
如下:
复制代码
  1.     retval = usb_get_device_descriptor(udev, USB_DT_DEVICE_SIZE);
  2.     if (retval < (signed)sizeof(udev->descriptor)) {
  3.         dev_err(&udev->dev, "device descriptor read/%s, error %d\n",
  4.             "all", retval);
  5.         if (retval >= 0)
  6.             retval = -ENOMSG;
  7.         goto fail;
  8.     }

读取设备描述符出错。

复制代码
  1. /*
  2. * usb_get_device_descriptor - (re)reads the device descriptor (usbcore)
  3. * @dev: the device whose device descriptor is being updated
  4. * @size: how much of the descriptor to read
  5. * Context: !in_interrupt ()
  6. *
  7. * Updates the copy of the device descriptor stored in the device structure,
  8. * which dedicates space for this purpose.
  9. *
  10. * Not exported, only for use by the core.  If drivers really want to read
  11. * the device descriptor directly, they can call usb_get_descriptor() with
  12. * type = USB_DT_DEVICE and index = 0.
  13. *
  14. * This call is synchronous, and may not be used in an interrupt context.
  15. *
  16. * Returns the number of bytes received on success, or else the status code
  17. * returned by the underlying usb_control_msg() call.
  18. */
  19. int usb_get_device_descriptor(struct usb_device *dev, unsigned int size)
  20. {
  21.     struct usb_device_descriptor *desc;
  22.     int ret;
  23.     if (size > sizeof(*desc))
  24.         return -EINVAL;
  25.     desc = kmalloc(sizeof(*desc), GFP_NOIO);
  26.     if (!desc)
  27.         return -ENOMEM;
  28.     ret = usb_get_descriptor(dev, USB_DT_DEVICE, 0, desc, size);
  29.     if (ret >= 0)
  30.         memcpy(&dev->descriptor, desc, size);
  31.     kfree(desc);
  32.     return ret;
  33. }
级别: 侠客
UID: 11611
精华: 0
发帖: 50
金钱: 250 两
威望: 50 点
综合积分: 100 分
注册时间: 2009-12-14
最后登录: 2018-02-08
6楼  发表于: 2010-08-09 16:50
#define USB_DT_DEVICE_SIZE        18
我的device是HID设备,根据HID协议,描述符应该是12bytes。可能问题就这里。
级别: 新手上路
UID: 46551
精华: 0
发帖: 20
金钱: 100 两
威望: 20 点
综合积分: 40 分
注册时间: 2011-05-14
最后登录: 2012-12-14
7楼  发表于: 2011-11-08 09:34
应该是驱动不全吧,在调试OTG也是报这个错误,请教高手。