Difference between revisions of "User talk:JulienL"

From ArmadeusWiki
Jump to: navigation, search
m
(Removing all content from page)
 
Line 1: Line 1:
{{Under_Construction}}
 
  
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.
 
 
<pre class="host">
 
  [  ] $ dmesg
 
  ...
 
  usb 1-1: New USB device found, idVendor=04fc, idProduct=0561
 
</pre>
 
 
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 :
 
 
<pre>
 
  <...>/linux-2.6.xxx/Documentation/video4linux/gspca.txt
 
</pre>
 
 
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.
 
 
<pre class="host">
 
  [  ] $ cd armadeus/
 
  [  ] $ make linux26-menuconfig
 
</pre>
 
 
Then you need to choose the right driver. In the case of the LDLC webcam :
 
 
<pre class="config">
 
Device Drivers  --->
 
    Multimedia devices  --->
 
        [*] Video capture adapters  --->
 
            [*] V4L USB devices  --->
 
                <M> GSPCA based webcams  --->
 
                    <M> SPCA561 USB Camera Drivers
 
</pre>
 
 
Now you can build the kernel and update the board.
 
 
<pre class="host">
 
  [  ] $ make
 
</pre>
 
 
== Loading driver ==
 
 
As you can see, your device is now recognized as a camera.
 
 
<pre class="apf">
 
  # 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
 
</pre>
 
 
You can load the kernel module using modprobe :
 
 
<pre class="apf">
 
  # 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
 
</pre>
 
 
To access your webcam, look at /dev/video0.
 
 
== Links ==
 
 
* [http://moinejf.free.fr/gspca_README.txt gspca v2 README]
 

Latest revision as of 20:53, 10 October 2009