Gstreamer can display camera video, but v4l2 can not capture raw data.
orin nano 8GB, r35.4.1
imx678 800w sensor
v4l2 cmd
v4l2-ctl -d /dev/video0 --set-fmt-video=width=3856,height=2176,pixelformat=RG12 --set-ctrl bypass_mode=0,gain=901,exposure=29999, --stream-mmap --stream-count=1 --stream-to=test.raw
[ 5771.817465] imx678 1-0010: sensor_power_on: power on
[ 5771.827723] bwmgr API not supported
[ 5771.828429] imx678 1-0010: imx678 set mode in 0!!!
[ 5772.033995] imx678 1-0010: sensor_set_gain:val:901 , gain: 3
[ 5772.034861] imx678 1-0010: sensor_set_exposure_shr:coarse_time is 2024,val is 29999, shs0 is 226, factor is 1000000 !!!1
[ 5772.036127] imx678 1-0010: sensor_start_streaming:
[ 5772.117101] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 1, flags: 0, err_data 64
[ 5772.150428] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 2, flags: 0, err_data 64
[ 5772.183755] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 3, flags: 0, err_data 64
[ 5772.217085] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 4, flags: 0, err_data 64
[ 5773.449707] imx678 1-0010: sensor_stop_streaming:
[ 5773.454872] bwmgr API not supported
[ 5773.455794] imx678 1-0010: sensor_power_off: power off
yt@yt-desktop:~$ v4l2-ctl -d /dev/video0 --set-fmt-video=width=3856,height=2176,pixelformat=RG12 --set-ctrl bypass_mode=0,gain=901,exposure=29999, --stream-mmap --stream-count=1 --stream-to=test.raw^C
yt@yt-desktop:~$ v4l2-ctl -d /dev/video0 --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'RG12' (12-bit Bayer RGRG/GBGB)
Size: Discrete 3856x2176
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 1928x1088
Interval: Discrete 0.033s (30.000 fps)
Size: Discrete 3872x4508
Interval: Discrete 0.033s (30.000 fps)
Gstream cmd success display video
gst-launch-1.0 \
nvarguscamerasrc sensor-id=0 \
! 'video/x-raw(memory:NVMM), width=3856, height=2176, format=(string)NV12, framerate=(fraction)30/1' \
! nvvidconv \
! 'video/x-raw,width=768, height=432' ! fpsdisplaysink text-overlay=1 video-sink=xvimagesink sync=0 -v
log
[ 6815.965150] imx678 1-0010: imx678 set mode in 0!!!
[ 6816.166610] imx678 1-0010: sensor_set_gain:val:901 , gain: 3
[ 6816.167447] imx678 1-0010: sensor_set_exposure_shr:coarse_time is 2024,val is 29999, shs0 is 226, factor is 1000000 !!!1
[ 6816.168709] imx678 1-0010: sensor_start_streaming:
[ 6816.173169] bwmgr API not supported
[ 6816.318751] bwmgr API not supported
[ 6816.450705] imx678 1-0010: sensor_set_gain:val:1201 , gain: 4
[ 6816.484036] imx678 1-0010: sensor_set_gain:val:1501 , gain: 5
[ 6816.517338] imx678 1-0010: sensor_set_gain:val:1801 , gain: 6
[ 6816.584002] imx678 1-0010: sensor_set_gain:val:2101 , gain: 7
[ 6816.650679] imx678 1-0010: sensor_set_gain:val:2401 , gain: 8
[ 6816.717386] imx678 1-0010: sensor_set_gain:val:2701 , gain: 9
[ 6816.750703] imx678 1-0010: sensor_set_gain:val:3001 , gain: 10
[ 6816.817323] imx678 1-0010: sensor_set_gain:val:3301 , gain: 11
[ 6816.884044] imx678 1-0010: sensor_set_gain:val:3601 , gain: 12
[ 6816.950655] imx678 1-0010: sensor_set_gain:val:3901 , gain: 13
[ 6817.017391] imx678 1-0010: sensor_set_gain:val:4201 , gain: 14
[ 6817.084033] imx678 1-0010: sensor_set_gain:val:4501 , gain: 15
[ 6817.150697] imx678 1-0010: sensor_set_gain:val:4801 , gain: 16
[ 6817.217383] imx678 1-0010: sensor_set_gain:val:5101 , gain: 17
[ 6817.317337] imx678 1-0010: sensor_set_gain:val:5401 , gain: 18
[ 6817.417354] imx678 1-0010: sensor_set_gain:val:5701 , gain: 19
[ 6817.517404] imx678 1-0010: sensor_set_gain:val:6001 , gain: 20
[ 6817.617321] imx678 1-0010: sensor_set_gain:val:6301 , gain: 21
[ 6817.784045] imx678 1-0010: sensor_set_gain:val:6601 , gain: 22
[ 6817.883999] imx678 1-0010: sensor_set_gain:val:7201 , gain: 24
[ 6818.582983] imx678 1-0010: sensor_stop_streaming:
[ 6818.587788] bwmgr API not supported
[ 6818.588319] imx678 1-0010: sensor_power_off: power off