TI论坛
直播中

孙榕

7年用户 216经验值
私信 关注

请问为什么AM335X USB1无法正常加载SMSC95XX?

本帖最后由 一只耳朵怪 于 2018-6-21 14:31 编辑

自己做的板子,USB1连接的是SMSC9512,现在问题是上电过程中可以识别SMSC95XX,鼠标也能亮,但几秒后又断了,请大家帮忙看看是什么原因?
开始应该是加载上了,后面开始出现hub 1-1:1.0: transfer --> -71的时候就挂了。附件里是完整的log信息
  1. [ 3.198551] u*** u***1: u*** wakeup-resume
  2. [ 3.198600] u*** u***1: u*** auto-resume
  3. [ 3.198619] hub 1-0:1.0: hub_resume
  4. [ 3.198657] hub 1-0:1.0: port 1: status 0101 change 0001
  5. [ 3.301841] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
  6. [ 3.301890] hub 1-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
  7. [ 3.407269] u*** 1-1: new high-speed USB device number 2 using mu***-hdrc
  8. [ 3.526560] u*** 1-1: udev 2, busnum 1, minor = 1
  9. [ 3.526585] u*** 1-1: New USB device found, idVendor=0424, idProduct=9512
  10. [ 3.526598] u*** 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
  11. [ 3.527003] u*** 1-1: u***_probe_device
  12. [ 3.527020] u*** 1-1: configuration #1 chosen from 1 choice
  13. [ 3.527135] u*** 1-1: adding 1-1:1.0 (config #1, interface 0)
  14. [ 3.527252] hub 1-1:1.0: u***_probe_interface
  15. [ 3.527263] hub 1-1:1.0: u***_probe_interface - got id
  16. [ 3.527281] hub 1-1:1.0: USB hub found
  17. [ 3.527361] hub 1-1:1.0: 3 ports detected
  18. [ 3.527372] hub 1-1:1.0: compound device; port removable status: FRR
  19. [ 3.527381] hub 1-1:1.0: individual port power switching
  20. [ 3.527391] hub 1-1:1.0: individual port over-current protection
  21. [ 3.527550] hub 1-1:1.0: TT per port
  22. [ 3.527563] hub 1-1:1.0: TT requires at most 8 FS bit times (666 ns)
  23. [ 3.527573] hub 1-1:1.0: power on to power good time: 100ms
  24. [ 3.527671] hub 1-1:1.0: local power source is good
  25. [ 3.527827] hub 1-1:1.0: enabling power on all ports
  26. [ 3.528105] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
  27. [ 3.528132] hub 1-0:1.0: port 1 enable change, status 00000503
  28. [ 3.628075] hub 1-1:1.0: port 1: status 0101 change 0001
  29. [ 3.628283] hub 1-1:1.0: port 3: status 0301 change 0001
  30. [ 3.729619] hub 1-1:1.0: state 7 ports 3 chg 000a evt 0000
  31. [ 3.729741] hub 1-1:1.0: port 1, status 0101, change 0000, 12 Mb/s
  32. [ 3.743352] hub 1-1:1.0: port 1 not reset yet, waiting 10ms
  33. [ 3.809807] u*** 1-1.1: new high-speed USB device number 3 using mu***-hdrc
  34. [ 3.823387] hub 1-1:1.0: port 1 not reset yet, waiting 10ms
  35. [ 3.903638] u*** 1-1.1: udev 3, busnum 1, minor = 2
  36. [ 3.903662] u*** 1-1.1: New USB device found, idVendor=0424, idProduct=ec00
  37. [ 3.903674] u*** 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
  38. [ 3.904100] u*** 1-1.1: u***_probe_device
  39. [ 3.904118] u*** 1-1.1: configuration #1 chosen from 1 choice
  40. [ 3.906329] u*** 1-1.1: adding 1-1.1:1.0 (config #1, interface 0)
  41. [ 3.906552] smsc95xx 1-1.1:1.0: u***_probe_interface
  42. [ 3.906567] smsc95xx 1-1.1:1.0: u***_probe_interface - got id
  43. [ 3.906633] smsc95xx v1.0.4
  44. [ 3.952681] smsc95xx 1-1.1:1.0 eth1: register 'smsc95xx' at u***-mu***-hdrc.1.auto-1.1, smsc95xx USB 2.0 Ethernet, 5a:98:36:bb:36:9d
  45. [ 3.953009] hub 1-1:1.0: port 3, status 0301, change 0000, 1.5 Mb/s
  46. [ 3.966013] hub 1-1:1.0: port 3 not reset yet, waiting 10ms
  47. [ 4.032345] u*** 1-1.3: new low-speed USB device number 4 using mu***-hdrc
  48. [ 4.047998] hub 1-1:1.0: port 3 not reset yet, waiting 10ms
  49. [ 4.130188] u*** 1-1.3: skipped 1 descriptor after interface
  50. [ 4.130558] u*** 1-1.3: default language 0x0409
  51. [ 4.132193] u*** 1-1.3: udev 4, busnum 1, minor = 3
  52. [ 4.132216] u*** 1-1.3: New USB device found, idVendor=046d, idProduct=c077
  53. [ 4.132227] u*** 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
  54. [ 4.132238] u*** 1-1.3: Product: USB Optical Mouse
  55. [ 4.132247] u*** 1-1.3: Manufacturer: Logitech
  56. [ 4.132659] u*** 1-1.3: u***_probe_device
  57. [ 4.132676] u*** 1-1.3: configuration #1 chosen from 1 choice
  58. [ 4.132998] u*** 1-1.3: adding 1-1.3:1.0 (config #1, interface 0)
  59. [ 4.133199] u***hid 1-1.3:1.0: u***_probe_interface
  60. [ 4.133213] u***hid 1-1.3:1.0: u***_probe_interface - got id
  61. [ 4.135818] input: Logitech USB Optical Mouse as /devices/ocp.3/47400000.u***/mu***-hdrc.1.auto/u***1/1-1/1-1.3/1-1.3:1.0/input/input1
  62. [ 4.136370] hid-generic 0003:046D:C077.0001: input,hidraw0: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on u***-mu***-hdrc.1.auto-1.3/input0
  63. [ 4.136660] hub 1-1:1.0: state 7 ports 3 chg 0000 evt 0008
  64. [ 4.143818] udevd[219]: starting version 175
  65. [ 5.034412] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
  66. [ 8.081859] hub 1-1:1.0: transfer --> -71
  67. [ 8.082331] hub 1-1:1.0: transfer --> -71
  68. [ 8.082702] hub 1-1:1.0: transfer --> -71
  69. [ 8.083080] hub 1-1:1.0: transfer --> -71
  70. [ 8.083456] hub 1-1:1.0: transfer --> -71
  71. [ 8.083841] hub 1-1:1.0: transfer --> -71
  72. [ 8.084204] hub 1-1:1.0: transfer --> -71
  73. [ 8.084576] hub 1-1:1.0: transfer --> -71
  74. [ 8.084951] hub 1-1:1.0: transfer --> -71
  75. [ 8.085337] hub 1-1:1.0: transfer --> -71
  76. [ 8.085402] hub 1-1:1.0: state 7 ports 3 chg 0000 evt 0000
  77. [ 8.085421] hub 1-1:1.0: resetting for error -71
  78. [ 8.085446] u*** 1-1.1: USB disconnect, device number 3
  79. [ 8.085456] u*** 1-1.1: unregistering device
  80. [ 8.085467] u*** 1-1.1: unregistering interface 1-1.1:1.0
  81. [ 8.085697] hub 1-1:1.0: transfer --> -71
  82. [ 8.085832] smsc95xx 1-1.1:1.0 eth1: unregister 'smsc95xx' u***-mu***-hdrc.1.auto-1.1, smsc95xx USB 2.0 Ethernet
  83. [ 8.091203] u*** 1-1.1: u***_disable_device nuking all URBs
  84. [ 8.091678] u*** 1-1.3: USB disconnect, device number 4
  85. [ 8.091691] u*** 1-1.3: unregistering device
  86. [ 8.091702] u*** 1-1.3: unregistering interface 1-1.3:1.0
  87. [ 8.092893] u*** 1-1.3: u***_disable_device nuking all URBs
  88. [ 8.198357] u*** 1-1: reset high-speed USB device number 2 using mu***-hdrc
  89. [ 8.303799] u*** 1-1: device descriptor read/64, error -71
  90. [ 8.518653] u*** 1-1: device descriptor read/64, error -71
  91. [ 8.733480] u*** 1-1: reset high-speed USB device number 2 using mu***-hdrc
  92. [ 8.838977] u*** 1-1: device descriptor read/64, error -71
  93. [ 9.053765] u*** 1-1: device descriptor read/64, error -71
  94. [ 9.268679] u*** 1-1: reset high-speed USB device number 2 using mu***-hdrc
  95. [ 9.285567] omap_rng 48310000.rng: base address of priv is -97452032
  96. [ 9.307008] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
  97. [ 9.674867] u*** 1-1: device not accepting address 2, error -71
  98. [ 9.790139] u*** 1-1: reset high-speed USB device number 2 using mu***-hdrc
  99. [ 10.196340] u*** 1-1: device not accepting address 2, error -71
  100. [ 10.206058] hub 1-0:1.0: logical disconnect on port 1
  101. [ 10.206093] hub 1-1:1.0: enabling power on all ports
  102. [ 10.309619] hub 1-1:1.0: hub_port_status failed (err = -19)
  103. [ 10.319403] hub 1-1:1.0: hub_port_status failed (err = -19)
  104. [ 10.333080] hub 1-1:1.0: hub_port_status failed (err = -19)
  105. [ 10.339112] hub 1-1:1.0: activate --> -19
  106. [ 10.350143] hub 1-1:1.0: error resetting hub: -19
  107. [ 10.350172] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0002
  108. [ 10.350224] hub 1-0:1.0: port 1, status 0501, change 0002, 480 Mb/s
  109. [ 10.350241] u*** 1-1: USB disconnect, device number 2
  110. [ 10.350253] u*** 1-1: unregistering device
  111. [ 10.350263] u*** 1-1: unregistering interface 1-1:1.0
  112. [ 10.350914] u*** 1-1: u***_disable_device nuking all URBs
  113. [ 10.460040] hub 1-0:1.0: debounce: port 1: total 100ms stable 100ms status 0x501
  114. [ 10.565503] u*** 1-1: new high-speed USB device number 5 using mu***-hdrc
  115. [ 10.671023] u*** 1-1: device descriptor read/64, error -71
  116. [ 10.885803] u*** 1-1: device descriptor read/64, error -71
  117. [ 10.965901] tilcdc 4830e000.fb: timeout waiting for framedone
  118. [ 11.098710] u*** 1-1: new high-speed USB device number 6 using mu***-hdrc
  119. [ 11.204184] u*** 1-1: device descriptor read/64, error -71
  120. [ 11.419005] u*** 1-1: device descriptor read/64, error -71
  121. [ 11.633874] u*** 1-1: new high-speed USB device number 7 using mu***-hdrc
  122. [ 11.923584] gadget: using random self ethernet address
  123. [ 11.924330] u***0: MAC 6e:a0:aa:9d:fb:8a
  124. [ 11.924343] u***0: HOST MAC 84:eb:18:e4:89:a1
  125. [ 11.938551] gadget: Mass Storage Function, version: 2009/09/11
  126. [ 11.938575] gadget: Number of LUNs=1
  127. [ 11.938597] lun0: LUN: removable file: /dev/mmcblk0p1
  128. [ 11.938725] gadget: Multifunction Composite Gadget
  129. [ 11.938753] gadget: g_multi ready
  130. [ 11.938794] mu***-hdrc mu***-hdrc.0.auto: MUSB HDRC host driver
  131. [ 11.939098] mu***-hdrc mu***-hdrc.0.auto: new USB bus registered, assigned bus number 2
  132. [ 11.939126] mu***-hdrc mu***-hdrc.0.auto: supports USB remote wakeup
  133. [ 11.939194] u*** u***2: default language 0x0409
  134. [ 11.939225] u*** u***2: udev 1, busnum 2, minor = 128
  135. [ 11.939238] u*** u***2: New USB device found, idVendor=1d6b, idProduct=0002
  136. [ 11.939250] u*** u***2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
  137. [ 11.939260] u*** u***2: Product: MUSB HDRC host driver
  138. [ 11.939269] u*** u***2: Manufacturer: Linux 3.8.13 mu***-hcd
  139. [ 11.939279] u*** u***2: SerialNumber: mu***-hdrc.0.auto
  140. [ 11.939715] u*** u***2: u***_probe_device
  141. [ 11.939731] u*** u***2: configuration #1 chosen from 1 choice
  142. [ 11.939773] u*** u***2: adding 2-0:1.0 (config #1, interface 0)
  143. [ 11.939898] hub 2-0:1.0: u***_probe_interface
  144. [ 11.939910] hub 2-0:1.0: u***_probe_interface - got id
  145. [ 11.939928] hub 2-0:1.0: USB hub found
  146. [ 11.939951] hub 2-0:1.0: 1 port detected
  147. [ 11.939961] hub 2-0:1.0: standalone hub
  148. [ 11.939971] hub 2-0:1.0: individual port power switching
  149. [ 11.939980] hub 2-0:1.0: no over-current protection
  150. [ 11.939989] hub 2-0:1.0: Single TT
  151. [ 11.940000] hub 2-0:1.0: TT requires at most 8 FS bit times (666 ns)
  152. [ 11.940010] hub 2-0:1.0: power on to power good time: 10ms
  153. [ 11.940031] hub 2-0:1.0: local power source is good
  154. [ 11.940084] hub 2-0:1.0: enabling power on all ports
  155. [ 12.040099] u*** 1-1: device not accepting address 7, error -71
  156. [ 12.135529] CAUTION: mu***: Babble Interrupt Occurred
  157. [ 12.155370] u*** 1-1: new high-speed USB device number 8 using mu***-hdrc
  158. [ 12.170186] CAUTION: mu***: Babble Interrupt Occurred
  159. [ 12.264309] gadget: high-speed config #1: Multifunction with RNDIS
  160. [ 12.561554] u*** 1-1: device not accepting address 8, error -71
  161. [ 12.571762] hub 1-0:1.0: unable to enumerate USB device on port 1
  162. [ 12.587036] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
  163. [ 12.587074] hub 1-0:1.0: port 1 enable change, status 00000501
  164. [ 12.587115] hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0000
  165. [ 12.587146] hub 1-0:1.0: hub_suspend
  166. [ 12.587173] u*** u***1: bus auto-suspend, wakeup 1
  167. [ 12.587322] hub 2-0:1.0: hub_suspend
  168. [ 12.587343] u*** u***2: bus auto-suspend, wakeup 1
  169. [ 26.188553] net eth0: initializing cpsw version 1.12 (0)
  170. [ 26.194152] net eth0: phy found : id is : 0x7c0f1
  171. [ 26.194187] libphy: PHY 4a101000.mdio:01 not found
  172. [ 26.199273] net eth0: phy 4a101000.mdio:01 not found on slave 1
  173. [ 26.221527] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
  174. [ 30.051764] tilcdc 4830e000.fb: timeout waiting for framedone

回帖(4)

罗兰君

2018-6-21 06:18:58
首先按照下面的guide检查下原理图:
http://processors.wiki.ti.com/index.php/AM335x_Schematic_Checklist#USB
举报

孙榕

2018-6-21 06:29:42
引用: 344868615qq 发表于 2018-6-21 06:18
首先按照下面的guide检查下原理图:
http://processors.wiki.ti.com/index.php/AM335x_Schematic_Checklist#USB

smsc9512这块原理是参考树莓派画得,也按照您给的帖子检查了,原理应该是对的。9512上电过程中可以识别,但是几秒后又断开,开始怀疑供电有问题,我把供电部分也都量过,没有异常。是不是软件上漏配什么东西了?
举报

孙榕

2018-6-21 06:36:23
引用: hfjydz2013 发表于 2018-6-21 06:29
smsc9512这块原理是参考树莓派画得,也按照您给的帖子检查了,原理应该是对的。9512上电过程中可以识别,但是几秒后又断开,开始怀疑供电有问题,我把供电部分也都量过,没有异常。是不是软件上漏配什么东西了?

请大神们给点建议呀,下一步该怎么调?
举报

孙榕

2018-6-21 06:47:02
引用: hfjydz2013 发表于 2018-6-21 06:36
请大神们给点建议呀,下一步该怎么调?

已经解决,9512晶振没有正常工作,换了电容就可以了。现在两个USB口都好用了,但是9512的网口插上网线没反应,这个会是什么问题呀?
举报

更多回帖

发帖
×
20
完善资料,
赚取积分