Template:FAQ/Questions/USB-Webcam

From GumstixDocsWiki

Jump to: navigation, search

Note: USB-Webcam can be only connected to a Verdex board since it has the USB host controller. Only 'Full speed' USB is supported - Not High speed USB.

The Logitech Quickcam Pro 4000 webcam was used for this setup. The Philips webcam driver for linux (pwc) and video4Linux is needed. Details are available at http://www.saillard.org/linux/pwc/. The gumstix kernel source already has source for pwc. But the device driver has to be included in the kernel build. To do this. do the following:

After building the buildroot, go to "gumstix-buildroot/build_arm_nofpu/linux-2.6.21gum" folder, and 'make ARCH=arm menuconfig'.

There are a few module dependencies for the pwc module to be enabled. Follow these steps

1) enable "Device Drivers ---> Multimedia devices ---> Video For Linux"

2) enable "Device Drivers ---> USB Support ---> Support for host-side USB" (else the following will not work)

3) enable "Device Drivers ---> Multimedia devices ---> Video For Linux ---> Video For Linux API ---> Video Capture Adapters ---> V4L USB devices ---> USB Philips Cameras (or driver of your choice of camera if it is listed)

4) save configuration file and exit

5) delete the linux kernel "rm arch/arm/boot/compressed/vmlinux"

6) Go back to the 'gumstix-buildroot' folder and 'make'

After 'make' completes, you will find the .ko files in, '/gumstix-buildroot/build_arm_nofpu/linux-2.6.21gum/drivers/media/video/pwc/' folder. You need to copy the pwc folder with all the .ko files to "/lib/modules/2.6.21gum/kernel/drivers/media/video/pwc".

On the gumstix,

gumstix # 'depmod -a'
gumstix # modprobe pwc

Plug in the webcam and type 'dmesg'. You should see something similar to the following.

hda: max request size: 128KiB
hda: 2002896 sectors (1025 MB) w/1KiB Cache, CHS=1987/16/63
 hda: hda1
eth0: no IPv6 routers present
Linux video capture interface: v2.00
pwc: Philips webcam module version 10.0.12 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: Trace options: 0x0001
usbcore: registered new interface driver Philips webcam
Personal tools