完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
扫一扫,分享给好友
自己做的板子,USB口插上鼠标可以使用,但是插上优盘就不能工作。
linux内核配置肯定是没问题的,我的配置按照这个文档检查过,该选的都选上了:http://processors.wiki.ti.com/index.php/U***ConfigHostMSC 另外也用SDK里最原始未改过的.config试过,结果也一样。也可以排除优盘的问题,试过好几个优盘了。 插上优盘,串口就会出现如下打印: [ 596.043385] u*** 1-1: new high-speed USB device number 17 using mu***-hdrc [ 596.103419] hub 1-0:1.0: unable to enumerate USB device on port 1 [ 596.383361] u*** 1-1: new high-speed USB device number 18 using mu***-hdrc [ 596.443384] hub 1-0:1.0: unable to enumerate USB device on port 1 [ 596.723357] u*** 1-1: new high-speed USB device number 19 using mu***-hdrc [ 596.783376] hub 1-0:1.0: unable to enumerate USB device on port 1 [ 597.063357] u*** 1-1: new high-speed USB device number 20 using mu***-hdrc [ 597.123373] hub 1-0:1.0: unable to enumerate USB device on port 1 [ 597.403356] u*** 1-1: new high-speed USB device number 21 using mu***-hdrc [ 597.463374] hub 1-0:1.0: unable to enumerate USB device on port 1 [ 597.743357] u*** 1-1: new high-speed USB device number 22 using mu***-hdrc [ 597.803374] hub 1-0:1.0: unable to enumerate USB device on port 1 [ 598.083379] u*** 1-1: new high-speed USB device number 23 using mu***-hdrc [ 598.143411] hub 1-0:1.0: unable to enumerate USB device on port 1 [ 598.423360] u*** 1-1: new high-speed USB device number 24 using mu***-hdrc [ 598.483388] hub 1-0:1.0: unable to enumerate USB device on port 1 我手头上有一块StarterKit,同一个优盘插在StarterKit上就能用,StarterKit串口打印如下: [ 454.136413] u*** 1-1: new high-speed USB device number 3 using mu***-hdrc [ 454.276611] u*** 1-1: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 256 [ 454.286041] u*** 1-1: config 1 interface 0 altsetting 0 bulk endpoint 0x1 has invalid maxpacket 256 [ 454.295867] u*** 1-1: New USB device found, idVendor=071b, idProduct=3203 [ 454.302856] u*** 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 454.310333] u*** 1-1: Product: ROCK MP3 [ 454.314208] u*** 1-1: Manufacturer: RockChip [ 454.318603] u*** 1-1: SerialNumber: USBV1.00 [ 454.332702] u***-storage 1-1:1.0: Quirks match for vid 071b pid 3203: 400 [ 454.339904] scsi1 : u***-storage 1-1:1.0 [ 455.357299] scsi 1:0:0:0: Direct-Access RockChip USB MP3 1.00 PQ: 0 ANSI: 0 [ 455.372863] sd 1:0:0:0: [sda] 7929856 512-byte logical blocks: (4.06 GB/3.78 GiB) [ 455.392944] sd 1:0:0:0: [sda] Write Protect is off [ 455.407775] sd 1:0:0:0: [sda] No Caching mode page present [ 455.413513] sd 1:0:0:0: [sda] Assuming drive cache: write through [ 455.424133] sd 1:0:0:0: [sda] No Caching mode page present [ 455.429901] sd 1:0:0:0: [sda] Assuming drive cache: write through [ 455.438049] sda: [ 455.443847] sd 1:0:0:0: [sda] No Caching mode page present [ 455.449645] sd 1:0:0:0: [sda] Assuming drive cache: write through [ 455.455993] sd 1:0:0:0: [sda] Attached SCSI removable disk |
|
相关推荐
7个回答
|
|
补充一下最新发现:
在代码里加打印逐步查找故障,发现函数hub_port_reset() 返回值 -107 (-ENOTCONN) 继续查找,发现函数u***_control_msg() 返回值 -19 (-ENODEV) 再继续,最终找到了这个函数里面:mu***_urb_enqueue(),失败原因是 mu***->is_active 为零,见下面红色部分。 至此没法再跟踪下去了,请看一下这是怎么回事。 static int mu***_urb_enqueue( struct u***_hcd *hcd, struct urb *urb, gfp_t mem_flags) [ unsigned long flags; struct mu*** *mu*** = hcd_to_mu***(hcd); struct u***_host_endpoint *hep = urb->ep; struct mu***_qh *qh; struct u***_endpoint_descriptor *epd = &hep->desc; int ret; unsigned type_reg; unsigned interval; /* host role must be active */ if (!is_host_active(mu***) || !mu***->is_active) return -ENODEV; spin_lock_irqsave(&mu***->lock, flags); ret = u***_hcd_link_urb_to_ep(hcd, urb); qh = ret ? NULL : hep->hcpriv; if (qh) urb->hcpriv = qh; INIT_LIST_HEAD(&urb->giveback_list); spin_unlock_irqrestore(&mu***->lock, flags); |
|
|
|
mvueurtwd 发表于 2018-6-21 08:30 插u盘的时候,有vbus上有供电吗,你的电路设计和EVM板上一样吗 如果我的回答解决了您的问题,请确认答案,谢谢!:) |
|
|
|
VBUS上是有电的,用示波器测了,插上优盘的前后始终都有5V电压。 下面是USB部分的原理图,你看一下有没有问题。 怎么鼠标可以工作,优盘就不行呢? |
|
|
|
mvueurtwd 发表于 2018-6-21 08:57 我把ESD保护器件U4以及串联的两个电阻去掉了,直接用铜线飞过去。 现在可以认到有优盘,但是/dev目录下仍然没有优盘的设备文件。 这是现在的串口打印信息。 [ 128.693106] u*** 2-1: new high-speed USB device number 4 using mu***-hdrc [ 128.888655] u*** 2-1: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 256 [ 128.898125] u*** 2-1: config 1 interface 0 altsetting 0 bulk endpoint 0x1 has invalid maxpacket 256 [ 128.960367] u*** 2-1: New USB device found, idVendor=071b, idProduct=3203 [ 128.967381] u*** 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 128.974838] u*** 2-1: Product: ROCK MP3 [ 128.978746] u*** 2-1: Manufacturer: RockChip [ 128.983115] u*** 2-1: SerialNumber: USBV1.00 [ 129.002549] u***-storage 2-1:1.0: Quirks match for vid 071b pid 3203: 400 [ 129.010004] scsi2 : u***-storage 2-1:1.0 再把上面帖子里提到的正常打印放在这里对比一下,现在的打印信息还是少了后面的一些内容。 这是什么原因呢? [ 454.136413] u*** 1-1: new high-speed USB device number 3 using mu***-hdrc [ 454.276611] u*** 1-1: config 1 interface 0 altsetting 0 bulk endpoint 0x81 has invalid maxpacket 256 [ 454.286041] u*** 1-1: config 1 interface 0 altsetting 0 bulk endpoint 0x1 has invalid maxpacket 256 [ 454.295867] u*** 1-1: New USB device found, idVendor=071b, idProduct=3203 [ 454.302856] u*** 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 454.310333] u*** 1-1: Product: ROCK MP3 [ 454.314208] u*** 1-1: Manufacturer: RockChip [ 454.318603] u*** 1-1: SerialNumber: USBV1.00 [ 454.332702] u***-storage 1-1:1.0: Quirks match for vid 071b pid 3203: 400 [ 454.339904] scsi1 : u***-storage 1-1:1.0 [ 455.357299] scsi 1:0:0:0: Direct-Access RockChip USB MP3 1.00 PQ: 0 ANSI: 0 [ 455.372863] sd 1:0:0:0: [sda] 7929856 512-byte logical blocks: (4.06 GB/3.78 GiB) [ 455.392944] sd 1:0:0:0: [sda] Write Protect is off [ 455.407775] sd 1:0:0:0: [sda] No Caching mode page present [ 455.413513] sd 1:0:0:0: [sda] Assuming drive cache: write through [ 455.424133] sd 1:0:0:0: [sda] No Caching mode page present [ 455.429901] sd 1:0:0:0: [sda] Assuming drive cache: write through [ 455.438049] sda: [ 455.443847] sd 1:0:0:0: [sda] No Caching mode page present [ 455.449645] sd 1:0:0:0: [sda] Assuming drive cache: write through [ 455.455993] sd 1:0:0:0: [sda] Attached SCSI removable disk |
|
|
|
mvueurtwd 发表于 2018-6-21 09:14 现在USB的差分线上已经没有任何其它东西了,5V电源也正常,硬件方面好像没什么可尝试的了。 能认出设备,但是/dev没有设备文件。从打印来看,USB这块儿是没问题的,问题出在SCSI那里,应该是个软件问题。 刚才又核对了一遍内核配置,文档里要求的那几个选项都选上了。 除了文档里提到的这几个选项之外,是不是还有什么必须选的? |
|
|
|
mvueurtwd 发表于 2018-6-21 09:22 一个一个地试,终于试出来了。内核配置里,必须选中这个才可以,真是古怪。有谁知道为什么吗? |
|
|
|
LZ您好,请问你们还有AM335X系列的CPU吗?能否卖我们几片,现在我们公司项目急用,官方申请太慢了,来不及
|
|
|
|
只有小组成员才能发言,加入小组>>
354 浏览 1 评论
547 浏览 2 评论
NA555DR VCC最低电压需要在5V供电,为什么用3.3V供电搭了个单稳态触发器也使用正常?
793 浏览 3 评论
MSP430F249TPMR出现高温存储后失效了的情况,怎么解决?
664 浏览 1 评论
对于多级放大电路板,在PCB布局中,电源摆放的位置应该注意什么?
1141 浏览 1 评论
AT32F407在USART2 DMA发送数据时,接包接到了要发送的数据,程序还是处于等待传输完成的标识判断中,为什么?
88浏览 29评论
336浏览 23评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
262浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
215浏览 14评论
两个TMP117传感器一个可以正常读取温度值,一个读取的值一直是0,为什么?
69浏览 13评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-29 13:34 , Processed in 0.970968 second(s), Total 88, Slave 72 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号