Release date: 2005/12/05 pm
Http://www.21icbbs.com/club/bbs/bbsView.asp? Boardid = 35
I use the most common USB camera. The main chip is zc0301p (it is said that the market share is more than 70%), and the COMs sensor is Hynix. Basically, this configuration is available on the market.
Linux driver, I directly transplanted spca5xx, now out of the spc5xx-le (light-edition for Linux Embedded) more convenient, directly for embedded system optimization, you can refer to here http://mxhaard.free.fr/embedded.html
Just now experiment, spc5xx-le can also be used.
Procedure:
1. I am using the latest version of Linux from Atmel, Linux-2.4.27-vrs1-Atmel. Toolchain is a arm-linux-2.95.3.
2. Configure the kernel and try to run Linux on at91rm9200.
3. Download patches (http://mxhaard.free.fr/spca50x/Doc/KernelPatch), patching
CP usb-2.4.31.patch.gz/work/Atmel-9200-dist/linux-2.4.27-vrs1-ATMEL/Drivers/USB
CD/work/Atmel-9200-dist/linux-2.4.27-vrs1-ATMEL/Drivers/USB
Tar-xvzf usb-2.4.31.patch.gz
Patch-P1 <usb-2.4.31.patch
4. reconfigure the kernel. The kernel USB support ---> USB multimedia devices option should have
<M> Configure the USB spca5xx Sunplus vimicro sonix cameras as a module.
5. Enable the kernel to support USB-OHCI and video for Linux (v4l ).
6. Re-compile the kernel and make Dep image module.
After the make module, spc5xx. O is generated under the/work/Atmel-9200-dist/linux-2.4.27-vrs1-ATMEL/Drivers/USB/spc5xx/directory
7. Load and run the new kernel.
8. Configure the network ifconfig eth0 192.168.8.241
9. mknod/dev/video0 C 81 0
10. insmod spca5xx. O will find the camera
[Root @ at91rm9200dk/] $ insmod spca5xx. o
USB. C: registered new driver spca5xx
Spca_core.c: USB spca5xx camera found. Type vimicro zc301p 0x301b
Spca_core.c: spca5xx driver 00.57.06le registered
[Root @ at91rm9200dk/] $
11. The following is an application problem. I have been a webcam server. After cross-compilation, it can run on arm. If I write it myself, I am familiar with v4l programming. I don't know much about v4l.
Http://www.fcdpj.com/webcam.bmp