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