I know a number of the ECam developers visit and watch these mailing lists and their support email suggested I post questions here.

I have an issue with the ECam board with the 3 Megapixel imager. It works great for the most part and I've written an application to collect image snapshots based off their example.

My problem however is that occasionally (usually after some time has passed) the linux driver will begin throwing a bunch of i2c errors. For example:

ov3640_i2c_client_xfer:i2c transfer error:-121
ERROR!
File            : /home/anand/Desktop/Delivered/omap/gumstix/Delivery/OMAP_gumstix_cam_Software_VER_3/Source/driver/sens_ov3640.c<7><7>
Function        : ov3640_i2c_client_xfer<7><7>
Line number     : 8404<7><7>
Error name      : 1. PORT_OPEN_ERROR 2. FAIL 3.EPERM<7><7>
Error number Dec: -1 Hex: 0xFFFFFFFF <7><7>
Reason          : 1. unknown cause of failure
                 2. Failed to open the port may be driver is not properly inserted or file not found
                 3. Operation not permitted<7><7>
------------------------------------------------------------------------------
ov3640_i2c_client_xfer:i2c transfer error:-121
ERROR!
File            : /home/anand/Desktop/Delivered/omap/gumstix/Delivery/OMAP_gumstix_cam_Software_VER_3/Source/driver/sens_ov3640.c<7><7>
Function        : ov3640_i2c_client_xfer<7><7>
Line number     : 8404<7><7>
Error name      : 1. PORT_OPEN_ERROR 2. FAIL 3.EPERM<7><7>
Error number Dec: -1 Hex: 0xFFFFFFFF <7><7>
Reason          : 1. unknown cause of failure
                 2. Failed to open the port may be driver is not properly inserted or file not found
                 3. Operation not permitted<7><7>
------------------------------------------------------------------------------
ov3640_i2c_client_xfer:i2c transfer error:-121
ERROR!
File            : /home/anand/Desktop/Delivered/omap/gumstix/Delivery/OMAP_gumstix_cam_Software_VER_3/Source/driver/sens_ov3640.c<7><7>
Function        : ov3640_i2c_client_xfer<7><7>
Line number     : 8404<7><7>
Error name      : 1. PORT_OPEN_ERROR 2. FAIL 3.EPERM<7><7>
Error number Dec: -1 Hex: 0xFFFFFFFF <7><7>
Reason          : 1. unknown cause of failure
                 2. Failed to open the port may be driver is not properly inserted or file not found
                 3. Operation not permitted<7><7>
------------------------------------------------------------------------------
ov3640_i2c_client_xfer:i2c transfer error:-121
ERROR!
File            : /home/anand/Desktop/Delivered/omap/gumstix/Delivery/OMAP_gumstix_cam_Software_VER_3/Source/driver/sens_ov3640.c<7><7>
Function        : ov3640_i2c_client_xfer<7><7>
Line number     : 8404<7><7>
Error name      : 1. PORT_OPEN_ERROR 2. FAIL 3.EPERM<7><7>
Error number Dec: -1 Hex: 0xFFFFFFFF <7><7>
Reason          : 1. unknown cause of failure
                 2. Failed to open the port may be driver is not properly inserted or file not found
                 3. Operation not permitted<7><7>
------------------------------------------------------------------------------
omap_v4l_read timeout - Frame count 0
ReadRetVal -1 != pix.sizeimage 6291456


However if I just simply remove the v4l2_driver and add it back in the camera re-initializes and works great for another say 30 minutes. I've already reduced the i2c clock frequency down to 100kHz. I've checked the flex cable and made sure it was seated properly.

Any other suggestions?

Thanks in advance.