3

我正在尝试在 Synology NAS(arm,linux 内核 3.2.40)上安装网络摄像头。我已经编译并安装了内核模块,它们似乎可以工作。这是插入模块并插入相机(Logitech C270)时的内核输出:

[  130.963903] Linux video capture interface: v2.00
[  136.098356] usbcore: registered new interface driver uvcvideo
[  136.104135] USB Video Class driver (1.1.1)
[  145.384393] usb 3-2: new high-speed USB device number 4 using etxhci_hcd_150119
[  145.628583] uvcvideo: Found UVC 1.00 device USBDevice (046d:0825)
[  145.726156] input: USBDevice as /devices/pci0000:00/0000:00:00.0/usb3/3-2/3-2:1.0/input/input0

这是 lsusb 输出:

# lsusb 
libudev: udev_has_devtmpfs: name_to_handle_at on /dev: Function not implemented
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 004: ID 046d:0825 Logitech, Inc. Webcam C270
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

但是,我无法访问相机:

# v4l2-ctl --all 
Failed to open /dev/video0: No such device

在 strace 中:

open("/dev/video0", O_RDWR)             = -1 ENODEV (No such device)

我尝试了不同的相机型号,另一台计算机上的 C270(工作正常),删除 /dev/video0 并重新创建它(mknod /dev/video0 c 81 0),更改权限等,但我得到了同样的错误。 ..

crw-rw-rw- 1 root video 81, 0 Jun 14 12:07 /dev/video0

lsmod 显示 uvcvideo 不用于摄像头:

# lsmod 
Module                  Size  Used by
uvcvideo               57657  0 
videodev               72561  1 uvcvideo
usbcore               147080  7 ehci_hcd,etxhci_hcd,usb_storage,usblp,usbhid,uvcvideo
usb_common               592  1 usbcore

有任何想法吗?

4

0 回答 0