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
- 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”
- 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.