Hi longyi,

1. We are not encountered any issues with i2c software problem.
    (share your things, if  you came across any suspect of i2c software issue).
ov3640_i2c_client_xfer:i2c transfer error:-121

is obtained due to i2c acknowledgement not got from the sensor.

2. We encountered similar problem in the development environment and found flex cable connectivity are not good.
    And able to find fine cracks at the cable connector ends (When the cable used for a while).
    Use some other gumstix flex cable (if you have other than the testing one available with you).

Thanks and regards,
Ananth.


On Monday 18 October 2010 09:13 PM, longyi wrote:
Hi Anathu,

I tried both, but still not work.
Is there any other reason that can cause this error? Such as i2c software
problem in Linux? 
Thank you so much for keep tracking on my questions. :)

longyi


Ananthu86 wrote:
  
Hi longyi,

Problem identified from the dmesg log:
   ov3640_i2c_client_xfer:i2c transfer error:-121

Reason:
   Connectivity of the gumstix cable with the e-cam board is not good.
Please ensure the connectivity (connect the cable as per hardware user
document provided).

Alternate solution:
1.  Please flip the cable and try once again.
2.  decrease I2C controller speed from 400khz to 100khz. Add parameter in
bootargs of kernel i2c_bus=3,100.

Thanks and regards,
Ananth.
    
Hi Ananthu:

I strictly follow those instructions, and still get three errors like
following.

root@overo:~# insmod v4l2_driver.ko

Driver Module info : V4l2 driver module
Version info : 4.2

Using Reserved memory for V4l2 driver module<6>
>From Start address - 0x87a00000
 To End address - 0x87ffffff
ov3640_i2c_client_xfer:i2c transfer error:-121
ERROR!
File            :
/home/longyi/camera/software/OMAP_gumstix_cam_Software_VER_4.2/Source/driver/sens_ov3640.c<7><7>
Function        : ov3640_i2c_client_xfer<7><7>
Line number     : 8498<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_read_reg:read reg error: reg=300a, val=0
ERROR!
File            :
/home/longyi/camera/software/OMAP_gumstix_cam_Software_VER_4.2/Source/driver/sens_ov3640.c<7><7>
Function        : ov3640_detect_device<7><7>
Line number     : 8839<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>
------------------------------------------------------------------------------
ERROR!
File            :
/home/longyi/camera/software/OMAP_gumstix_cam_Software_VER_4.2/Source/driver/sens_ov3640.c<7><7>
Function        : ov3640_init<7><7>
Line number     : 8758<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>
------------------------------------------------------------------------------
ERROR!
File            :
/home/longyi/camera/software/OMAP_gumstix_cam_Software_VER_4.2/Source/driver/init_module.c<7><7>
Function        : cam_driver_init<7><7>
Line number     : 498<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>
------------------------------------------------------------------------------
insmod: error inserting 'v4l2_driver.ko': -1 Operation not permitted


Should I patch the overo_linux_2_6_33_cam_patch_01_VER04.patch on my
2_6_30
linux core?
Or should I try to use version 2_6_33 linux on overo?



Ananthu86 wrote:
      
Hi longyi,

     Please follow the camera user document provided in the deliverable.

*    5.2 Configuring the Linux kernel for omap camera board.*
*    5.3 Building the camera driver module.*
*    5.5.2 Installing the camera driver.*

 From the error information obtained following task are not completed
successfully,

1. Patch provided from e-con for kernel not applied successfully (or)
      kernel image does not contain camera platform resource data.

Thanks and regards,
Ananth.

On Friday 15 October 2010 03:22 AM, longyi wrote:
        
Hi Ananth,

Thank you so much for the fast relpy, but here comes a new problem:

root@overo:~# insmod v4l2_driver.ko

Driver Module info : V4l2 driver module
Version info : 4.2

Using Reserved memory for V4l2 driver module<6>
          
From Start address - 0x87a00000
            
  To End address - 0x87ffffff
ERROR!
File            :
/home/longyi/camera/software/OMAP_gumstix_cam_Software_VER_4.2/Source/driver/init_module.c<7><7>
Function        : init_plat_res<7><7>
Line number     : 69<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>
------------------------------------------------------------------------------
ERROR!
File            :
/home/longyi/camera/software/OMAP_gumstix_cam_Software_VER_4.2/Source/driver/init_module.c<7><7>
Function        : isp_probe_late_init<7><7>
Line number     : 288<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>
------------------------------------------------------------------------------
ERROR!
File            :
/home/longyi/camera/software/OMAP_gumstix_cam_Software_VER_4.2/Source/driver/init_module.c<7><7>
Function        : cam_driver_init<7><7>
Line number     : 498<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>
------------------------------------------------------------------------------
insmod: error inserting 'v4l2_driver.ko': -1 Operation not permitted

Is there any solution?

btw, what do you mean by "load the v4l2 layer using module"?




Ananthu86 wrote:

          
Hi longyi,

   Please follow the steps provided in v4l2 kernel inbuilt
configuration
selection from user-manual (refer figures provided in the manual).

  If you wish to load the v4l2 layer using module.
Then please follow this steps

modprobe videodev
This command will need following modules available in
/lib/modules/<kernel_ver>/driver/media/video

1. videodev.ko
2. v4l1_compat.ko

Thanks and regards,
Ananth.

            
Hi Ananth,


I am following the e-CAM32's UserManual_1_13, and trying to
Installing
the
camera driver, by "insmod v4l2_driver.ko", but I met this error:

root@overo:~# insmod v4l2_driver.ko
v4l2_driver: Unknown symbol video_devdata
v4l2_driver: Unknown symbol video_unregister_device
v4l2_driver: Unknown symbol video_device_alloc
v4l2_driver: Unknown symbol video_register_device
v4l2_driver: Unknown symbol video_usercopy
v4l2_driver: Unknown symbol video_device_release
insmod: error inserting 'v4l2_driver.ko': -1 Unknown symbol in module

Any suggestion is welcomed, thank you so much.

root@overo:~# uname -a
Linux overo 2.6.30-omap1 #1 Wed Oct 13 17:54:15 EDT 2010 armv7l
GNU/Linux



Ananthu86 wrote:

              
Hi batoub,

     We are the e-CAM product developers.
You can get answers to any question regarding to e-con e-CAM camera
from
us.

Thanks and regards,
Ananth.

batoub wrote:

                
Well, everything is ok with this patch!

Thank you, but where have you found this patch?

2010/6/16 batoub<batoub@gmail.com<mailto:batoub@gmail.com>>

     Hi,

     Thank for your quick answer!
     I will try with the new patch :) and I send a feedback later!

     Thank you!

     2010/6/16 Ananthapadmanaban<gapadmanaban@e-consystems.com
     <mailto:gapadmanaban@e-consystems.com>>

         Hi batoub,

             What kernel version you wish to work with e-CAM driver
?

             Please find the 2.6.33 patch file in the attachment.
And
         the error you got is due to not availability of lm355 led
         flash chip in e-cam board.
          But your camera related features will work correctly.
Please
         test the driver with the provided sample application
         *capture.elf*.

         Thanks and regards,
         Ananth.


         batoub wrote:

                  
         Hi,

         First econ provide only a patch for kernel 2.6.30 so I
need
to
use this
         kernel :/ then I have a strange bug using when I load the
driver. It seem
         like i2c is not working at all?

         root@overo:~# insmod v4l2_driver.ko

         Driver Module info : V4l2 driver module
         Version info : 3.0

         Using Reserved memory for V4l2 driver module<6>
         > From Start address - 0x87a00000
          To End address - 0x87ffffff
         ov3640 found: product id is 0x36
         flash_i2c_client_xfer:i2c transfer error:-121
         ERROR!
         File            :

/home/bastien/These/cam_gumstix/software/OMAP_gumstix_cam_Software_VER_3/Source/driver/lm3553_flash.c<7><7>
         Function        : flash_i2c_client_xfer<7><7>
         Line number     : 147<7><7>
         Reason          : An unidentified error is happening..
please
report to code
         developer!<7><7>

------------------------------------------------------------------------------
         Flash write failed :lm3553_write: reg=c0<7><7>

-------------------------------------------------------------------------------<7><7>
         ERROR!
         File            :

/home/bastien/These/cam_gumstix/software/OMAP_gumstix_cam_Software_VER_3/Source/driver/lm3553_flash.c<7><7>
         Function        : lm3553_write<7><7>
         Line number     : 169<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>

------------------------------------------------------------------------------


         Is there any solution ?

         Thank you,

         Bastien


                    

------------------------------------------------------------------------------
         ThinkGeek and WIRED's GeekDad team up for the Ultimate
         GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
         lucky parental unit.  See the prize list and enter to win:
         http://p.sf.net/sfu/thinkgeek-promo
         _______________________________________________
         gumstix-users mailing list
         gumstix-users@lists.sourceforge.net
         <mailto:gumstix-users@lists.sourceforge.net>
         https://lists.sourceforge.net/lists/listinfo/gumstix-users



------------------------------------------------------------------------

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
------------------------------------------------------------------------

_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users


                  
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit.  See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users



                
--
View this message in context:
http://old.nabble.com/Econ-Camera-driver-problem-tp28901585p29964743.html
Sent from the Gumstix mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2&  L3.
Spend less time writing and  rewriting code and more time creating
great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users


              

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2&  L3.
Spend less time writing and  rewriting code and more time creating
great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users



            
          

------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that
run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users


        
--
View this message in context:
http://old.nabble.com/Econ-Camera-driver-problem-tp28901585p29975690.html
Sent from the Gumstix mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users

      


------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users