This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

J784S4XEVM: Mapping DES SER and camera on sdk11

Part Number: J784S4XEVM

Tool/software:

Hi TI expert,
we have custom board and using camera, with 1 camera plugin we have bellow log and can set mapping and can stream success

Manual config:

v4l2-ctl -d /dev/video-ar0234-cam0 --set-fmt-video=width=1280,height=720,pixelformat=UYVY

v4l2-ctl -d /dev/video-ar0234-cam0 --get-fmt-video

 

media-ctl -d 2 -V '"ar0234 7-0042":0 [fmt:UYVY8_1X16/1280x720 field:none]'

media-ctl -d 2 -V '"ds90ub953 6-0044":0 [fmt:UYVY8_1X16/1280x720 field:none]'

media-ctl -d 2 -V '"ds90ub960 6-0030":0 [fmt:UYVY8_1X16/1280x720 field:none]'

media-ctl -d 2 -V '"cdns_csi2rx.4524000.csi-bridge":0 [fmt:UYVY8_1X16/1280x720 field:none]'

media-ctl -d 2 -V '"4520000.ticsi2rx":0 [fmt:UYVY8_1X16/1280x720 field:none]'

media-ctl -d 2 -V '"4520000.ticsi2rx":2 [fmt:UYVY8_1X16/1280x720 field:none]'

v4l2-ctl -d /dev/video-ar0234-cam0 --stream-mmap






media-ctl -d 2 -p
Media controller API version 6.12.17
 
Media device information
------------------------
driver          j721e-csi2rx
model           TI-CSI2RX
serial          
bus info        platform:4520000.ticsi2rx
hw revision     0x1
driver version  6.12.17
 
Device topology
- entity 1: 4520000.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:UYVY8_1X16/1280x720 field:none]
<- "cdns_csi2rx.4524000.csi-bridge":1 [ENABLED,IMMUTABLE]
        pad1: SOURCE
                -> "4520000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE]
        pad2: SOURCE
                [stream:0 fmt:UYVY8_1X16/1280x720 field:none]
                -> "4520000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE]
        pad3: SOURCE
                -> "4520000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE]
        pad4: SOURCE
                -> "4520000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE]
        pad5: SOURCE
                -> "4520000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE]
        pad6: SOURCE
                -> "4520000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE]
        pad7: SOURCE
                -> "4520000.ticsi2rx context 6":0 [ENABLED,IMMUTABLE]
        pad8: SOURCE
                -> "4520000.ticsi2rx context 7":0 [ENABLED,IMMUTABLE]
 
- entity 11: cdns_csi2rx.4524000.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:UYVY8_1X16/1280x720 field:none]
<- "ds90ub960 6-0030":4 [ENABLED,IMMUTABLE]
        pad1: SOURCE
                [stream:0 fmt:UYVY8_1X16/1280x720 field:none]
                -> "4520000.ticsi2rx":0 [ENABLED,IMMUTABLE]
        pad2: SOURCE
        pad3: SOURCE
        pad4: SOURCE
 
- entity 17: ds90ub960 6-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:UYVY8_1X16/1280x720 field:none]
<- "ds90ub953 6-0044":1 [ENABLED,IMMUTABLE]
        pad1: SINK
        pad2: SINK
        pad3: SINK
        pad4: SOURCE
                [stream:0 fmt:UYVY8_1X16/1280x720 field:none]
                -> "cdns_csi2rx.4524000.csi-bridge":0 [ENABLED,IMMUTABLE]
        pad5: SOURCE
 
- entity 26: ds90ub953 6-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:UYVY8_1X16/1280x720 field:none]
<- "ar0234 7-0042":0 [ENABLED,IMMUTABLE]
        pad1: SOURCE
                [stream:0 fmt:UYVY8_1X16/1280x720 field:none]
                -> "ds90ub960 6-0030":0 [ENABLED,IMMUTABLE]
 
- entity 31: ar0234 7-0042 (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:UYVY8_1X16/1280x720 field:none colorspace:srgb]
                -> "ds90ub953 6-0044":0 [ENABLED,IMMUTABLE]
 
- entity 37: 4520000.ticsi2rx context 0 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video4
        pad0: SINK
<- "4520000.ticsi2rx":1 [ENABLED,IMMUTABLE]
 
- entity 43: 4520000.ticsi2rx context 1 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video5
        pad0: SINK
<- "4520000.ticsi2rx":2 [ENABLED,IMMUTABLE]
 
- entity 49: 4520000.ticsi2rx context 2 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video6
        pad0: SINK
<- "4520000.ticsi2rx":3 [ENABLED,IMMUTABLE]
 
- entity 55: 4520000.ticsi2rx context 3 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video7
        pad0: SINK
<- "4520000.ticsi2rx":4 [ENABLED,IMMUTABLE]
 
- entity 61: 4520000.ticsi2rx context 4 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video8
        pad0: SINK
<- "4520000.ticsi2rx":5 [ENABLED,IMMUTABLE]
 
- entity 67: 4520000.ticsi2rx context 5 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video9
        pad0: SINK
<- "4520000.ticsi2rx":6 [ENABLED,IMMUTABLE]
 
- entity 73: 4520000.ticsi2rx context 6 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video10
        pad0: SINK
<- "4520000.ticsi2rx":7 [ENABLED,IMMUTABLE]
 
- entity 79: 4520000.ticsi2rx context 7 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video11
        pad0: SINK
<- "4520000.ticsi2rx":8 [ENABLED,IMMUTABLE]



But when using 2 camera

root@j784s4-evm:~# media-ctl -d 2 -p
Media controller API version 6.12.17
 
Media device information
------------------------
driver          j721e-csi2rx
model           TI-CSI2RX
serial          
bus info        platform:4520000.ticsi2rx
hw revision     0x1
driver version  6.12.17
 
Device topology
- entity 1: 4520000.ticsi2rx (9 pads, 9 links, 2 routes)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
	routes:
		0/0 -> 2/0 [ACTIVE]
		0/1 -> 3/0 [ACTIVE]
	pad0: SINK
		[stream:0 fmt:UYVY8_1X16/1280x720 field:none]
		[stream:1 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
<- "cdns_csi2rx.4524000.csi-bridge":1 [ENABLED,IMMUTABLE]
	pad1: SOURCE
		-> "4520000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE]
	pad2: SOURCE
		[stream:0 fmt:UYVY8_1X16/1280x720 field:none]
		-> "4520000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE]
	pad3: SOURCE
		[stream:0 fmt:UYVY8_1X16/640x480 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
		-> "4520000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE]
	pad4: SOURCE
		-> "4520000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE]
	pad5: SOURCE
		-> "4520000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE]
	pad6: SOURCE
		-> "4520000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE]
	pad7: SOURCE
		-> "4520000.ticsi2rx context 6":0 [ENABLED,IMMUTABLE]
	pad8: SOURCE
		-> "4520000.ticsi2rx context 7":0 [ENABLED,IMMUTABLE]
 
- entity 11: cdns_csi2rx.4524000.csi-bridge (5 pads, 2 links, 2 routes)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev1
	routes:
		0/0 -> 1/0 [ACTIVE]
		0/1 -> 1/1 [ACTIVE]
	pad0: SINK
		[stream:0 fmt:UYVY8_1X16/1280x720 field:none]
		[stream:1 fmt:UYVY8_1X16/1280x720 field:none]
<- "ds90ub960 6-0030":4 [ENABLED,IMMUTABLE]
	pad1: SOURCE
		[stream:0 fmt:UYVY8_1X16/1280x720 field:none]
		[stream:1 fmt:UYVY8_1X16/1280x720 field:none]
		-> "4520000.ticsi2rx":0 [ENABLED,IMMUTABLE]
	pad2: SOURCE
	pad3: SOURCE
	pad4: SOURCE
 
- entity 17: ds90ub960 6-0030 (6 pads, 3 links, 2 routes)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev2
	routes:
		0/0 -> 4/0 [ACTIVE]
		1/0 -> 4/1 [ACTIVE]
	pad0: SINK
		[stream:0 fmt:UYVY8_1X16/1280x720 field:none]
<- "ds90ub953 6-0044":1 [ENABLED,IMMUTABLE]
	pad1: SINK
		[stream:0 fmt:UYVY8_1X16/1280x720 field:none]
<- "ds90ub953 6-0045":1 [ENABLED,IMMUTABLE]
	pad2: SINK
	pad3: SINK
	pad4: SOURCE
		[stream:0 fmt:UYVY8_1X16/1280x720 field:none]
		[stream:1 fmt:UYVY8_1X16/1280x720 field:none]
		-> "cdns_csi2rx.4524000.csi-bridge":0 [ENABLED,IMMUTABLE]
	pad5: SOURCE
 
- entity 26: ds90ub953 6-0045 (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:UYVY8_1X16/1280x720 field:none colorspace:srgb]
<- "ar0234 8-0042":0 [ENABLED,IMMUTABLE]
	pad1: SOURCE
		[stream:0 fmt:UYVY8_1X16/1280x720 field:none colorspace:srgb]
		-> "ds90ub960 6-0030":1 [ENABLED,IMMUTABLE]
 
- entity 31: ds90ub953 6-0044 (2 pads, 2 links, 1 route)
             type V4L2 subdev subtype Unknown flags 0
             device node name /dev/v4l-subdev4
	routes:
		0/0 -> 1/0 [ACTIVE]
	pad0: SINK
		[stream:0 fmt:UYVY8_1X16/1280x720 field:none]
<- "ar0234 7-0042":0 [ENABLED,IMMUTABLE]
	pad1: SOURCE
		[stream:0 fmt:UYVY8_1X16/1280x720 field:none]
		-> "ds90ub960 6-0030":0 [ENABLED,IMMUTABLE]
 
- entity 36: ar0234 7-0042 (1 pad, 1 link, 2 routes)
             type V4L2 subdev subtype Sensor flags 0
             device node name /dev/v4l-subdev5
	routes:
		0/0 -> 0/0 [ACTIVE]
		0/0 -> 0/1 [INACTIVE]
	pad0: SOURCE
		[stream:0 fmt:UYVY8_1X16/1280x720 field:none colorspace:srgb]
		-> "ds90ub953 6-0044":0 [ENABLED,IMMUTABLE]
 
- entity 40: ar0234 8-0042 (1 pad, 1 link, 2 routes)
             type V4L2 subdev subtype Sensor flags 0
             device node name /dev/v4l-subdev6
	routes:
		0/0 -> 0/0 [ACTIVE]
		0/0 -> 0/1 [INACTIVE]
	pad0: SOURCE
		[stream:0 fmt:UYVY8_1X16/1280x720 field:none colorspace:srgb]
		-> "ds90ub953 6-0045":0 [ENABLED,IMMUTABLE]
 
- entity 46: 4520000.ticsi2rx context 0 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video4
	pad0: SINK
<- "4520000.ticsi2rx":1 [ENABLED,IMMUTABLE]
 
- entity 52: 4520000.ticsi2rx context 1 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video5
	pad0: SINK
<- "4520000.ticsi2rx":2 [ENABLED,IMMUTABLE]
 
- entity 58: 4520000.ticsi2rx context 2 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video6
	pad0: SINK
<- "4520000.ticsi2rx":3 [ENABLED,IMMUTABLE]
 
- entity 64: 4520000.ticsi2rx context 3 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video7
	pad0: SINK
<- "4520000.ticsi2rx":4 [ENABLED,IMMUTABLE]
 
- entity 70: 4520000.ticsi2rx context 4 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video8
	pad0: SINK
<- "4520000.ticsi2rx":5 [ENABLED,IMMUTABLE]
 
- entity 76: 4520000.ticsi2rx context 5 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video9
	pad0: SINK
<- "4520000.ticsi2rx":6 [ENABLED,IMMUTABLE]
 
- entity 82: 4520000.ticsi2rx context 6 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video10
	pad0: SINK
<- "4520000.ticsi2rx":7 [ENABLED,IMMUTABLE]
 
- entity 88: 4520000.ticsi2rx context 7 (1 pad, 1 link)
             type Node subtype V4L flags 0
             device node name /dev/video11
	pad0: SINK
<- "4520000.ticsi2rx":8 [ENABLED,IMMUTABLE]


try to set for camera 1, but not success

v4l2-ctl --device=/dev/videoX --stream-mmap
                VIDIOC_STREAMON returned -1 (Broken pipe)


Thanks,
BRs



 

  • Hi,

    Can you send your dmesg logs to show that the second camera has enumerated properly?

    Also, are you using the correct video device when you are trying to stream from the camera? Can you run:

    $ls -l /dev/video*

    Best,
    Jared

  • Hi ,
    I am sure the second camera already have on /dev


    root@j784s4-evm:~# v4l2-ctl --list-devices
    wave5-dec (platform:4210000.video-codec):
    	/dev/video0
    	/dev/video1
     
    wave5-dec (platform:4220000.video-codec):
    	/dev/video2
    	/dev/video3
     
    TI-CSI2RX (platform:4500000.ticsi2rx):
    	/dev/media0
     
    TI-CSI2RX (platform:4510000.ticsi2rx):
    	/dev/media1
     
    j721e-csi2rx (platform:4520000.ticsi2rx):
    	/dev/video4
    	/dev/video5
    	/dev/video6
    	/dev/video7
    	/dev/video8
    	/dev/video9
    	/dev/video10
    	/dev/video11
    	/dev/media2


    The log when run script setting camera

    width=1280
    height=720
    
    setting camera resolution
    [LOG] Starting AR0234 camera setup on media device /dev/media2
    [LOG] Detected AR0234 cameras: 7-0042
    8-0042
    9-0042
    [LOG] Configuring camera ar0234 7-0042 (Camera 0)
    [LOG] Subdevice for ar0234 7-0042: /dev/v4l-subdev6
    [LOG] Setting frame rate: v4l2-ctl -d /dev/v4l-subdev6 --set-ctrl frame_rate=30
    [LOG] Frame rate set successfully
    [LOG] UB953 name for ar0234 7-0042: ds90ub953 6-0044
    [LOG] Setting UB953 format: media-ctl -d 2 -V "'ds90ub953 6-0044':0 [fmt:UYVY8_1X16/1280x720 field: none]"
    [LOG] UB953 format set successfully
    [LOG] Setting AR0234 format: media-ctl -d 2 -V "'ar0234 7-0042':0 [fmt:UYVY8_1X16/1280x720 field: none]"
    [LOG] AR0234 format set successfully
    [LOG] UB960 name: ds90ub960 6-0030, pad: 0
    [LOG] CSI bridge name: cdns_csi2rx.4524000.csi-bridge
    [LOG] CSI2RX name: 4520000.ticsi2rx
    [LOG] Calculated NEXT_PAD: 0 (LAST_PAD: , UB960_PAD: 0)
    [LOG] CSI2RX context name: 4520000.ticsi2rx context 1
    [LOG] UB960 routing string: 0/0 -> 4/0 [1]
    [LOG] CDNS routing string: 0/0 -> 1/0 [1]
    [LOG] CSI2RX routing string: 0/0 -> 2/0 [1]
    [LOG] Updated ALL_UB960_FMT_STR[2,ds90ub960 6-0030]: 0/0 -> 4/0 [1]
    [LOG] Updated ALL_CDNS_FMT_STR[2,cdns_csi2rx.4524000.csi-bridge]: 0/0 -> 1/0 [1]
    [LOG] Updated ALL_CSI2RX_FMT_STR[2,4520000.ticsi2rx]: 0/0 -> 2/0 [1]
    [LOG] Video device for 4520000.ticsi2rx context 1: /dev/video5
    [LOG] Camera device name: /dev/video-ar0234-cam0
    [LOG] Subdevice name: /dev/v4l-ar0234-subdev0
    [LOG] Assigned cam_node_0: /dev/video-ar0234-cam0
    [LOG] Creating symbolic link for video device: ln -snf /dev/video5 /dev/video-ar0234-cam0
    [LOG] Video device symbolic link created successfully
    [LOG] Creating symbolic link for subdevice: ln -snf /dev/v4l-subdev6 /dev/v4l-ar0234-subdev0
    [LOG] Subdevice symbolic link created successfully
    [LOG] AR0234 Camera 0 detected
        device = /dev/video-ar0234-cam0
        name = ar0234
        format = [fmt:UYVY8_1X16/1280x720 field: none]
        subdev_id = /dev/v4l-ar0234-subdev0
        isp_required = no
        ldc_required = no
    [LOG] Incremented camera count: num_cam=1
    [LOG] Configuring camera ar0234 8-0042 (Camera 1)
    [LOG] Subdevice for ar0234 8-0042: /dev/v4l-subdev7
    [LOG] Setting frame rate: v4l2-ctl -d /dev/v4l-subdev7 --set-ctrl frame_rate=30
    [LOG] Frame rate set successfully
    [LOG] UB953 name for ar0234 8-0042: ds90ub953 6-0045
    [LOG] Setting UB953 format: media-ctl -d 2 -V "'ds90ub953 6-0045':0 [fmt:UYVY8_1X16/1280x720 field: none]"
    [LOG] UB953 format set successfully
    [LOG] Setting AR0234 format: media-ctl -d 2 -V "'ar0234 8-0042':0 [fmt:UYVY8_1X16/1280x720 field: none]"
    [LOG] AR0234 format set successfully
    [LOG] UB960 name: ds90ub960 6-0030, pad: 1
    [LOG] CSI bridge name: cdns_csi2rx.4524000.csi-bridge
    [LOG] CSI2RX name: 4520000.ticsi2rx
    [LOG] Calculated NEXT_PAD: 1 (LAST_PAD: 0, UB960_PAD: 1)
    [LOG] CSI2RX context name: 4520000.ticsi2rx context 2
    [LOG] UB960 routing string: 1/0 -> 4/1 [1]
    [LOG] CDNS routing string: 0/1 -> 1/1 [1]
    [LOG] CSI2RX routing string: 0/1 -> 3/0 [1]
    [LOG] Updated ALL_UB960_FMT_STR[2,ds90ub960 6-0030]: 0/0 -> 4/0 [1], 1/0 -> 4/1 [1]
    [LOG] Updated ALL_CDNS_FMT_STR[2,cdns_csi2rx.4524000.csi-bridge]: 0/0 -> 1/0 [1], 0/1 -> 1/1 [1]
    [LOG] Updated ALL_CSI2RX_FMT_STR[2,4520000.ticsi2rx]: 0/0 -> 2/0 [1], 0/1 -> 3/0 [1]
    [LOG] Video device for 4520000.ticsi2rx context 2: /dev/video6
    [LOG] Camera device name: /dev/video-ar0234-cam1
    [LOG] Subdevice name: /dev/v4l-ar0234-subdev1
    [LOG] Assigned cam_node_1: /dev/video-ar0234-cam1
    [LOG] Creating symbolic link for video device: ln -snf /dev/video6 /dev/video-ar0234-cam1
    [LOG] Video device symbolic link created successfully
    [LOG] Creating symbolic link for subdevice: ln -snf /dev/v4l-subdev7 /dev/v4l-ar0234-subdev1
    [LOG] Subdevice symbolic link created successfully
    [LOG] AR0234 Camera 1 detected
        device = /dev/video-ar0234-cam1
        name = ar0234
        format = [fmt:UYVY8_1X16/1280x720 field: none]
        subdev_id = /dev/v4l-ar0234-subdev1
        isp_required = no
        ldc_required = no
    [LOG] Incremented camera count: num_cam=2
    [LOG] Configuring camera ar0234 9-0042 (Camera 2)
    [LOG] Subdevice for ar0234 9-0042: /dev/v4l-subdev8
    [LOG] Setting frame rate: v4l2-ctl -d /dev/v4l-subdev8 --set-ctrl frame_rate=30
    [LOG] Frame rate set successfully
    [LOG] UB953 name for ar0234 9-0042: ds90ub953 6-0046
    [LOG] Setting UB953 format: media-ctl -d 2 -V "'ds90ub953 6-0046':0 [fmt:UYVY8_1X16/1280x720 field: none]"
    [LOG] UB953 format set successfully
    [LOG] Setting AR0234 format: media-ctl -d 2 -V "'ar0234 9-0042':0 [fmt:UYVY8_1X16/1280x720 field: none]"
    [LOG] AR0234 format set successfully
    [LOG] UB960 name: ds90ub960 6-0030, pad: 2
    [LOG] CSI bridge name: cdns_csi2rx.4524000.csi-bridge
    [LOG] CSI2RX name: 4520000.ticsi2rx
    [LOG] Calculated NEXT_PAD: 2 (LAST_PAD: 1, UB960_PAD: 2)
    [LOG] CSI2RX context name: 4520000.ticsi2rx context 3
    [LOG] UB960 routing string: 2/0 -> 4/2 [1]
    [LOG] CDNS routing string: 0/2 -> 1/2 [1]
    [LOG] CSI2RX routing string: 0/2 -> 4/0 [1]
    [LOG] Updated ALL_UB960_FMT_STR[2,ds90ub960 6-0030]: 0/0 -> 4/0 [1], 1/0 -> 4/1 [1], 2/0 -> 4/2 [1]
    [LOG] Updated ALL_CDNS_FMT_STR[2,cdns_csi2rx.4524000.csi-bridge]: 0/0 -> 1/0 [1], 0/1 -> 1/1 [1], 0/2 -> 1/2 [1]
    [LOG] Updated ALL_CSI2RX_FMT_STR[2,4520000.ticsi2rx]: 0/0 -> 2/0 [1], 0/1 -> 3/0 [1], 0/2 -> 4/0 [1]
    [LOG] Video device for 4520000.ticsi2rx context 3: /dev/video7
    [LOG] Camera device name: /dev/video-ar0234-cam2
    [LOG] Subdevice name: /dev/v4l-ar0234-subdev2
    [LOG] Assigned cam_node_2: /dev/video-ar0234-cam2
    [LOG] Creating symbolic link for video device: ln -snf /dev/video7 /dev/video-ar0234-cam2
    [LOG] Video device symbolic link created successfully
    [LOG] Creating symbolic link for subdevice: ln -snf /dev/v4l-subdev8 /dev/v4l-ar0234-subdev2
    [LOG] Subdevice symbolic link created successfully
    [LOG] AR0234 Camera 2 detected
        device = /dev/video-ar0234-cam2
        name = ar0234
        format = [fmt:UYVY8_1X16/1280x720 field: none]
        subdev_id = /dev/v4l-ar0234-subdev2
        isp_required = no
        ldc_required = no
    [LOG] Incremented camera count: num_cam=3
    [LOG] Completed AR0234 camera setup: 3 cameras configured
    [LOG] Starting media pipeline routing configuration on media device /dev/media2
    [LOG] Configuring UB960 routing: media-ctl -d 2 -R "'ds90ub960 6-0030' [0/0 -> 4/0 [1], 1/0 -> 4/1 [1], 2/0 -> 4/2 [1]]"
    [LOG] UB960 routing configured successfully
    [LOG] UB953: ds90ub953 6-0044, UB960: ds90ub960 6-0030, UB960_PAD: 0 for ar0234 7-0042
    [LOG] Setting UB960 format: media-ctl -d 2 -V "'ds90ub960 6-0030':0 [fmt:UYVY8_1X16/1280x720 field: none]"
    [LOG] UB960 format set successfully
    [LOG] UB953: ds90ub953 6-0045, UB960: ds90ub960 6-0030, UB960_PAD: 1 for ar0234 8-0042
    [LOG] Setting UB960 format: media-ctl -d 2 -V "'ds90ub960 6-0030':1 [fmt:UYVY8_1X16/1280x720 field: none]"
    [LOG] UB960 format set successfully
    [LOG] UB953: ds90ub953 6-0046, UB960: ds90ub960 6-0030, UB960_PAD: 2 for ar0234 9-0042
    [LOG] Setting UB960 format: media-ctl -d 2 -V "'ds90ub960 6-0030':2 [fmt:UYVY8_1X16/1280x720 field: none]"
    [LOG] UB960 format set successfully
    [LOG] Configuring CDNS routing: media-ctl -d 2 -R "'cdns_csi2rx.4524000.csi-bridge' [0/0 -> 1/0 [1], 0/1 -> 1/1 [1], 0/2 -> 1/2 [1]]"
    [LOG] CDNS routing configured successfully
    [LOG] UB953: ds90ub953 6-0044, UB960: ds90ub960 6-0030, UB960_PAD: 0, CSI_BRIDGE: cdns_csi2rx.4524000.csi-bridge for ar0234 7-0042
    [LOG] Setting CSI bridge format: media-ctl -d 2 -V "'cdns_csi2rx.4524000.csi-bridge':0 [stream:0 fmt:UYVY8_1X16/1280x720 field:none]"
    Unable to setup formats: Invalid argument (22)
    [ERROR] Failed to set CSI bridge format: media-ctl -d 2 -V "'cdns_csi2rx.4524000.csi-bridge':0 [stream:0 fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] UB953: ds90ub953 6-0045, UB960: ds90ub960 6-0030, UB960_PAD: 1, CSI_BRIDGE: cdns_csi2rx.4524000.csi-bridge for ar0234 8-0042
    [LOG] Setting CSI bridge format: media-ctl -d 2 -V "'cdns_csi2rx.4524000.csi-bridge':0 [stream:1 fmt:UYVY8_1X16/1280x720 field:none]"
    Unable to setup formats: Invalid argument (22)
    [ERROR] Failed to set CSI bridge format: media-ctl -d 2 -V "'cdns_csi2rx.4524000.csi-bridge':0 [stream:1 fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] UB953: ds90ub953 6-0046, UB960: ds90ub960 6-0030, UB960_PAD: 2, CSI_BRIDGE: cdns_csi2rx.4524000.csi-bridge for ar0234 9-0042
    [LOG] Setting CSI bridge format: media-ctl -d 2 -V "'cdns_csi2rx.4524000.csi-bridge':0 [stream:2 fmt:UYVY8_1X16/1280x720 field:none]"
    Unable to setup formats: Invalid argument (22)
    [ERROR] Failed to set CSI bridge format: media-ctl -d 2 -V "'cdns_csi2rx.4524000.csi-bridge':0 [stream:2 fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Configuring CSI2RX routing: media-ctl -d 2 -R "'4520000.ticsi2rx' [0/0 -> 2/0 [1], 0/1 -> 3/0 [1], 0/2 -> 4/0 [1]]"
    [LOG] CSI2RX routing configured successfully
    [LOG] Applying additional SDK 11 format configurations
    [LOG] Setting V4L2 video format: v4l2-ctl -d /dev/video-ar0234-cam0 --set-fmt-video=width=1280,height=720,pixelformat=UYVY
    [LOG] V4L2 video format set successfully
    [LOG] Getting V4L2 video format: v4l2-ctl -d /dev/video-ar0234-cam0 --get-fmt-video
    [LOG] V4L2 video format retrieved successfully:
    [LOG]   Format Video Capture:
    [LOG]   	Width/Height      : 1280/720
    [LOG]   	Pixel Format      : 'UYVY' (UYVY 4:2:2)
    [LOG]   	Field             : None
    [LOG]   	Bytes per Line    : 2560
    [LOG]   	Size Image        : 1843200
    [LOG]   	Colorspace        : sRGB
    [LOG]   	Transfer Function : sRGB
    [LOG]   	YCbCr/HSV Encoding: ITU-R 601
    [LOG]   	Quantization      : Limited Range
    [LOG]   	Flags             : 
    [LOG] Setting V4L2 video format: v4l2-ctl -d /dev/video-ar0234-cam1 --set-fmt-video=width=1280,height=720,pixelformat=UYVY
    [LOG] V4L2 video format set successfully
    [LOG] Getting V4L2 video format: v4l2-ctl -d /dev/video-ar0234-cam1 --get-fmt-video
    [LOG] V4L2 video format retrieved successfully:
    [LOG]   Format Video Capture:
    [LOG]   	Width/Height      : 1280/720
    [LOG]   	Pixel Format      : 'UYVY' (UYVY 4:2:2)
    [LOG]   	Field             : None
    [LOG]   	Bytes per Line    : 2560
    [LOG]   	Size Image        : 1843200
    [LOG]   	Colorspace        : sRGB
    [LOG]   	Transfer Function : sRGB
    [LOG]   	YCbCr/HSV Encoding: ITU-R 601
    [LOG]   	Quantization      : Limited Range
    [LOG]   	Flags             : 
    [LOG] Setting V4L2 video format: v4l2-ctl -d /dev/video-ar0234-cam2 --set-fmt-video=width=1280,height=720,pixelformat=UYVY
    [LOG] V4L2 video format set successfully
    [LOG] Getting V4L2 video format: v4l2-ctl -d /dev/video-ar0234-cam2 --get-fmt-video
    [LOG] V4L2 video format retrieved successfully:
    [LOG]   Format Video Capture:
    [LOG]   	Width/Height      : 1280/720
    [LOG]   	Pixel Format      : 'UYVY' (UYVY 4:2:2)
    [LOG]   	Field             : None
    [LOG]   	Bytes per Line    : 2560
    [LOG]   	Size Image        : 1843200
    [LOG]   	Colorspace        : sRGB
    [LOG]   	Transfer Function : sRGB
    [LOG]   	YCbCr/HSV Encoding: ITU-R 601
    [LOG]   	Quantization      : Limited Range
    [LOG]   	Flags             : 
    [LOG] Setting AR0234 format: media-ctl -d 2 -V "'ar0234 7-0042':0 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Media format set successfully
    [LOG] Setting UB953 format: media-ctl -d 2 -V "'ds90ub953 6-0044':0 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Media format set successfully
    [LOG] Setting UB960 format: media-ctl -d 2 -V "'ds90ub960 6-0030':0 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Media format set successfully
    [LOG] Setting CSI bridge format: media-ctl -d 2 -V "'cdns_csi2rx.4524000.csi-bridge':0 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Media format set successfully
    [LOG] Setting CSI2RX format: media-ctl -d 2 -V "'bus info        platform:4520000.ticsi2rx
    4520000.ticsi2rx':0 [fmt:UYVY8_1X16/1280x720 field:none]"
    Unable to setup formats: Invalid argument (22)
    [ERROR] Failed to set media format: media-ctl -d 2 -V "'bus info        platform:4520000.ticsi2rx
    4520000.ticsi2rx':0 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Setting CSI2RX source format: media-ctl -d 2 -V "'bus info        platform:4520000.ticsi2rx
    4520000.ticsi2rx':2 [fmt:UYVY8_1X16/1280x720 field:none]"
    Unable to setup formats: Invalid argument (22)
    [ERROR] Failed to set media format: media-ctl -d 2 -V "'bus info        platform:4520000.ticsi2rx
    4520000.ticsi2rx':2 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Setting AR0234 format: media-ctl -d 2 -V "'ar0234 8-0042':0 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Media format set successfully
    [LOG] Setting UB953 format: media-ctl -d 2 -V "'ds90ub953 6-0045':0 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Media format set successfully
    [LOG] Setting UB960 format: media-ctl -d 2 -V "'ds90ub960 6-0030':1 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Media format set successfully
    [LOG] Setting CSI bridge format: media-ctl -d 2 -V "'cdns_csi2rx.4524000.csi-bridge':0 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Media format set successfully
    [LOG] Setting CSI2RX format: media-ctl -d 2 -V "'bus info        platform:4520000.ticsi2rx
    4520000.ticsi2rx':0 [fmt:UYVY8_1X16/1280x720 field:none]"
    Unable to setup formats: Invalid argument (22)
    [ERROR] Failed to set media format: media-ctl -d 2 -V "'bus info        platform:4520000.ticsi2rx
    4520000.ticsi2rx':0 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Setting CSI2RX source format: media-ctl -d 2 -V "'bus info        platform:4520000.ticsi2rx
    4520000.ticsi2rx':2 [fmt:UYVY8_1X16/1280x720 field:none]"
    Unable to setup formats: Invalid argument (22)
    [ERROR] Failed to set media format: media-ctl -d 2 -V "'bus info        platform:4520000.ticsi2rx
    4520000.ticsi2rx':2 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Setting AR0234 format: media-ctl -d 2 -V "'ar0234 9-0042':0 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Media format set successfully
    [LOG] Setting UB953 format: media-ctl -d 2 -V "'ds90ub953 6-0046':0 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Media format set successfully
    [LOG] Setting UB960 format: media-ctl -d 2 -V "'ds90ub960 6-0030':2 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Media format set successfully
    [LOG] Setting CSI bridge format: media-ctl -d 2 -V "'cdns_csi2rx.4524000.csi-bridge':0 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Media format set successfully
    [LOG] Setting CSI2RX format: media-ctl -d 2 -V "'bus info        platform:4520000.ticsi2rx
    4520000.ticsi2rx':0 [fmt:UYVY8_1X16/1280x720 field:none]"
    Unable to setup formats: Invalid argument (22)
    [ERROR] Failed to set media format: media-ctl -d 2 -V "'bus info        platform:4520000.ticsi2rx
    4520000.ticsi2rx':0 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Setting CSI2RX source format: media-ctl -d 2 -V "'bus info        platform:4520000.ticsi2rx
    4520000.ticsi2rx':2 [fmt:UYVY8_1X16/1280x720 field:none]"
    Unable to setup formats: Invalid argument (22)
    [ERROR] Failed to set media format: media-ctl -d 2 -V "'bus info        platform:4520000.ticsi2rx
    4520000.ticsi2rx':2 [fmt:UYVY8_1X16/1280x720 field:none]"
    [LOG] Completed media pipeline routing configuration
    




    thanks,
    BRs

  • Hi,

    The "Unable to setup formats: Invalid argument (22)" messages are worrying.

    The setup cameras script should handle running the necessary media-ctl commands.

    Does a simple yavta command work? 

    Best,
    Jared

  • Hi,
    Camera not working or cannot set success when we use 2 camera, if we use 1 camera , it can set with bellow command and working

    v4l2-ctl -d /dev/video-ar0234-cam0 --set-fmt-video=width=1280,height=720,pixelformat=UYVY

    v4l2-ctl -d /dev/video-ar0234-cam0 --get-fmt-video

     

    media-ctl -d 2 -V '"ar0234 7-0042":0 [fmt:UYVY8_1X16/1280x720 field:none]'

    media-ctl -d 2 -V '"ds90ub953 6-0044":0 [fmt:UYVY8_1X16/1280x720 field:none]'

    media-ctl -d 2 -V '"ds90ub960 6-0030":0 [fmt:UYVY8_1X16/1280x720 field:none]'

    media-ctl -d 2 -V '"cdns_csi2rx.4524000.csi-bridge":0 [fmt:UYVY8_1X16/1280x720 field:none]'

    media-ctl -d 2 -V '"4520000.ticsi2rx":0 [fmt:UYVY8_1X16/1280x720 field:none]'

    media-ctl -d 2 -V '"4520000.ticsi2rx":2 [fmt:UYVY8_1X16/1280x720 field:none]'

    v4l2-ctl -d /dev/video-ar0234-cam0 --stream-mmap



  • Hi,

    Before streaming, do the format setting commands work?

    Does a single camera work for all ports or only if it's connected to the cam 0 port?

    Did you create a function for the ar0234 in the setup_cameras.sh script?

    Best,
    Jared

  • Hi Jared,
    I already fix it, thanks
    BRs

  • Hi,

    Can you share what you did to fix the issue and mark this thread as resolved?

    Best,
    Jared

  • It is a mapping script, I need to correct mapping DES + SER + Sensor camera correctly, after that i can success for streamming camera

  • Hi,

    Thank you. I will mark the issue as resolved then.

    Best,
    Jared