Hello,when i installed module driver, the device file is existed:/dev/video0, but when use command gst-launch-1.0 -v v4l2src
, it show:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, format=(string)GRAY8, width=(int)1280, height=(int)800, framerate=(fraction)120/1, colorimetry=(string)2:4:7:1, interlace-mode=(string)progressive
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.
Additional debug info:
gstbasesrc.c(3055): gst_base_src_loop (): /GstPipeline:pipeline0/GstV4l2Src:v4l2src0:
streaming stopped, reason not-linked (-1)
Execution ended after 0:00:02.602425119
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
syslog is follow
[ 317.280884] ov9281 30-0060: ov9281_set_mode: 0
[ 317.306454] [RCE] vi5_hwinit: firmware CL2018101701 protocol version 2.2
[ 317.317288] ov9281 30-0060: ov9281_set_mode: write fsync table 2
[ 317.388805] ov9281 30-0060: read priv->frame_length: 038e
[ 317.389695] ov9281 30-0060: ov9281_start_streaming: stream on
[ 319.870285] tegra194-vi5 15c10000.vi: no reply from camera processor
[ 319.870442] tegra194-vi5 15c10000.vi: uncorr_err: request timed out after 2500 ms
[ 319.870612] tegra194-vi5 15c10000.vi: err_rec: attempting to reset the capture channel
[ 319.873399] Unable to handle kernel NULL pointer dereference at virtual address 00000010
[ 319.873568] Mem abort info:
[ 319.873622] ESR = 0x96000005
[ 319.873681] Exception class = DABT (current EL), IL = 32 bits
[ 319.873782] SET = 0, FnV = 0
[ 319.873854] EA = 0, S1PTW = 0
[ 319.873910] Data abort info:
[ 319.873965] ISV = 0, ISS = 0x00000005
[ 319.874033] CM = 0, WnR = 0
[ 319.874093] user pgtable: 4k pages, 39-bit VAs, pgd = ffffffc1b7273000
[ 319.874203] [0000000000000010] *pgd=0000000000000000, *pud=0000000000000000
[ 319.874437] Internal error: Oops: 96000005 [#1] PREEMPT SMP
[ 319.874545] Modules linked in: ov9281 bnep fuse xt_conntrack ipt_MASQUERADE nf_nat_masquerade_ipv4 nf_conntrack_netlink nfnetlink xt_addrtype iptable_filter iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack br_netfilter zram overlay userspace_alert nvgpu ip_tables x_tables
[ 319.884856] CPU: 0 PID: 9014 Comm: vi-output, ov92 Not tainted 4.9.253-tegra #23
[ 319.892018] Hardware name: NVIDIA Jetson Xavier NX Developer Kit (DT)
[ 319.898840] task: ffffffc1dce8f000 task.stack: ffffffc1f4c8c000
[ 319.904624] PC is at _raw_write_lock+0x30/0x58
[ 319.908823] LR is at destroy_buffer_table+0x40/0xd8
[ 319.913804] pc : [<ffffff8008f69858>] lr : [<ffffff8008b4a960>] pstate: 20c00045
[ 319.921065] sp : ffffffc1f4c8fc70
[ 319.924562] x29: ffffffc1f4c8fc70 x28: 0000000000000000
[ 319.929809] x27: 0000000000000000 x26: 0000000000000000
[ 319.935073] x25: 0000000000000010 x24: 0000000000000098
[ 319.940848] x23: 0000000000000018 x22: ffffff8009086b88
[ 319.946173] x21: 0000000000000000 x20: ffffffc16d865400
[ 319.951261] x19: 0000000000000010 x18: 000000000000450b
[ 319.957110] x17: 0000000000000002 x16: 0000000000000003
[ 319.962885] x15: 00000000000002a6 x14: 0000000000000034
[ 319.968571] x13: 0000000000000f84 x12: 0000000000000400
[ 319.974262] x11: 0000000000000400 x10: 0000000000000000
[ 319.979698] x9 : ffffffc1f4c8fa80 x8 : 0000000000000000
[ 319.985721] x7 : ffffffc1b7faa500 x6 : ffffffc1db9a9381
[ 319.991234] x5 : ffffff800852d5c4 x4 : ffffffbf076e6a50
[ 319.996322] x3 : 0000000000000000 x2 : ffffffc1db9a9380
[ 320.001660] x1 : 0000000000000000 x0 : 0000000080000000
[ 320.008392] Process vi-output, ov92 (pid: 9014, stack limit = 0xffffffc1f4c8c000)
[ 320.015566] Call trace:
[ 320.017934] [<ffffff8008f69858>] _raw_write_lock+0x30/0x58
[ 320.023267] [<ffffff8008b4a960>] destroy_buffer_table+0x40/0xd8
[ 320.028867] [<ffffff8008b3cbdc>] vi_capture_shutdown+0xd4/0x130
[ 320.034466] [<ffffff8008b3d234>] vi_channel_close_ex+0x34/0x88
[ 320.040066] [<ffffff8008b3e740>] vi5_channel_error_recover+0x48/0x1c8
[ 320.046020] [<ffffff8008b33820>] tegra_channel_error_recover+0x58/0x90
[ 320.052142] [<ffffff8008b3f000>] tegra_channel_kthread_capture_dequeue+0xf8/0x1c0
[ 320.059055] [<ffffff80080db0a4>] kthread+0xec/0xf0
[ 320.063608] [<ffffff80080838a0>] ret_from_fork+0x10/0x30
[ 320.068943] ---[ end trace a3ae93a69b836fe7 ]---
[ 320.087580] note: vi-output, ov92[9014] exited with preempt_count 1
[ 320.100302] tegra194-vi5 15c10000.vi: vi_capture_release: setup channel first
[ 320.100485] video4linux video0: vi capture release failed
[ 320.101831] ov9281 30-0060: ov9281_power_off: power off
Moreover, the order of nvcsi is not correct when i used commad media-ctl -p -d /dev/media0
, it shows
Media controller API version 0.1.0
Media device information
------------------------
driver tegra194-vi5
model NVIDIA Tegra Video Input Device
serial
bus info
hw revision 0x3
driver version 0.0.0
Device topology
- entity 1: 15a00000.nvcsi--6 (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
pad0: Sink
<- "ov9281 30-0060":0 [ENABLED]
pad1: Source
-> "vi-output, ov9281 30-0060":0 [ENABLED]
- entity 4: 15a00000.nvcsi--5 (2 pads, 0 link)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev1
pad0: Sink
pad1: Source
- entity 7: 15a00000.nvcsi--4 (2 pads, 0 link)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev2
pad0: Sink
pad1: Source
- entity 10: 15a00000.nvcsi--3 (2 pads, 0 link)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev3
pad0: Sink
pad1: Source
- entity 13: 15a00000.nvcsi--2 (2 pads, 0 link)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev4
pad0: Sink
pad1: Source
- entity 16: 15a00000.nvcsi--1 (2 pads, 0 link)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev5
pad0: Sink
pad1: Source
- entity 19: ov9281 30-0060 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev6
pad0: Source
[fmt:Y8_1X8/1280x800 field:none colorspace:srgb]
-> "15a00000.nvcsi--6":0 [ENABLED]
- entity 21: vi-output, ov9281 30-0060 (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "15a00000.nvcsi--6":1 [ENABLED]
thank you!