|
楼主 |
发表于 2007-4-24 14:18:06
|
显示全部楼层
[PHP][root@lgl class]# modprobe zc0301
[root@lgl class]# dmesg | grep zc0301
zc0301: V4L2 driver for ZC0301[P] Image Processor and Control Chip v1:1.05
usbcore: registered new interface driver zc0301
[root@lgl class]# ls /dev/video*
ls: 无法访问 /dev/video*: 没有那个文件或目录[/PHP]
我拨插摄像头时系统可以检测到,并且在/sys/class/usb_device中能产生设备信息相关的文件
[PHP][root@lgl class]# ls usb_device/
usbdev1.1 usbdev1.5 usbdev2.1
[root@lgl class]# ls usb_device/
usbdev1.1 usbdev2.1
[root@lgl class]# ls usb_device/
usbdev1.1 usbdev1.6 usbdev2.1
[root@lgl class]# ls usb_device/usbdev1.6/
dev device subsystem uevent[/PHP]
但仍然无法生成 /dev/video*文件,并且/sys/class/video4linux下并没有生成任何相关信息,而默认的这个目录下应该是能生成video[0-9]这些文件的,下面是/etc/udev/rules.d文件中关于生成video*的规则
[PHP]# video devices
SUBSYSTEM=="video4linux", GROUP="video"
KERNEL=="dvb*", PROGRAM="/bin/sh -c 'K=%k; K=$${K#dvb}; A=$${K%%%%.*}; D=$${K#*.}; echo dvb/adapter$$A/$$D'", \
NAME="%c", GROUP="video"
### xorg resets those permissions, adjust your xorg.conf!
KERNEL=="nvidia*", GROUP="video"
KERNEL=="card[0-9]*", NAME="dri/%k", GROUP="video"
KERNEL=="3dfx*", GROUP="video"
# v4l devices
KERNEL=="video[0-9]*", NAME="v4l/video%n", SYMLINK+="%k", GROUP="video"
KERNEL=="video0", SYMLINK+="video"
KERNEL=="radio[0-9]*", NAME="v4l/radio%n", SYMLINK+="radio%n", GROUP="video"
KERNEL=="radio0", SYMLINK+="radio"
KERNEL=="vbi[0-9]*", NAME="v4l/vbi%n", SYMLINK+="%k", GROUP="video"
KERNEL=="vbi0", SYMLINK+="vbi"
KERNEL=="vtx[0-9]*", NAME="v4l/vtx%n", SYMLINK+="%k", GROUP="video"
KERNEL=="vtx0", SYMLINK+="vtx"[/PHP] |
|