ORIN NX适配Intel® RealSense™ D457 camera

我们使用ORIN NX的模组,在我们的自研载板上,使用MAX9296的解串器 + Intel® RealSense™ D457相机
使用L4T 36.2的版本
想要基于 GitHub - IntelRealSense/realsense_mipi_platform_driver: Intel® RealSense™ camera driver for GMSL* interface官方的补丁,修改来支持ORIN NX模组,很遗憾的是,我对于CSI的驱动开发不是很精通,
尝试修改过后,按照github上的README的方式操作之后,发现系统无法启动,看起来是设备树配置的有问题。
启动会报如下错误信息:

Jetson System firmware version 36.2.0-gcid-34956989 date 2023-11-30T18:35:35+00:
00
ESC   to enter Setup.
F11   to enter Boot Manager Menu.
Enter to continue boot.
**  WARNING: Test Key is used.  **

L4TLauncher: Attempting Direct Boot
L4T boot options
0: primary kernel
1: Custom Header Config: <CSI Jetson RealSense Camera D457>
Press 0-1 to boot selection within 3.0 seconds.
Press any other key to boot default (Option: 1)
L4TLauncher: Unable to boot via extlinux: Device Error
L4TLauncher: Attempting Kernel Boot
Failed to boot image: Device Error
Failed to boot kernel:0 partition
▒▒▒▒Shutdown state requested 1
Rebooting system ...
▒▒
[0000.063] I> MB1 (version: 1.4.0.1-t234-54845784-08e631ca)
[0000.069] I> t234-A01-1-Silicon (0x12347) Prod
[0000.073] I> Boot-mode : Coldboot
[0000.076] I> Entry timestamp: 0x00000000
[0000.080] I> last_boot_error: 0x0
[0000.083] I> BR-BCT: preprod_dev_sign: 0
[0000.087] I> rst_source: 0xb, rst_level: 0x1
[0000.091] I> Task: SE error check
[0000.094] I> Task: Bootchain select WAR set
[0000.098] I> Task: Enable SLCG
[0000.101] I> Task: CRC check
[0000.104] I> Task: Initialize MB2 params
[0000.108] I> MB2-params @ 0x40060000
[0000.111] I> Task: Crypto init
[0000.114] I> Task: Perform MB1 KAT tests
[0000.118] I> Task: NVRNG health check
[0000.122] I> NVRNG: Health check success
[0000.125] I> Task: MSS Bandwidth limiter settings for iGPU clients
[0000.131] I> Task: Enabling and initialization of Bandwidth limiter
[0000.138] I> No request to configure MBWT settings for any PC!
[0000.143] I> Task: Secure debug controls
[0000.147] I> Task: strap war set

跟github里面的内容相比,我只修改了设备树文件,下面是我修改的文件,由于上传的限制,将文件后缀改成了txt
tegra234-camera-d4xx-plink-overlay.txt (11.7 KB)

期待得到一定的帮助。

Hi,
r36.2 is not production release. Please upgrade to r36.4(Jetpack 6.1) for further development.

This is just a test, because intel officially provided a patch for version 36.2.

I updated to r36.4 version for testing and encountered the same content as in this post, which seems to be an I2C configuration problem.

Hi,
There are some related topics in AGX Orin FAQ:

Jetson AGX Orin FAQ

Please take a look and give it a try. Since the driver is from 3rdparty. Also suggest you consult with the vendor for further support.

Is there anything ORIN and ORIN NX say about camera related I2C? In the development documentation, I only saw a reference to ORIN.
Jetson Virtual Channel with GMSL Camera Framework — Jetson Linux Developer Guide documentation

Hi,
So it is MAX9296 connecting to the CSI port. For this please refer to sensor programming guide in developer guide:

Sensor Software Driver Programming — NVIDIA Jetson Linux Developer Guide 1 documentation

And some debug tips:

Jetson/l4t/Camera BringUp - eLinux.org

Finally, what is the relationship between cam_i2cmux and i2c@3180000 on ORIN NX?

Hi,
There is no much relation. You should check which I2C bus is used for the camera module on the hardware board, and modify device tree according to hardware. The I2C error indicates the device tree does not fit the hardware desfign.

Should the device tree node for p213 (CAM_I2C_SCL) and p215(CAM_I2C_SDA) of the core modules used in the hardware design be cam_i2cmux or i2c@3180000?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.