AnsweredAssumed Answered

OV5642 module does not work in IMX6UL EVK.

Question asked by HOSEOK KIM on Apr 25, 2017
Latest reply on Apr 26, 2017 by HOSEOK KIM

Dear All,

 

Hello. I tested the preview function on IMX6UL EVK.

But, the camera preview didn't work. There is some error messages.

 

[Board] : IMX6UL EVK

[Camera] : OV5642 module

[Image] : Linux 4.1.15-2.0.0

 

[gst-launch command line]

$ gst-launch-1.0 imxv4l2src device=/dev/video0 ! imxv4l2sink device=/dev/video1

 

[Error message]

====== IMXV4L2SRC: 4.1.4 build on Apr 7 2017 10:53:43. ======
====== IMXV4L2SINK: 4.1.4 build on Apr 7 2017 10:53:43. ======
Setting pipeline to PAUSED ...
ERROR: Can't find /dev/video1.
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
timeout when wait for SOF
------------[ cut here ]------------
WARNING: CPU: 0 PID: 667 at /home/hoseok.kim/imx6ul/linux-imx/drivers/media/v4l2-core/videobuf2-core.c:1805 vb2_start_streaming+0xd8/0x154()
Modules linked in:
CPU: 0 PID: 667 Comm: imxv4l2src0:src Not tainted 4.1.15-00001-g5bc7305-dirty #8
Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[<80015d78>] (unwind_backtrace) from [<8001271c>] (show_stack+0x10/0x14)
[<8001271c>] (show_stack) from [<807ff1b0>] (dump_stack+0x84/0xc4)
[<807ff1b0>] (dump_stack) from [<80035808>] (warn_slowpath_common+0x80/0xb0)
[<80035808>] (warn_slowpath_common) from [<800358d4>] (warn_slowpath_null+0x1c/0x24)
[<800358d4>] (warn_slowpath_null) from [<8052f454>] (vb2_start_streaming+0xd8/0x154)
[<8052f454>] (vb2_start_streaming) from [<80531f24>] (vb2_internal_streamon+0x10c/0x158)
[<80531f24>] (vb2_internal_streamon) from [<8054d378>] (mx6s_vidioc_streamon+0x3c/0xb0)
[<8054d378>] (mx6s_vidioc_streamon) from [<8051f154>] (__video_do_ioctl+0x2b0/0x324)
[<8051f154>] (__video_do_ioctl) from [<8051ebd0>] (video_usercopy+0x1b8/0x480)
[<8051ebd0>] (video_usercopy) from [<8051b5c8>] (v4l2_ioctl+0x118/0x150)
[<8051b5c8>] (v4l2_ioctl) from [<800fac1c>] (do_vfs_ioctl+0x3e8/0x608)
[<800fac1c>] (do_vfs_ioctl) from [<800fae70>] (SyS_ioctl+0x34/0x5c)
[<800fae70>] (SyS_ioctl) from [<8000f480>] (ret_fast_syscall+0x0/0x3c)
---[ end trace ca25a407d9ecde2d ]---
timeout when wait for SOF
------------[ cut here ]------------
WARNING: CPU: 0 PID: 667 at /home/hoseok.kim/imx6ul/linux-imx/drivers/media/v4l2-core/videobuf2-core.c:1805 vb2_start_streaming+0xd8/0x154()
Modules linked in:
CPU: 0 PID: 667 Comm: imxv4l2src0:src Tainted: G W 4.1.15-00001-g5bc7305-dirty #8
Hardware name: Freescale i.MX6 Ultralite (Device Tree)
[<80015d78>] (unwind_backtrace) from [<8001271c>] (show_stack+0x10/0x14)
[<8001271c>] (show_stack) from [<807ff1b0>] (dump_stack+0x84/0xc4)
[<807ff1b0>] (dump_stack) from [<80035808>] (warn_slowpath_common+0x80/0xb0)
[<80035808>] (warn_slowpath_common) from [<800358d4>] (warn_slowpath_null+0x1c/0x24)
[<800358d4>] (warn_slowpath_null) from [<8052f454>] (vb2_start_streaming+0xd8/0x154)
[<8052f454>] (vb2_start_streaming) from [<80531f24>] (vb2_internal_streamon+0x10c/0x158)
[<80531f24>] (vb2_internal_streamon) from [<8054d378>] (mx6s_vidioc_streamon+0x3c/0xb0)
[<8054d378>] (mx6s_vidioc_streamon) from [<8051f154>] (__video_do_ioctl+0x2b0/0x324)
[<8051f154>] (__video_do_ioctl) from [<8051ebd0>] (video_usercopy+0x1b8/0x480)
[<8051ebd0>] (video_usercopy) from [<8051b5c8>] (v4l2_ioctl+0x118/0x150)
[<8051b5c8>] (v4l2_ioctl) from [<800fac1c>] (do_vfs_ioctl+0x3e8/0x608)
[<800fac1c>] (do_vfs_ioctl) from [<800fae70>] (SyS_ioctl+0x34/0x5c)
[<800fae70>] (SyS_ioctl) from [<8000f480>] (ret_fast_syscall+0x0/0x3c)
---[ end trace ca25a407d9ecde2e ]---
ERROR: from element /GstPipeline:pipeline0/GstImxV4l2Src:imxv4l2src0: Internal data flow error.
Additional debug info:
../../../../gstreamer-1.8.1/libs/gst/base/gstbasesrc.c(2948): gst_base_src_loop (): /GstPipeline:pipeline0/GstImxV4l2Src:imxv4l2src0:
streaming task paused, reason error (-5)
Execution ended after 0:00:05.319475959
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...

Please check error message and let me know how to work camera ov5642. 

 

Best Regards,

Hoseok.

Outcomes