AnsweredAssumed Answered

how to test csi parallel image sensor on imx6q, gstreamer or other tools?

Question asked by glb glb on Oct 30, 2016
Latest reply on Oct 31, 2016 by igorpadykov

I am testing csi parallel CMOS sensor , 8 bit gray raw image, monochrome on imx6q, kernel version 3.14.52.
I have modified some source code to use CSI-MEM path according to this thread:
https://community.nxp.com/thread/306822
and when i modprobe my camera( mt9v034.ko), it seems ok(show below),

but we don't know how to use gstreamer ,or any other test tools to capture & display images/video?

 

if I type: gst-launch-1.0 imxv4l2src device=/dev/video0 , then it shows,
......
mxc_v4l_close: release resource
MVC: In mxc_free_frame_buf
In MVC:mxc_free_frames
Can't get caps from capture device, use the default setting.
Perhaps haven't capture device.

if I type: gst-launch-1.0 v4l2src device=/dev/video0 ,then it shows,
......
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Addition[ 225.983933] MVC: In mxc_free_frame_buf
al debug info:
/build/linuxdev/o[ 225.990515] In MVC:mxc_free_frames
e-core_V2.6b2/build/out-glibc/work/armv7at2hf-vfp-neon-angstrom-linux-gnueabi/gstreamer1.0/1.4.5-r0/gstreamer-1.4.5/libs/gst/base/gstbasesrc.c(2933): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:00.295034666
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

 

I find someone advise mxc_v4l2_capture.out  to test, but  where is this file and how to use it? 

 

root@apalis-imx6:~# modprobe mt9v034_camera
[ 62.510235] In mt9v034_init
[ 62.514332] in mt9v034_probe
[ 62.517581] mt9v034 3-0048: set io voltage ok
[ 62.522202] mt9v034 3-0048: set core voltage ok
[ 62.527182] mt9v034 3-0048: set analog voltage ok
[ 62.531981] In mt9v034_power_on
[ 62.535198] mt9v034 3-0048: mt9v034_write: writing 0x0001 to 0x0c of chip 0x48
[ 62.555767] In MVC: mxc_v4l2_master_attach
[ 62.559878] slave.name = mt9v034
[ 62.563402] master.name = mxc_v4l2_cap0
[ 62.567505] In ioctl_dev_exit
[ 62.570477] In ioctl_s_power
[ 62.573383] In mt9v034_power_off
[ 62.576617] In ioctl_g_fmt_cap
[ 62.579678] End of mxc_v4l2_master_attach: v2f pix widthxheight 288 x 352
[ 62.586491] End of mxc_v4l2_master_attach: crop_bounds widthxheight 640 x 480
[ 62.593666] End of mxc_v4l2_master_attach: crop_defrect widthxheight 640 x 480
[ 62.600895] End of mxc_v4l2_master_attach: crop_current widthxheight 640 x 480
[ 62.608150] mxc_v4l2_master_attach: ipu0:/csi0 parallel attached mt9v034:mxc_v4l2_cap0

Outcomes