How to enable CSI0?

1.Detailed information is as follows:

ØCore board: Orin nano 4gb;

ØJetPack:5.1.5 ;

ØCarrier board: Customized boar d.

2.The detailed schematic diagram is as follows:

3.The problem is as follows: I am using CSI0 to connect to the camera IMX219-15PIN. After running the command (sudo Nvgstcapture-1.0), a black box appears without any image inside. So I would like to ask, what is the reason for this? Does the system need to open CS0 internally to use it?

What is the operation process? Could you provide some guidance.

I have already used IIC to locate the address, so the wiring should be fine.

Do you verify the sensor driver by v4l2-ctl?

Do you enable the sensor driver by jetson-io?

Hello:
The information you provided is extensive and disorganized, and much of it does not align with my actual situation.
for example

  1. The version number is different from my system, as shown below, it is JP-5.1.3.
    Could you please tell me the detailed steps? Or could you send some reference materials? Thank you very much.

Have a check this document for the sensor driver and device tree implement.

I tried modifying “dmesg | grep imx219” to view the logs, and the results are as follows.

Do I need to block another channel in doubl to correctly identify imx219?

Teacher:

I have previously debugged UART and SPI, and I found that once the device tree is changed, Jetson-IO fails to start. Is there any good way to avoid this?

Now you may modify the /boot/extlinux/extlinux.conf to remove the “FTD …” then reboot to try jetson-io again.

Hi @403199668 from your logs it looks like the driver has done probe to the sensor on I2C bus 9. Can you check if v4l2-ctl capture is working?

v4l2-ctl -d /dev/video0 –set-fmt-video=width=1920,height=1080,pixelformat=RG10 –stream-mmap -c sensor_mode=2 -c bypass_enable=0 -c override_enable=1 ---verbose 
You can also check dmesg while capturing with v4l2-ctl to see if there is any error showing.

Does nvgstcapture-1.0 stills shows dark image? also argus journal might provide some information while nvgstcapture-1.0 is running:

journalctl -u nvargus-daemon -f

Best regards,
Daniel Gonzalez
Embedded SW Engineer at RidgeRun
Contact us: support@ridgerun.com
Developers wiki: https://developer.ridgerun.com
Website: www.ridgerun.com

Okay, I’ll try it later. I have temporarily restored the device tree file.
Jetson-io has been launched.
Teacher, please guide me in debugging the camera.

Check the v4l2-ctl capture by below command. And check the kernel message by sudo dmesg

v4l2-ctl --stream-mmap -c bypass_mode=0

It froze after running, and remained stuck for a long time. The result is as follows:

This tell unable capturing frame data from the sensor.

Get the trace log to check.

sudo su
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 > trace.txt

After installing the system, I conducted the following tests on the customized development board. I hope these results are helpful for judgment:

1.“v4l2-ctl --stream-mmap -c clostlance_mode=0” :

root@lstd:~# v4l2-ctl --stream-mmap -c clostlance_mode=0

unknown control ‘clostlance_mod e’

2"root@lstd:~# dmesg | grep imx219 ":

“root@lstd:~# dmesg | grep imx219 ”,

[ 13.419031] imx219 9-0010: tegracam sensor driver:imx219_v 2.0.6

[ 13.467972] tegra-camrtc-capture-vi tegra-capture-vi: subdev imx219 9-0010 bound

[ 13.545765] imx219 10-0010: tegracam sensor driver:imx219 _v2.0.6

[ 13.560250] imx219 10-0010: imx219_board_setup: error during i2c read prob e (-121)

[ 13.577562] imx219 10-0010: board set up failed

[ 13.582242] imx219: probe of 10-0010 failed with error -121

r oot@lstd:~#

3.dmesg -w:

dmesg_test.log (60.2 KB)

You may have CTRL+C to break the v4l2-ctl before the system hang to collect the trace.

Also you may need to probe the sensor output signal to make sure the sensor output follow the MIPI spec.

I don’t think your judgment is correct. Looks like your are confuse with the i2c and CSI MIPI.

The i2c only for the sensor REG config and CSI receive MIPI data from the sensor.

You may consult with your HW designer for the detail and probe the MIPI output by scope.

Okay, I understand. What you said must be more accurate than mine. You are a professional.
In addition, I am the HW designer. I led the team to complete the schematic design of this board, PCB board drawing, MCU program writing, system configuration, and low-level program writing. I participated in every step of the process.
I have a better understanding of hardware than software. If you have any ideas, feel free to guide me directly.

Now you need to review probe by scope to make sure the camera HW is the same with devkit.

Okay, I’ll check it again. The schematic diagram is at the top of this post.
I repeatedly checked this schematic at the beginning of its design. The differential impedance values of the PCB were also tested by Jialichuang, and they are all within 10%.
Let me review it again.

Could you try connect to another connector to try?