Hello,
I'm trying to use NXP OV5640 MIPI camera with NXP IMX8M Mini EVK. I'm using pristine NXP pre-built images from L4.9.123_2.3.0-ga_images_mx8mm.zip.
The example command in the i.MX Linux User's Guide document, 7.3.8 "Camera preview" doesn't work for me:
root@imx8mmevk:~# uname -a
Linux imx8mmevk 4.9.123-imx_4.9.123_imx8mm_ga+g6a71cbc #8 SMP PREEMPT Sat Sep 8 00:42:13 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux
root@imx8mmevk:~# dmesg |grep ov
[ 1.673967] ov5640_mipi 2-003c: No sensor reset pin available
[ 2.855016] mxc_mipi-csi 32e30000.mipi_csi: Registered sensor subdevice: ov5640_mipi 2-003c
[ 2.864554] ov5640_mipi 2-003c: Camera is found
root@imx8mmevk:~# export GSTL=gst-launch-1.0
root@imx8mmevk:~# $GSTL v4l2src device=/dev/video0 ! 'video/x-raw,format=(string)UYVY,width=640,height=480,framerate=(fraction)30/1' ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../../../../git/libs/gst/base/gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
root@imx8mmevk:~# lsmod
Module Size Used by
qca9377 4653056 0
galcore 368640 13
ipv6 401408 38
root@imx8mmevk:~#
Any clues?
Regards,
Sergei
Hi Sergei
for camera playback on i.MX 8MM EVK A0 (L4.14.62_1.0.0_beta, fsl-imx8mm-evk.dtb)
one can try:
gst-launch-1.0 v4l2src ! video/x-raw,format=YUY2,width=1920,height=1080 ! queue max-size-time=0 ! waylandsink enable-tile=true sync=false
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks, Igor, this command works. Verified on the 4.9.123 release.