Connecting OV7670 to mini2440

Shahryar
Hi I'm very new to embedded systems and linux but I compiled a linux kernel
successfully and I built a working rootfs using tutorials on the net.
Now my problem is that I want to connect an OV7670 because it has a
removable lens but I don't how should I do it.
Should I change the OV9650 driver or start from nothing?
It must give me a 5:6:5 RGB format with 480*640 resolution and 30fps
This my first time that I work with drivers.
Please help me to choose the best way for take the image.
I want to use that image for image processing program that should work
almost real time.
thanks and sorry for very bad English.

Shahryar
I tried to change the ov9650 driver
first I changed the camera ID then compiled it and get these messages:

initializing s3c2440 camera interface......                                
    
s3c2440 camif init done                                                    
    
Loading OV9650>OV7670 driver.........                                      
    
SCCB address 0x42, manufacture ID 0xFFFF, expect 0x7FA2                    
    
SCCB address 0x42, manufacture ID 0xFFFF, expect 0x7FA2                    
    
No OV9650>OV7670 found!!! 

In that time I found a test program for camera which works without OS and
it found the camera and recognized it.

any solutions?