CSI Camera not Showing Image on Debian System

Dear Sir,

I’m using Apalis T30 with Linux 3.1.10-ge8678dd-dirty #11 SMP PREEMPT Mon Aug 7 12:09:05 CEST 2017 armv7l GNU/Linux kernel and Debian rootfs and I have bought CSI camera from link 5MP MIPI Camera | CSI-2 Camera Module and connected it to my Apalis. I have successfully loaded drivers as below

modprobe videobuf2-memops
modprobe videobuf2-dma-nvmap
modprobe ov5640
modprobe tegra_v4l2_camera

and /dev/video0 device has appeared, but when I`m trying to display image from camera I can’t see any proper image and facing errors as below:

for gstreamer 1.0 and 0.1
gst-launch -e v4l2src device="/dev/video0" ! 'video/x-raw-yuv, width=(int)640, height=(int)480, format=(fourcc)YUY2' ! nvvidconv ! 'video/x-nvrm-yuv, format=(fourcc)I420' ! nvxvimagesink
WARNING: bad pipeline: cannot find element "nvvidconv"

for gstreamer 1.0 
gst-launch-1.0 v4l2src device=/dev/video0 ! 'video/x-raw,format={UYVY},width=640,height=480' ! xvimagesink
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2865):gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2src0:
streaming task paused, reason not-negotiated (-4)
Execution ended after 0:00:33.664894596

When Im running gstreamer without any params as gst-launch -e v4l2src device="/dev/video0" ! xvimagesink` I can see a broken 521-capture1.jpeg

How can I add nvvidconv and nvxvimagesink to gstreamer, or is it any other way to make it working?

Multimedia codecs for T30 are a mix of binaries provided by NVIDIA that relay on specific versions and compilation options for some system libraries. I recommend building your own tailored image using Yocto Project recipes provided by us, not using random Debian rootfs.

You can try replicating the way we install NVIDIA binaries. This is the recipe we’re using to build our BSP:

So, I have downloaded latest BSP 2.7 for Tegra T30 from Toradex website and still, the image seems to be corrupted as on the picture above. Any idea how to track, if is it a hardware or software issue?

You mean you proceeded as per the following article on our developer website?

Are you getting any erros/warnings on the console at all when doing this?

I proceeded exactly as that article. I cannot see any errors. Just no correct image. Image as shown in the attachment above. Additionally, after a while of using camera system hangs completely using BSP 2.7 and needs a cold restart.

We’ve seen this type of behaviour when there were serious signal integrity issues/not connected pairs on CSI bus. Please double check the hw design/connections.