WhyCan Forum

人过留名,雁过留声,感谢各位朋友不离不弃地支持。 QQ: 516333132, 微信: whycan_cn (哇酷网/挖坑网/填坑网) admin@whycan.cn

您尚未登录。

#1 2018-10-02 11:00:43

kandy
会员
注册时间: 2018-10-02
累计积分: 4

荔枝派nano f1c100s BSP内核USB摄像头驱动问题

各位大神,有哪位在 f1c100s上调通了USB摄像头呢?现在我的板子USB HOST可正常识别U盘,但无法识别USB摄像头(UVC),内核已加了UVC相关驱动支持,看LOG应该不是UVC驱动的问题,问题出在HCD驱动,但具体原因不清楚,哪位大神用过或知道的请指点一哈,谢谢!

备注:内核为BSP内核3.10

[   17.178381] ------------IRQ CONNECT-------------
[   17.178381]
[   17.186936] usb usb1: usb wakeup-resume
[   17.193169] usb usb1: usb auto-resume
[   17.197269] hub 1-0:1.0: hub_resume
[   17.203016] hub 1-0:1.0: port 1: status 0101 change 0001
[   17.310880] hub 1-0:1.0: state 7 ports 1 chg 0002 evt 0000
[   17.317119] hub 1-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
[   17.325112] [sunxi_hcd]: reset port.
[   17.380800] [sunxi_hcd]: reset port stopped.
[   17.440864] usb 1-1: new high-speed USB device number 2 using sunxi_hcd_host0
[   17.448890] ERR: sunxi_hcd_h_ep0_irq, no response, csr0 0010
[   17.456394] ERR: sunxi_hcd_h_ep0_irq, no response, csr0 0010
[   17.463682] ERR: sunxi_hcd_h_ep0_irq, no response, csr0 0010
[   17.470089] [sunxi_hcd]: reset port.
[   17.530792] [sunxi_hcd]: reset port stopped.
[   17.590855] usb 1-1: device descriptor read/64, error -71
[   17.700885] ERR: sunxi_hcd_h_ep0_irq, no response, csr0 0010
[   17.707367] ERR: sunxi_hcd_h_ep0_irq, no response, csr0 0010
[   17.714795] ERR: sunxi_hcd_h_ep0_irq, no response, csr0 0010
[   17.722002] [sunxi_hcd]: reset port.
[   17.780795] [sunxi_hcd]: reset port stopped.
[   17.840853] usb 1-1: device descriptor read/64, error -71
[   17.950833] [sunxi_hcd]: sunxi_hcd_h_disable, epnum = 0
[   17.956646] [sunxi_hcd]: sunxi_hcd_h_disable, epnum = 0
[   17.963569] [sunxi_hcd]: reset port.
[   18.020802] [sunxi_hcd]: reset port stopped.
[   18.080853] usb 1-1: new high-speed USB device number 3 using sunxi_hcd_host0
[   18.088873] ERR: sunxi_hcd_h_ep0_irq, no response, csr0 0010
[   18.096390] ERR: sunxi_hcd_h_ep0_irq, no response, csr0 0010
[   18.103749] ERR: sunxi_hcd_h_ep0_irq, no response, csr0 0010
[   18.110182] [sunxi_hcd]: reset port.
[   18.170790] [sunxi_hcd]: reset port stopped.
[   18.230857] usb 1-1: device descriptor read/64, error -71
[   18.340877] ERR: sunxi_hcd_h_ep0_irq, no response, csr0 0010
[   18.347355] ERR: sunxi_hcd_h_ep0_irq, no response, csr0 0010
[   18.354785] ERR: sunxi_hcd_h_ep0_irq, no response, csr0 0010
[   18.361991] [sunxi_hcd]: reset port.
[   18.420794] [sunxi_hcd]: reset port stopped.
[   18.480848] usb 1-1: device descriptor read/64, error -71
[   18.590831] [sunxi_hcd]: sunxi_hcd_h_disable, epnum = 0
[   18.596640] [sunxi_hcd]: sunxi_hcd_h_disable, epnum = 0
[   18.603570] [sunxi_hcd]: reset port.
[   18.660789] [sunxi_hcd]: reset port stopped.
[   18.720857] usb 1-1: new high-speed USB device number 4 using sunxi_hcd_host0
[   18.728881] ERR: sunxi_hcd_h_ep0_irq, no response, csr0 0010
[   18.940873] ERR: sunxi_hcd_h_ep0_irq, no response, csr0 0010
[   19.150807] usb 1-1: device not accepting address 4, error -71
[   19.157344] [sunxi_hcd]: sunxi_hcd_h_disable, epnum = 0
[   19.164419] [sunxi_hcd]: sunxi_hcd_h_disable, epnum = 0
[   19.170331] [sunxi_hcd]: reset port.
[   19.230784] [sunxi_hcd]: reset port stopped.
[   19.290848] usb 1-1: new high-speed USB device number 5 using sunxi_hcd_host0
[   19.298868] ERR: sunxi_hcd_h_ep0_irq, no response, csr0 0010
[   19.510865] ERR: sunxi_hcd_h_ep0_irq, no response, csr0 0010
[   19.720796] usb 1-1: device not accepting address 5, error -71
[   19.727339] [sunxi_hcd]: sunxi_hcd_h_disable, epnum = 0
[   19.734205] [sunxi_hcd]: sunxi_hcd_h_disable, epnum = 0
[   19.740067] hub 1-0:1.0: unable to enumerate USB device on port 1
[   19.747988] hub 1-0:1.0: state 7 ports 1 chg 0000 evt 0002
[   19.754989] hub 1-0:1.0: port 1 enable change, status 00000501
[   19.762440] hub 1-0:1.0: hub_suspend
[   19.766472] usb usb1: bus auto-suspend, wakeup 1

离线

#2 2018-10-02 19:42:08

szyusong
会员
所在地: 深圳
注册时间: 2018-09-08
累计积分: 35

Re: 荔枝派nano f1c100s BSP内核USB摄像头驱动问题

按道理,U盘能用,说明 Host 驱动就是没问题的,你得确认下 USB 摄像头会不会有问题,可以用 linux 的虚拟机先测试下,看看能否正常使用。
接到nano上,得注意下 USB 的供电是能足够驱动 USB 摄像头。

离线

#3 2018-10-02 19:49:45

kandy
会员
注册时间: 2018-10-02
累计积分: 4

Re: 荔枝派nano f1c100s BSP内核USB摄像头驱动问题

感谢指点,我之前也这样认为,但确实是U盘可以,摄像头老是报错,但后面几经周折后发现又可以用了,也不知道为什么,也没改什么东西,主要是fex和dts文件,现在可以了就没去研究了。

离线

#4 2019-06-10 21:42:18

lam007
会员
注册时间: 2019-06-10
累计积分: 1

Re: 荔枝派nano f1c100s BSP内核USB摄像头驱动问题

怎么联系你!

离线

#5 2019-07-30 07:10:59

迪卡
会员
注册时间: 2018-11-02
累计积分: 269

Re: 荔枝派nano f1c100s BSP内核USB摄像头驱动问题

BSP内核的usb摄像头是可以用的,可以生成/video0

离线

页脚