当前位置: 技术问答>linux和unix
求助:centos 5.5 下安装UVC摄像头驱动的问题
来源: 互联网 发布时间:2016-11-06
本文导语: 大家好: 我的东芝portege M822笔记本新安装了centos系统,摄像头驱动找不到,原来用ubuntu 和fedora 的时候,驱动是自动认的,从网上搜了一下,查到UVC驱动可以支持: [root@Shawn-Loptop ~]# lsusb Bus 007 Device 001:...
大家好:
我的东芝portege M822笔记本新安装了centos系统,摄像头驱动找不到,原来用ubuntu 和fedora 的时候,驱动是自动认的,从网上搜了一下,查到UVC驱动可以支持:
[root@Shawn-Loptop ~]# lsusb
Bus 007 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 003: ID 04f2:b070 Chicony Electronics Co., Ltd
Bus 008 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 003 Device 002: ID 17ef:600e Lenovo
Bus 004 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 006 Device 001: ID 0000:0000
Bus 006 Device 002: ID 08ff:1600 AuthenTec, Inc. AES1600
Bus 001 Device 001: ID 0000:0000
[root@Shawn-Loptop ~]# lsusb -d 04f2:b070 -v|grep "14 Video"
bInterfaceClass 14 Video
bInterfaceClass 14 Video
bInterfaceClass 14 Video
bInterfaceClass 14 Video
bInterfaceClass 14 Video
bInterfaceClass 14 Video
bInterfaceClass 14 Video
bInterfaceClass 14 Video
按照04f2:b070这个ID号在这个网站http://linux-uvc.berlios.de/ 的Supported devices这一栏下查到如下信息
04f2:b070 Toshiba Satellite L350D notebooks Chicony Electronics
然后,我下载了v4l-dvb-abd3aac6644e.tar.gz 这个文件,tar -zxvf 文件,执行make 报错
信息如下:
[root@Shawn-Loptop v4l-dvb-abd3aac6644e]# make
make -C /home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l
make[1]: Entering directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l'
No version yet, using 2.6.18-194.32.1.el5
make[1]: Leaving directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l'
make[1]: Entering directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l'
scripts/make_makefile.pl
Updating/Creating .config
Preparing to compile for kernel version 2.6.18
***WARNING:*** You do not have the full kernel sources installed.
This does not prevent you from building the v4l-dvb tree if you have the
kernel headers, but the full kernel source may be required in order to use
make menuconfig / xconfig / qconfig.
If you are experiencing problems building the v4l-dvb tree, please try
building against a vanilla kernel before reporting a bug.
Vanilla kernels are available at http://kernel.org.
On most distros, this will compile a newly downloaded kernel:
cp /boot/config-`uname -r` /.config
cd
make all modules_install install
Please see your distro's web site for instructions to build a new kernel.
WARNING: This is the V4L/DVB backport tree, with experimental drivers
backported to run on legacy kernels from the development tree at:
http://git.linuxtv.org/media-tree.git.
It is generally safe to use it for testing a new driver or
feature, but its usage on production environments is risky.
Don't use it in production. You've been warned.
LIRC: Requires at least kernel 2.6.36
IR_LIRC_CODEC: Requires at least kernel 2.6.36
IR_IMON: Requires at least kernel 2.6.36
IR_MCEUSB: Requires at least kernel 2.6.36
VIDEOBUF_DMA_CONTIG: Requires at least kernel 2.6.31
V4L2_MEM2MEM_DEV: Requires at least kernel 2.6.33
VIDEO_ADV7180: Requires at least kernel 2.6.26
VIDEO_TCM825X: Requires at least kernel 2.6.22
VIDEO_TVP514X: Requires at least kernel 2.6.26
VIDEO_TVP7002: Requires at least kernel 2.6.34
VIDEO_THS7303: Requires at least kernel 2.6.26
VIDEO_ADV7343: Requires at least kernel 2.6.26
VIDEO_AK881X: Requires at least kernel 2.6.33
DISPLAY_DAVINCI_DM646X_EVM: Requires at least kernel 2.6.31
VIDEO_VPSS_SYSTEM: Requires at least kernel 2.6.31
VIDEO_VPFE_CAPTURE: Requires at least kernel 2.6.31
VIDEO_DM6446_CCDC: Requires at least kernel 2.6.31
VIDEO_DM355_CCDC: Requires at least kernel 2.6.31
VIDEO_CPIA: Requires at least kernel 2.6.20
VIDEO_CX88: Requires at least kernel 2.6.22
VIDEO_SAA7164: Requires at least kernel 2.6.24
VIDEO_CAFE_CCIC: Requires at least kernel 2.6.19
SOC_CAMERA: Requires at least kernel 2.6.33
SOC_CAMERA_MT9M001: Requires at least kernel 2.6.33
SOC_CAMERA_MT9M111: Requires at least kernel 2.6.33
SOC_CAMERA_MT9T031: Requires at least kernel 2.6.33
SOC_CAMERA_MT9V022: Requires at least kernel 2.6.33
SOC_CAMERA_TW9910: Requires at least kernel 2.6.33
SOC_CAMERA_PLATFORM: Requires at least kernel 2.6.33
SOC_CAMERA_OV772X: Requires at least kernel 2.6.33
VIDEO_MX1: Requires at least kernel 2.6.31
VIDEO_MX3: Requires at least kernel 2.6.31
VIDEO_PXA27x: Requires at least kernel 2.6.32
VIDEO_SH_MOBILE_CEU: Requires at least kernel 2.6.32
USB_GSPCA_FINEPIX: Requires at least kernel 2.6.20
USB_GSPCA_JEILINJ: Requires at least kernel 2.6.20
USB_GSPCA_SQ905: Requires at least kernel 2.6.20
USB_GSPCA_SQ905C: Requires at least kernel 2.6.20
VIDEO_PVRUSB2: Requires at least kernel 2.6.20
VIDEO_HDPVR: Requires at least kernel 2.6.20
VIDEO_TLG2300: Requires at least kernel 2.6.32
VIDEO_CX231XX: Requires at least kernel 2.6.23
VIDEO_USBVISION: Requires at least kernel 2.6.19
USB_ET61X251: Requires at least kernel 2.6.19
USB_SN9C102: Requires at least kernel 2.6.19
USB_PWC: Requires at least kernel 2.6.19
USB_PWC_DEBUG: Requires at least kernel 2.6.19
USB_ZR364XX: Requires at least kernel 2.6.19
USB_STKWEBCAM: Requires at least kernel 2.6.22
USB_S2255: Requires at least kernel 2.6.19
I2C_SI4713: Requires at least kernel 2.6.26
RADIO_SI4713: Requires at least kernel 2.6.26
USB_DSBR: Requires at least kernel 2.6.19
RADIO_SI470X: Requires at least kernel 2.6.20
USB_SI470X: Requires at least kernel 2.6.20
USB_MR800: Requires at least kernel 2.6.19
RADIO_TEA5764: Requires at least kernel 2.6.26
RADIO_SAA7706H: Requires at least kernel 2.6.34
RADIO_TEF6862: Requires at least kernel 2.6.31
DVB_AV7110: Requires at least kernel 2.6.19
SMS_SDIO_DRV: Requires at least kernel 2.6.24
DVB_DM1105: Requires at least kernel 2.6.22
DVB_FIREDTV: Requires at least kernel 2.6.23
DVB_FIREDTV_IEEE1394: Requires at least kernel 2.6.30
DVB_PT1: Requires at least kernel 2.6.24
MANTIS_CORE: Requires at least kernel 2.6.23
DVB_MANTIS: Requires at least kernel 2.6.23
DVB_DRX397XD: Requires at least kernel 2.6.22
VIDEO_CX25821: Requires at least kernel 2.6.31
VIDEO_CX25821_ALSA: Requires at least kernel 2.6.31
VIDEO_TM6000: Requires at least kernel 2.6.19
Created default (all yes) .config file
./scripts/make_myconfig.pl
make[1]: Leaving directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l'
make[1]: Entering directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l'
perl scripts/make_config_compat.pl /lib/modules/2.6.18-194.32.1.el5/source ./.myconfig ./config-compat.h
creating symbolic links...
ln -sf . oss
make -C firmware prep
make[2]: Entering directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l/firmware'
make[2]: Leaving directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l/firmware'
make -C firmware
make[2]: Entering directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l/firmware'
CC ihex2fw
Generating vicam/firmware.fw
Generating dabusb/firmware.fw
Generating dabusb/bitstream.bin
Generating ttusb-budget/dspbootcode.bin
Generating cpia2/stv0672_vp4.bin
Generating av7110/bootcode.bin
make[2]: Leaving directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l/firmware'
Kernel build directory is /lib/modules/2.6.18-194.32.1.el5/build
make -C /lib/modules/2.6.18-194.32.1.el5/build SUBDIRS=/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l modules
make[2]: Entering directory `/usr/src/kernels/2.6.18-194.32.1.el5-x86_64'
CC [M] /home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l/tuner-xc2028.o
In file included from /home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l/tuner-xc2028.c:19:
/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l/compat.h:133: error: static declaration of 'strict_strtoul' follows non-static declaration
include/linux/kernel.h:141: error: previous declaration of 'strict_strtoul' was here
make[3]: *** [/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l/tuner-xc2028.o] Error 1
make[2]: *** [_module_/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-194.32.1.el5-x86_64'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l'
make: *** [all] Error 2
网站有个安装说明文档,但是我实在太菜,看不懂,装了两天,一直毫无进展,希望大侠们帮帮忙,万分感谢!
我的东芝portege M822笔记本新安装了centos系统,摄像头驱动找不到,原来用ubuntu 和fedora 的时候,驱动是自动认的,从网上搜了一下,查到UVC驱动可以支持:
[root@Shawn-Loptop ~]# lsusb
Bus 007 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 003: ID 04f2:b070 Chicony Electronics Co., Ltd
Bus 008 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 003 Device 002: ID 17ef:600e Lenovo
Bus 004 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 006 Device 001: ID 0000:0000
Bus 006 Device 002: ID 08ff:1600 AuthenTec, Inc. AES1600
Bus 001 Device 001: ID 0000:0000
[root@Shawn-Loptop ~]# lsusb -d 04f2:b070 -v|grep "14 Video"
bInterfaceClass 14 Video
bInterfaceClass 14 Video
bInterfaceClass 14 Video
bInterfaceClass 14 Video
bInterfaceClass 14 Video
bInterfaceClass 14 Video
bInterfaceClass 14 Video
bInterfaceClass 14 Video
按照04f2:b070这个ID号在这个网站http://linux-uvc.berlios.de/ 的Supported devices这一栏下查到如下信息
04f2:b070 Toshiba Satellite L350D notebooks Chicony Electronics
然后,我下载了v4l-dvb-abd3aac6644e.tar.gz 这个文件,tar -zxvf 文件,执行make 报错
信息如下:
[root@Shawn-Loptop v4l-dvb-abd3aac6644e]# make
make -C /home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l
make[1]: Entering directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l'
No version yet, using 2.6.18-194.32.1.el5
make[1]: Leaving directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l'
make[1]: Entering directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l'
scripts/make_makefile.pl
Updating/Creating .config
Preparing to compile for kernel version 2.6.18
***WARNING:*** You do not have the full kernel sources installed.
This does not prevent you from building the v4l-dvb tree if you have the
kernel headers, but the full kernel source may be required in order to use
make menuconfig / xconfig / qconfig.
If you are experiencing problems building the v4l-dvb tree, please try
building against a vanilla kernel before reporting a bug.
Vanilla kernels are available at http://kernel.org.
On most distros, this will compile a newly downloaded kernel:
cp /boot/config-`uname -r` /.config
cd
make all modules_install install
Please see your distro's web site for instructions to build a new kernel.
WARNING: This is the V4L/DVB backport tree, with experimental drivers
backported to run on legacy kernels from the development tree at:
http://git.linuxtv.org/media-tree.git.
It is generally safe to use it for testing a new driver or
feature, but its usage on production environments is risky.
Don't use it in production. You've been warned.
LIRC: Requires at least kernel 2.6.36
IR_LIRC_CODEC: Requires at least kernel 2.6.36
IR_IMON: Requires at least kernel 2.6.36
IR_MCEUSB: Requires at least kernel 2.6.36
VIDEOBUF_DMA_CONTIG: Requires at least kernel 2.6.31
V4L2_MEM2MEM_DEV: Requires at least kernel 2.6.33
VIDEO_ADV7180: Requires at least kernel 2.6.26
VIDEO_TCM825X: Requires at least kernel 2.6.22
VIDEO_TVP514X: Requires at least kernel 2.6.26
VIDEO_TVP7002: Requires at least kernel 2.6.34
VIDEO_THS7303: Requires at least kernel 2.6.26
VIDEO_ADV7343: Requires at least kernel 2.6.26
VIDEO_AK881X: Requires at least kernel 2.6.33
DISPLAY_DAVINCI_DM646X_EVM: Requires at least kernel 2.6.31
VIDEO_VPSS_SYSTEM: Requires at least kernel 2.6.31
VIDEO_VPFE_CAPTURE: Requires at least kernel 2.6.31
VIDEO_DM6446_CCDC: Requires at least kernel 2.6.31
VIDEO_DM355_CCDC: Requires at least kernel 2.6.31
VIDEO_CPIA: Requires at least kernel 2.6.20
VIDEO_CX88: Requires at least kernel 2.6.22
VIDEO_SAA7164: Requires at least kernel 2.6.24
VIDEO_CAFE_CCIC: Requires at least kernel 2.6.19
SOC_CAMERA: Requires at least kernel 2.6.33
SOC_CAMERA_MT9M001: Requires at least kernel 2.6.33
SOC_CAMERA_MT9M111: Requires at least kernel 2.6.33
SOC_CAMERA_MT9T031: Requires at least kernel 2.6.33
SOC_CAMERA_MT9V022: Requires at least kernel 2.6.33
SOC_CAMERA_TW9910: Requires at least kernel 2.6.33
SOC_CAMERA_PLATFORM: Requires at least kernel 2.6.33
SOC_CAMERA_OV772X: Requires at least kernel 2.6.33
VIDEO_MX1: Requires at least kernel 2.6.31
VIDEO_MX3: Requires at least kernel 2.6.31
VIDEO_PXA27x: Requires at least kernel 2.6.32
VIDEO_SH_MOBILE_CEU: Requires at least kernel 2.6.32
USB_GSPCA_FINEPIX: Requires at least kernel 2.6.20
USB_GSPCA_JEILINJ: Requires at least kernel 2.6.20
USB_GSPCA_SQ905: Requires at least kernel 2.6.20
USB_GSPCA_SQ905C: Requires at least kernel 2.6.20
VIDEO_PVRUSB2: Requires at least kernel 2.6.20
VIDEO_HDPVR: Requires at least kernel 2.6.20
VIDEO_TLG2300: Requires at least kernel 2.6.32
VIDEO_CX231XX: Requires at least kernel 2.6.23
VIDEO_USBVISION: Requires at least kernel 2.6.19
USB_ET61X251: Requires at least kernel 2.6.19
USB_SN9C102: Requires at least kernel 2.6.19
USB_PWC: Requires at least kernel 2.6.19
USB_PWC_DEBUG: Requires at least kernel 2.6.19
USB_ZR364XX: Requires at least kernel 2.6.19
USB_STKWEBCAM: Requires at least kernel 2.6.22
USB_S2255: Requires at least kernel 2.6.19
I2C_SI4713: Requires at least kernel 2.6.26
RADIO_SI4713: Requires at least kernel 2.6.26
USB_DSBR: Requires at least kernel 2.6.19
RADIO_SI470X: Requires at least kernel 2.6.20
USB_SI470X: Requires at least kernel 2.6.20
USB_MR800: Requires at least kernel 2.6.19
RADIO_TEA5764: Requires at least kernel 2.6.26
RADIO_SAA7706H: Requires at least kernel 2.6.34
RADIO_TEF6862: Requires at least kernel 2.6.31
DVB_AV7110: Requires at least kernel 2.6.19
SMS_SDIO_DRV: Requires at least kernel 2.6.24
DVB_DM1105: Requires at least kernel 2.6.22
DVB_FIREDTV: Requires at least kernel 2.6.23
DVB_FIREDTV_IEEE1394: Requires at least kernel 2.6.30
DVB_PT1: Requires at least kernel 2.6.24
MANTIS_CORE: Requires at least kernel 2.6.23
DVB_MANTIS: Requires at least kernel 2.6.23
DVB_DRX397XD: Requires at least kernel 2.6.22
VIDEO_CX25821: Requires at least kernel 2.6.31
VIDEO_CX25821_ALSA: Requires at least kernel 2.6.31
VIDEO_TM6000: Requires at least kernel 2.6.19
Created default (all yes) .config file
./scripts/make_myconfig.pl
make[1]: Leaving directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l'
make[1]: Entering directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l'
perl scripts/make_config_compat.pl /lib/modules/2.6.18-194.32.1.el5/source ./.myconfig ./config-compat.h
creating symbolic links...
ln -sf . oss
make -C firmware prep
make[2]: Entering directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l/firmware'
make[2]: Leaving directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l/firmware'
make -C firmware
make[2]: Entering directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l/firmware'
CC ihex2fw
Generating vicam/firmware.fw
Generating dabusb/firmware.fw
Generating dabusb/bitstream.bin
Generating ttusb-budget/dspbootcode.bin
Generating cpia2/stv0672_vp4.bin
Generating av7110/bootcode.bin
make[2]: Leaving directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l/firmware'
Kernel build directory is /lib/modules/2.6.18-194.32.1.el5/build
make -C /lib/modules/2.6.18-194.32.1.el5/build SUBDIRS=/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l modules
make[2]: Entering directory `/usr/src/kernels/2.6.18-194.32.1.el5-x86_64'
CC [M] /home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l/tuner-xc2028.o
In file included from /home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l/tuner-xc2028.c:19:
/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l/compat.h:133: error: static declaration of 'strict_strtoul' follows non-static declaration
include/linux/kernel.h:141: error: previous declaration of 'strict_strtoul' was here
make[3]: *** [/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l/tuner-xc2028.o] Error 1
make[2]: *** [_module_/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l] Error 2
make[2]: Leaving directory `/usr/src/kernels/2.6.18-194.32.1.el5-x86_64'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/shawn/Downloads/v4l-dvb-abd3aac6644e/v4l'
make: *** [all] Error 2
网站有个安装说明文档,但是我实在太菜,看不懂,装了两天,一直毫无进展,希望大侠们帮帮忙,万分感谢!
|
源码方式安装容易出问题,没有其它安装包了吗?