Difference between revisions of "GspcaWebcam"
(Add USB webcam support to your Armadeus board) |
m (→Install driver) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{Under_Construction}} | {{Under_Construction}} | ||
− | On this page, you will find some | + | On this page, you will find some informations to use GSPCA compatible USB webcams with your Armadeus board. |
== Introduction == | == Introduction == | ||
− | Some USB | + | Some USB webcams work 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 --- [[User:JulienL]] | ||
== Find your webcam model == | == Find your webcam model == | ||
Line 16: | Line 18: | ||
</pre> | </pre> | ||
− | With idVendor and idProduct you might be able to find the module to install. For | + | With idVendor and idProduct you might be able to find the module to install. For GSPCA based wecam, a list is given in the Linux kernel documentation and can be found here : |
<pre> | <pre> | ||
Line 29: | Line 31: | ||
<pre class="host"> | <pre class="host"> | ||
− | + | $ cd armadeus/ | |
− | + | $ make linux-menuconfig | |
</pre> | </pre> | ||
Line 47: | Line 49: | ||
<pre class="host"> | <pre class="host"> | ||
− | + | $ make | |
</pre> | </pre> | ||
− | == | + | == Load driver == |
As you can see, your device is now recognized as a camera. | As you can see, your device is now recognized as a camera. | ||
Line 81: | Line 83: | ||
== Links == | == Links == | ||
− | + | * [http://www.linuxjournal.com/video/get-your-webcam-working-gspca Old gspca video tutorial] | |
* [http://moinejf.free.fr/gspca_README.txt gspca v2 README] | * [http://moinejf.free.fr/gspca_README.txt gspca v2 README] | ||
+ | |||
+ | [[Category:Vision]] | ||
+ | [[Category:USB]] |
Latest revision as of 17:10, 4 September 2013
Page under construction... Informations on this page are not guaranteed !!
On this page, you will find some informations to use GSPCA compatible USB webcams with your Armadeus board.
Introduction
Some USB webcams work 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 --- User:JulienL
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 GSPCA 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 linux-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
Load 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.