qq2440启动linux后插入u盘出现usb 1-1: device descripto
上位机ubuntu14.04 64bit
下位机:qq2440
交叉编译器:arm-lux-g 3.4.1
下位机使用的lux内核版本:kernel2.6.13
1.插入u盘时错误信息如下:
[root@FriendlyARM /home]# usb 1-1: new full speed USB device usg 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 usg 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 usg s3c2410-ohci and address 8
usb 1-1: device not aeptg address 8, error -110
usb 1-1: new full speed USB device usg s3c2410-ohci and address 9
usb 1-1: device not aeptg address 9, error -110
2.解决方案如下:
2.1修改drivers/usb/host/ohci-s3c2410.c文件,添加以下内容
a.先添加头文件#clude <mach/regs-clock.h>
b.在s3c2410_start_hc函数中添加以下内容
bash/shell Code复制内容到剪贴板- unsigned long upllvalue = (0x78 << 12) | (0x02 << 4) | (0x03);
- while (upllvalue != __raw_readl(S3C2410_UPLLCON)) {
- __raw_writel(upllvalue, S3C2410_UPLLCON);
- mdelay(1);
- }
添加后的s3c2410_start_hc函数如下:
bash/shell Code复制内容到剪贴板