Before porting applications to arm Linux, we used to test the USB camera on Ubuntu 9.10 on the PC Linux test, laying the groundwork for porting to arm Linux.
1. View the camera chip type
A. Insert a USB camera
B.LSUSB command to view devices on the USB bus
Author of: Bus 003 Device 001:id 1 d6b:0001 Linux Foundation 1.1 root Hub
Bus 005 Device 001:id 1 d6b:0001 Linux Foundation 1.1 root Hub
Bus 001 Device 003:id 1 cac:3338 kinstone
Bus 001 Device 001:id 1 d6b:0002 Linux Foundation 2.0 root Hub
Bus 004 Device 001:id 1 d6b:0001 Linux Foundation 1.1 root Hub
Bus 002 Device 001:id 1 d6b:0001 Linux Foundation 1.1 root Hub
See the bus 001 Device 003:id 1cac:3338 kinstone Line, is the information of the USB camera
At address http://linux-uvc.berlios.de/you can see whether the driver below will support the current USB camera
2. Compile and install USB camera driver Uvcvideo
The address Http://openfacts.berlios.de/index-en.phtml?title=Linux_UVC&action=edit explains the relevant source download,
The address Http://openfacts.berlios.de/index-en.phtml?title=HowTo_compile_for_Ubuntu_6.06_LTS illustrates the related compilation method,
The method is:
The current directory make can be generated. KO module, cross-compile simple modify makefile, note that the Development Board INSMOD requires kernel compilation options V4L support
3. Test camera
Tool Luvcview, used to test the camera, looks like this tool is based on X11, so the development Board can not use it to test, the following is the method on the PC
Directly in directory make, the current directory to generate the Luvcview tool, the following command to test:
./luvcview-d/dev/video0-f yuv-s 640x480, you can
On top of this, Ubuntu 910 USB Camera test completed. The next step is to migrate to the Development Board.