Difference between revisions of "PWC Webcams"
From ArmadeusWiki
(→Install driver) |
m (→Install driver) |
||
(8 intermediate revisions by one other user not shown) | |||
Line 4: | Line 4: | ||
== Introduction == | == Introduction == | ||
− | Some USB webcams | + | Some USB webcams are working on Linux with the [http://www.saillard.org/linux/pwc/ PWC driver]. The source of this driver is included in the current Armadeus Linux kernel. |
PWC driver is '''NOT''' working on [[APF9328]]. | PWC driver is '''NOT''' working on [[APF9328]]. | ||
Line 26: | Line 26: | ||
== Install driver == | == Install driver == | ||
− | + | * PWC driver is not selected by default in the Armadeus Linux kernel, you will need to use the following commands to install it: | |
− | + | ||
<pre class="host"> | <pre class="host"> | ||
$ cd armadeus/ | $ cd armadeus/ | ||
− | $ | + | $ make linux-menuconfig |
− | + | ||
− | + | ||
− | + | ||
</pre> | </pre> | ||
− | + | * PWC driver still depends on V4L1: | |
− | PWC driver still depends on V4L1: | + | |
<pre class="config"> | <pre class="config"> | ||
Device Drivers ---> | Device Drivers ---> | ||
Line 43: | Line 38: | ||
[*] Enable Video For Linux API 1 (DEPRECATED) | [*] Enable Video For Linux API 1 (DEPRECATED) | ||
</pre> | </pre> | ||
− | + | * Then you need to choose the right driver: | |
− | Then you need to choose the right driver: | + | |
− | + | ||
<pre class="config"> | <pre class="config"> | ||
Device Drivers ---> | Device Drivers ---> | ||
Line 54: | Line 47: | ||
[ ] USB Philips Cameras verbose debug | [ ] USB Philips Cameras verbose debug | ||
</pre> | </pre> | ||
− | + | * Now you can build the kernel and then update your board (kernel & rootfs): | |
− | Now you can build the kernel and update your board (kernel & rootfs) | + | |
− | + | ||
<pre class="host"> | <pre class="host"> | ||
$ make | $ make | ||
</pre> | </pre> | ||
− | == | + | == Use driver == |
− | + | ||
− | + | ||
+ | * Load the driver using modprobe: | ||
<pre class="apf"> | <pre class="apf"> | ||
− | + | # modprobe pwc | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</pre> | </pre> | ||
− | + | * Plug in your camera; as you can see, your device is now recognized: | |
<pre class="apf"> | <pre class="apf"> | ||
− | + | usb 2-1: new full speed USB device using mxc-ehci and address 2 | |
− | + | usb 2-1: New USB device found, idVendor=046d, idProduct=08b2 | |
+ | usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 | ||
+ | usb 2-1: configuration #1 chosen from 1 choice | ||
+ | pwc: Logitech QuickCam 4000 Pro USB webcam detected. | ||
+ | pwc: Registered as /dev/video0. | ||
</pre> | </pre> | ||
− | To access your webcam, | + | * To access your webcam, you can now use ''/dev/video0'' with a [[Video for Linux|V4L (Video for Linux)]] compatible application. |
==Links== | ==Links== | ||
− | * http://www.saillard.org/linux/pwc/ | + | * [http://www.saillard.org/linux/pwc/ Homepage for the PWC driver] |
* http://doc.ubuntu-fr.org/pwc | * http://doc.ubuntu-fr.org/pwc | ||
+ | |||
+ | [[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 information to add some USB webcams support to your Armadeus board.
Introduction
Some USB webcams are working on Linux with the PWC driver. The source of this driver is included in the current Armadeus 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
- PWC driver is not selected by default in the Armadeus Linux kernel, you will need to use the following commands to install it:
$ cd armadeus/ $ make linux-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 then update your board (kernel & rootfs):
$ make
Use driver
- Load the driver using modprobe:
# modprobe pwc
- Plug in your camera; as you can see, your device is now recognized:
usb 2-1: new full speed USB device using mxc-ehci and address 2 usb 2-1: New USB device found, idVendor=046d, idProduct=08b2 usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 usb 2-1: configuration #1 chosen from 1 choice pwc: Logitech QuickCam 4000 Pro USB webcam detected. pwc: Registered as /dev/video0.
- To access your webcam, you can now use /dev/video0 with a V4L (Video for Linux) compatible application.