If you have a usb camera (and /proc filesystem support and usb-filesystem support), issue the following at the command line:
$ cat /proc/bus/usb/devices |
You should receive output including (but not necessarily limited to) the following:
T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 3 Spd=12 MxCh= 0 D: Ver= 1.01 Cls=ff(vend.) Sub=ff Prot=ff MxPS= 8 #Cfgs= 1 P: Vendor=0545 ProdID=8080 Rev= 3.0a S: Product=USB IMAGING DEVICE |
The line beginning "T:" is the USB bus the device is attached to. The "P:" indicates (obviously) the vendor and product ID, which are catalogued at the linux USB Project homepage.
Assuming your connection type is supported, and your camera is working, see Section 3.2.
See Section 3.3.
First, check if your Linux distribution offers a pre-compiled binary of the driver. If that is not the case, be sure you have kernel sources installed. You will also need at a minimum GNU make, gcc, binutils and perhaps other programs installed depending on your distribution. Download the driver source (in this example named src.tar.gz) and uncompress/untar it:
$ tar -xvzf src.tar.gz |
# cd /usr/src/linux |
# make oldconfig # make dep |
See the section on patching of the Kernel-HOWTO at The Linux Documentation Project.
The short and unguaranteed version of patching, by your humble author, goes as follows: Be sure you have the same prerequisites outlined in Section 6.4 installed. First, on the command line or in an xterm change to the source directory of the kernel version you are (or will be) running with the camera patch (in this example named patch.diff).
# cd /usr/src/linux # patch -p1 -E patch.diff |
You should see a confirmation that the 'hunks' were successfully applied. At this point, you can make menuconfig or whatever program you use to recompile, enabling the appropriate support. If any of the hunks failed, or you run into any problems in addition to the link referenced above you, should consult man patch and Section 6.6.
See the video4linux mailing list headquarters at https://listman.redhat.com/mailman/listinfo/video4linux-list.
See this page.