I added the line_length again (with the value of 2048 which is 2Bytes per pixel).
Now when running:
"v4l2-ctl --list-formats-ext"
I get:
ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'YUYV'
Name : YUYV 4:2:2
Size: Discrete 1024x128
Interval: Discrete 0.040s (25.000 fps)
Index : 1
Type : Video Capture
Pixel Format: 'YUYV'
Name : YUYV 4:2:2
Size: Discrete 1024x128
Interval: Discrete 0.040s (25.000 fps)
When running:
"v4l2-ctl -d /dev/video0 --set-ctrl bypass_mode=0 --stream-mmap --stream-count=1 --stream-to=test.raw --verbose"
I get:
VIDIOC_QUERYCAP: ok
VIDIOC_S_EXT_CTRLS: ok
VIDIOC_REQBUFS: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_QUERYBUF: ok
VIDIOC_QBUF: ok
VIDIOC_STREAMON: ok
Index : 0
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 0
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 1
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 1
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 2
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 2
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 3
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 3
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 0
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 0
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 0
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 0
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 1
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 1
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 2
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 2
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 3
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 3
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 0
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 0
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 0
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 0
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 1
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 1
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 2
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 2
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 3
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 3
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 0
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 0
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 0
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 0
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 1
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 1
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 2
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 2
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
Index : 3
Type : Video Capture
Flags : mapped, error
Field : None
Sequence : 3
Length : 262144
Bytesused: 262144
Timestamp: 0.000000s (Monotonic, End-of-Frame)
with dmesg:
[ 223.987596] tegra194-vi5 15c10000.vi: no reply from camera processor
[ 223.987823] tegra194-vi5 15c10000.vi: uncorr_err: request timed out after 2500 ms
[ 223.987999] tegra194-vi5 15c10000.vi: err_rec: attempting to reset the capture channel
[ 223.989944] tegra194-vi5 15c10000.vi: err_rec: successfully reset the capture channel
[ 226.547546] tegra194-vi5 15c10000.vi: no reply from camera processor
[ 226.547737] tegra194-vi5 15c10000.vi: uncorr_err: request timed out after 2500 ms
[ 226.547877] tegra194-vi5 15c10000.vi: err_rec: attempting to reset the capture channel
[ 226.549932] tegra194-vi5 15c10000.vi: err_rec: successfully reset the capture channel
[ 229.107482] tegra194-vi5 15c10000.vi: no reply from camera processor
[ 229.107650] tegra194-vi5 15c10000.vi: uncorr_err: request timed out after 2500 ms
I tested with oscilloscope, and there is CSI clock and data on the lines.
What could be the reason for no frame being received ?