• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • bios
  • 系统安装
  • 系统进程
  • Windows
  • LINUX
  • RedHat/Centos
  • Ubuntu/Debian
  • Fedora
  • Solaris
  • 麒麟系统
  • 红旗Linux
  • 苹果MAC
  • 注册表
  • 其它系统
您的位置:首页 > 操作系统 >LINUX > 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

作者:佚名 字体:[增加 减小] 来源:互联网 时间:2017-05-12

佚名 通过本文向大家介绍了qq2440启动linux后插入u盘出现usb 1-1: device descriptor read/64, error -110,usb 1等相关知识,希望对您有所帮助,也希望大家多多支持linkedu.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函数中添加以下内容:

</div>
  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.         }  
</div> </div>

  添加后的s3c2410_start_hc函数如下:

</div>
  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. }  
</div> </div>

  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 ./

</div>
分享到:QQ空间新浪微博腾讯微博微信百度贴吧QQ好友复制网址打印

您可能想查找下面的文章:

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

相关文章

  • 2017-05-12Linux系统下findmnt命令使用全解
  • 2017-05-12详解Linux系统中管理文件权限的chown和chmod命令
  • 2017-05-12Linux下Chrome地址栏输入卡顿该怎么办?
  • 2017-05-12linux中断的上半部和下半部详解
  • 2017-05-12详解Linux中输出文件内容的rev与tac命令使用
  • 2017-05-12Linux怎么开启tomcat中日志的gc设置?
  • 2017-05-12使用Glyphr如何玩转Linux字体?
  • 2017-05-12Linux去除fstab文件只读属性的方法
  • 2017-05-12Linux怎么配置双机SSH互相信任实现免密码登录?
  • 2017-05-12Linux系统下Open vSwitch的基本使用方法

文章分类

  • bios
  • 系统安装
  • 系统进程
  • Windows
  • LINUX
  • RedHat/Centos
  • Ubuntu/Debian
  • Fedora
  • Solaris
  • 麒麟系统
  • 红旗Linux
  • 苹果MAC
  • 注册表
  • 其它系统

最近更新的内容

    • Linux基金会官网公布最佳Linux发行版名单详解
    • Linux系统上解压或挂载img文件的方法
    • linux管道及重定向详解
    • 调整Linux系统为正确时区的方法
    • Linux系统下无法访问mysql解决方法
    • Linux Shell 常用命令与目录分区的学习总结
    • Linux菱形乱码如何修改? Linux菱形乱码的修改方法
    • Linux应用帮助你来征服数学学习
    • Linux删除制定时间的文件的方法
    • Linux系统中SSH命令的使用教程

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有