小R科技-WIFI机器人网·机器人创意工作室

 找回密码
 立即注册
查看: 10233|回复: 8
打印 上一主题 下一主题

openwrt没有找到摄像头

[复制链接]
跳转到指定楼层
楼主
发表于 2017-7-11 09:30:21 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
root@OpenWrt:/# lsusb
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID e806:6001  
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

我用的是Robot Eyes,上面的情况是不是没有安装驱动?新手不知道怎么回事。

回复

使用道具 举报

沙发
 楼主| 发表于 2017-7-11 09:33:02 | 只看该作者
root@OpenWrt:/# dmesg | grep usb
[    0.360000] drivers/phy/phy-ralink-usb.c:ralink_usb_phy_probe[147]
[    0.370000] drivers/phy/phy-ralink-usb.c:ralink_usb_phy_probe[161]
[    8.210000] usbcore: registered new interface driver usbfs
[    8.220000] usbcore: registered new interface driver hub
[    8.230000] usbcore: registered new device driver usb
[    8.520000] phy phy-usbphy.0: remote usb device wakeup disabled
[    8.530000] phy phy-usbphy.0: UTMI 16bit 30MHz
[    8.610000] usb usb1: no of_node; not parsing pinctrl DT
[    8.750000] usb usb2: no of_node; not parsing pinctrl DT
[    8.780000] usbcore: registered new interface driver usb-storage
[    9.020000] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    9.750000] usb 1-1: no of_node; not parsing pinctrl DT
[   16.880000] usbcore: registered new interface driver cpia2
[   16.970000] usbcore: registered new interface driver Philips webcam
[   16.990000] usbcore: registered new interface driver ums-alauda
[   17.000000] usbcore: registered new interface driver ums-cypress
[   17.010000] usbcore: registered new interface driver ums-datafab
[   17.030000] usbcore: registered new interface driver ums-freecom
[   17.040000] usbcore: registered new interface driver ums-isd200
[   17.060000] usbcore: registered new interface driver ums-jumpshot
[   17.070000] usbcore: registered new interface driver ums-karma
[   17.090000] usbcore: registered new interface driver ums-sddr09
[   17.100000] usbcore: registered new interface driver ums-sddr55
[   17.110000] usbcore: registered new interface driver ums-usbat
[   17.130000] usbcore: registered new interface driver usbhid
[   17.140000] usbhid: USB HID core driver
[   17.190000] input: USB 2.0 Camera as /devices/101c0000.ehci/usb1/1-1/1-1:1.0/input/input0
[   17.200000] usbcore: registered new interface driver uvcvideo
回复 支持 反对

使用道具 举报

板凳
发表于 2017-7-11 10:35:06 | 只看该作者
UVC驱动安装了没有?
回复 支持 反对

使用道具 举报

地板
 楼主| 发表于 2017-7-12 16:47:56 | 只看该作者
liuviking 发表于 2017-7-11 10:35
UVC驱动安装了没有?

驱动应该是安装了的。这下面是我用的摄像头的输出信息。
root@OpenWrt:/proc/bus/input# cat devices
I: Bus=0003 Vendor=090c Product=037c Version=0005
N: Name="USB 2.0 PC Cam"
P: Phys=usb-101c0000.ehci-1.1.1/button
S: Sysfs=/devices/101c0000.ehci/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.0/input/input1
U: Uniq=
H: Handlers=event0
B: PROP=0
B: EV=3
B: KEY=100000 0 0 0 0 0 0
回复 支持 反对

使用道具 举报

5#
发表于 2017-7-12 17:36:43 | 只看该作者
你看看/dev目录下面有没有video0文件?
回复 支持 反对

使用道具 举报

6#
 楼主| 发表于 2017-7-13 08:37:41 | 只看该作者
liuviking 发表于 2017-7-12 17:36
你看看/dev目录下面有没有video0文件?

有这个文件!我自己的摄像头插上有识别到
oot@OpenWrt:/dev# [  216.420000] usb 1-1: new high-speed USB device number 6 using ehci-platform
[  216.580000] usb 1-1: no of_node; not parsing pinctrl DT
[  216.590000] hub 1-1:1.0: no of_node; not parsing pinctrl DT
[  216.600000] hub 1-1:1.0: USB hub found
[  216.610000] hub 1-1:1.0: 4 ports detected
[  216.910000] usb 1-1.1: new high-speed USB device number 7 using ehci-platform
[  217.040000] usb 1-1.1: no of_node; not parsing pinctrl DT
[  217.050000] hub 1-1.1:1.0: no of_node; not parsing pinctrl DT
[  217.060000] hub 1-1.1:1.0: USB hub found
[  217.070000] hub 1-1.1:1.0: 4 ports detected
[  217.370000] usb 1-1.1.1: new high-speed USB device number 8 using ehci-platform
[  217.500000] usb 1-1.1.1: no of_node; not parsing pinctrl DT
[  217.520000] uvcvideo 1-1.1.1:1.0: no of_node; not parsing pinctrl DT
[  217.530000] uvcvideo: Found UVC 1.00 device USB 2.0 PC Cam (090c:037c)
[  217.550000] input: USB 2.0 PC Cam as /devices/101c0000.ehci/usb1/1-1/1-1.1/1-1.1.1/1-1.1.1:1.0/input/input2
但是图像出不来,不知道怎么弄了。
回复 支持 反对

使用道具 举报

7#
 楼主| 发表于 2017-7-13 08:46:07 | 只看该作者
我想查看我摄像头的参数,本来想用luvcview查看的,但是没有找到openwrt上的安装包;vmware挂载 摄像头提示了驱动错误,但是我用的摄像头没有找到相关的驱动。。。懵逼中。。。
root@OpenWrt:/dev# lsusb
Bus 001 Device 008: ID 090c:037c Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.)
Bus 001 Device 007: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 006: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
回复 支持 反对

使用道具 举报

8#
 楼主| 发表于 2017-7-13 09:36:58 | 只看该作者
vmware安装了guvcview,能够支持原配的uvc摄像头,但是自己的摄像头就不能支持,输出了一堆的错误。。。
guvcview:18219): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(guvcview:18219): GLib-GObject-CRITICAL **: g_signal_handlers_block_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(guvcview:18219): Gtk-CRITICAL **: gtk_range_set_value: assertion 'GTK_IS_RANGE (range)' failed

(guvcview:18219): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(guvcview:18219): GLib-GObject-CRITICAL **: g_signal_handlers_unblock_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
V4L2_CORE: Could not grab image (select timeout): Resource temporarily unavailable

(guvcview:18219): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(guvcview:18219): GLib-GObject-CRITICAL **: g_signal_handlers_block_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(guvcview:18219): Gtk-CRITICAL **: gtk_range_set_value: assertion 'GTK_IS_RANGE (range)' failed

(guvcview:18219): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(guvcview:18219): GLib-GObject-CRITICAL **: g_signal_handlers_unblock_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
V4L2_CORE: Could not grab image (select timeout): Resource temporarily unavailable
V4L2_CORE: Could not grab image (select timeout): Resource temporarily unavailable
回复 支持 反对

使用道具 举报

9#
发表于 2017-7-13 21:15:22 | 只看该作者
千里 发表于 2017-7-13 08:37
有这个文件!我自己的摄像头插上有识别到
oot@OpenWrt:/dev# [  216.420000] usb 1-1: new high-speed U ...

能识别到video0说明摄像头应该是没问题的。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

新品特惠推荐上一条 /2 下一条

QQ|QQ技术咨询1|QQ技术咨询2|商务合作微信1:xiaorgeek001|商务合作微信2:XiaoRGEEK|诚聘英才|Archiver|手机版|小R科技-WIFI机器人网·机器人创意工作室 ( 粤ICP备15000788号-6 )

GMT+8, 2024-11-26 07:45 , Processed in 1.111025 second(s), 17 queries .

Powered by XiaoR GEEK X3.4

© 2014-2021 XiaoR GEEK

快速回复 返回顶部 返回列表