http://www.linuxsir.org/main/node/221?q=node/221
The above post is about the camera (WebCam) in Linux using Spcaserv set up network Video Monitoring Server (V0.1B).
Here I will simply talk about Linux install Linux camera driver.
In the new Linux kernel there is a majority of USB camera drivers. So you can choose to drive directly from inside the kernel.
First you have to determine your camera model:
$ Lshal | grep Webcam info.product = ' ov511+ Webcam ' (string) usb_device.product = ' ov511+ Webcam ' (string)
You can conclude that the model is 0v511 and then edit the kernel.
Device drivers--> <*> Multimedia support ---> [*] video capture adapters ---> [*] v4l USB devices ---> <M> USB OV511 Camera support (deprecated) Select the model, and then compile, after compiling, you can not restart, directly under the linux/drivers/media/video/directly #insmod ov511 or run modprobe ov511, now position driver installed. The next step is to install the camera software. I'm using the Spcaview. #emerge Spcaview about Spcaview specific usage can refer to the above website. In the installation process may encounter many problems, one problem is that you do not have/dev/fb0 device, first of all, to determine the kernel has been compiled framebuffer, and then start in Grub Framebuffer, as follows: #vim/boot/grub/ Menu.lst title Gentoo, Kerner 2.6.33.6 Root &N BSP; (hd0,0) kernel /kernel-genkernel-x86_64-2.6.35.4 root=/dev/mapper/ Volgroup-ubuntu ro DOLVM vga=0x318 initrd /initramfs-genkernel-x86_64-2.6.35.4 After kernel, add vga=0x318 to start framebuffer. Some systems for Spcaview support is not very good, there are a lot of errors, you can refer to the Camorama tool, #emerge Camorama start Camorama or Spcaview when you may encounter the problem of/dev/video permissions, then need to repairChange their permissions: #chmod 666/dev/video #chmod 666/dev/fb0 $camorama This time, there should be no big problem.