SK-AM69: SK-AM69: Issue to capture video stream via gstreamer using the v3link

Part Number: SK-AM69


Dear Supporting,

We are using the "V3Link d-ch Adapter Board" from ardumcam with imx390 sensor. And we are using the gstreamer to catputre the vieo on SK-AM69 board.

The ti-processor-sdk-linux-edgeai-j784s4-evm-10_01_00_05 sdk had been used with tisdk-edgeai-image-j784s4-evm prebuild images.

Currently the configuration by media-ctl -p

Media device information
------------------------
driver          j721e-csi2rx
model           TI-CSI2RX
serial          
bus info        platform:4500000.ticsi2rx
hw revision     0x1
driver version  6.6.44

Device topology
- entity 1: 4500000.ticsi2rx (9 pads, 9 links, 1 route)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
	routes:
		0/0 -> 2/0 [ACTIVE]
	pad0: Sink
		[stream:0 fmt:SRGGB12_1X12/1936x1100 field:none]
		<- "cdns_csi2rx.4504000.csi-bridge":1 [ENABLED,IMMUTABLE]
	pad1: Source
		-> "4500000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE]
	pad2: Source
		[stream:0 fmt:SRGGB12_1X12/1936x1100 field:none]
		-> "4500000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE]
	pad3: Source
		-> "4500000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE]
	pad4: Source
		-> "4500000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE]
	pad5: Source
		-> "4500000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE]
	pad6: Source
		-> "4500000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE]
	pad7: Source
		-> "4500000.ticsi2rx context 6":0 [ENABLED,IMMUTABLE]
	pad8: Source
		-> "4500000.ticsi2rx context 7":0 [ENABLED,IMMUTABLE]

- entity 11: cdns_csi2rx.4504000.csi-bridge (5 pads, 2 links, 1 route)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev1
	routes:
		0/0 -> 1/0 [ACTIVE]
	pad0: Sink
		[stream:0 fmt:SRGGB12_1X12/1936x1100 field:none]
		<- "ds90ub960 7-0030":4 [ENABLED,IMMUTABLE]
	pad1: Source
		[stream:0 fmt:SRGGB12_1X12/1936x1100 field:none]
		-> "4500000.ticsi2rx":0 [ENABLED,IMMUTABLE]
	pad2: Source
	pad3: Source
	pad4: Source

- entity 17: ds90ub960 7-0030 (6 pads, 2 links, 1 route)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev2
	routes:
		0/0 -> 4/0 [ACTIVE]
	pad0: Sink
		[stream:0 fmt:SRGGB12_1X12/1936x1100 field:none]
		<- "ds90ub953 7-0044":1 [ENABLED,IMMUTABLE]
	pad1: Sink
	pad2: Sink
	pad3: Sink
	pad4: Source
		[stream:0 fmt:SRGGB12_1X12/1936x1100 field:none]
		-> "cdns_csi2rx.4504000.csi-bridge":0 [ENABLED,IMMUTABLE]
	pad5: Source

- entity 26: ds90ub953 7-0044 (2 pads, 2 links, 1 route)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev3
	routes:
		0/0 -> 1/0 [ACTIVE]
	pad0: Sink
		[stream:0 fmt:SRGGB12_1X12/1936x1100 field:none]
		<- "imx390 9-001a":0 [ENABLED,IMMUTABLE]
	pad1: Source
		[stream:0 fmt:SRGGB12_1X12/1936x1100 field:none]
		-> "ds90ub960 7-0030":0 [ENABLED,IMMUTABLE]

- entity 31: imx390 9-001a (1 pad, 1 link, 2 routes)
             type V4L2 subdev subtype Sensor flags 0
             device node name /dev/v4l-subdev4
	routes:
		0/0 -> 0/0 [ACTIVE]
		0/0 -> 0/1 [INACTIVE]
	pad0: Source
		[stream:0 fmt:SRGGB12_1X12/1936x1100@1/30 field:none colorspace:smpte170m]
		-> "ds90ub953 7-0044":0 [ENABLED,IMMUTABLE]

- entity 37: 4500000.ticsi2rx context 0 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video4
	pad0: Sink
		<- "4500000.ticsi2rx":1 [ENABLED,IMMUTABLE]

- entity 43: 4500000.ticsi2rx context 1 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video5
	pad0: Sink
		<- "4500000.ticsi2rx":2 [ENABLED,IMMUTABLE]

- entity 49: 4500000.ticsi2rx context 2 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video6
	pad0: Sink
		<- "4500000.ticsi2rx":3 [ENABLED,IMMUTABLE]

- entity 55: 4500000.ticsi2rx context 3 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video7
	pad0: Sink
		<- "4500000.ticsi2rx":4 [ENABLED,IMMUTABLE]

- entity 61: 4500000.ticsi2rx context 4 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video8
	pad0: Sink
		<- "4500000.ticsi2rx":5 [ENABLED,IMMUTABLE]

- entity 67: 4500000.ticsi2rx context 5 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video9
	pad0: Sink
		<- "4500000.ticsi2rx":6 [ENABLED,IMMUTABLE]

- entity 73: 4500000.ticsi2rx context 6 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video10
	pad0: Sink
		<- "4500000.ticsi2rx":7 [ENABLED,IMMUTABLE]

- entity 79: 4500000.ticsi2rx context 7 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video11
	pad0: Sink
		<- "4500000.ticsi2rx":8 [ENABLED,IMMUTABLE]

by using the following command to stream the video,

gst-launch-1.0 \
v4l2src device=/dev/video5 io-mode=dmabuf-import ! \
video/x-bayer, width=1936, height=1100, format=rggb12 ! \
tiovxisp sink_0::device=/dev/v4l-subdev4 sensor-name=SENSOR_SONY_IMX390_UB953_D3 \
dcc-isp-file=/opt/imaging/imx390/linear/dcc_viss.bin \
sink_0::dcc-2a-file=/opt/imaging/imx390/wdr/dcc_2a.bin format-msb=11 ! \
tiovxldc dcc-file=/opt/imaging/imx390/wdr/dcc_ldc.bin sensor-name=SENSOR_SONY_IMX390_UB953_D3 sink_0::pool-size=8 src::pool-size=8 ! \
video/x-raw, format=NV12, width=1936, height=1100, framerate=60/1 ! kmssink driver-name=tidss sync=false

there was no video been streamed, 

~/work/projects/linux_builder$ ssh root@192.168.2.2
IMX390 Camera 0 detected
    device = /dev/video-imx390-cam0
    name = imx390
    format = [fmt:SRGGB12_1X12/1936x1100 field: none]
    subdev_id = /dev/v4l-imx390-subdev0
    isp_required = yes
    ldc_required = yes

root@am69-sk:/opt/edgeai-gst-apps# export GST_DEBUG=2
root@am69-sk:/opt/edgeai-gst-apps# gst-launch-1.0 v4l2src device=/dev/video5 io-mode=dmabuf-import ! video/x-bayer, width=1936, height=1100, format=rggb12 ! tiovxisp sink_0::device=/dev/v4l-subdev4 sensor-name=SENSOR_SONY_IMX390_UB953_D3 dcc-isp-file=/opt/imaging/imx390/linear/dcc_viss.bin sink_0::dcc-2a-file=/opt/imaging/imx390/wdr/dcc_2a.bin format-msb=11 ! tiovxldc dcc-file=/opt/imaging/imx390/wdr/dcc_ldc.bin sensor-name=SENSOR_SONY_IMX390_UB953_D3 sink_0::pool-size=8 src::pool-size=8 ! video/x-raw, format=NV12, width=1936, height=1100, framerate=30/1 ! kmssink driver-name=tidss sync=false
APP: Init ... !!!
   249.523644 s: MEM: Init ... !!!
   249.523680 s: MEM: Initialized DMA HEAP (fd=8) !!!
   249.523785 s: MEM: Init ... Done !!!
   249.523798 s: IPC: Init ... !!!
   249.556191 s: IPC: Init ... Done !!!
REMOTE_SERVICE: Init ... !!!
REMOTE_SERVICE: Init ... Done !!!
   249.564059 s: GTC Frequency = 200 MHz
APP: Init ... Done !!!
   249.564128 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR
   249.564140 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING
   249.564150 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO
   249.564737 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-0 
   249.564825 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-1 
   249.564959 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-2 
   249.565054 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-3 
   249.565071 s:  VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!!
   249.565082 s:  VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO
0:00:00.128925305  1996      0x967f640 WARN                 kmssink gstkmssink.c:2101:_validate_and_set_external_fd:<kmssink0> Can't set fd... driver-name already set.
Setting pipeline to PAUSED ...
0:00:00.235889343  1996 0xffff8c000b70 WARN                 v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
0:00:00.235926629  1996 0xffff8c000b70 WARN              aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
Pipeline is live and does not need PREROLL ...
0:00:00.236445345  1996 0xffff8c000d30 WARN                    v4l2 gstv4l2object.c:4666:gst_v4l2_object_get_crop_rect:<v4l2src0:src> VIDIOC_CROPCAP failed
0:00:00.236447635  1996 0xffff8c000b70 WARN                 v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
0:00:00.236504647  1996 0xffff8c000b70 WARN              aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
0:00:00.237000512  1996 0xffff8c000b70 WARN                 v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
0:00:00.237028323  1996 0xffff8c000b70 WARN              aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
New clock: GstSystemClock
0:00:00.237089531  1996 0xffff8c000b70 WARN                 v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
0:00:00.237112246  1996 0xffff8c000b70 WARN              aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
0:00:00.237464475  1996 0xffff8c000b70 WARN                 v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
0:00:00.237479816  1996 0xffff8c000d30 WARN                    v4l2 gstv4l2object.c:4666:gst_v4l2_object_get_crop_rect:<v4l2src0:src> VIDIOC_CROPCAP failed
0:00:00.237493487  1996 0xffff8c000b70 WARN              aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed

Please kindly help to know the correct command to be use for capture the video stream. 

Thanks,

Winner

 

  • Hello,

    Passing this along to our EdgeAI GStreamer expert. 

    Thanks,
    Sarabesh S.

  • Hi ,

    Can you try using /dev/video-imx390-cam0 and /dev/v4l-imx390-subdev0 as the device and subdev?

    Additionally, you shouldn't mix linear and wdr dcc files.

    Best,
    Jared

  • Hi Jared,

    Thanks for the information. With your recommendation, I had change the the command as the following,

    root@am69-sk:/opt/edgeai-gst-apps# export GST_DEBUG=2
    root@am69-sk:/opt/edgeai-gst-apps# ls /dev/video* -la
    lrwxrwxrwx 1 root root 11 Oct 17 01:27 /dev/video-imx390-cam0 -> /dev/video5
    crw-rw----+ 1 root video 81, 0 Oct 16 07:00 /dev/video0
    crw-rw----+ 1 root video 81, 1 Oct 16 07:00 /dev/video1
    crw-rw----+ 1 root video 81, 10 Oct 16 07:00 /dev/video10
    crw-rw----+ 1 root video 81, 11 Oct 16 07:00 /dev/video11
    crw-rw----+ 1 root video 81, 2 Oct 16 07:00 /dev/video2
    crw-rw----+ 1 root video 81, 3 Oct 16 07:00 /dev/video3
    crw-rw----+ 1 root video 81, 4 Oct 16 07:00 /dev/video4
    crw-rw----+ 1 root video 81, 5 Oct 16 07:00 /dev/video5
    crw-rw----+ 1 root video 81, 6 Oct 16 07:00 /dev/video6
    crw-rw----+ 1 root video 81, 7 Oct 16 07:00 /dev/video7
    crw-rw----+ 1 root video 81, 8 Oct 16 07:00 /dev/video8
    crw-rw----+ 1 root video 81, 9 Oct 16 07:00 /dev/video9
    root@am69-sk:/opt/edgeai-gst-apps# gst-launch-1.0 \
    > v4l2src device=/dev/video-imx390-cam0 io-mode=dmabuf-import ! \
    > video/x-bayer, width=1936, height=1100, format=rggb12 ! \
    > tiovxisp sink_0::device=/dev/v4l-imx390-subdev0 sensor-name=SENSOR_SONY_IMX390_UB953_D3 \
    > dcc-isp-file=/opt/imaging/imx390/wdr/dcc_viss.bin \
    > tiovxldc dcc-file=/opt/imaging/imx390/wdr/dcc_ldc.bin sensor-name=SENSOR_SONY_IMX390_UB953_D3 sink_0::pool-size=8 src::pool-size=8 ! \
    > video/x-raw, format=NV12, width=1936, height=1100, framerate=30/1 ! kmssink driver-name=tidss sync=falseol-size=8 src::pool-size=8 !
    APP: Init ... !!!
    1541.609067 s: MEM: Init ... !!!
    1541.609102 s: MEM: Initialized DMA HEAP (fd=8) !!!
    1541.609213 s: MEM: Init ... Done !!!
    1541.609225 s: IPC: Init ... !!!
    1541.641771 s: IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
    1541.649363 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
    1541.649433 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR
    1541.649442 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING
    1541.649450 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO
    1541.650168 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-0
    1541.650290 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-1
    1541.650386 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-2
    1541.650471 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-3
    1541.650484 s: VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!!
    1541.650493 s: VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO
    0:00:00.127879874 2821 0x32fa3a10 WARN kmssink gstkmssink.c:2101:_validate_and_set_external_fd:<kmssink0> Can't se.
    Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    0:00:00.235529686 2821 0xffff8c000b70 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency si!
    0:00:00.235577002 2821 0xffff8c000b70 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisd
    0:00:00.235636008 2821 0xffff8c000b70 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency si!
    0:00:00.235645448 2821 0xffff8c000d30 WARN v4l2 gstv4l2object.c:4666:gst_v4l2_object_get_crop_rect:<v4l2src0:src> Vd
    0:00:00.235661088 2821 0xffff8c000b70 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisd
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    0:00:00.236105166 2821 0xffff8c000b70 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency si!
    0:00:00.236130132 2821 0xffff8c000b70 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisd
    New clock: GstSystemClock
    0:00:00.236300055 2821 0xffff8c000b70 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency si!
    0:00:00.236323100 2821 0xffff8c000b70 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisd
    0:00:00.236706212 2821 0xffff8c000b70 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency si!
    0:00:00.236721628 2821 0xffff8c000d30 WARN v4l2 gstv4l2object.c:4666:gst_v4l2_object_get_crop_rect:<v4l2src0:src> Vd
    0:00:00.236727553 2821 0xffff8c000b70 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisd
    ^Chandling interrupt.
    Interrupt: Stopping pipeline ...
    Execution ended after 0:00:04.716035426
    Setting pipeline to NULL ...
    0:00:04.952311381 2821 0x32fa3a10 WARN tiovxmiso gsttiovxmiso.c:1036:gst_tiovx_miso_stop:<tiovxisp0> Trying to deini.
    0:00:05.047695805 2821 0x32fa3a10 WARN tiovxsimo gsttiovxsimo.c:517:gst_tiovx_simo_stop:<tiovxldc0> Trying to deinit.
    Freeing pipeline ...
    APP: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... Done !!!
    1546.580153 s: IPC: Deinit ... !!!
    1546.580912 s: IPC: DeInit ... Done !!!
    1546.580926 s: MEM: Deinit ... !!!
    1546.580934 s: DDR_SHARED_MEM: Alloc's: 6 alloc's of 25555200 bytes
    1546.580942 s: DDR_SHARED_MEM: Free's : 6 free's of 25555200 bytes
    1546.580949 s: DDR_SHARED_MEM: Open's : 0 allocs of 0 bytes
    1546.580959 s: MEM: Deinit ... Done !!!
    APP: Deinit ... Done !!!

    The video stream wasn't come out. 

    I had did some more test by sending the v4l2-ctl to force the capture but didn't get the video stream neither.  


    root@am69-sk:/opt/edgeai-gst-apps# v4l2-ctl -d5 --set-fmt-video=width=1936,height=1100,pixelformat=RG12 --stream-mmap


    ^C

    Can you have some more advice? Thanks!

    BR,

    Winner

  • Hi ,

    Can you try the following pipeline?

    $ gst-launch-1.0 \
      v4l2src device=/dev/video-imx390-cam0 ! video/x-bayer, width=1936, height=1100, format=rggb12 ! tiovxmemalloc ! \
      tiovxisp sensor-name=SENSOR_SONY_IMX390_UB953_D3 dcc-isp-file=/opt/imaging/imx390/linear/dcc_viss.bin format-msb=11 \
      sink_0::dcc-2a-file=/opt/imaging/imx390/linear/dcc_2a.bin sink_0::device=/dev/v4l-imx390-subdev0 ! \
      video/x-raw, format=NV12 ! fakesink

    Best,
    Jared

  • Hi Jared,

    By the testing with the command, the video capture still failed,

    root@am69-sk:/opt/edgeai-gst-apps# export GST_DEBUG=2
    root@am69-sk:/opt/edgeai-gst-apps# gst-launch-1.0 \
    > v4l2src device=/dev/video-imx390-cam0 ! video/x-bayer, width=1936, height=1100, format=rggb12 ! tiovxmemalloc ! \
    > tiovxisp sensor-name=SENSOR_SONY_IMX390_UB953_D3 dcc-isp-file=/opt/imaging/imx390/linear/dcc_viss.bin format-msb=11 \
    > sink_0::dcc-2a-file=/opt/imaging/imx390/linear/dcc_2a.bin sink_0::device=/dev/v4l-imx390-subdev0 ! \
    > video/x-raw, format=NV12 ! fakesink
    APP: Init ... !!!
    108.998102 s: MEM: Init ... !!!
    108.998139 s: MEM: Initialized DMA HEAP (fd=8) !!!
    108.998286 s: MEM: Init ... Done !!!
    108.998299 s: IPC: Init ... !!!
    109.035310 s: IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
    109.046396 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
    109.048297 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR
    109.048313 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING
    109.048325 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO
    109.051192 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-0
    109.051283 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-1
    109.051376 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-2
    109.051453 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-3
    109.051466 s: VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!!
    109.051476 s: VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO
    Setting pipeline to PAUSED ...
    0:00:00.358379710 1901 0xffffac000b70 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
    Pipeline is live and does not need PREROLL ...
    0:00:00.358462120 1901 0xffffac000b70 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
    0:00:00.358533380 1901 0xffffac000d30 WARN v4l2 gstv4l2object.c:4666:gst_v4l2_object_get_crop_rect:<v4l2src0:src> VIDIOC_CROPCAP failed
    0:00:00.358538265 1901 0xffffac000b70 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
    0:00:00.358599050 1901 0xffffac000b70 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    0:00:00.359146480 1901 0xffffac000b70 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
    0:00:00.359171985 1901 0xffffac000b70 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
    New clock: GstSystemClock
    0:00:00.359299076 1901 0xffffac000b70 WARN v4l2src gstv4l2src.c:987:gst_v4l2src_query:<v4l2src0> Can't give latency since framerate isn't fixated !
    0:00:00.359319851 1901 0xffffac000b70 WARN aggregator gstaggregator.c:2159:gst_aggregator_query_latency_unlocked:<tiovxisp0> Latency query failed
    0:00:00.359621271 1901 0xffffac000d30 WARN v4l2 gstv4l2object.c:4666:gst_v4l2_object_get_crop_rect:<v4l2src0:src> VIDIOC_CROPCAP failed

    Can you help?

    BR,

    Winner

  • Hi ,

    Can you specify the framerate in the camera source?

    Best,
    Jared

  • H Jared,

    With the fix framerate setting. The capature still failed, but I had test with the following command to enable the debug message,

    root@am69-sk:/opt/edgeai-gst-apps# ls /dev/video* -la
    lrwxrwxrwx 1 root root 11 Oct 21 04:54 /dev/video-imx390-cam0 -> /dev/video5
    crw-rw----+ 1 root video 81, 0 Oct 20 08:46 /dev/video0
    crw-rw----+ 1 root video 81, 1 Oct 20 08:46 /dev/video1
    crw-rw----+ 1 root video 81, 10 Oct 20 08:46 /dev/video10
    crw-rw----+ 1 root video 81, 11 Oct 20 08:46 /dev/video11
    crw-rw----+ 1 root video 81, 2 Oct 20 08:46 /dev/video2
    crw-rw----+ 1 root video 81, 3 Oct 20 08:46 /dev/video3
    crw-rw----+ 1 root video 81, 4 Oct 20 08:46 /dev/video4
    crw-rw----+ 1 root video 81, 5 Oct 20 08:46 /dev/video5
    crw-rw----+ 1 root video 81, 6 Oct 20 08:46 /dev/video6
    crw-rw----+ 1 root video 81, 7 Oct 20 08:46 /dev/video7
    crw-rw----+ 1 root video 81, 8 Oct 20 08:46 /dev/video8
    crw-rw----+ 1 root video 81, 9 Oct 20 08:46 /dev/video9

    echo 0xff > /sys/class/video4linux/video5/dev_debug
    dmesg -wH 

    ---> send the capature commands,

    ============================

    root@am69-sk:/opt/edgeai-gst-apps# gst-launch-1.0 \
    > v4l2src device=/dev/video-imx390-cam0 ! video/x-bayer, width=1936, height=1100, format=rggb12, framerate=30/1 ! tiovxmemalloc ! \
    > tiovxisp sensor-name=SENSOR_SONY_IMX390_UB953_D3 dcc-isp-file=/opt/imaging/imx390/linear/dcc_viss.bin format-msb=11 \
    > sink_0::dcc-2a-file=/opt/imaging/imx390/linear/dcc_2a.bin sink_0::device=/dev/v4l-imx390-subdev0 ! \
    > video/x-raw, format=NV12 ! fakesink
    APP: Init ... !!!
    210.719867 s: MEM: Init ... !!!
    210.719906 s: MEM: Initialized DMA HEAP (fd=8) !!!
    210.720046 s: MEM: Init ... Done !!!
    210.720059 s: IPC: Init ... !!!
    210.754870 s: IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
    210.766478 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
    210.768422 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR
    210.768439 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING
    210.768448 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO
    210.771336 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-0
    210.771423 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-1
    210.771509 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-2
    210.771588 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-3
    210.771600 s: VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!!
    210.771613 s: VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO
    Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock

    and the log from demsg as the following,

    ============================

    [Oct21 04:57] videodev: v4l2_open: video5: open (0)
    [ +0.000016] video5: VIDIOC_QUERYCAP: driver=j721e-csi2rx, card=j721e-csi2rx, bus=platform:4500000.ticsi2rx, version=0x0006062c, capabilities=0xa4200001, device_caps=0x24200001
    [ +0.000033] videodev: v4l2_release: video5: release
    [ +0.193368] videodev: v4l2_open: video5: open (0)
    [ +0.000028] video5: VIDIOC_QUERYCAP: driver=j721e-csi2rx, card=j721e-csi2rx, bus=platform:4500000.ticsi2rx, version=0x0006062c, capabilities=0xa4200001, device_caps=0x24200001
    [ +0.000019] video5: VIDIOC_ENUMINPUT: index=0, name=4500000.ticsi2rx context 1, type=2, audioset=0x0, tuner=0, std=0x00000000, status=0x0, capabilities=0x0
    [ +0.000046] video5: VIDIOC_ENUMINPUT: error -22: index=1, name=, type=0, audioset=0x0, tuner=0, std=0x00000000, status=0x0, capabilities=0x0
    [ +0.000014] video5: VIDIOC_ENUMSTD: error -25: index=0, id=0x0, name=, fps=0/0, framelines=0
    [ +0.000012] video5: VIDIOC_QUERYCTRL: error -25: id=0x80000000, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000012] video5: VIDIOC_QUERYCTRL: error -25: id=0x980900, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000012] video5: VIDIOC_QUERYCTRL: error -25: id=0x8000000, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000016] video5: VIDIOC_G_STD: error -25: std=0x00000000
    [ +0.000011] video5: VIDIOC_G_INPUT: value=0
    [ +0.012210] video5: VIDIOC_G_INPUT: value=0
    [ +0.000022] video5: VIDIOC_ENUMINPUT: index=0, name=4500000.ticsi2rx context 1, type=2, audioset=0x0, tuner=0, std=0x00000000, status=0x0, capabilities=0x0
    [ +0.000015] video5: VIDIOC_G_SELECTION: error -25: type=vid-cap, target=2, flags=0x0, wxh=0x0, x,y=0,0
    [ +0.000014] video5: VIDIOC_CROPCAP: error -25: type=0, bounds wxh=0x0, x,y=0,0, defrect wxh=0x0, x,y=0,0, pixelaspect 0/0
    [ +0.000027] video5: VIDIOC_ENUM_FMT: index=0, type=vid-cap, flags=0x0, pixelformat=YUYV little-endian (0x56595559), mbus_code=0x0000, description='YUYV 4:2:2'
    [ +0.000015] video5: VIDIOC_ENUM_FMT: index=1, type=vid-cap, flags=0x0, pixelformat=UYVY little-endian (0x59565955), mbus_code=0x0000, description='UYVY 4:2:2'
    [ +0.000012] video5: VIDIOC_ENUM_FMT: index=2, type=vid-cap, flags=0x0, pixelformat=YVYU little-endian (0x55595659), mbus_code=0x0000, description='YVYU 4:2:2'
    [ +0.000011] video5: VIDIOC_ENUM_FMT: index=3, type=vid-cap, flags=0x0, pixelformat=VYUY little-endian (0x59555956), mbus_code=0x0000, description='VYUY 4:2:2'
    [ +0.000012] video5: VIDIOC_ENUM_FMT: index=4, type=vid-cap, flags=0x0, pixelformat=BA81 little-endian (0x31384142), mbus_code=0x0000, description='8-bit Bayer BGBG/GRGR'
    [ +0.000011] video5: VIDIOC_ENUM_FMT: index=5, type=vid-cap, flags=0x0, pixelformat=GBRG little-endian (0x47524247), mbus_code=0x0000, description='8-bit Bayer GBGB/RGRG'
    [ +0.000011] video5: VIDIOC_ENUM_FMT: index=6, type=vid-cap, flags=0x0, pixelformat=GRBG little-endian (0x47425247), mbus_code=0x0000, description='8-bit Bayer GRGR/BGBG'
    [ +0.000012] video5: VIDIOC_ENUM_FMT: index=7, type=vid-cap, flags=0x0, pixelformat=RGGB little-endian (0x42474752), mbus_code=0x0000, description='8-bit Bayer RGRG/GBGB'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=8, type=vid-cap, flags=0x0, pixelformat=GREY little-endian (0x59455247), mbus_code=0x0000, description='8-bit Greyscale'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=9, type=vid-cap, flags=0x0, pixelformat=BG10 little-endian (0x30314742), mbus_code=0x0000, description='10-bit Bayer BGBG/GRGR'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=10, type=vid-cap, flags=0x0, pixelformat=GB10 little-endian (0x30314247), mbus_code=0x0000, description='10-bit Bayer GBGB/RGRG'
    [ +0.000011] video5: VIDIOC_ENUM_FMT: index=11, type=vid-cap, flags=0x0, pixelformat=BA10 little-endian (0x30314142), mbus_code=0x0000, description='10-bit Bayer GRGR/BGBG'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=12, type=vid-cap, flags=0x0, pixelformat=RG10 little-endian (0x30314752), mbus_code=0x0000, description='10-bit Bayer RGRG/GBGB'
    [ +0.000011] video5: VIDIOC_ENUM_FMT: index=13, type=vid-cap, flags=0x0, pixelformat=RGI0 little-endian (0x30494752), mbus_code=0x0000, description='10-bit Bayer RGBG/GIrGIr'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=14, type=vid-cap, flags=0x0, pixelformat=GRI0 little-endian (0x30495247), mbus_code=0x0000, description='10-bit Bayer GRGB/IrGIrG'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=15, type=vid-cap, flags=0x0, pixelformat=BGI0 little-endian (0x30494742), mbus_code=0x0000, description='10-bit Bayer BGRG/GIrGIr'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=16, type=vid-cap, flags=0x0, pixelformat=GBI0 little-endian (0x30494247), mbus_code=0x0000, description='10-bit Bayer GBGR/IrGIrG'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=17, type=vid-cap, flags=0x0, pixelformat=GIR0 little-endian (0x30524947), mbus_code=0x0000, description='10-bit Bayer GIrGIr/RGBG'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=18, type=vid-cap, flags=0x0, pixelformat=IGR0 little-endian (0x30524749), mbus_code=0x0000, description='10-bit Bayer IrGIrG/GRGB'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=19, type=vid-cap, flags=0x0, pixelformat=GIB0 little-endian (0x30424947), mbus_code=0x0000, description='10-bit Bayer GIrGIr/BGRG'
    [ +0.000011] video5: VIDIOC_ENUM_FMT: index=20, type=vid-cap, flags=0x0, pixelformat=IGB0 little-endian (0x30424749), mbus_code=0x0000, description='10-bit Bayer IrGIrG/GBGR'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=21, type=vid-cap, flags=0x0, pixelformat=BG12 little-endian (0x32314742), mbus_code=0x0000, description='12-bit Bayer BGBG/GRGR'
    [ +0.000011] video5: VIDIOC_ENUM_FMT: index=22, type=vid-cap, flags=0x0, pixelformat=GB12 little-endian (0x32314247), mbus_code=0x0000, description='12-bit Bayer GBGB/RGRG'
    [ +0.000011] video5: VIDIOC_ENUM_FMT: index=23, type=vid-cap, flags=0x0, pixelformat=BA12 little-endian (0x32314142), mbus_code=0x0000, description='12-bit Bayer GRGR/BGBG'
    [ +0.000012] video5: VIDIOC_ENUM_FMT: index=24, type=vid-cap, flags=0x0, pixelformat=RG12 little-endian (0x32314752), mbus_code=0x0000, description='12-bit Bayer RGRG/GBGB'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=25, type=vid-cap, flags=0x0, pixelformat=RGBR little-endian (0x52424752), mbus_code=0x0000, description='16-bit RGB 5-6-5 BE'
    [ +0.000011] video5: VIDIOC_ENUM_FMT: index=26, type=vid-cap, flags=0x0, pixelformat=XR24 little-endian (0x34325258), mbus_code=0x0000, description='32-bit BGRX 8-8-8-8'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=27, type=vid-cap, flags=0x0, pixelformat=XB24 little-endian (0x34324258), mbus_code=0x0000, description='32-bit RGBX 8-8-8-8'
    [ +0.000017] video5: VIDIOC_ENUM_FMT: error -22: index=28, type=vid-cap, flags=0x0, pixelformat=.... little-endian (0x00000000), mbus_code=0x0000, description=''
    [ +0.000016] video5: VIDIOC_CROPCAP: error -25: type=vid-cap, bounds wxh=0x0, x,y=0,0, defrect wxh=0x0, x,y=0,0, pixelaspect 0/0
    [ +0.000024] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=YUYV little-endian (0x56595559), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000015] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=YUYV little-endian (0x56595559), wxh=8192x16384, type=0
    [ +0.000049] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=UYVY little-endian (0x59565955), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000014] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=UYVY little-endian (0x59565955), wxh=8192x16384, type=0
    [ +0.000024] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=XB24 little-endian (0x34324258), type=3, min=4x1, max=4096x16384, step=4x1
    [ +0.000012] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=XB24 little-endian (0x34324258), wxh=4096x16384, type=0
    [ +0.000023] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=XR24 little-endian (0x34325258), type=3, min=4x1, max=4096x16384, step=4x1
    [ +0.000012] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=XR24 little-endian (0x34325258), wxh=4096x16384, type=0
    [ +0.000030] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=RG12 little-endian (0x32314752), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000013] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=RG12 little-endian (0x32314752), wxh=8192x16384, type=0
    [ +0.000020] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=BA12 little-endian (0x32314142), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000011] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=BA12 little-endian (0x32314142), wxh=8192x16384, type=0
    [ +0.000020] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=GB12 little-endian (0x32314247), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000011] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=GB12 little-endian (0x32314247), wxh=8192x16384, type=0
    [ +0.000020] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=BG12 little-endian (0x32314742), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000011] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=BG12 little-endian (0x32314742), wxh=8192x16384, type=0
    [ +0.000018] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=IGB0 little-endian (0x30424749), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000012] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=IGB0 little-endian (0x30424749), wxh=8192x16384, type=0
    [ +0.000019] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=GIB0 little-endian (0x30424947), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000011] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=GIB0 little-endian (0x30424947), wxh=8192x16384, type=0
    [ +0.000063] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=IGR0 little-endian (0x30524749), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000013] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=IGR0 little-endian (0x30524749), wxh=8192x16384, type=0
    [ +0.000020] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=GIR0 little-endian (0x30524947), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000012] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=GIR0 little-endian (0x30524947), wxh=8192x16384, type=0
    [ +0.000019] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=GBI0 little-endian (0x30494247), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000011] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=GBI0 little-endian (0x30494247), wxh=8192x16384, type=0
    [ +0.000021] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=BGI0 little-endian (0x30494742), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000012] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=BGI0 little-endian (0x30494742), wxh=8192x16384, type=0
    [ +0.000018] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=GRI0 little-endian (0x30495247), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000012] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=GRI0 little-endian (0x30495247), wxh=8192x16384, type=0
    [ +0.000018] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=RGI0 little-endian (0x30494752), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000012] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=RGI0 little-endian (0x30494752), wxh=8192x16384, type=0
    [ +0.000019] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=RG10 little-endian (0x30314752), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000011] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=RG10 little-endian (0x30314752), wxh=8192x16384, type=0
    [ +0.000019] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=BA10 little-endian (0x30314142), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000012] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=BA10 little-endian (0x30314142), wxh=8192x16384, type=0
    [ +0.000019] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=GB10 little-endian (0x30314247), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000011] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=GB10 little-endian (0x30314247), wxh=8192x16384, type=0
    [ +0.000026] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=BG10 little-endian (0x30314742), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000012] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=BG10 little-endian (0x30314742), wxh=8192x16384, type=0
    [ +0.000019] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=RGGB little-endian (0x42474752), type=3, min=16x1, max=16384x16384, step=16x1
    [ +0.000012] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=RGGB little-endian (0x42474752), wxh=16384x16384, type=0
    [ +0.000019] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=GRBG little-endian (0x47425247), type=3, min=16x1, max=16384x16384, step=16x1
    [ +0.000012] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=GRBG little-endian (0x47425247), wxh=16384x16384, type=0
    [ +0.000018] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=GBRG little-endian (0x47524247), type=3, min=16x1, max=16384x16384, step=16x1
    [ +0.000012] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=GBRG little-endian (0x47524247), wxh=16384x16384, type=0
    [ +0.000019] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=BA81 little-endian (0x31384142), type=3, min=16x1, max=16384x16384, step=16x1
    [ +0.000011] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=BA81 little-endian (0x31384142), wxh=16384x16384, type=0
    [ +0.000020] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=GREY little-endian (0x59455247), type=3, min=16x1, max=16384x16384, step=16x1
    [ +0.000012] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=GREY little-endian (0x59455247), wxh=16384x16384, type=0
    [ +0.000022] video5: VIDIOC_ENUM_FRAMESIZES: index=0, pixelformat=YVYU little-endian (0x55595659), type=3, min=8x1, max=8192x16384, step=8x1
    [ +0.000012] video5: VIDIOC_ENUM_FRAMEINTERVALS: error -25: index=0, pixelformat=YVYU little-endian (0x55595659), wxh=8192x16384, type=0
    [ +0.000155] video5: VIDIOC_TRY_FMT: type=vid-cap, width=1936, height=1100, pixelformat=RG12 little-endian (0x32314752), field=none, bytesperline=3872, sizeimage=4259200, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
    [ +0.000592] video5: VIDIOC_G_SELECTION: error -25: type=vid-cap, target=1, flags=0x0, wxh=0x0, x,y=0,0
    [ +0.000016] video5: VIDIOC_CROPCAP: error -25: type=0, bounds wxh=0x0, x,y=0,0, defrect wxh=0x0, x,y=0,0, pixelaspect 0/0
    [ +0.000025] video5: VIDIOC_S_FMT: type=vid-cap, width=1936, height=1100, pixelformat=RG12 little-endian (0x32314752), field=none, bytesperline=3872, sizeimage=4259200, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
    [ +0.000017] video5: VIDIOC_G_PARM: error -25: type=vid-cap, capability=0x0, capturemode=0x0, timeperframe=0/0, extendedmode=0, readbuffers=0
    [ +0.000015] video5: VIDIOC_G_SELECTION: error -25: type=vid-cap, target=257, flags=0x0, wxh=0x0, x,y=0,0
    [ +0.000014] video5: VIDIOC_EXPBUF: error -22: fd=0, type=vid-cap, index=4294967295, plane=4294967295, flags=0x00080002
    [ +0.000012] video5: VIDIOC_G_CTRL: error -25: name=Min Number of Capture Buffers, id=0x980927, value=0
    [ +0.000142] video5: VIDIOC_REQBUFS: count=0, type=vid-cap, memory=mmap
    [ +0.000014] video5: VIDIOC_CREATE_BUFS: index=0, count=0, memory=mmap, capabilities=0x00000015, type=vid-cap, width=1936, height=1100, pixelformat=RG12 little-endian (0x32314752), field=none, bytesperline=3872, sizeimage=4259200, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
    [ +0.000016] video5: VIDIOC_REQBUFS: error -22: count=0, type=vid-cap, memory=userptr
    [ +0.000010] video5: VIDIOC_REQBUFS: count=0, type=vid-cap, memory=dmabuf
    [ +0.000009] video5: VIDIOC_CREATE_BUFS: index=0, count=0, memory=dmabuf, capabilities=0x00000015, type=vid-cap, width=1936, height=1100, pixelformat=RG12 little-endian (0x32314752), field=none, bytesperline=3872, sizeimage=4259200, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
    [ +0.000055] video5: VIDIOC_G_INPUT: value=0
    [ +0.000010] video5: VIDIOC_SUBSCRIBE_EVENT: error -25: type=0x5, id=0x0, flags=0x0
    [ +0.000033] video5: VIDIOC_G_CTRL: error -25: name=Min Number of Capture Buffers, id=0x980927, value=0
    [ +0.006785] video5: VIDIOC_REQBUFS: count=4, type=vid-cap, memory=mmap
    [ +0.000068] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=0, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0x0, length=4259200
    [ +0.000014] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=1, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0x410000, length=4259200
    [ +0.000011] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000006] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=2, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0x820000, length=4259200
    [ +0.000011] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000006] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=3, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xc30000, length=4259200
    [ +0.000011] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000086] video5: VIDIOC_EXPBUF: fd=54, type=vid-cap, index=0, plane=0, flags=0x00080002
    [ +0.000834] video5: VIDIOC_QBUF: 00:00:00.000000 index=0, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x0, length=4259200
    [ +0.000014] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000020] video5: VIDIOC_EXPBUF: fd=55, type=vid-cap, index=1, plane=0, flags=0x00080002
    [ +0.000018] video5: VIDIOC_QBUF: 00:00:00.000000 index=1, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x410000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000012] video5: VIDIOC_EXPBUF: fd=59, type=vid-cap, index=2, plane=0, flags=0x00080002
    [ +0.000016] video5: VIDIOC_QBUF: 00:00:00.000000 index=2, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x820000, length=4259200
    [ +0.000011] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000012] video5: VIDIOC_EXPBUF: fd=60, type=vid-cap, index=3, plane=0, flags=0x00080002
    [ +0.000021] video5: VIDIOC_QBUF: 00:00:00.000000 index=3, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0xc30000, length=4259200
    [ +0.000011] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.882361] video5: VIDIOC_STREAMON: type=vid-cap
    [ +0.000059] videodev: v4l2_poll: video5: poll: 00000000 00000039

    The setting to j721e-csi2rx wasn't correct.  

    [ +0.000046] video5: VIDIOC_ENUMINPUT: error -22: index=1, name=, type=0, audioset=0x0, tuner=0, std=0x00000000, status=0x0, capabilities=0x0
    [ +0.000014] video5: VIDIOC_ENUMSTD: error -25: index=0, id=0x0, name=, fps=0/0, framelines=0

    Any suggestion to debug the issue?

    BR,

    Winner 

  • Hi Jared,

    I had try the following command to stream video by failed also,

    root@am69-sk:/opt/edgeai-gst-apps# v4l2-ctl -d /dev/video5 --set-fmt-video=width=1936,height=1100,pixelformat='RG12' --stream-mmap=3 --stream-skip=3 --stream-to=./test.raw --stream-count=10 --stream-poll
    select timeout

    dmesg log

    ==================================================

    [Oct21 08:36] videodev: v4l2_open: video5: open (0)
    [ +0.000026] video5: VIDIOC_QUERYCAP: driver=j721e-csi2rx, card=j721e-csi2rx, bus=platform:4500000.ticsi2rx, version=0x0006062c, capabilities=0xa4200001, device_caps=0x24200001
    [ +0.000017] video5: VIDIOC_QUERY_EXT_CTRL: error -25: id=0xc0000000, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000, elem_size=0, elems=0, nr_of_dims=0, dims=0,0,0,0
    [ +0.000018] video5: VIDIOC_TRY_EXT_CTRLS: error -25: which=0x0, count=0, error_idx=0, request_fd=0
    [ +0.000013] video5: VIDIOC_QUERYCTRL: error -25: id=0x80000000, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000013] video5: VIDIOC_G_SELECTION: error -25: type=vid-cap, target=0, flags=0x0, wxh=0x0, x,y=0,0
    [ +0.000013] video5: VIDIOC_QUERYCAP: driver=j721e-csi2rx, card=j721e-csi2rx, bus=platform:4500000.ticsi2rx, version=0x0006062c, capabilities=0xa4200001, device_caps=0x24200001
    [ +0.000083] video5: VIDIOC_QUERY_EXT_CTRL: error -25: id=0xc0000000, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000, elem_size=0, elems=0, nr_of_dims=0, dims=0,0,0,0
    [ +0.000016] video5: VIDIOC_QUERYCTRL: error -25: id=0xc0000000, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000011] video5: VIDIOC_QUERYCTRL: error -25: id=0x980900, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000011] video5: VIDIOC_QUERYCTRL: error -25: id=0x980901, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000011] video5: VIDIOC_QUERYCTRL: error -25: id=0x980902, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000011] video5: VIDIOC_QUERYCTRL: error -25: id=0x980903, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980904, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980905, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000011] video5: VIDIOC_QUERYCTRL: error -25: id=0x980906, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980907, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980908, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000011] video5: VIDIOC_QUERYCTRL: error -25: id=0x980909, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98090a, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98090b, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98090c, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98090d, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000011] video5: VIDIOC_QUERYCTRL: error -25: id=0x98090e, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98090f, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980910, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980911, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980912, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980913, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980914, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000011] video5: VIDIOC_QUERYCTRL: error -25: id=0x980915, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980916, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980917, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980918, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000011] video5: VIDIOC_QUERYCTRL: error -25: id=0x980919, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98091a, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98091b, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98091c, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98091d, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98091e, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98091f, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980920, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980921, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980922, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980923, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980924, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000011] video5: VIDIOC_QUERYCTRL: error -25: id=0x980925, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980926, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980927, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980928, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980929, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98092a, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98092b, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000011] video5: VIDIOC_QUERYCTRL: error -25: id=0x8000000, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000017] video5: VIDIOC_G_FMT: type=vid-cap, width=1936, height=1100, pixelformat=RG12 little-endian (0x32314752), field=none, bytesperline=3872, sizeimage=4259200, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
    [ +0.000020] video5: VIDIOC_ENUM_FMT: index=0, type=vid-cap, flags=0x0, pixelformat=YUYV little-endian (0x56595559), mbus_code=0x0000, description='YUYV 4:2:2'
    [ +0.000011] video5: VIDIOC_ENUM_FMT: index=1, type=vid-cap, flags=0x0, pixelformat=UYVY little-endian (0x59565955), mbus_code=0x0000, description='UYVY 4:2:2'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=2, type=vid-cap, flags=0x0, pixelformat=YVYU little-endian (0x55595659), mbus_code=0x0000, description='YVYU 4:2:2'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=3, type=vid-cap, flags=0x0, pixelformat=VYUY little-endian (0x59555956), mbus_code=0x0000, description='VYUY 4:2:2'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=4, type=vid-cap, flags=0x0, pixelformat=BA81 little-endian (0x31384142), mbus_code=0x0000, description='8-bit Bayer BGBG/GRGR'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=5, type=vid-cap, flags=0x0, pixelformat=GBRG little-endian (0x47524247), mbus_code=0x0000, description='8-bit Bayer GBGB/RGRG'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=6, type=vid-cap, flags=0x0, pixelformat=GRBG little-endian (0x47425247), mbus_code=0x0000, description='8-bit Bayer GRGR/BGBG'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=7, type=vid-cap, flags=0x0, pixelformat=RGGB little-endian (0x42474752), mbus_code=0x0000, description='8-bit Bayer RGRG/GBGB'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=8, type=vid-cap, flags=0x0, pixelformat=GREY little-endian (0x59455247), mbus_code=0x0000, description='8-bit Greyscale'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=9, type=vid-cap, flags=0x0, pixelformat=BG10 little-endian (0x30314742), mbus_code=0x0000, description='10-bit Bayer BGBG/GRGR'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=10, type=vid-cap, flags=0x0, pixelformat=GB10 little-endian (0x30314247), mbus_code=0x0000, description='10-bit Bayer GBGB/RGRG'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=11, type=vid-cap, flags=0x0, pixelformat=BA10 little-endian (0x30314142), mbus_code=0x0000, description='10-bit Bayer GRGR/BGBG'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=12, type=vid-cap, flags=0x0, pixelformat=RG10 little-endian (0x30314752), mbus_code=0x0000, description='10-bit Bayer RGRG/GBGB'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=13, type=vid-cap, flags=0x0, pixelformat=RGI0 little-endian (0x30494752), mbus_code=0x0000, description='10-bit Bayer RGBG/GIrGIr'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=14, type=vid-cap, flags=0x0, pixelformat=GRI0 little-endian (0x30495247), mbus_code=0x0000, description='10-bit Bayer GRGB/IrGIrG'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=15, type=vid-cap, flags=0x0, pixelformat=BGI0 little-endian (0x30494742), mbus_code=0x0000, description='10-bit Bayer BGRG/GIrGIr'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=16, type=vid-cap, flags=0x0, pixelformat=GBI0 little-endian (0x30494247), mbus_code=0x0000, description='10-bit Bayer GBGR/IrGIrG'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=17, type=vid-cap, flags=0x0, pixelformat=GIR0 little-endian (0x30524947), mbus_code=0x0000, description='10-bit Bayer GIrGIr/RGBG'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=18, type=vid-cap, flags=0x0, pixelformat=IGR0 little-endian (0x30524749), mbus_code=0x0000, description='10-bit Bayer IrGIrG/GRGB'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=19, type=vid-cap, flags=0x0, pixelformat=GIB0 little-endian (0x30424947), mbus_code=0x0000, description='10-bit Bayer GIrGIr/BGRG'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=20, type=vid-cap, flags=0x0, pixelformat=IGB0 little-endian (0x30424749), mbus_code=0x0000, description='10-bit Bayer IrGIrG/GBGR'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=21, type=vid-cap, flags=0x0, pixelformat=BG12 little-endian (0x32314742), mbus_code=0x0000, description='12-bit Bayer BGBG/GRGR'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=22, type=vid-cap, flags=0x0, pixelformat=GB12 little-endian (0x32314247), mbus_code=0x0000, description='12-bit Bayer GBGB/RGRG'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=23, type=vid-cap, flags=0x0, pixelformat=BA12 little-endian (0x32314142), mbus_code=0x0000, description='12-bit Bayer GRGR/BGBG'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=24, type=vid-cap, flags=0x0, pixelformat=RG12 little-endian (0x32314752), mbus_code=0x0000, description='12-bit Bayer RGRG/GBGB'
    [ +0.000012] video5: VIDIOC_S_FMT: type=vid-cap, width=1936, height=1100, pixelformat=RG12 little-endian (0x32314752), field=none, bytesperline=3872, sizeimage=4259200, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
    [ +0.000027] video5: VIDIOC_CROPCAP: error -25: type=vid-cap, bounds wxh=0x0, x,y=0,0, defrect wxh=0x0, x,y=0,0, pixelaspect 0/0
    [ +0.000014] video5: VIDIOC_CROPCAP: error -25: type=vid-out, bounds wxh=0x0, x,y=0,0, defrect wxh=0x0, x,y=0,0, pixelaspect 0/0
    [ +0.000034] video5: VIDIOC_SUBSCRIBE_EVENT: error -25: type=0x2, id=0x0, flags=0x0
    [ +0.000012] video5: VIDIOC_SUBSCRIBE_EVENT: error -25: type=0x5, id=0x0, flags=0x0
    [ +0.000010] video5: VIDIOC_G_INPUT: value=0
    [ +0.000009] video5: VIDIOC_ENUMINPUT: index=0, name=4500000.ticsi2rx context 1, type=2, audioset=0x0, tuner=0, std=0x00000000, status=0x0, capabilities=0x0
    [ +0.003731] video5: VIDIOC_REQBUFS: count=4, type=vid-cap, memory=mmap
    [ +0.000050] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=0, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0x0, length=4259200
    [ +0.000015] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000007] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=1, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0x410000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000005] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=2, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0x820000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000006] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=3, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xc30000, length=4259200
    [ +0.000011] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000083] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000037] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000032] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000017] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000012] video5: VIDIOC_G_FMT: type=vid-cap, width=1936, height=1100, pixelformat=RG12 little-endian (0x32314752), field=none, bytesperline=3872, sizeimage=4259200, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
    [ +0.000023] video5: VIDIOC_QBUF: 00:00:00.000000 index=0, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x0, length=4259200
    [ +0.000013] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000005] video5: VIDIOC_QBUF: 00:00:00.000000 index=1, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x410000, length=4259200
    [ +0.000013] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000005] video5: VIDIOC_QBUF: 00:00:00.000000 index=2, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x820000, length=4259200
    [ +0.000011] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000005] video5: VIDIOC_QBUF: 00:00:00.000000 index=3, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0xc30000, length=4259200
    [ +0.000011] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000006] video5: VIDIOC_G_FMT: type=vid-cap, width=1936, height=1100, pixelformat=RG12 little-endian (0x32314752), field=none, bytesperline=3872, sizeimage=4259200, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
    [ +0.880406] video5: VIDIOC_STREAMON: type=vid-cap
    [ +0.000043] videodev: v4l2_poll: video5: poll: 00000000 000000fb
    [ +2.001978] videodev: v4l2_poll: video5: poll: 00000000 000000fb
    [ +0.074984] videodev: v4l2_release: video5: release
    [Oct21 08:38] videodev: v4l2_open: video5: open (0)
    [ +0.000024] video5: VIDIOC_QUERYCAP: driver=j721e-csi2rx, card=j721e-csi2rx, bus=platform:4500000.ticsi2rx, version=0x0006062c, capabilities=0xa4200001, device_caps=0x24200001
    [ +0.000017] video5: VIDIOC_QUERY_EXT_CTRL: error -25: id=0xc0000000, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000, elem_size=0, elems=0, nr_of_dims=0, dims=0,0,0,0
    [ +0.000017] video5: VIDIOC_TRY_EXT_CTRLS: error -25: which=0x0, count=0, error_idx=0, request_fd=0
    [ +0.000013] video5: VIDIOC_QUERYCTRL: error -25: id=0x80000000, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000013] video5: VIDIOC_G_SELECTION: error -25: type=vid-cap, target=0, flags=0x0, wxh=0x0, x,y=0,0
    [ +0.000011] video5: VIDIOC_QUERYCAP: driver=j721e-csi2rx, card=j721e-csi2rx, bus=platform:4500000.ticsi2rx, version=0x0006062c, capabilities=0xa4200001, device_caps=0x24200001
    [ +0.000084] video5: VIDIOC_QUERY_EXT_CTRL: error -25: id=0xc0000000, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000, elem_size=0, elems=0, nr_of_dims=0, dims=0,0,0,0
    [ +0.000016] video5: VIDIOC_QUERYCTRL: error -25: id=0xc0000000, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000012] video5: VIDIOC_QUERYCTRL: error -25: id=0x980900, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000011] video5: VIDIOC_QUERYCTRL: error -25: id=0x980901, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000009] video5: VIDIOC_QUERYCTRL: error -25: id=0x980902, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000011] video5: VIDIOC_QUERYCTRL: error -25: id=0x980903, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980904, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980905, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980906, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000009] video5: VIDIOC_QUERYCTRL: error -25: id=0x980907, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980908, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980909, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98090a, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98090b, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000009] video5: VIDIOC_QUERYCTRL: error -25: id=0x98090c, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98090d, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98090e, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000009] video5: VIDIOC_QUERYCTRL: error -25: id=0x98090f, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980910, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980911, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000009] video5: VIDIOC_QUERYCTRL: error -25: id=0x980912, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980913, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980914, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980915, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000009] video5: VIDIOC_QUERYCTRL: error -25: id=0x980916, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980917, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980918, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000009] video5: VIDIOC_QUERYCTRL: error -25: id=0x980919, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98091a, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98091b, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000009] video5: VIDIOC_QUERYCTRL: error -25: id=0x98091c, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98091d, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98091e, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000009] video5: VIDIOC_QUERYCTRL: error -25: id=0x98091f, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980920, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980921, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980922, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980923, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000009] video5: VIDIOC_QUERYCTRL: error -25: id=0x980924, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980925, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980926, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000009] video5: VIDIOC_QUERYCTRL: error -25: id=0x980927, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980928, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x980929, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000010] video5: VIDIOC_QUERYCTRL: error -25: id=0x98092a, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000009] video5: VIDIOC_QUERYCTRL: error -25: id=0x98092b, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000011] video5: VIDIOC_QUERYCTRL: error -25: id=0x8000000, type=0, name=, min/max=0/0, step=0, default=0, flags=0x00000000
    [ +0.000015] video5: VIDIOC_G_FMT: type=vid-cap, width=1936, height=1100, pixelformat=RG12 little-endian (0x32314752), field=none, bytesperline=3872, sizeimage=4259200, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
    [ +0.000020] video5: VIDIOC_ENUM_FMT: index=0, type=vid-cap, flags=0x0, pixelformat=YUYV little-endian (0x56595559), mbus_code=0x0000, description='YUYV 4:2:2'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=1, type=vid-cap, flags=0x0, pixelformat=UYVY little-endian (0x59565955), mbus_code=0x0000, description='UYVY 4:2:2'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=2, type=vid-cap, flags=0x0, pixelformat=YVYU little-endian (0x55595659), mbus_code=0x0000, description='YVYU 4:2:2'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=3, type=vid-cap, flags=0x0, pixelformat=VYUY little-endian (0x59555956), mbus_code=0x0000, description='VYUY 4:2:2'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=4, type=vid-cap, flags=0x0, pixelformat=BA81 little-endian (0x31384142), mbus_code=0x0000, description='8-bit Bayer BGBG/GRGR'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=5, type=vid-cap, flags=0x0, pixelformat=GBRG little-endian (0x47524247), mbus_code=0x0000, description='8-bit Bayer GBGB/RGRG'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=6, type=vid-cap, flags=0x0, pixelformat=GRBG little-endian (0x47425247), mbus_code=0x0000, description='8-bit Bayer GRGR/BGBG'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=7, type=vid-cap, flags=0x0, pixelformat=RGGB little-endian (0x42474752), mbus_code=0x0000, description='8-bit Bayer RGRG/GBGB'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=8, type=vid-cap, flags=0x0, pixelformat=GREY little-endian (0x59455247), mbus_code=0x0000, description='8-bit Greyscale'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=9, type=vid-cap, flags=0x0, pixelformat=BG10 little-endian (0x30314742), mbus_code=0x0000, description='10-bit Bayer BGBG/GRGR'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=10, type=vid-cap, flags=0x0, pixelformat=GB10 little-endian (0x30314247), mbus_code=0x0000, description='10-bit Bayer GBGB/RGRG'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=11, type=vid-cap, flags=0x0, pixelformat=BA10 little-endian (0x30314142), mbus_code=0x0000, description='10-bit Bayer GRGR/BGBG'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=12, type=vid-cap, flags=0x0, pixelformat=RG10 little-endian (0x30314752), mbus_code=0x0000, description='10-bit Bayer RGRG/GBGB'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=13, type=vid-cap, flags=0x0, pixelformat=RGI0 little-endian (0x30494752), mbus_code=0x0000, description='10-bit Bayer RGBG/GIrGIr'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=14, type=vid-cap, flags=0x0, pixelformat=GRI0 little-endian (0x30495247), mbus_code=0x0000, description='10-bit Bayer GRGB/IrGIrG'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=15, type=vid-cap, flags=0x0, pixelformat=BGI0 little-endian (0x30494742), mbus_code=0x0000, description='10-bit Bayer BGRG/GIrGIr'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=16, type=vid-cap, flags=0x0, pixelformat=GBI0 little-endian (0x30494247), mbus_code=0x0000, description='10-bit Bayer GBGR/IrGIrG'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=17, type=vid-cap, flags=0x0, pixelformat=GIR0 little-endian (0x30524947), mbus_code=0x0000, description='10-bit Bayer GIrGIr/RGBG'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=18, type=vid-cap, flags=0x0, pixelformat=IGR0 little-endian (0x30524749), mbus_code=0x0000, description='10-bit Bayer IrGIrG/GRGB'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=19, type=vid-cap, flags=0x0, pixelformat=GIB0 little-endian (0x30424947), mbus_code=0x0000, description='10-bit Bayer GIrGIr/BGRG'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=20, type=vid-cap, flags=0x0, pixelformat=IGB0 little-endian (0x30424749), mbus_code=0x0000, description='10-bit Bayer IrGIrG/GBGR'
    [ +0.000010] video5: VIDIOC_ENUM_FMT: index=21, type=vid-cap, flags=0x0, pixelformat=BG12 little-endian (0x32314742), mbus_code=0x0000, description='12-bit Bayer BGBG/GRGR'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=22, type=vid-cap, flags=0x0, pixelformat=GB12 little-endian (0x32314247), mbus_code=0x0000, description='12-bit Bayer GBGB/RGRG'
    [ +0.000008] video5: VIDIOC_ENUM_FMT: index=23, type=vid-cap, flags=0x0, pixelformat=BA12 little-endian (0x32314142), mbus_code=0x0000, description='12-bit Bayer GRGR/BGBG'
    [ +0.000009] video5: VIDIOC_ENUM_FMT: index=24, type=vid-cap, flags=0x0, pixelformat=RG12 little-endian (0x32314752), mbus_code=0x0000, description='12-bit Bayer RGRG/GBGB'
    [ +0.000013] video5: VIDIOC_S_FMT: type=vid-cap, width=1936, height=1100, pixelformat=RG12 little-endian (0x32314752), field=none, bytesperline=3872, sizeimage=4259200, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
    [ +0.000025] video5: VIDIOC_CROPCAP: error -25: type=vid-cap, bounds wxh=0x0, x,y=0,0, defrect wxh=0x0, x,y=0,0, pixelaspect 0/0
    [ +0.000012] video5: VIDIOC_CROPCAP: error -25: type=vid-out, bounds wxh=0x0, x,y=0,0, defrect wxh=0x0, x,y=0,0, pixelaspect 0/0
    [ +0.000036] video5: VIDIOC_SUBSCRIBE_EVENT: error -25: type=0x2, id=0x0, flags=0x0
    [ +0.000010] video5: VIDIOC_SUBSCRIBE_EVENT: error -25: type=0x5, id=0x0, flags=0x0
    [ +0.000011] video5: VIDIOC_G_INPUT: value=0
    [ +0.000008] video5: VIDIOC_ENUMINPUT: index=0, name=4500000.ticsi2rx context 1, type=2, audioset=0x0, tuner=0, std=0x00000000, status=0x0, capabilities=0x0
    [ +0.002397] video5: VIDIOC_REQBUFS: count=3, type=vid-cap, memory=mmap
    [ +0.000040] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=0, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0x0, length=4259200
    [ +0.000015] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000007] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=1, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0x410000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000006] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=2, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0x820000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000078] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000031] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000032] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000013] video5: VIDIOC_G_FMT: type=vid-cap, width=1936, height=1100, pixelformat=RG12 little-endian (0x32314752), field=none, bytesperline=3872, sizeimage=4259200, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
    [ +0.000022] video5: VIDIOC_QBUF: 00:00:00.000000 index=0, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x0, length=4259200
    [ +0.000013] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000005] video5: VIDIOC_QBUF: 00:00:00.000000 index=1, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x410000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000005] video5: VIDIOC_QBUF: 00:00:00.000000 index=2, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x820000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000006] video5: VIDIOC_G_FMT: type=vid-cap, width=1936, height=1100, pixelformat=RG12 little-endian (0x32314752), field=none, bytesperline=3872, sizeimage=4259200, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
    [ +0.882775] video5: VIDIOC_STREAMON: type=vid-cap
    [ +0.000043] videodev: v4l2_poll: video5: poll: 00000000 000000fb
    [ +2.001981] videodev: v4l2_poll: video5: poll: 00000000 000000fb
    [ +0.074781] videodev: v4l2_release: video5: release

    BR,

    Winner

  • Hi ,

    root@am69-sk:/opt/edgeai-gst-apps# gst-launch-1.0 \
    > v4l2src device=/dev/video-imx390-cam0 ! video/x-bayer, width=1936, height=1100, format=rggb12, framerate=30/1 ! tiovxmemalloc ! \
    > tiovxisp sensor-name=SENSOR_SONY_IMX390_UB953_D3 dcc-isp-file=/opt/imaging/imx390/linear/dcc_viss.bin format-msb=11 \
    > sink_0::dcc-2a-file=/opt/imaging/imx390/linear/dcc_2a.bin sink_0::device=/dev/v4l-imx390-subdev0 ! \
    > video/x-raw, format=NV12 ! fakesink
    APP: Init ... !!!
    210.719867 s: MEM: Init ... !!!
    210.719906 s: MEM: Initialized DMA HEAP (fd=8) !!!
    210.720046 s: MEM: Init ... Done !!!
    210.720059 s: IPC: Init ... !!!
    210.754870 s: IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
    210.766478 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
    210.768422 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR
    210.768439 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING
    210.768448 s: VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO
    210.771336 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-0
    210.771423 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-1
    210.771509 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-2
    210.771588 s: VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-3
    210.771600 s: VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!!
    210.771613 s: VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO
    Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    New clock: GstSystemClock

    Did the pipeline stall after the line "New clock: GstSystemClock"?

    Does yavta work?

    $ yavta -s 1936x1100 -f SBGGR12 -c 1 /dev/video-imx390-cam0

    Best,
    Jared

  • Hi Jared,

    The pipeline stalled after the line "New clock: GstSystemClock".

    by runing the provided command with yavta, the capture still failed.

    root@am69-sk:/home/ubuntu/linux_builder/workspace/yavta# yavta -s 1936x1100 -f SBGGR12 /dev/video-imx390-cam0 -c 1
    Device /dev/video-imx390-cam0 opened.
    Device `j721e-csi2rx' on `platform:4500000.ticsi2rx' (driver 'j721e-csi2rx') supports video, capture, without mplanes.
    Video format set: SBGGR12 (32314742) 1936x1100 (stride 3872) field none buffer size 4259200
    Video format: SBGGR12 (32314742) 1936x1100 (stride 3872) field none buffer size 4259200
    8 buffers requested.
    length: 4259200 offset: 0 timestamp type/source: mono/EoF
    Buffer 0/0 mapped at address 0xffffb5dd0000.
    length: 4259200 offset: 4259840 timestamp type/source: mono/EoF
    Buffer 1/0 mapped at address 0xffffb59c0000.
    length: 4259200 offset: 8519680 timestamp type/source: mono/EoF
    Buffer 2/0 mapped at address 0xffffb55b0000.
    length: 4259200 offset: 12779520 timestamp type/source: mono/EoF
    Buffer 3/0 mapped at address 0xffffb51a0000.
    length: 4259200 offset: 17039360 timestamp type/source: mono/EoF
    Buffer 4/0 mapped at address 0xffffb4d90000.
    length: 4259200 offset: 21299200 timestamp type/source: mono/EoF
    Buffer 5/0 mapped at address 0xffffb4980000.
    length: 4259200 offset: 25559040 timestamp type/source: mono/EoF
    Buffer 6/0 mapped at address 0xffffb4570000.
    length: 4259200 offset: 29818880 timestamp type/source: mono/EoF
    Buffer 7/0 mapped at address 0xffffb4160000.
    Unable to start streaming: Broken pipe (32).
    8 buffers released.

    The demesg log,

    [ +15.075209] videodev: v4l2_open: video5: open (0)
    [ +0.000107] video5: VIDIOC_QUERYCAP: driver=j721e-csi2rx, card=j721e-csi2rx, bus=platform:4500000.ticsi2rx, version=0x0006062c, capabilities=0xa4200001, device_caps=0x24200001
    [ +0.000032] video5: VIDIOC_S_FMT: type=vid-cap, width=1936, height=1100, pixelformat=BG12 little-endian (0x32314742), field=none, bytesperline=3872, sizeimage=4259200, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
    [ +0.000033] video5: VIDIOC_G_FMT: type=vid-cap, width=1936, height=1100, pixelformat=BG12 little-endian (0x32314742), field=none, bytesperline=3872, sizeimage=4259200, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
    [ +0.004956] video5: VIDIOC_REQBUFS: count=8, type=vid-cap, memory=mmap
    [ +0.000104] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=0, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xffff00000000, length=4259200
    [ +0.000017] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000093] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000036] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=1, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xffff00410000, length=4259200
    [ +0.000015] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000034] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000017] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=2, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xffff00820000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000027] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000017] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=3, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xffff00c30000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000029] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000015] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=4, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xffff01040000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000025] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000015] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=5, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xffff01450000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000030] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000015] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=6, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xffff01860000, length=4259200
    [ +0.000011] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000028] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000030] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=7, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xffff01c70000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000028] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000023] video5: VIDIOC_QBUF: 00:00:00.000000 index=0, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x0, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000005] video5: VIDIOC_QBUF: 00:00:00.000000 index=1, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x410000, length=4259200
    [ +0.000011] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000005] video5: VIDIOC_QBUF: 00:00:00.000000 index=2, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x820000, length=4259200
    [ +0.000011] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000005] video5: VIDIOC_QBUF: 00:00:00.000000 index=3, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0xc30000, length=4259200
    [ +0.000010] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000005] video5: VIDIOC_QBUF: 00:00:00.000000 index=4, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x1040000, length=4259200
    [ +0.000010] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000004] video5: VIDIOC_QBUF: 00:00:00.000000 index=5, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x1450000, length=4259200
    [ +0.000011] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000004] video5: VIDIOC_QBUF: 00:00:00.000000 index=6, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x1860000, length=4259200
    [ +0.000011] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000004] video5: VIDIOC_QBUF: 00:00:00.000000 index=7, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x1c70000, length=4259200
    [ +0.000010] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.007130] j721e-csi2rx 4500000.ticsi2rx: Cannot transform "4500000.ticsi2rx":2 format RG12 little-endian (0x32314752) to BG12 little-endian (0x32314742)
    [ +0.013868] video5: VIDIOC_STREAMON: error -32: type=vid-cap
    [ +0.002319] video5: VIDIOC_REQBUFS: count=0, type=vid-cap, memory=mmap
    [ +0.000044] videodev: v4l2_release: video5: release

    BR,

    Winner

  • Hi Jared,

    by change the command to 

    yavta -s 1936x1100 -f SRGGB12 /dev/video-imx390-cam0 -c 1

    the yavta within the capture mode, but the frame data didn't capured,

    root@am69-sk:/opt/edgeai-gst-apps# yavta -s 1936x1100 -f SRGGB12 /dev/video-imx390-cam0 -c 1
    Device /dev/video-imx390-cam0 opened.
    Device `j721e-csi2rx' on `platform:4500000.ticsi2rx' (driver 'j721e-csi2rx') supports video, capture, without mplanes.
    Video format set: SRGGB12 (32314752) 1936x1100 (stride 3872) field none buffer size 4259200
    Video format: SRGGB12 (32314752) 1936x1100 (stride 3872) field none buffer size 4259200
    8 buffers requested.
    length: 4259200 offset: 0 timestamp type/source: mono/EoF
    Buffer 0/0 mapped at address 0xffffa6340000.
    length: 4259200 offset: 4259840 timestamp type/source: mono/EoF
    Buffer 1/0 mapped at address 0xffffa5f30000.
    length: 4259200 offset: 8519680 timestamp type/source: mono/EoF
    Buffer 2/0 mapped at address 0xffffa5b20000.
    length: 4259200 offset: 12779520 timestamp type/source: mono/EoF
    Buffer 3/0 mapped at address 0xffffa5710000.
    length: 4259200 offset: 17039360 timestamp type/source: mono/EoF
    Buffer 4/0 mapped at address 0xffffa5300000.
    length: 4259200 offset: 21299200 timestamp type/source: mono/EoF
    Buffer 5/0 mapped at address 0xffffa4ef0000.
    length: 4259200 offset: 25559040 timestamp type/source: mono/EoF
    Buffer 6/0 mapped at address 0xffffa4ae0000.
    length: 4259200 offset: 29818880 timestamp type/source: mono/EoF
    Buffer 7/0 mapped at address 0xffffa46d0000.

    dmesg log,

    [Oct23 04:08] videodev: v4l2_open: video5: open (0)
    [ +0.000113] video5: VIDIOC_QUERYCAP: driver=j721e-csi2rx, card=j721e-csi2rx, bus=platform:4500000.ticsi2rx, version=0x0006062c, capabilities=0xa4200001, device_caps=0x24200001
    [ +0.000032] video5: VIDIOC_S_FMT: type=vid-cap, width=1936, height=1100, pixelformat=RG12 little-endian (0x32314752), field=none, bytesperline=3872, sizeimage=4259200, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
    [ +0.000033] video5: VIDIOC_G_FMT: type=vid-cap, width=1936, height=1100, pixelformat=RG12 little-endian (0x32314752), field=none, bytesperline=3872, sizeimage=4259200, colorspace=0, flags=0x0, ycbcr_enc=0, quantization=0, xfer_func=0
    [ +0.005150] video5: VIDIOC_REQBUFS: count=8, type=vid-cap, memory=mmap
    [ +0.000111] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=0, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xffff00000000, length=4259200
    [ +0.000017] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000098] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000037] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=1, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xffff00410000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000035] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000019] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=2, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xffff00820000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000099] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000022] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=3, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xffff00c30000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000030] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000017] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=4, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xffff01040000, length=4259200
    [ +0.000039] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000031] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000016] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=5, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xffff01450000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000053] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000017] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=6, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xffff01860000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000025] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000051] video5: VIDIOC_QUERYBUF: 00:00:00.000000 index=7, type=vid-cap, request_fd=0, flags=0x00002000, field=any, sequence=0, memory=mmap, bytesused=0, offset/userptr=0xffff01c70000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000030] videodev: v4l2_mmap: video5: mmap (0)
    [ +0.000086] video5: VIDIOC_QBUF: 00:00:00.000000 index=0, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x0, length=4259200
    [ +0.000015] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000008] video5: VIDIOC_QBUF: 00:00:00.000000 index=1, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x410000, length=4259200
    [ +0.000042] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000009] video5: VIDIOC_QBUF: 00:00:00.000000 index=2, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x820000, length=4259200
    [ +0.000012] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000005] video5: VIDIOC_QBUF: 00:00:00.000000 index=3, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0xc30000, length=4259200
    [ +0.000010] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000005] video5: VIDIOC_QBUF: 00:00:00.000000 index=4, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x1040000, length=4259200
    [ +0.000011] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000006] video5: VIDIOC_QBUF: 00:00:00.000000 index=5, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x1450000, length=4259200
    [ +0.000032] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000007] video5: VIDIOC_QBUF: 00:00:00.000000 index=6, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x1860000, length=4259200
    [ +0.000010] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.000006] video5: VIDIOC_QBUF: 00:00:00.000000 index=7, type=vid-cap, request_fd=0, flags=0x00002003, field=any, sequence=0, memory=mmap, bytesused=4259200, offset/userptr=0x1c70000, length=4259200
    [ +0.000010] timecode=00:00:00 type=0, flags=0x00000000, frames=0, userbits=0x00000000
    [ +0.871767] video5: VIDIOC_STREAMON: type=vid-cap

    Does there any way that I can speed up the debuging process? I'm new to the driver v4l2 debuging.

    BR,

    Winner

  • Hi ,

    If yavta didn't work, there is likely an issue with the initialization of the camera or the settings you're using with yavta.

    Have you ensured that your dts files are correct? Can you send your dts files?

    Best,
    Jared

  • Hi Jared,

    The following k3-am69-sk-v3link-fusion.dtso had been used for v3link,

    // SPDX-License-Identifier: GPL-2.0
    /*
     * DT Overlay for Arducam V3Link UC-A09 board
     * https://www.arducam.com/fpd-link-3-cameras/
     *
     * Copyright (C) 2024 Texas Instruments Incorporated - http://www.ti.com/
     */
    
    
    /dts-v1/;
    /plugin/;
    
    #include <dt-bindings/gpio/gpio.h>
    #include "k3-pinctrl.h"
    
    &{/} {
    	clk_fusion_25M_fixed: fixed-clock-25M {
    		compatible = "fixed-clock";
    		#clock-cells = <0>;
    		clock-frequency = <25000000>;
    	};
    };
    
    // &csi_mux {
    // 	idle-state = <1>;
    // };
    
    &cam0_i2c {
    	#address-cells = <1>;
    	#size-cells = <0>;
    
    	deser@30 {
    		compatible = "ti,ds90ub960-q1";
    		reg = <0x30>;
    
    		powerdown-gpios = <&exp2 2 GPIO_ACTIVE_LOW>;
    		clock-names = "refclk";
    		clocks = <&clk_fusion_25M_fixed>;
    
    		i2c-alias-pool = <0x4a 0x4b 0x4c 0x4d 0x4e 0x4f>;
    
    		ds90ub960_0_ports: ports {
    			#address-cells = <1>;
    			#size-cells = <0>;
    
    			/* CSI-2 TX */
    			port@4 {
    				reg = <4>;
    				ds90ub960_0_csi_out: endpoint {
    					data-lanes = <1 2 3 4>;
    					clock-lanes = <0>;
    					link-frequencies = /bits/ 64 <800000000>;
    					remote-endpoint = <&csi2_phy0>;
    				};
    			};
    		};
    
    		ds90ub960_0_links: links {
    			#address-cells = <1>;
    			#size-cells = <0>;
    		};
    	};
    };
    
    #if 0
    &cam1_i2c {
    	#address-cells = <1>;
    	#size-cells = <0>;
    
    	deser@30 {
    		compatible = "ti,ds90ub960-q1";
    		reg = <0x30>;
    
    		clock-names = "refclk";
    		clocks = <&clk_fusion_25M_fixed>;
    
    		i2c-alias-pool = <0x5a 0x5b 0x5c 0x5d 0x5e 0x5f>;
    
    		ds90ub960_1_ports: ports {
    			#address-cells = <1>;
    			#size-cells = <0>;
    
    			/* CSI-2 TX */
    			port@4 {
    				reg = <4>;
    				ds90ub960_1_csi_out: endpoint {
    					data-lanes = <1 2 3 4>;
    					clock-lanes = <0>;
    					link-frequencies = /bits/ 64 <800000000>;
    					remote-endpoint = <&csi2_phy1>;
    				};
    			};
    		};
    
    		ds90ub960_1_links: links {
    			#address-cells = <1>;
    			#size-cells = <0>;
    		};
    	};
    };
    #endif
    
    &cdns_csi2rx0 {
    	ports {
    		#address-cells = <1>;
    		#size-cells = <0>;
    
    		csi0_port0: port@0 {
    			reg = <0>;
    			status = "okay";
    
    			csi2_phy0: endpoint {
    				remote-endpoint = <&ds90ub960_0_csi_out>;
    				bus-type = <4>; /* CSI2 DPHY. */
    				clock-lanes = <0>;
    				data-lanes = <1 2 3 4>;
    				link-frequencies = /bits/ 64 <800000000>;
    			};
    		};
    	};
    };
    
    #if 0
    &cdns_csi2rx1 {
    	ports {
    		#address-cells = <1>;
    		#size-cells = <0>;
    
    		csi1_port0: port@0 {
    			reg = <0>;
    			status = "okay";
    
    			csi2_phy1: endpoint {
    				remote-endpoint = <&ds90ub960_1_csi_out>;
    				bus-type = <4>; /* CSI2 DPHY. */
    				clock-lanes = <0>;
    				data-lanes = <1 2 3 4>;
    				link-frequencies = /bits/ 64 <800000000>;
    			};
    		};
    	};
    };
    #endif
    
    &ti_csi2rx0 {
    	status = "okay";
    };
    
    &dphy0 {
    	status = "okay";
    };
    
    &ti_csi2rx1 {
    	status = "okay";
    };
    
    &dphy1 {
    	status = "okay";
    };

    And the serializer and IMX390 using the k3-v3link-imx390-0-0.dtso 

    // SPDX-License-Identifier: GPL-2.0
    /*
     * IMX390 Camera Module for V3-Link d-ch Adapter Board
     * https://docs.arducam.com/V3Link-Camera-Solution/V3Link-Camera-Solution-on-TI-Platform/Introduction/
     *
     * Copyright (c) 2024 Texas Instruments Incorporated - http://www.ti.com/
     */
    
    /dts-v1/;
    /plugin/;
    
    #include <dt-bindings/gpio/gpio.h>
    
    &ds90ub960_0_ports {
    	#address-cells = <1>;
    	#size-cells = <0>;
    
    	/* FPDLink RX 0 */
    	port@0 {
    		reg = <0>;
    
    		ub960_fpd3_1_in: endpoint {
    			remote-endpoint = <&ub953_1_out>;
    		};
    	};
    };
    
    &ds90ub960_0_links {
    	#address-cells = <1>;
    	#size-cells = <0>;
    
    	link@0 {
    		reg = <0>;
    		i2c-alias = <0x44>;
    
    		ti,rx-mode = <3>;
    
    		serializer: serializer {
    			compatible = "ti,ds90ub953-q1";
    			gpio-controller;
    			#gpio-cells = <2>;
    
    			#clock-cells = <0>;
    
    			ports {
    				#address-cells = <1>;
    				#size-cells = <0>;
    
    				port@0 {
    					reg = <0>;
    					ub953_1_in: endpoint {
    						data-lanes = <1 2 3 4>;
    						remote-endpoint = <&sensor_1_out>;
    					};
    				};
    
    				port@1 {
    					reg = <1>;
    
    					ub953_1_out: endpoint {
    						remote-endpoint = <&ub960_fpd3_1_in>;
    					};
    				};
    			};
    
    			i2c {
    				#address-cells = <1>;
    				#size-cells = <0>;
    
    				sensor@1a {
    					compatible = "sony,imx390";
    					reg = <0x1a>;
    
    					clocks = <&serializer>;
    					clock-names = "inck";
    					assigned-clocks = <&serializer>;
    					assigned-clock-rates = <27000000>;
    
    					xclr-gpios = <&serializer 1 GPIO_ACTIVE_LOW>;
    					error0-gpios = <&serializer 2 GPIO_ACTIVE_HIGH>;
    					error1-gpios = <&serializer 3 GPIO_ACTIVE_HIGH>;
    					comready-gpios = <&serializer 0 GPIO_ACTIVE_HIGH>;
    
    					port {
    						sensor_1_out: endpoint {
    							remote-endpoint = <&ub953_1_in>;
    						};
    					};
    				};
    			};
    		};
    	};
    };
    

    Thanks!

    BR,

    Winner

  • Hi ,

    Ah, so you are using the provided dtsos.

    It looks like there is an issue with starting the stream, because yavta is stalling after initializing the buffers and before receiving the data.

    Can you send your entire dmesg log before and after running yavta? 

    When you run yavta, can you print the CSIRX_stream0_status register?

    $ devmem2 0x04504104
    

    Best,
    Jared

  • Hi Jared,

    The following information was collected by the command to check the CSIRX_stream0_status, when the yavta running,

    yavta command,

    ==============================

    root@am69-sk:/opt/edgeai-gst-apps# yavta -s 1936x1100 -f SRGGB12 /dev/video-imx390-cam0 -c 1
    Device /dev/video-imx390-cam0 opened.
    Device `j721e-csi2rx' on `platform:4500000.ticsi2rx' (driver 'j721e-csi2rx') supports video, capture, without mplanes.
    Video format set: SRGGB12 (32314752) 1936x1100 (stride 3872) field none buffer size 4259200
    Video format: SRGGB12 (32314752) 1936x1100 (stride 3872) field none buffer size 4259200
    8 buffers requested.
    length: 4259200 offset: 0 timestamp type/source: mono/EoF
    Buffer 0/0 mapped at address 0xffff93250000.
    length: 4259200 offset: 4259840 timestamp type/source: mono/EoF
    Buffer 1/0 mapped at address 0xffff92e40000.
    length: 4259200 offset: 8519680 timestamp type/source: mono/EoF
    Buffer 2/0 mapped at address 0xffff92a30000.
    length: 4259200 offset: 12779520 timestamp type/source: mono/EoF
    Buffer 3/0 mapped at address 0xffff92620000.
    length: 4259200 offset: 17039360 timestamp type/source: mono/EoF
    Buffer 4/0 mapped at address 0xffff92210000.
    length: 4259200 offset: 21299200 timestamp type/source: mono/EoF
    Buffer 5/0 mapped at address 0xffff91e00000.
    length: 4259200 offset: 25559040 timestamp type/source: mono/EoF
    Buffer 6/0 mapped at address 0xffff919f0000.
    length: 4259200 offset: 29818880 timestamp type/source: mono/EoF
    Buffer 7/0 mapped at address 0xffff915e0000.

    devmem2 0x04504104

    ==========================

    root@am69-sk:/opt/edgeai-gst-apps# devmem2 0x04504104
    /dev/mem opened.
    Memory mapped at address 0xffff9e6ee000.
    Read at address 0x04504104 (0xffff9e6ee104): 0x80000111

    The boot-up log as the following,

    8623.dmesg.log

    Thanks!

    BR,

    Winner