No words today, linux14.04 system, using Logitech c270 camera. Found no response in plug-in, System version:
[Email protected]:~/downloads$ uname-alinux lenovomyc3.13. 0--generic #:£ º x86_64 x86_64 x86_64 Gnu/linux
Looked for a morning UVC drive, lunch did not eat. Eventually!!! It's a test camera program. Cheese just had a problem.
Download Luvcview, run, normal work
[Email protected]:~/downloads$ sudo apt-GetInstall luvcviewreading Package lists ... Donebuilding Dependency Tree Reading state information ... Doneluvcview isalready the newest version.0Upgraded,0Newly installed,0To remove and9Not Upgraded.lenovo[Email protected]:~/downloads$ Luvcviewluvcview0.2.6SDL information:video driver:x11 A window manager isavailabledevice information:device Path:/dev/video0stream settings:frame format:mjpg Frame size:640x480Frame Rate: -Fpsfind dri Find dri find dri find dri find dri find dri find dri find dri find dri find dri find dri find dri find D RI find dri find dri find dri find dri find DRI
---------------------------------------------------The following is an attempt in the morning---------------------------------------------------
(1) Determine if it is a UVC device
http://blog.csdn.net/myarrow/article/details/8465384
To determine whether a camera belongs to the UVC specification, use the following method:
1. Use the LSUSB command or other hardware information viewing tool to locate the camera's device number (Vendor ID) and the Product ID. such as Logitech Quickcam for Notebooks Pro camera is 046D:08CB;
2. Find out if there is video class interface information
Lsusb-d 046d:08cb-v | grep "Video"
If the camera is compatible with UVC, it will output similar information
Bfunctionclass Video
Binterfaceclass Video
Binterfaceclass Video
Binterfaceclass Video
If you do not have the above information, it is NON-UVC device.
(2) UVC official website http://www.ideasonboard.org/uvc/has the description:
Linux 2.6.26 and newer includes the Linux UVC driver natively. You won't need to download the driver sources manually unless you want to test a newer version or help with development .
That is, the Linux 2.6.26 and the high-version kernel are all self-powered with UVC. Thought there was a problem with the system.
The system directory also has a/dev/video0 file that indicates that the camera driver is normal
LSUSB output Current USB device
Logitech C270 for 046d:0825
[Email protected]:/dev$ Lsusbbus002Device012: ID 046d:0825Logitech, Inc. Webcam C270bus002Device002: ID8087:0024Intel Corp Integrated rate Matching Hubbus002Device001: ID 1d6b:0002Linux Foundation2.0Root Hubbus001Device003: ID 17ef:6019Lenovo Bus001Device002: ID8087:0024Intel Corp Integrated rate Matching Hubbus001Device001: ID 1d6b:0002Linux Foundation2.0Root Hub
(3) using the UVC camera http://blog.csdn.net/xingyu19871124/article/details/5764954 under Ubuntu
Downloaded separately.
1, V41-dvb
URL: Http://linuxtv.org/hg/v4l-dvb/make error, version mismatch. is compiled for Linux 3.3.0, the current version is 3.13.0 Error:
UVC File not found:/lib/modules/3.3.0-61-generic/build/.config
Also according to:
Http://blog.sina.com.cn/s/blog_3dc687f30100kwf5.html
Try make config still no, give up
Clone the source again
[Email protected]:/dev$ git clone git://linuxtv.org/media_build.git
make (Compile kernel ... )
[Email protected]:~/downloads/media_build$ Makemake-c/home/lenovo-myc/downloads/media_build/v4l make[1]: Entering directory '/home/lenovo-myc/downloads/media_build/v4l'updating/Creating. configmake[2]: Entering directory '/home/lenovo-myc/downloads/media_build/linux'Applying patches forKernel3.13.0- A-Genericpatch-s-f-n-p1-i. /backports/Api_version.patchpatch-s-f-n-p1-i. /backports/Pr_fmt.patchpatch-s-f-n-p1-i. /backports/Debug.patchpatch-s-f-n-p1-i. /backports/Drx39xxj.patchpatch-s-f-n-p1-i. /backports/V4.1_pat_enabled.patchpatch-s-f-n-p1-i. /backports/V4.0_dma_buf_export.patchpatch-s-f-n-p1-i. /backports/V4.0_drop_trace.patchpatch-s-f-n-p1-i. /backports/V3.16_netdev.patchpatch-s-f-n-p1-i. /backports/V3.16_wait_on_bit.patchpatch-s-f-n-p1-i. /backports/v3.16_void_gpiochip_remove.patchpatched Drivers/media/dvb-core/dvbdev.cpatched Drivers/media/v4l2-core/v4l2-dev.cpatched Drivers/media/rc/rc-main.cmake[2]: Leaving directory '/home/lenovo-myc/downloads/media_build/linux'Preparing to compile forKernel version3.13.0warning:*** DoNot has the full kernel sources installed. This does isn't prevent you fromBuilding the V4l-dvb TreeifYou had Thekernel headers, but the full kernel source could be requiredinchorder to Usemake Menuconfig/Xconfig/Qconfig. If you are experiencing problems building the v4l-dvb Tree, pleaseTrybuilding against a vanilla kernel before reporting a bug. Vanilla kernels is available at http://kernel.org.On the most distros, ThisWould compile a newly downloaded KERNEL:CP/boot/config-' uname-r ' <your kernel dir>/. CONFIGCD<your Kernel dir>Make all Modules_install installplease See your distro's Web site for instructions to build a new kernel.Warning:this isThe v4l/DVB Backport tree, with experimental drivers backported to run on legacy Kernels fromThe development tree at:http://Git.linuxtv.org/media-tree.git.It isGenerally safe to use it forTesting aNewdriver or feature, but it usage on production environments isRisky. Don't use it in production. You've been warned. V4l2_flash_led_class:requires at least kernel4.2.0rc_st:requires at least kernel3.15.0video_xilinx:requires at least kernel3.17.0i2c_si4713:requires at least kernel3.17.0video_adv7604:requires at least kernel3.17.0video_mt9p031:requires at least kernel3.17.0video_mt9v032:requires at least kernel3.19.0video_smiapp:requires at least kernel4.0.0soc_camera_ov2640:requires at least kernel3.17.0Createddefault(all yes). config file./scripts/make_myconfig.plmake[1]: Leaving directory '/home/lenovo-myc/downloads/media_build/v4l'make[1]: Entering directory '/home/lenovo-myc/downloads/media_build/v4l'Perl scripts/make_config_compat.pl/lib/modules/3.13.0- A-generic/build./.myconfig./config-compat.hcreating Symbolic Links...make-C firmware prepmake[2]: Entering directory '/home/lenovo-myc/downloads/media_build/v4l/firmware'make[2]: Leaving directory '/home/lenovo-myc/downloads/media_build/v4l/firmware'Make-C firmwaremake[2]: Entering directory '/home/lenovo-myc/downloads/media_build/v4l/firmware'Generating vicam/firmware.fwgenerating Ttusb-budget/dspbootcode.bingenerating cpia2/stv0672_vp4.bingenerating av7110/bootcode.binmake[2]: Leaving directory '/home/lenovo-myc/downloads/media_build/v4l/firmware'Kernel Build Directory is/lib/modules/3.13.0- A-generic/Buildmake-C. /Linux apply_patchesmake[2]: Entering directory '/home/lenovo-myc/downloads/media_build/linux'Patches for 3.13.0- A-generic already applied.make[2]: Leaving directory '/home/lenovo-myc/downloads/media_build/linux'Make-c/lib/modules/3.13.0- A-generic/build subdirs=/home/lenovo-myc/downloads/media_build/v4l modulesmake[2]: Entering directory '/usr/src/linux-headers-3.13.0- A-generic'CC [M]/home/lenovo-myc/downloads/media_build/v4l/BT87X.O LD [M]/home/lenovo-myc/downloads/media_build/v4l/snd-BT87X.O Building modules, stage2. Modpost1Modules CC/home/lenovo-myc/downloads/media_build/v4l/snd-BT87X.MOD.O LD [M]/home/lenovo-myc/downloads/media_build/v4l/snd-bt87x.komake[2]: Leaving directory '/usr/src/linux-headers-3.13.0- A-generic'./scripts/rmmod.pl Checkcan'T Locate proc/processtable.pm in @INC (if you are need to install the Proc::P rocesstable module) (@INC contains:/etc/per l/usr/local/lib/perl/5.18.2/usr/local/share/perl/5.18.2/usr/lib/perl5/usr/share/perl5/usr/lib/perl/5.18/usr/ Share/perl/5.18/usr/local/lib/site_perl.) At./scripts/rmmod.pl Line 4.BEGIN failed--compilation aborted at./scripts/rmmod.pl Line4. make[1]: *** [default] Error2make[1]: Leaving directory '/home/lenovo-myc/downloads/media_build/v4l'Make: * * * [ALL] Error2
View Code
2,gspcav1-20071224.tar.gz
Website: http://mxhaard.free.fr/download.html
Make is still wrong
Luvciew was later downloaded. Discover the camera can run! All right, here we go.
1. Check the camera ID:
[Email protected] dev]# LSUSB
Bus 002 Device 013:id 0ac8:3313 z-star Microelectronics Corp.
The 0xc8:3313 is supported in the UVC.
2. After inserting the camera, you can check if there is a video device file under/dev/:
[[email protected] dev]# ls | grep video
Video
Video0
Where video is a video0 connection. If not reproduced, the UVC may not be configured in the kernel and reconfigured.
(roughly below the device Driversàmultimedia Devicesàvideo capture adaptersàv4l USB devices). If the kernel is configured,
Still does not appear, you can use modprobe uvcvideo to load the module.
3, first look at the relevant information camera:
Lshal | grep Cam
Appear:
info.product = ' Vega USB 2.0 Camera. ' (string)
usb_device.product = ' Vega USB 2.0 Camera. ' (string)
usb.interface.description = ' Vega USB 2.0 Camera. ' (string)
info.product = ' Vega USB 2.0 Camera. ' (string)
input.product = ' Vega USB 2.0 Camera. ' (string)
info.product = ' Vega USB 2.0 Camera. ' (string)
These fields are familiar to the USB research.
Let's see if the system can recognize the camera:
[Email protected] log]# DMESG | grep Cam
Uvcvideo:found UVC 1.00 Device Vega USB 2.0 Camera. (0ac8:3313)
Input:vega USB 2.0 Camera. As/class/input/input6
USB 2-7: Product:vega USB 2.0 Camera.
Uvcvideo:found UVC 1.00 Device Vega USB 2.0 Camera. (0ac8:3313)
Input:vega USB 2.0 Camera. As/class/input/input7
USB 2-7: Product:vega USB 2.0 Camera.
Uvcvideo:found UVC 1.00 Device Vega USB 2.0 Camera. (0ac8:3313)
Input:vega USB 2.0 Camera. As/class/input/input8
USB 2-7: Product:vega USB 2.0 Camera.
[Email protected] ~]# DMESG | grep video
PCI 0000:05:00.0:boot Video Device
Linux Video Capture interface:v2.00
Usbcore:registered New Interface Driver Uvcvideo
Uvcvideo 2-7:1.0:usb_probe_interface
Uvcvideo 2-7:1.0:usb_probe_interface-got ID
Uvcvideo:found UVC 1.00 Device Vega USB 2.0 Camera. (0ac8:3313)
Uvcvideo 2-7:1.0:usb_probe_interface
Uvcvideo 2-7:1.0:usb_probe_interface-got ID
Uvcvideo:found UVC 1.00 Device Vega USB 2.0 Camera. (0ac8:3313)
Uvcvideo 2-7:1.0:usb_probe_interface
Uvcvideo 2-7:1.0:usb_probe_interface-got ID
Uvcvideo:found UVC 1.00 Device Vega USB 2.0 Camera. (0ac8:3313)
Using the camera under Liunx