OrinAGX Devkit平台 IMX623 Sensor,使用 nvsipl 架构, 执行 nvsipl_camera 无法通过 抓到 raw图 FPS (FPS 为 0)

Jetpack 7.2.0
6.8.12-1021-tegra

R39 (release), REVISION: 2.0, GCID: 45755727, BOARD: generic, EABI: aarch64, DATE: Mon Jun 1 09:28:48 PM UTC 2026
KERNEL_VARIANT: oot
TARGET_USERSPACE_LIB_DIR=nvidia
TARGET_USERSPACE_LIB_DIR_PATH=usr/lib/aarch64-linux-gnu/nvidia

1、目前摄像头架构如下:
Orin Thor/AGX +(1*4 DPHY) + MAX96724GTN + 4MAX96717 + IMX728(6G)/IMX623(3G) RAW12 。
2、 目前在调试imx623的过程中发现无法出流。 其中已经能确认Sensor 已经出流, 解串器这里也能通过读取寄存器check到有流。
3、 使用nvsipl_camera 运行时 OrinAGX 无法通过nvsipl_camera 抓到 raw图 FPS (FPS 为 0)。

Jounnal_ctrl.log (54.6 KB)

nvsipl_camera.log (12.0 KB)

json_cfg.log (1.7 KB)

Trace.log (21.7 KB)

hello DKaiF,

it looks SIPL initializes the camera and starts capture, but no frame completes at VI.
the logs, NOTIF_WARN_ICP_CAPTURE_TIMEOUT, it means capture never delivers its first completed slice/frame.
BTW, trace has no frame-start/frame-end events.

let’s have issue narrow down,
for instance, can you give it a quick try to test with lower data-rate?

hello ZillaHou,

thanks for sharing logs.
per checking, it looks the selected transport is different with AGX Orin’s transportSettings.
it should be..
– I2C 8 with csi-ab
– I2C 2 with csi-ef
please update JSON file to have.. "i2cDevice": 8, if your adapter follow AGX Orin reference configuration.

我们使用了 “i2cDevice”: 8 但是打印i2c 报错了。

解串器是在i2c3 上的, 这里配置为 “i2cDevice”: 2, 寄存器序列能够正常下发

Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 5 : --------- END PIPELINE CONFIGURATION[%u][%u] --------- 3 0
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 5 : Initializing Camera HAL path
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 6 : [CameraHAL] DBUG: GmslDeserializerDevice.cpp:169: Probing device Deser_8
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 6 : [Deser_8] DBUG: MAX967XX.cpp:123: DBUG: MAX967XX.cpp:123: ProbeHardware called
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 2 : [Deser_8] ERROR: MAX967XX.hpp:47: [HSL] >> submit: check_presence
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 2 : [Deser_8] ERROR: LinuxI2CAccessDriver.cpp:254: Linux I2C: NACK on data, errno=121 (EREMOTEIO)
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 5 : [Deser_8]
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 5 : [Deser_8] +===================[ HSL FAILURE ]=========================+
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 5 : [Deser_8]
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 5 : [Deser_8]
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 5 : [Deser_8] Sequence: “check_presence” (operation 2/7)
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 5 : [Deser_8]
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 5 : [Deser_8] History:
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 5 : [Deser_8] ✓ Op 1: [Note] “Reading MAX96724 Device ID and Revision ID at address 46”
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 5 : [Deser_8] ✗ Op 2: ReadToMem 0x2
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 5 : [Deser_8] ╰─> HSL_I2C_ERROR_NACK
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 5 : [Deser_8]
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 5 : [Deser_8] 5 operations not executed
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 2 : [CameraHAL] ERROR: HardwareAccessImpl.cpp:252: Error processing HSL sequence check_presence
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 2 : [Deser_8] ERROR: MAX967XX.hpp:52 [HSL] !! FAIL check_presence type=HSL_I2C_ERROR_NACK addr=0x27 off=0xd val=0x0 exp=0xffff opIdx=0
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 2 : [Deser_8] ERROR: MAX96724.cpp:26: Device ID check failed
tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 2 : [CameraHAL] ERROR: GmslDeserializerDevice.cpp:177: Failed in probe()
Oct 14 22:16:58 tegra-ubuntu nvsipl_camera[6157]: [TID=6157] Module_id 30 Severity 2 : [Deser_8] ERROR: DeviceUtils.cpp:48: HSL I2C error: 1, address: 0x27, offset: 0xD, value: 0x0

hello DKaiF,

thanks for testing. The new logs show an I2C NACK while probing the MAX96724 on bus 8. Please restore i2cDevice=2, where the previous logs showed successful sensor identification and initialization.

the original zero-FPS issue remains unresolved. could you share the adapter’s CSI connector/pin mapping so we can verify whether csiPort="csi-ab" matches the physical connection.

hello DKaiF,

BTW, may I also know what’s your test pipeline?
did you testing with capture raw only, (i.e. -R)? or.. you’re also have ISP0/1/2 enabled?

你好, JerryChang,

目前没有打开ISP0/1/2, 只用 raw图进行预览 ,关于测试流程如下

sudo nvsipl_camera -t isx623_config.json -c R0SISX031_Thor_96724 -m ‘0001’ --enable-camera-hal -s -Z -012R -r 5000 -v 4

1、 我们自定义了 isx623_config.json 文件,使用上述命令 进行FPS 抓取。
2、 同步打开trace 文件, 抓取trace 日志
Clear:
echo > /sys/kernel/debug/tracing/trace

Enable:
echo 100000 > /sys/kernel/debug/tracing/buffer_size_kb
echo 1 > /sys/kernel/debug/tracing/tracing_on
echo 1 > /sys/kernel/debug/tracing/events/tegra_rtcpu/enable
echo 3 > /sys/kernel/debug/camrtc/log-level

Read:
cat /sys/kernel/debug/tracing/trace

3、 使用journalctl 抓取 nvsipl_camera 运行日志

hello DKaiF,

could you please also share the exactly hardware connections, it’s -m options to enable masks for links on each deserializer connected to CSI.

很抱歉,由于文件受限, 无法正常上传, 以下是示意图。当前使用Dphy, 后续会切换为CPhy,我们有两种配置 ,第一种接法法如下: max96712 是按照如下连接的,但是我们只启用了CSI_0 与 CSI_1 , CSI_2 CSI_3 只是硬件上有连接, 但是并未启用。max96712配置为2x4lan。

1、如果 接CSI_0 与 CSI_1 ,应该配置为csi-a 还是 csi-ab ?
2、这个如果8Lane全部配置,即 CSI_0 与 CSI_1 CSI_2 与 CSI_3 , 应该配置为csi-a 还是csi-ab ?

【 解串器端 (MAX96712) 】                             【 Jetson 端 (SoC) 】

 组1: 4-Lane 
 ---------------------------------------------------------------------
     CKA_P  ------------------------------->  CSI_0_CLK_P [5]
     CKA_N  ------------------------------->  CSI_0_CLK_N [5]
     DA0_P  ------------------------------->  CSI_0_D0_P [5]
     DA0_N  ------------------------------->  CSI_0_D0_N [5]
     DA1_P  ------------------------------->  CSI_0_D1_P [5]
     DA1_N  ------------------------------->  CSI_0_D1_N [5]

     CKC_P  ------------------------------->  CSI_1_CLK_P [5]
     CKC_N  ------------------------------->  CSI_1_CLK_N [5]
     DA2_P  ------------------------------->  CSI_1_D0_P [5]
     DA2_N  ------------------------------->  CSI_1_D0_N [5]
     DA3_P  ------------------------------->  CSI_1_D1_P [5]
     DA3_N  ------------------------------->  CSI_1_D1_N [5]
                                            

 组2: 4-Lane
 ---------------------------------------------------------------------
     CKB_P  ------------------------------->  CSI_2_CLK_P [5]
     CKB_N  ------------------------------->  CSI_2_CLK_N [5]
     DB0_P  ------------------------------->  CSI_2_D0_P [5]
     DB0_N  ------------------------------->  CSI_2_D0_N [5]
     DB1_P  ------------------------------->  CSI_2_D1_P [5]
     DB1_N  ------------------------------->  CSI_2_D1_N [5]
                                        
     CKF_P  ------------------------------->  CSI_3_CLK_P [5]
     CKF_N  ------------------------------->  CSI_3_CLK_N [5]
     DB2_P  ------------------------------->  CSI_3_D0_P [5]
     DB2_N  ------------------------------->  CSI_3_D0_N [5]
     DB3_P  ------------------------------->  CSI_3_D1_P [5]
     DB3_N  ------------------------------->  CSI_3_D1_N [5]
                                          

第二种接法如下: 有两个max96724 接8个摄像头,我理解应该配置为 csi-ab, 这个理解是否正确?

【 解串器端 (MAX96724) 】                             【 Jetson 端 (SoC) 】

 组1: 4-Lane 
 ---------------------------------------------------------------------
     CKA_P  ------------------------------->  CSI_0_CLK_P [5]
     CKA_N  ------------------------------->  CSI_0_CLK_N [5]
     DA0_P  ------------------------------->  CSI_0_D0_P [5]
     DA0_N  ------------------------------->  CSI_0_D0_N [5]
     DA1_P  ------------------------------->  CSI_0_D1_P [5]
     DA1_N  ------------------------------->  CSI_0_D1_N [5]


     DA2_P  ------------------------------->  CSI_1_D0_P [5]
     DA2_N  ------------------------------->  CSI_1_D0_N [5]
     DA3_P  ------------------------------->  CSI_1_D1_P [5]
     DA3_N  ------------------------------->  CSI_1_D1_N [5]
                                            

 组2: 4-Lane
 ---------------------------------------------------------------------
     CKB_P  
     CKB_N 
     DB0_P 
     DB0_N 
     DB1_P
     DB1_N 
                                        
     CKF_P  
     CKF_N
     DB2_P 
     DB2_N 
     DB3_P
     DB3_N
                                          

如下配置是否应该配置为 csi-cd, 该理解是否正确?

【 解串器端 (MAX96724) 】                             【 Jetson 端 (SoC) 】

 组1: 4-Lane 
 ---------------------------------------------------------------------
     CKA_P  ------------------------------->  CSI_2_CLK_P [5]
     CKA_N  ------------------------------->  CSI_2_CLK_N [5]
     DA0_P  ------------------------------->  CSI_2_D0_P [5]
     DA0_N  ------------------------------->  CSI_2_D0_N [5]
     DA1_P  ------------------------------->  CSI_2_D1_P [5]
     DA1_N  ------------------------------->  CSI_2_D1_N [5]

     DA2_P  ------------------------------->  CSI_3_D0_P [5]
     DA2_N  ------------------------------->  CSI_3_D0_N [5]
     DA3_P  ------------------------------->  CSI_3_D1_P [5]
     DA3_N  ------------------------------->  CSI_3_D1_N [5]
                                            

 组2: 4-Lane
 ---------------------------------------------------------------------
     CKB_P  
     CKB_N 
     DB0_P 
     DB0_N 
     DB1_P
     DB1_N 
                                        
     CKF_P  
     CKF_N
     DB2_P 
     DB2_N 
     DB3_P
     DB3_N
                                          

hello DKaiF,

I don’t know what’s that [5] means, but the signal connections looks correct.
you should double check the board schematic for the pin numbers.

for the 1st four-lane connections, you should use csi-ab.

one CSI brick can support up-to 4-lane configuration.
you should have two independent four-lane interfaces to achieve 8-lane, such as csi-ab + csi-cd.

HI JerryChang

这里使用了csi-a 配置 max96712 使用了4x2模式, 能够抓到帧了,但只能能抓到几帧到几百帧就会报错,此时通过如下命令在显示器端看到视频流, 但不能稳定运行。还请帮忙看下是什么原因

操作命令如下:

sudo systemctl stop gdm

sudo -E DISPLAY=:1 nvsipl_camera -t byd_24339_96712_623.json -c R0SIM623_Thor_96724 -m ‘0001’ --enable-camera-hal -Z -012R -r 5000 -v 4 -d 1

journal_ctl.log (75.9 KB)
trace.log (22.8 MB)
nvsipl_camera_run.log (21.0 KB)

但最终我们的目的是为了配置为max96712 2x4 模式 ,但是这个模式下,无法抓到帧, 这个问题我后续会给出相关log

Hello JerryChang,
这里我还有一个问题, 在sipl框架下配置是否需要修改dts相关配置, 我从SIPL 相关简介中,并未看到有关设备树配置相关的资料说明。我不确定当前问题,是否与设备树没有正确配置有关。

hello DKaiF,

here’re failures,
PHY_INTR0: 0x0e000000, it shows deskew-calibration errors on both lanes and controller.
PHY_INTR0: 0x44, means start-of-transmission multi-bit errors on both data lanes.
STREAM_VC: 0x04, STREAM_NOVC: 0x01, indicate payload CRC and packet-header multi-bit ECC errors.

it could be.. PHY timing, lane configuration, and signal integrity.
let’s give it a try to test a supported lower CSI output rate below 1.5 Gbps/lane, keeping transmitter and receiver settings matched and sufficient bandwidth.

device tree is not necessary, you’ll need to configure all of platform settings in the JSON file.
if that’s possible, please also share byd_24339_96712_623.json for cross checking.

Hi, JerryChang 当前json配置如下

sudo -E DISPLAY=:1 nvsipl_camera -t byd_24339_96712_623.json -c R0SIM623_AGX_96712 -m ‘0001’ --enable-camera-hal -Z -012R -r 5000 -v 4 -d 1

{
  "platformTransportSettings": [
    {
      "name": "jetson-AGX-96724",
      "description": "AGX custom - IMX623 on MAX96712 bus3",
      "boardIdPrefix": "p3960",
      "enableMasks": ["0x1"],
      "transportSettings": [
        {
          "name": "thor_96712_t0",
          "type": "GMSL",
          "description": "GMSL transport - MAX96712 @i2c3 0x29 csi-ab",
          "csiPort": "csi-a",
          "phyMode": "dphy",
          "deserInfo": { "name": "Max96712GmslDeserializer", "i2cAddress": "0x29" },
          "i2cDevice": 3,
          "desI2CPort": 0,
          "groupInitProg": true
        }
      ]
    }
  ],
  "cameraConfigs": [
    {
      "name": "R0SIM623_AGX_96712",
      "type": "GMSL",
      "moduleDriverName": "R0SIM623S5RU1197NB3",
      "description": "IMX623 via MAX96717F on MAX96712 (external power)",
      "transportId": 0,
      "linkIndex": 0,
      "serInfo": { "name": "MAX96717F", "i2cAddress": "0x40" },
      "linkMode": "LINK_MODE_GMSL2_3GBPS",
      "fsyncMode": "osc_manual",
      "mipiSettings": { "dphyRate": 1500000, "phyMode": "dphy" },
      "sensorInfo": [
        {
          "name": "IMX623",
          "i2cAddress": "0x1a",
          "numContext": 1,
          "virtualChannels": [
            {
              "cfa": "rggb",
              "inputFormat": "raw12",
              "width": 1920,
              "height": 1536,
              "fps": 30.0,
              // "embeddedTopLines": 1,
              //"embeddedBottomLines": 22,
              "isEmbeddedDataTypeEnabled": false
            }
          ]
        }
      ]
    }
  ]
}

hello DKaiF,

did you have embedded data disabled? current SIPL pipeline doesn’t support with zero embedded data lines.
here’s minor artifact, it’s better to revise boardIdPrefix to Jetson AGX Orin to address platform matching failed.

let’s have issue narrow down,
firstly, please have raw dumps only, and adding -s for FPS logging.
for instance,
nvsipl_camera -t byd_24339_96712_623.json -c R0SIM623_AGX_96712 -m "0x0001" --enable-camera-hal -Z -s -R -012 -r 5000

once you confirm raw dumps matches to your sensor’s output frame-rate,
you may further to enable ISP and preview rendering to have confirmation, you can using ISP0 to have quick test.
nvsipl_camera -t byd_24339_96712_623.json -c R0SIM623_AGX_96712 -m "0x0001" --enable-camera-hal -Z -s -12 -r 5000 --egl-display

非常感谢分析, 经过测试发现是我们解串器寄存器序列配置有些错误, 重新配置了解串器序列,目前2路摄像头能够正常工作。

但是我们又遇到了新的问题,由于imx728为4k@30fps摄像头,每个摄像头占用带宽比较大,仅仅使用csi-ab该4lane 无法同时接入4路摄像头输入,所以我们想配置为csi-ab 和csi-cd 共8lane共同接入。

其中解串器配置为(2x4模式),其中解串器PHYA对应OrinAGX csi-ab, PHYB接csi-cd,这里SIPL框架下,Json文件 该如何配置呢

hello DKaiF,

thanks for status update, it’s suggest to file a new discussion thread for following up issue.
“one MAX96724 routing four IMX728 cameras across two outputs.”