1ںˣ֧zc301
linuxں2.6.35ԺѾܺõ֧zc301ͷˣںzc301
Ƚٷ2.6.36ںԴ
#cd /opt/linux-2.6.36.2
#cp .config .configold   ԭʼļ
#cp FORLINX6410_CFG .config  ʹ÷ļ
#make menuconfig  ýzc301
ý
  Device Drivers -->
     <*>Multimedia support --->
          <*>Video For Linux
          <*>Video capture adapters --->
                <*>V4L USB devices --->
                       <*>USB Video Class
                              <*>UVC input events device support
                       <*>GSPCA based webcams -->
                                <*>ZC3XX USB Camera Driver
ȻUSBѡ
  Device Drivers -->
    <*>USB Support --->
         <*>Support for Host_side USB
         <*>USB announce new devices
˳
#make zImage
ȻԴĿ¼/arch/arm/boot/ҵzImageDNWںok6410弴

ں˾ӦԴzc301ǸղUSBʱ趨豸Զʾ
zc301ͷPCminicomʾ£
new full speed USB device using s3c2410-ohci and address 2
usb 1-1: New USB device found, idVendor=0ac8, idProduct=301b
usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
usb 1-1: Product: PC Camera
usb 1-1: Manufacturer: Vimicro Corp.
gspca: probing 0ac8:301b
zc3xx: probe sensor -> 000a
zc3xx: Find Sensor PB0330. Chip revision 0
input: zc3xx as /class/input/input2
gspca: video2 created
ϵͳѾʶͷzc301,sensor PB0330ԶΪͷ豸ļvideo2

Ƕͷв:
[root@FORLINX6410]# cd /opt/video/       ļԼдһͷĳ
[root@FORLINX6410]# ls
image_get-arm  image_get.c
[root@FORLINX6410]# ./image_get-arm        иó
devicename -->PC Camera
devicetape -->1
channels -->1
maxwidth -->640                                         zc301ֱΪ640*480
maxheith -->480
minwidth -->48
minheith -->32
d8ff
get BMP form video      [OK]     Ϊzc301ӲѹоƬͼƬjpgʽģԴ˳
[root@FORLINX6410]# ls         JPGѹһ鲢洢ļ¾2һͼƬˣBMP24λͼ
image.bmp      image.jpg      image_get-arm  image_get.c 

[root@FORLINX6410]# ls -l       2ʽСܴ󣬱ϾJPGѹģǺ
total 980
-rw-r--r--    1 root     root        921654 Aug 11  2011 image.bmp
-rw-r--r--    1 root     root         16331 Aug 11  2011 image.jpg
-rwxr-xr-x    1 root     root         29824 Aug 11  2011 image_get-arm
-rw-------    1 root     root         23059 Aug 11  2011 image_get.c
[root@FORLINX6410]#
