GspcaWebcam
Page under construction... Informations on this page are not guaranteed !!
On this page, you will find some information to add USB webcam support to your Armadeus board.
Introduction
Some USB webcam works on Linux with the GSPCA driver (like the low-cost webcam of LDLC). The source of this driver is now included in the current Linux kernel (starting 2.6.27). Because I don't hold any LCD screen for the moment, the next step is to stream webcam image over the Internet.
Find your webcam model
In order to find your webcam model, you can connect your USB webcam to your computer and use dmesg.
[ ] $ dmesg ... usb 1-1: New USB device found, idVendor=04fc, idProduct=0561
With idVendor and idProduct you might be able to find the module to install. For GSCPA based wecam, a list is given in the Linux kernel documentation and can be found here :
<...>/linux-2.6.xxx/Documentation/video4linux/gspca.txt
In my case, the support of the spca561 module need to be added.
Install driver
Since GSPCA is incuded in the Linux kernel, you can use the following commands to install it.
[ ] $ cd armadeus/ [ ] $ make linux26-menuconfig
Then you need to choose the right driver. In the case of the LDLC webcam :
Device Drivers ---> Multimedia devices ---> [*] Video capture adapters ---> [*] V4L USB devices ---> <M> GSPCA based webcams ---> <M> SPCA561 USB Camera Drivers
Now you can build the kernel and update the board.
[ ] $ make
Loading driver
As you can see, your device is now recognized as a camera.
# dmesg ... usb 1-1: new full speed USB device using mxc-ehci and address 3 usb 1-1: New USB device found, idVendor=04fc, idProduct=0561 usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb 1-1: Product: Generic Digital camera usb 1-1: Manufacturer: Sunplus Technology Co., Ltd. usb 1-1: configuration #1 chosen from 1 choice
You can load the kernel module using modprobe :
# modprobe gspca_main Linux video capture interface: v2.00 gspca: main v2.4.0 registered # modprobe gspca_spca561 gspca: probing 04fc:0561 gspca: probe ok usbcore: registered new interface driver spca561 spca561: registered
To access your webcam, look at /dev/video0.