Hello,
I’m using a sensor imx297 on a Orin Nano, on the port CSI3. This is a MIPI sensor, single lane. The mclk is generated on the camera PCB side. The peak bandwidth is 1.2 Gbps.
I already ran it successfully on the Xavier. I suspect a device tree configuration problem.
I’m running with a custom driver, and I can confirm though probing that when I start an acquisition:
- the camera gets configured over I2C as expected
- the camera is streaming
When I run: v4l2-ctl --stream-mmap --stream-count=1 --stream-to=frame.raw
, the tracing gives me:
kworker/1:3-123 [001] .... 1717.850224: rtcpu_vinotify_event: tstamp:54287068871 cch:0 vi:1 tag:FS channel:0x00 frame:187 vi_tstamp:1737176028128 data:0x000000bb00000013
kworker/1:3-123 [001] .... 1717.850225: rtcpu_vinotify_event: tstamp:54287069119 cch:0 vi:1 tag:CHANSEL_NOMATCH channel:0x08 frame:187 vi_tstamp:1737176042688 data:0x0000000000000249
kworker/1:3-123 [001] .... 1717.850225: rtcpu_vinotify_event: tstamp:54287069395 cch:0 vi:1 tag:FE channel:0x00 frame:187 vi_tstamp:1737183997216 data:0x000000bb00000023
kworker/1:3-123 [001] .... 1717.850225: rtcpu_vinotify_error: tstamp:54287258958 cch:0 vi:1 tag:CHANSEL_NOMATCH channel:0x08 frame:188 vi_tstamp:1737192153632 data:0x0000000000000249
kworker/1:3-123 [001] .... 1717.906226: rtcpu_vinotify_event: tstamp:54287611510 cch:0 vi:1 tag:FS channel:0x00 frame:188 vi_tstamp:1737192139104 data:0x000000bc00000013
kworker/1:3-123 [001] .... 1717.906226: rtcpu_vinotify_event: tstamp:54287611795 cch:0 vi:1 tag:CHANSEL_NOMATCH channel:0x08 frame:188 vi_tstamp:1737192153632 data:0x0000000000000249
kworker/1:3-123 [001] .... 1717.906227: rtcpu_vinotify_event: tstamp:54287612039 cch:0 vi:1 tag:FE channel:0x00 frame:188 vi_tstamp:1737200108160 data:0x000000bc00000023
which I read as:
- no_match: 1
- CTYPE: 0x4 = LS
- DTYPE: 0x12, matching the metadata lines ID - 2 metadata lines are expected
And the kernel reports:
[ 61.708122] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 1, flags: 0, err_data 256
[ 61.724169] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 2, flags: 0, err_data 256
[ 61.740025] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 3, flags: 0, err_data 256
[ 61.756110] tegra-camrtc-capture-vi tegra-capture-vi: corr_err: discarding frame 4, flags: 0, err_data 256
Could you please give me some pointer about how to investigate further?
Please find attached:
- the relevant sections of the DTS file device_tree_extract.txt (6.7 KB)
- the kernel log kernel_trace.txt (57.6 KB)
And some extra debug info from media-ctl -p -d /dev/media0
Media controller API version 5.10.104
Media device information
------------------------
driver tegra-camrtc-ca
model NVIDIA Tegra Video Input Device
serial
bus info
hw revision 0x3
driver version 5.10.104
Device topology
- entity 1: 13e40000.host1x:nvcsi@15a00000- (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
pad0: Sink
<- "aev2_cam 10-001a":0 [ENABLED]
pad1: Source
-> "vi-output, aev2_cam 10-001a":0 [ENABLED]
- entity 4: aev2_cam 10-001a (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev1
pad0: Source
[fmt:SRGGB10_1X10/720x540 field:none colorspace:srgb]
-> "13e40000.host1x:nvcsi@15a00000-":0 [ENABLED]
- entity 6: vi-output, aev2_cam 10-001a (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "13e40000.host1x:nvcsi@15a00000-":1 [ENABLED]