神剑山庄资源网 Design By www.hcban.com

上位机:ubuntu14.04 64bit

下位机:qq2440

交叉编译器:arm-linux-gcc 3.4.1

下位机使用的linux内核版本:kernel2.6.13

1.插入u盘时错误信息如下:

[root@FriendlyARM /home]# usb 1-1: new full speed USB device using s3c2410-ohci and address 6
usb 1-1: device descriptor read/64, error -110
usb 1-1: device descriptor read/64, error -110
usb 1-1: new full speed USB device using s3c2410-ohci and address 7
usb 1-1: device descriptor read/64, error -110
usb 1-1: device descriptor read/64, error -110
usb 1-1: new full speed USB device using s3c2410-ohci and address 8
usb 1-1: device not accepting address 8, error -110
usb 1-1: new full speed USB device using s3c2410-ohci and address 9
usb 1-1: device not accepting address 9, error -110

2.解决方案如下:

2.1修改drivers/usb/host/ohci-s3c2410.c文件,添加以下内容:

  a.先添加头文件#include <mach/regs-clock.h>

  b.在s3c2410_start_hc函数中添加以下内容:

bash/shell Code复制内容到剪贴板
  1. unsigned long upllvalue = (0x78 << 12) | (0x02 << 4) | (0x03);   
  2.         while (upllvalue != __raw_readl(S3C2410_UPLLCON)) {   
  3.                 __raw_writel(upllvalue, S3C2410_UPLLCON);   
  4.                 mdelay(1);   
  5.         }  

  添加后的s3c2410_start_hc函数如下:

bash/shell Code复制内容到剪贴板
  1. static void s3c2410_start_hc(struct platform_device *dev, struct usb_hcd *hcd)   
  2. {   
  3.         struct s3c2410_hcd_info *info = dev->dev.platform_data;   
  4.         dev_dbg(&dev->dev, "s3c2410_start_hc:\n");   
  5.         clk_enable(clk);   
  6.         if (info != NULL) {   
  7.                 info->hcd       = hcd;   
  8.                 info->report_oc = s3c2410_hcd_oc;   
  9.                 if (info->enable_oc != NULL) {   
  10.                         (info->enable_oc)(info, 1);   
  11.                 }   
  12.         }   
  13.         unsigned long upllvalue = (0x78 << 12) | (0x02 << 4) | (0x03);   
  14.         while (upllvalue != __raw_readl(S3C2410_UPLLCON)) {   
  15.                 __raw_writel(upllvalue, S3C2410_UPLLCON);   
  16.                 mdelay(1);   
  17.         }   
  18. }  

  2.2总结:以上修改的函数功能是启动主机控制器,因为usb时钟设置有问题,因而在开启主机控制器时修改时钟,修改后的S3C2410_UPLLCON的值为0xF4100008;

 3.注意:本版本内核没有头文件regs-clock.h,因而我从其他内核中复制过来的,命令如下:

jello@jello-Inspiron-N4050:~/Downloads/qq2440/linux/kernel-2.6.13$ cp /tftpboot/kernel-2.6.35.7/arch/arm/mach-s3c2410/include/mach/regs-clock.h ./

标签:
device,descriptor

神剑山庄资源网 Design By www.hcban.com
神剑山庄资源网 免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
神剑山庄资源网 Design By www.hcban.com

评论“qq2440启动linux后插入u盘出现usb 1-1: device descriptor read/64, error -110,usb 1”

暂无qq2440启动linux后插入u盘出现usb 1-1: device descriptor read/64, error -110,usb 1的评论...

《魔兽世界》大逃杀!60人新游玩模式《强袭风暴》3月21日上线

暴雪近日发布了《魔兽世界》10.2.6 更新内容,新游玩模式《强袭风暴》即将于3月21 日在亚服上线,届时玩家将前往阿拉希高地展开一场 60 人大逃杀对战。

艾泽拉斯的冒险者已经征服了艾泽拉斯的大地及遥远的彼岸。他们在对抗世界上最致命的敌人时展现出过人的手腕,并且成功阻止终结宇宙等级的威胁。当他们在为即将于《魔兽世界》资料片《地心之战》中来袭的萨拉塔斯势力做战斗准备时,他们还需要在熟悉的阿拉希高地面对一个全新的敌人──那就是彼此。在《巨龙崛起》10.2.6 更新的《强袭风暴》中,玩家将会进入一个全新的海盗主题大逃杀式限时活动,其中包含极高的风险和史诗级的奖励。

《强袭风暴》不是普通的战场,作为一个独立于主游戏之外的活动,玩家可以用大逃杀的风格来体验《魔兽世界》,不分职业、不分装备(除了你在赛局中捡到的),光是技巧和战略的强弱之分就能决定出谁才是能坚持到最后的赢家。本次活动将会开放单人和双人模式,玩家在加入海盗主题的预赛大厅区域前,可以从强袭风暴角色画面新增好友。游玩游戏将可以累计名望轨迹,《巨龙崛起》和《魔兽世界:巫妖王之怒 经典版》的玩家都可以获得奖励。