MIPI CSI camera dump image error with RAW12 sensor

I am use ov490 to generate RAW12 image and pass it to TX2 with MIPI.
Signal flow is below:
OV490(DVP)–>TI UB964EVM(MIPI CSI)–>TX2–>v4l2 dump image

I have used two method to dump image

  1. use v4l2-ctl
v4l2-ctl -d /dev/video0 --set-fmt-video=width=1280,height=720,pixelformat=RG12 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=ov490_raw12.raw

ov490_raw12.raw has some content like “0000 0000”

  1. use yavta
./yavta /dev/video0 -c10 -n4 -s1280x720 -fSGRBG12 -Fov.raw

ov.raw-000000.bin has some content like “5555 5555”, sometimes ov.raw-000000.bin has whole correct image.

I assume both “0000 0000” and “5555 5555” are invalidate image content. I have no ideas what is the root cause? Maybe hardware issue (MIPI signal reliability), v4l2 paramter issue, driver or dts configuration issue?

I don’t know how to attach file here. If you need I can share ov490_raw12.raw&ov.raw-000000.bin.

Sorry, U can close this topic.

I found it maybe yavta issue. v4l2-ctl except the first image the other images are ok.

hello 53216142,

here’s known issue for TX2’s VI drivers,
could you please refer to Topic 1038067 and apply kernel changes to update your kernel driver.

@JerryChang Awesome, you save me from the world.
The problem is solved as expected.

Thanks very much!

@JerryChange Do you have any comment with https://devtalk.nvidia.com/default/topic/1046021/jetson-tx2/mipi-csi-frame-rate-issue/.

Thanks for your help.