Tegra camera platform debugging and CSI register reading

Hello,

We have developed a video card based on TX2. We are finding some error during gstreamer pipeline. Our video card is hardwired with CSI port.

Here is my video pipeline:

sds@sds-desktop:~$ gst-launch-1.0 v4l2src device="/dev/video0" ! videoconvert ! xvimagesink -ev

Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Setting pipeline to PLAYING …
New clock: GstSystemClock
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device ‘/dev/video0’ has no supported format
Additional debug info:
gstv4l2object.c(3760): gst_v4l2_object_set_format_full (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
Call to S_FMT failed for YVYU @ 3840x2160: Invalid argument
EOS on shutdown enabled – waiting for EOS after Error
Waiting for EOS…
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)

As you can see in the log we are getting format issue, so we wanted to debug our video card and TX-2 camera platform in detail. so we found a good reference Here to debug the VI, channel and other drivers.

Somehow we are not able to see the logs in trace file. We are following the exact steps as given in the link. Can you help us to find what we are missing or any other way to debug the system in detail for pixel format and bus format?

We tried to read the NVCSI registers by devmem2 but system is getting restart again and again. Is there any other way to read CSI registers?

Looking forward for your kind support to debug my custom board.

Thanks and Regards,

Bankesh Roy

Using v4l2-ctl to verify the sensor driver first.
And check the trace log if v4l2-ctl capture failed.