I am attempting to bring up an IMX412 sensor on devkit. While I2C communication seems to work perfectly, I cannot get any video stream.
Sensor: IMX412 (4-lane MIPI configuration).
I2C Communication: Successful. I can write 231 registers and verify 0x0100 is 0x01
Driver: i use driver linux-jammy-nvidia-tegra/drivers/media/i2c/imx412.c at oe4t-patches-l4t-r36.4.4-1012.12 · OE4T/linux-jammy-nvidia-tegra · GitHub and i just modify a little
Streaming Failure: Both v4l2 and GStreamer result in a 2500ms timeout
Error Logs:
tegra-camrtc-capture-vi tegra-capture-vi: uncorr_err: request timed out after 2500 ms tegra-camrtc-capture-vi tegra-capture-vi: err_rec: attempting to reset the capture channel
Do you review the device tree config for the connection like port-index/bus-width?
Thanks
i’m set
port-index = <0>;
bus-width = <4>;
data-lanes = <0 1 2 3>;
media-ctl -p like:
root@orusL:/sys/firmware/devicetree/base# media-ctl -p
Media controller API version 5.15.148
Media device information
------------------------
driver tegra-camrtc-ca
model NVIDIA Tegra Video Input Device
serial
bus info
hw revision 0x3
driver version 5.15.148
Device topology
- entity 1: 13e00000.host1x:nvcsi@15a00000- (2 pads, 2 links, 0 routes)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
pad0: Sink
<- "imx412 9-001a":0 [ENABLED]
pad1: Source
-> "vi-output, imx412 9-001a":0 [ENABLED]
- entity 4: imx412 9-001a (1 pad, 1 link, 0 routes)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev1
pad0: Source
[stream:0 fmt:SRGGB10_1X10/4056x3040 field:none colorspace:raw xfer:none]
-> "13e00000.host1x:nvcsi@15a00000-":0 [ENABLED]
- entity 6: vi-output, imx412 9-001a (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "13e00000.host1x:nvcsi@15a00000-":1 [ENABLED]
root@orusL:/sys/firmware/devicetree/base#
i was test with slot cam0 and cam1 on jetson
Get the daemon log.
sudo su
modprobe rtcpu_debug
echo 1 > /sys/kernel/debug/tracing/tracing_on
echo 30720 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
echo 1 > /sys/kernel/debug/tracing/events/freertos/enable
echo 3 > /sys/kernel/debug/camrtc/log-level
echo 1 > /sys/kernel/debug/tracing/events/camera_common/enable
echo > /sys/kernel/debug/tracing/trace
v4l2-ctl --stream-mmap -c bypass_mode=0
cat /sys/kernel/debug/tracing/trace
Please find my log below
log.txt (8.6 KB)
Looks like doesn’t receive any data from the sensor.
It could be the HW or incorrect port-index.
Could this issue be related to the clock configuration or another cause? I have already tried port-index 0 and 2, as well as tegra-sinterface a and c, but the problem persists
You need to make sure the HW connection to config the port-index.