Re: OV2640 and iMX25PDK - help needed
Hi Gonzalo, On 2/10/12, Fernandez Gonzalo wrote: > I've been finally able to attach the ov2640 camera in the i.MX25PDK. > I've had some problems with the clocks, but a quick dirty fix looks to > solve this issue (I'll work on cleaner solution later). Great to know that you are having progress. > Now I have to send the camera stream to "somewhere". In the example > provided by Freescale based on L2.6.31, "somewhere" is the framebuffer, > and this is done using VIDIOC_S_FBUF and VIDIOC_OVERLAY ioctls. As these > 2 ioctls are not currently implemented in soc_camera.c, I was wondefing > if it exist a different preferred method to implement this > functionality? In order to test if you are capturing the image correctly you can launch a Gstreamer pipeline and use filesink to save the stream to a file. Or you can also send it to the framebuffer, with something like: gst-launch -v v4l2src device=/dev/video0 !\ video/x-raw-yuv,width=320,height=240 !\ ffmpegcolorspace ! fbdevsink Regards, Fabio Estevam -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
RE: OV2640 and iMX25PDK - help needed
Hi again, >Hi, > >On 2 February 2012 15:01, Fabio Estevam wrote: >> On 2/1/12, Guennadi Liakhovetski wrote: >>> Hello Gonzalo >>> >>> On Tue, 31 Jan 2012, Fernandez Gonzalo wrote: >>> Hi all, I've been working for a while with an iMX25PDK using the BSP provided by Freescale (L2.6.31). The camera driver (V4L2-int) and examples do the job quite well but I need to move my design to a more recent kernel. I've been extensively googling but haven't found any info/examples about how to run the mx2_camera driver in the i.MX25PDK. I'm stuck at this, could someone point me in the right direction? Thank you in advance... >>> >>> i.MX25PDK is supported in the mainline kernel >>> (arch/arm/mach-imx/mach-mx25_3ds.c), but it doesn't attach any cameras. >>> Unfortunately, I also don't currently see any i.MX2x platforms in the >>> mainline with cameras, so, you have to begin by looking at >>> arch/arm/plat-mxc/include/mach/mx2_cam.h, at >>> arch/arm/plat-mxc/devices/platform-mx2-camera.c for the >>> imx27_add_mx2_camera() function and maybe some i.MX3x or i.MX1 examples. >> >> Javier has been doing a lot of work on mx2-camera lately. >> >> Javier, >> >> Is mach-imx27_visstrim_m10 board connected to a CMOS camera? Do you >> have patches for adding camera support to mach-imx27_visstrim_m10? > >visstrim_m10 is connected to a tvp5150 but it uses the same interface >as a CMOS sensor. Let me find some time to send a patch that I have >pending in my queue. Then it can be used by Gonzalo as a reference. > >Regards. >-- >Javier Martin >Vista Silicon S.L. >CDTUC - FASE C - Oficina S-345 >Avda de los Castros s/n >39005- Santander. Cantabria. Spain >+34 942 25 32 60 >www.vista-silicon.com I've been finally able to attach the ov2640 camera in the i.MX25PDK. I've had some problems with the clocks, but a quick dirty fix looks to solve this issue (I'll work on cleaner solution later). Now I have to send the camera stream to "somewhere". In the example provided by Freescale based on L2.6.31, "somewhere" is the framebuffer, and this is done using VIDIOC_S_FBUF and VIDIOC_OVERLAY ioctls. As these 2 ioctls are not currently implemented in soc_camera.c, I was wondefing if it exist a different preferred method to implement this functionality? Regards, Gonzalo. -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: OV2640 and iMX25PDK - help needed
Hi, On 2 February 2012 15:01, Fabio Estevam wrote: > On 2/1/12, Guennadi Liakhovetski wrote: >> Hello Gonzalo >> >> On Tue, 31 Jan 2012, Fernandez Gonzalo wrote: >> >>> Hi all, >>> >>> I've been working for a while with an iMX25PDK using the BSP provided by >>> Freescale (L2.6.31). The camera driver (V4L2-int) and examples do the >>> job quite well but I need to move my design to a more recent kernel. >>> I've been extensively googling but haven't found any info/examples about >>> how to run the mx2_camera driver in the i.MX25PDK. I'm stuck at this, >>> could someone point me in the right direction? Thank you in advance... >> >> i.MX25PDK is supported in the mainline kernel >> (arch/arm/mach-imx/mach-mx25_3ds.c), but it doesn't attach any cameras. >> Unfortunately, I also don't currently see any i.MX2x platforms in the >> mainline with cameras, so, you have to begin by looking at >> arch/arm/plat-mxc/include/mach/mx2_cam.h, at >> arch/arm/plat-mxc/devices/platform-mx2-camera.c for the >> imx27_add_mx2_camera() function and maybe some i.MX3x or i.MX1 examples. > > Javier has been doing a lot of work on mx2-camera lately. > > Javier, > > Is mach-imx27_visstrim_m10 board connected to a CMOS camera? Do you > have patches for adding camera support to mach-imx27_visstrim_m10? visstrim_m10 is connected to a tvp5150 but it uses the same interface as a CMOS sensor. Let me find some time to send a patch that I have pending in my queue. Then it can be used by Gonzalo as a reference. Regards. -- Javier Martin Vista Silicon S.L. CDTUC - FASE C - Oficina S-345 Avda de los Castros s/n 39005- Santander. Cantabria. Spain +34 942 25 32 60 www.vista-silicon.com -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: OV2640 and iMX25PDK - help needed
On 2/1/12, Guennadi Liakhovetski wrote: > Hello Gonzalo > > On Tue, 31 Jan 2012, Fernandez Gonzalo wrote: > >> Hi all, >> >> I've been working for a while with an iMX25PDK using the BSP provided by >> Freescale (L2.6.31). The camera driver (V4L2-int) and examples do the >> job quite well but I need to move my design to a more recent kernel. >> I've been extensively googling but haven't found any info/examples about >> how to run the mx2_camera driver in the i.MX25PDK. I'm stuck at this, >> could someone point me in the right direction? Thank you in advance... > > i.MX25PDK is supported in the mainline kernel > (arch/arm/mach-imx/mach-mx25_3ds.c), but it doesn't attach any cameras. > Unfortunately, I also don't currently see any i.MX2x platforms in the > mainline with cameras, so, you have to begin by looking at > arch/arm/plat-mxc/include/mach/mx2_cam.h, at > arch/arm/plat-mxc/devices/platform-mx2-camera.c for the > imx27_add_mx2_camera() function and maybe some i.MX3x or i.MX1 examples. Javier has been doing a lot of work on mx2-camera lately. Javier, Is mach-imx27_visstrim_m10 board connected to a CMOS camera? Do you have patches for adding camera support to mach-imx27_visstrim_m10? Thanks, Fabio Estevm -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
RE: OV2640 and iMX25PDK - help needed
Hi Guennadi, >Hello Gonzalo > >On Tue, 31 Jan 2012, Fernandez Gonzalo wrote: > >>> Hi all, >>> >>> I've been working for a while with an iMX25PDK using the BSP provided by >>> Freescale (L2.6.31). The camera driver (V4L2-int) and examples do the >>> job quite well but I need to move my design to a more recent kernel. >>> I've been extensively googling but haven't found any info/examples about >>> how to run the mx2_camera driver in the i.MX25PDK. I'm stuck at this, >>> could someone point me in the right direction? Thank you in advance... > >i.MX25PDK is supported in the mainline kernel >(arch/arm/mach-imx/mach-mx25_3ds.c), but it doesn't attach any cameras. >Unfortunately, I also don't currently see any i.MX2x platforms in the >mainline with cameras, so, you have to begin by looking at >arch/arm/plat-mxc/include/mach/mx2_cam.h, at >arch/arm/plat-mxc/devices/platform-mx2-camera.c for the >imx27_add_mx2_camera() function and maybe some i.MX3x or i.MX1 examples. > >Thanks >Guennadi Thank you very much for the tip !!! I'll look at the files you have pointed. Regards, Gonzalo. -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: OV2640 and iMX25PDK - help needed
Hello Gonzalo On Tue, 31 Jan 2012, Fernandez Gonzalo wrote: > Hi all, > > I've been working for a while with an iMX25PDK using the BSP provided by > Freescale (L2.6.31). The camera driver (V4L2-int) and examples do the > job quite well but I need to move my design to a more recent kernel. > I've been extensively googling but haven't found any info/examples about > how to run the mx2_camera driver in the i.MX25PDK. I'm stuck at this, > could someone point me in the right direction? Thank you in advance... i.MX25PDK is supported in the mainline kernel (arch/arm/mach-imx/mach-mx25_3ds.c), but it doesn't attach any cameras. Unfortunately, I also don't currently see any i.MX2x platforms in the mainline with cameras, so, you have to begin by looking at arch/arm/plat-mxc/include/mach/mx2_cam.h, at arch/arm/plat-mxc/devices/platform-mx2-camera.c for the imx27_add_mx2_camera() function and maybe some i.MX3x or i.MX1 examples. Thanks Guennadi --- Guennadi Liakhovetski, Ph.D. Freelance Open-Source Software Developer http://www.open-technology.de/ -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
OV2640 and iMX25PDK - help needed
Hi all, I've been working for a while with an iMX25PDK using the BSP provided by Freescale (L2.6.31). The camera driver (V4L2-int) and examples do the job quite well but I need to move my design to a more recent kernel. I've been extensively googling but haven't found any info/examples about how to run the mx2_camera driver in the i.MX25PDK. I'm stuck at this, could someone point me in the right direction? Thank you in advance... Best regards, Gonzalo -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
