Camera can't work

hi,
I config a GMSL camera in Orin, the video node can be found in /dev, but when I try to get video, it report error:

log as follow:

car@ubuntu:~$ gst-launch-1.0 v4l2src device=/dev/video0 ! ‘video/x-raw,format=UYVY,width=1920,height=1080’ ! videoconvert ! fpsdisplaysink video-sink=xvimagesink e
Setting pipeline to PAUSED …
Pipeline is live and does not need PREROLL …
Pipeline is PREROLLED …
Setting pipeline to PLAYING …
New clock: GstSystemClock
WARNING: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Signal lost
Additional debug info:
../sys/v4l2/gstv4l2src.c(693): gst_v4l2src_query_preferred_size (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
No input source was detected - video frames invalid
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
../libs/gst/base/gstbasesrc.c(3177): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-negotiated (-4)
Execution ended after 0:00:00.002394991
Setting pipeline to NULL …
Freeing pipeline …

and I find some error report in kernel init as follow, is it the matter?:

“[ 13.935260] tegra-camrtc-capture-vi tegra-capture-vi: subdev imx390 9-0021 bound
[ 13.953401] tegra-nvcsi 8181200000.host1x:nvcsi@8188000000: Failed to create device link (0x180) with 9-0021

and here is media-ctl output:

car@ubuntu:~$ sudo media-ctl -p -d /dev/media0

Media controller API version 6.8.12

Media device information

driver tegra-camrtc-ca
model NVIDIA Tegra Video Input Device
serial
bus info platform:tegra-capture-vi
hw revision 0x3
driver version 6.8.12

Device topology

  • entity 1: 8181200000.host1x:nvcsi@8188000 (2 pads, 2 links, 0 routes)
    type V4L2 subdev subtype Unknown flags 0
    device node name /dev/v4l-subdev0
    pad0: SINK
    ← “imx390 9-0021”:0 [ENABLED]
    pad1: SOURCE
    → “vi-output, imx390 9-0021”:0 [ENABLED]

  • entity 4: imx390 9-0021 (1 pad, 1 link, 0 routes)
    type V4L2 subdev subtype Sensor flags 0
    device node name /dev/v4l-subdev1
    pad0: SOURCE
    [stream:0 fmt:YUYV8_1X16/1920x1080@1/30 field:none colorspace:srgb]
    → “8181200000.host1x:nvcsi@8188000”:0 [ENABLED]

  • entity 6: vi-output, imx390 9-0021 (1 pad, 1 link)
    type Node subtype V4L flags 0
    device node name /dev/video0
    pad0: SINK
    ← “8181200000.host1x:nvcsi@8188000”:1 [ENABLED]

attachment is device-tree

dump.txt (20.3 KB)

pls. provide some suggestion for trouble shooting, Thanks.

hello ekeechg,

it looks you’re using Jetson Virtual Channel with GMSL Camera Framework.
please do have vc_id in sensor mode device tree nodes, and it must to be match with the vc-id property value you’ve set in CSI/VI nodes.

I add the “vc_id”, but no help. attachment is dts file. pls kindly help checking what is wrong.

beside that, I add some trace in kernel to find why it can’t create link.

it seems the link is bounded from the trace, but i don’t know why.

tegra264-camera-imx390-a00.dtsi.txt (26.0 KB)

hello ekeechg,

did you working with upstream kernel?
is it possible to based-on native Jetpack public release version for development?

No, I use jp_7.0_ea_bsp. HW is Thor.

Please contact your NVIDIA representative for related support.

(Moving to Jetson Thor forum)

Hi !
I’m encountering the same issue. Have you resolved it yet?

it looks duplicated with Topic 343171. let’s keep using the same discussion thread for supports.