My custom DM368 is up and running DVSDK4.01; the MT9P031 is registered properly and I see /dev/video0 is there.
But I don't know how to verify the hardware is working properly.
If I run " gst-launch v4l2src ! video/x-raw-yuv, width=320, height=240 ! ffmpegcolorspace ! pngenc ! filesink location=test.png", it will get stuck at
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
INFO:
v4l2_dm365_ipipe.c(249): gst_v4l2_dm365_resizer_init (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0
WARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Failed to set norm for device '/dev/video0'.
Additional debug info:
v4l2_calls.c(739): gst_v4l2_set_norm (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: Invalid argument
WARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Video input device did not accept new frame rate setting.
Additional debug info:
v4l2src_calls.c(342): gst_v4l2src_set_capture (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
system error: Invalid argument
Setting pipeline to PLAYING ...
New clock: GstSystemClock
I can use the same command to capture image from UVC camera successfully.
I did run the "loadmodules.sh" first, and tried both 1 and 0 for dm365_imp.oper_mode, but it doesn't fix the resizer error.