Any help debugging this issue with the Maaxboard-min and the ov5640 MIPI-CSI2 camera:
root@maaxboardmini:~# v4l2-ctl -d /dev/video0 -D
Driver Info:
Driver name : mx6s-csi
Card type : i.MX6S_CSI
Bus info : platform:32e20000.csi1_bridge
Driver version : 6.1.22
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
root@maaxboardmini:~#
I have this Error message
0:00:00.110175250 1540 0xaaaaf4e8bcf0 ERROR imx2ddevice imx_2d_device_g2d.c:147:imx_g2d_open: imx_g2d_open Failed to open g2d device.
0:00:00.110209875 1540 0xaaaaf4e8bcf0 ERROR imxvideoconvert gstimxvideoconvert.c:1940:gst_imx_video_convert_init: Open video process device failed.
Cmd:
root@maaxboardmini:~# GST_DEBUG=3 gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,width=1920,height=1080,framerate=30/1' ! imxvideoconvert_g2d ! vpuenc_h264 ! mp4mux ! filesink location=video_ov5640.mp4
[ 1] HAL user version: 6.4.11.608260
[ 2] HAL kernel version: 6.4.11.658245
g2d_open: fail with status -24
0:00:00.110175250 1540 0xaaaaf4e8bcf0 ERROR imx2ddevice imx_2d_device_g2d.c:147:imx_g2d_open: imx_g2d_open Failed to open g2d device.
0:00:00.110209875 1540 0xaaaaf4e8bcf0 ERROR imxvideoconvert gstimxvideoconvert.c:1940:gst_imx_video_convert_init: Open video process device failed.
Setting pipeline to PAUSED ...
====== VPUENC: 4.7.3 build on Feb 3 2023 05:14:46. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jan 12 2023 01:49:28)
vpulib: 1.1.1
firmware: 1.1.1.43690
0:00:00.129913750 1540 0xaaaaf4e62d20 WARN v4l2src gstv4l2src.c:794:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
0:00:00.130004875 1540 0xaaaaf4e62d20 WARN aggregator gstaggregator.c:2099:gst_aggregator_query_latency_unlocked:<mp4mux0> Latency query failed
Pipeline is live and does not need PREROLL ...
0:00:00.133896125 1540 0xaaaaf4e62c60 FIXME v4l2src gstv4l2src.c:572:gst_v4l2src_query_preferred_size:<v4l2src0> missing support for video standards
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
0:00:00.134743625 1540 0xaaaaf4e62d20 WARN v4l2src gstv4l2src.c:794:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
0:00:00.134808125 1540 0xaaaaf4e62d20 WARN aggregator gstaggregator.c:2099:gst_aggregator_query_latency_unlocked:<mp4mux0> Latency query failed
New clock: GstSystemClock
0:00:00.594056000 1540 0xaaaaf4e62c60 WARN v4l2bufferpool gstv4l2bufferpool.c:1424:gst_v4l2_buffer_pool_dqbuf:<v4l2src0:pool0:src> Driver should never set v4l2_buffer.field to ANY
0:00:00.598324625 1540 0xaaaaf4e62c60 WARN basesrc gstbasesrc.c:3127:gst_base_src_loop:<v4l2src0> error: Internal data stream error.
0:00:00.598394250 1540 0xaaaaf4e62c60 WARN basesrc gstbasesrc.c:3127:gst_base_src_loop:<v4l2src0> error: streaming stopped, reason error (-5)
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
/usr/src/debug/gstreamer1.0/1.20.3.imx-r0/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason error (-5)
0:00:00.599017750 1540 0xaaaaf4e62d20 FIXME basesink gstbasesink.c:3395:gst_base_sink_default_event:<filesink0> stream-start event without group-id. Consider implementing group-id handling in the upstream elements
Execution ended after 0:00:00.464760125
Setting pipeline to NULL ...
0:00:00.599406125 1540 0xaaaaf4e62d20 WARN qtmux gstqtmux.c:1913:gst_qt_mux_send_buffer:<mp4mux0> Failed to send buffer (0xaaaaf4ec9b40) size 32
0:00:00.599456250 1540 0xaaaaf4e62d20 FIXME aggregator gstaggregator.c:1410:gst_aggregator_aggregate_func:<mp4mux0> Subclass should call gst_aggregator_selected_samples() from its aggregate implementation.
Freeing pipeline ...
root@maaxboardmini:~# v4l2-ctl -d /dev/video0 -D
Driver Info:
Driver name : mx6s-csi
Card type : i.MX6S_CSI
Bus info : platform:32e20000.csi1_bridge
Driver version : 6.1.22
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
root@maaxboardmini:~#
已解决! 转到解答。
Hello,
You should contact you maxboard vendor since this should work o MX8MiniEVK
Please make sure you are using linux-imx kernel and install the gpu library. And the gpu dts node should be enabled in your dts like imx8mm-evk.dts
Regards
Hello,
You should contact you maxboard vendor since this should work o MX8MiniEVK
Please make sure you are using linux-imx kernel and install the gpu library. And the gpu dts node should be enabled in your dts like imx8mm-evk.dts
Regards