we use “v4l2-ctl --set-fmt-video=width=2560,height=800,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=10 --stream-to=ov9281.raw -d /dev/video0” can’t dump the image, but use “gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! ‘video/x-raw(memory:NVMM), width=(int)2560, height=(int)800, framerate=60/1’ ! nvvidconv flip-method=0 ! ‘video/x-raw, format=(string)I420’ ! xvimagesink -e” can start the camera preview and see the preview picture. in the dtsi file we set the active_w = “2560”; active_h = “800”; and in the driver code , also set the same value. when we user “media-ctl -p” cmd, can see the " [fmt:SRGGB10_1X10/2560x800 field:none colorspace:srgb]",
when use “v4l2-ctl --set-fmt-video=width=2560,height=800,pixelformat=RG10 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=10 --stream-to=ov9281.raw -d /dev/video0” the dmesg is :
[ 1999.552100] tegra194-vi5 15c10000.vi: vi_capture_init++
[ 1999.552344] tegra194-vi5 15c10000.vi: chan flags 4163
[ 1999.552353] tegra194-vi5 15c10000.vi: chan mask ffffffffffffffff
[ 1999.552358] tegra194-vi5 15c10000.vi: queue depth 4
[ 1999.552363] tegra194-vi5 15c10000.vi: request size 704
[ 1999.555180] tegra194-vi5 15c10000.vi: 6 GoS tables configured.
[ 1999.555192] tegra194-vi5 15c10000.vi: gos[0] = 0xc2100000
[ 1999.555197] tegra194-vi5 15c10000.vi: gos[1] = 0xc2101000
[ 1999.555202] tegra194-vi5 15c10000.vi: gos[2] = 0xc2102000
[ 1999.555206] tegra194-vi5 15c10000.vi: gos[3] = 0xc2103000
[ 1999.555243] tegra194-vi5 15c10000.vi: gos[4] = 0xc2104000
[ 1999.555247] tegra194-vi5 15c10000.vi: gos[5] = 0xc2105000
[ 1999.555257] tegra194-vi5 15c10000.vi: vi_capture_ivc_send_control: sending chan_id 76 msg_id 16
[ 1999.556321] tegra194-vi5 15c10000.vi: vi_capture_ivc_send_control: response chan_id 76 msg_id 17
[ 1999.556446] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:0
[ 1999.556459] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:1
[ 1999.556466] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:2
[ 1999.556473] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:3
[ 1999.556636] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 1999.588573] [RCE] Configuring VI GoS.
[ 1999.588583] [RCE] VM GOS[#0] addr=0xc2100000
[ 1999.588590] [RCE] VM GOS[#1] addr=0xc2101000
[ 1999.588595] [RCE] VM GOS[#2] addr=0xc2102000
[ 1999.588624] [RCE] VM GOS[#3] addr=0xc2103000
[ 1999.588629] [RCE] VM GOS[#4] addr=0xc2104000
[ 1999.588633] [RCE] VM GOS[#5] addr=0xc2105000
[ 1999.588640] [RCE] vi5_hwinit: firmware CL2018101701 protocol version 2.2
[ 1999.588651] [RCE] VI GOS[#0] set to VM GOS[4] base 0xc2104000
[ 1999.720982] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 1999.720989] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 6, err_data 64
[ 1999.721036] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 1999.721082] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:0
[ 1999.820333] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 1999.820347] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 1999.820638] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 1999.820657] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:1
[ 1999.919715] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 1999.919746] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 1999.919944] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 1999.919957] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:2
[ 2000.019093] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2000.019102] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2000.019119] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2000.019316] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:3
[ 2000.118517] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2000.118537] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2000.118732] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2000.118752] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:0
[ 2000.217823] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2000.217844] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2000.218064] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2000.218086] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:1
[ 2000.317186] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2000.317207] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2000.317427] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2000.317472] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:2
[ 2000.416610] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2000.416632] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2000.416845] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2000.416868] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:3
[ 2000.515943] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2000.515963] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2000.516160] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2000.516180] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:0
[ 2000.615309] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2000.615328] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2000.615528] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2000.615546] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:1
[ 2000.714678] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2000.714725] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2000.714926] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2000.714953] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:2
[ 2000.814073] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2000.814081] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2000.814098] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2000.814119] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:3
[ 2000.913450] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2000.913459] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2000.913478] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2000.913532] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:0
[ 2001.012787] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2001.012807] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2001.013032] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2001.013055] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:1
[ 2001.112147] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2001.112168] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2001.112383] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2001.112398] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:2
[ 2001.211608] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2001.211617] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2001.211634] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2001.211678] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:3
[ 2001.310896] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2001.310904] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2001.310919] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2001.310938] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:0
[ 2001.410263] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2001.410270] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2001.410286] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2001.410341] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:1
[ 2001.509643] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2001.509649] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2001.509844] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2001.509862] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:2
[ 2001.609018] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2001.609026] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2001.609046] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2001.609064] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:3
[ 2001.708403] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2001.708411] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2001.708428] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2001.708450] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:0
[ 2001.807756] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2001.807764] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2001.807780] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2001.807826] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:1
[ 2001.907122] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2001.907143] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2001.907335] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2001.907351] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:2
[ 2002.006532] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2002.006551] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2002.006740] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2002.006784] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:3
[ 2002.105847] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2002.105864] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2002.106074] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2002.106108] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:0
[ 2002.205241] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2002.205249] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2002.205264] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2002.205284] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:1
[ 2002.304636] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2002.304652] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2002.304838] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms
[ 2002.304857] tegra194-vi5 15c10000.vi: vi_capture_request: sending chan_id 0 msg_id 1 buf:2
[ 2002.403990] tegra194-vi5 15c10000.vi: vi_capture_ivc_status_callback: status chan_id 0 msg_id 2
[ 2002.404036] tegra194-vi5 15c10000.vi: corr_err: discarding frame 0, flags: 0, err_data 64
[ 2002.404561] tegra194-vi5 15c10000.vi: vi_capture_status: waiting for status, timeout:2500 ms