Other Parts Discussed in Thread: AM62P
Tool/software:
Hi we're trying to implement a video capture device with AM62P, and when we run the command "LIBCAMERA_LOG_LEVELS=*:DEBUG,V4L2:TRACE cam -l" we receive this output error
[0:17:21.532829080] [1119] INFO V4L2 v4l2_subdevice.cpp:1662 'nvp6324 4ch AHD decoder': LOG 7
[0:17:21.532853700] [1119] ERROR V4L2 v4l2_subdevice.cpp:1664 'nvp6324 4ch AHD decoder': VIDIOC_SUBDEV_S_ROUTING: Inappropriate ioctl for device
[0:17:21.532885525] [1119] INFO V4L2 v4l2_subdevice.cpp:1559 'nvp6324 4ch AHD decoder': setRoutingLegacy
[0:17:21.532909170] [1119] INFO V4L2 v4l2_subdevice.cpp:1561 'nvp6324 4ch AHD decoder': Routing contains 4 routes.
[0:17:21.532933175] [1119] INFO V4L2 v4l2_subdevice.cpp:1564 'nvp6324 4ch AHD decoder': Route 0: sink_pad=0, sink_stream=0, source_pad=0, source_stream=0, flags=1
[0:17:21.532960785] [1119] INFO V4L2 v4l2_subdevice.cpp:1564 'nvp6324 4ch AHD decoder': Route 1: sink_pad=1, sink_stream=0, source_pad=0, source_stream=1, flags=1
[0:17:21.532986445] [1119] INFO V4L2 v4l2_subdevice.cpp:1564 'nvp6324 4ch AHD decoder': Route 2: sink_pad=2, sink_stream=0, source_pad=0, source_stream=2, flags=1
[0:17:21.533012490] [1119] INFO V4L2 v4l2_subdevice.cpp:1564 'nvp6324 4ch AHD decoder': Route 3: sink_pad=3, sink_stream=0, source_pad=0, source_stream=3, flags=1
[0:17:21.533038595] [1119] INFO V4L2 v4l2_subdevice.cpp:1578 'nvp6324 4ch AHD decoder': LOG setRoutingLegacy which: 1
[0:17:21.533062620] [1119] INFO V4L2 v4l2_subdevice.cpp:1580 'nvp6324 4ch AHD decoder': LOG setRoutingLegacy rt.num_routes: 4
[0:17:21.533086365] [1119] INFO V4L2 v4l2_subdevice.cpp:1583 'nvp6324 4ch AHD decoder': Routing whence: 1
[0:17:21.533109955] [1119] INFO V4L2 v4l2_subdevice.cpp:1587 'nvp6324 4ch AHD decoder': Route 0: sink_pad=0, sink_stream=0, source_pad=0, source_stream=0, flags=1
[0:17:21.533136000] [1119] INFO V4L2 v4l2_subdevice.cpp:1587 'nvp6324 4ch AHD decoder': Route 1: sink_pad=1, sink_stream=0, source_pad=0, source_stream=1, flags=1
[0:17:21.533161910] [1119] INFO V4L2 v4l2_subdevice.cpp:1587 'nvp6324 4ch AHD decoder': Route 2: sink_pad=2, sink_stream=0, source_pad=0, source_stream=2, flags=1
[0:17:21.533187535] [1119] INFO V4L2 v4l2_subdevice.cpp:1587 'nvp6324 4ch AHD decoder': Route 3: sink_pad=3, sink_stream=0, source_pad=0, source_stream=3, flags=1
[0:17:21.533213795] [1119] DEBUG V4L2 v4l2_device.cpp:565 'nvp6324 4ch AHD decoder': Calling ioctl, request code: 0x00000000c0285627 Request: 3223868967
[0:17:21.533240015] [1119] DEBUG V4L2 v4l2_device.cpp:863 'nvp6324 4ch AHD decoder': ioctl request not specifically handled, code: 0x0x00000000c0285627
[0:17:21.672862765] [1119] ERROR V4L2 v4l2_device.cpp:879 'nvp6324 4ch AHD decoder': Ioctl request 0x0x00000000c0285627 failed with error: Invalid argument (22)
[0:17:21.672943635] [1119] ERROR V4L2 v4l2_subdevice.cpp:1597 'nvp6324 4ch AHD decoder': Failed to set routes: Invalid argument
[0:17:21.672975395] [1119] INFO SimplePipeline simple.cpp:1558 GetRouting ActiveFormat
[0:17:21.672998510] [1119] ERROR SimplePipeline simple.cpp:1686 Failed to reset routes for /dev/v4l-subdev2: Invalid argument
[0:17:21.712655220] [1119] DEBUG Camera camera_manager.cpp:143 Found registered pipeline handler 'uvcvideo'
Available cameras:
We've already put some debugs, but we couldn't find the reason why we aren't able to se the availble cameras.
this is our media-ctl -p output
root@am62pxx-evm:~# media-ctl -p
Media controller API version 6.6.32
Media device information
------------------------
driver j721e-csi2rx
model TI-CSI2RX
serial
bus info platform:30102000.ticsi2rx
hw revision 0x1
driver version 6.6.32
Device topology
- entity 1: 30102000.ticsi2rx (7 pads, 7 links, 4 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]
0/2 -> 4/0 [ACTIVE]
0/3 -> 5/0 [ACTIVE]
pad0: Sink
[stream:0 fmt:UYVY8_1X16/1280x720 field:none]
[stream:1 fmt:UYVY8_1X16/1280x720 field:none]
[stream:2 fmt:UYVY8_1X16/1280x720 field:none]
[stream:3 fmt:UYVY8_1X16/1280x720 field:none]
<- "cdns_csi2rx.30101000.csi-bridge":1 [ENABLED,IMMUTABLE]
pad1: Source
-> "30102000.ticsi2rx context 0":0 [ENABLED,IMMUTABLE]
pad2: Source
[stream:0 fmt:UYVY8_1X16/1280x720 field:none]
-> "30102000.ticsi2rx context 1":0 [ENABLED,IMMUTABLE]
pad3: Source
[stream:0 fmt:UYVY8_1X16/1280x720 field:none]
-> "30102000.ticsi2rx context 2":0 [ENABLED,IMMUTABLE]
pad4: Source
[stream:0 fmt:UYVY8_1X16/1280x720 field:none]
-> "30102000.ticsi2rx context 3":0 [ENABLED,IMMUTABLE]
pad5: Source
[stream:0 fmt:UYVY8_1X16/1280x720 field:none]
-> "30102000.ticsi2rx context 4":0 [ENABLED,IMMUTABLE]
pad6: Source
-> "30102000.ticsi2rx context 5":0 [ENABLED,IMMUTABLE]
- entity 9: cdns_csi2rx.30101000.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]
<- "nvp6324 4ch AHD decoder":1 [ENABLED,IMMUTABLE]
pad1: Source
[stream:0 fmt:UYVY8_1X16/1280x720 field:none]
-> "30102000.ticsi2rx":0 [ENABLED,IMMUTABLE]
pad2: Source
pad3: Source
pad4: Source
- entity 15: nvp6324 4ch AHD decoder (5 pads, 1 link, 4 routes)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev2
routes:
0/0 -> 0/0 [ACTIVE]
1/0 -> 0/1 [ACTIVE]
2/0 -> 0/2 [ACTIVE]
3/0 -> 0/3 [ACTIVE]
pad0: Unknown
[stream:0 fmt:UYVY8_2X8/1280x720@1/30 field:none colorspace:rec709 xfer:srgb ycbcr:xv709 quantization:lim-range
crop.bounds:(0,0)/1280x720
crop:(0,0)/0x0
compose.bounds:(0,0)/0x0
compose:(0,0)/0x0]
[stream:1 fmt:UYVY8_2X8/1280x720@1/30 field:none colorspace:rec709 xfer:srgb ycbcr:xv709 quantization:lim-range
crop.bounds:(0,0)/1280x720
crop:(0,0)/0x0
compose.bounds:(0,0)/0x0
compose:(0,0)/0x0]
[stream:2 fmt:UYVY8_2X8/1280x720@1/30 field:none colorspace:rec709 xfer:srgb ycbcr:xv709 quantization:lim-range
crop.bounds:(0,0)/1280x720
crop:(0,0)/0x0
compose.bounds:(0,0)/0x0
compose:(0,0)/0x0]
[stream:3 fmt:UYVY8_2X8/1280x720@1/30 field:none colorspace:rec709 xfer:srgb ycbcr:xv709 quantization:lim-range
crop.bounds:(0,0)/1280x720
crop:(0,0)/0x0
compose.bounds:(0,0)/0x0
compose:(0,0)/0x0]
pad1: Source
-> "cdns_csi2rx.30101000.csi-bridge":0 [ENABLED,IMMUTABLE]
pad2: Source
pad3: Source
pad4: Source
- entity 25: 30102000.ticsi2rx context 0 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video2
pad0: Sink
<- "30102000.ticsi2rx":1 [ENABLED,IMMUTABLE]
- entity 31: 30102000.ticsi2rx context 1 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video3
pad0: Sink
<- "30102000.ticsi2rx":2 [ENABLED,IMMUTABLE]
- entity 37: 30102000.ticsi2rx context 2 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video4
pad0: Sink
<- "30102000.ticsi2rx":3 [ENABLED,IMMUTABLE]
- entity 43: 30102000.ticsi2rx context 3 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video5
pad0: Sink
<- "30102000.ticsi2rx":4 [ENABLED,IMMUTABLE]
- entity 49: 30102000.ticsi2rx context 4 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video6
pad0: Sink
<- "30102000.ticsi2rx":5 [ENABLED,IMMUTABLE]
- entity 55: 30102000.ticsi2rx context 5 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video7
pad0: Sink
<- "30102000.ticsi2rx":6 [ENABLED,IMMUTABLE]
Best regards,