Difference between revisions of "PWC Webcams"
(New page: {{Under_Construction}} On this page, you will find some information to add some USB webcams support to your Armadeus board. == Introduction == Some USB webcams work on Linux with the PWC...) |
(→Install driver) |
||
Line 34: | Line 34: | ||
$ .... | $ .... | ||
$ make linux26-menuconfig | $ make linux26-menuconfig | ||
+ | </pre> | ||
+ | |||
+ | PWC driver still depends on V4L1: | ||
+ | <pre class="config"> | ||
+ | Device Drivers ---> | ||
+ | Multimedia devices ---> | ||
+ | <M> Video For Linux | ||
+ | [*] Enable Video For Linux API 1 (DEPRECATED) | ||
</pre> | </pre> | ||
Line 43: | Line 51: | ||
[*] Video capture adapters ---> | [*] Video capture adapters ---> | ||
[*] V4L USB devices ---> | [*] V4L USB devices ---> | ||
− | + | <M> USB Philips Cameras | |
+ | [ ] USB Philips Cameras verbose debug | ||
</pre> | </pre> | ||
− | Now you can build the kernel and update | + | Now you can build the kernel and update your board (kernel & rootfs). |
<pre class="host"> | <pre class="host"> | ||
− | + | $ make | |
</pre> | </pre> | ||
Revision as of 13:59, 24 March 2010
Page under construction... Informations on this page are not guaranteed !!
On this page, you will find some information to add some USB webcams support to your Armadeus board.
Introduction
Some USB webcams work on Linux with the PWC driver. The source of this driver is included in the current Linux kernel. PWC driver is NOT working on APF9328.
Find your webcam model
In order to find your webcam model, you can connect your USB webcam to your Host computer and use dmesg.
[ ] $ dmesg ... usb 6-1: new full speed USB device using uhci_hcd and address 5 usb 6-1: configuration #1 chosen from 1 choice pwc: Philips webcam module version 10.0.13 loaded. pwc: Supports Philips PCA645/646, PCVC675/680/690, PCVC720[40]/730/740/750 & PCVC830/840. pwc: Also supports the Askey VC010, various Logitech Quickcams, Samsung MPC-C10 and MPC-C30, pwc: the Creative WebCam 5 & Pro Ex, SOTEC Afina Eye and Visionite VCS-UC300 and VCS-UM100. pwc: Logitech QuickCam 4000 Pro USB webcam detected. pwc: Registered as /dev/video1.
Install driver
Since PWC is not included in the Linux kernel, you will need to use the following commands to install it.
$ cd armadeus/ $ wget http://www.saillard.org/linux/pwc/patches/linux-v4l_pwc.10.0.12-1.patch.bz2 $ bunzip2 linux-v4l_pwc.10.0.12-1.patch.bz2 $ .... $ make linux26-menuconfig
PWC driver still depends on V4L1:
Device Drivers ---> Multimedia devices ---> <M> Video For Linux [*] Enable Video For Linux API 1 (DEPRECATED)
Then you need to choose the right driver:
Device Drivers ---> Multimedia devices ---> [*] Video capture adapters ---> [*] V4L USB devices ---> <M> USB Philips Cameras [ ] USB Philips Cameras verbose debug
Now you can build the kernel and update your board (kernel & rootfs).
$ 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 pwc
To access your webcam, look at /dev/video0.