DRIVE OS Version:
Platform
- NVIDIA DRIVE AGX Thor P3960
- DRIVE OS 7.2.5
- Target OS: Ubuntu 24.04.4 LTS
- Kernel:
6.8.12-rt-tegra - Camera: OX03H10-EXAE-BA0C, 3 MP
- Deserializer: MAX96724
- DriveWorks: 7.2 (
libdw_sensors_std.so.7.2)
Error String: Provide error text encountered during your run
Issue Description:
Issue
We are trying to initialize an OX03H10 camera from DriveWorks using camera.gmsl.
The physical camera and NvSIPL configuration work correctly. For example, on CSI-AB/link 0:
NVSipl Command:
sudo ./nvsipl_camera \
-c OX03H10-EXAE-BA0C_MAX96724_CPHY_x4 \
–link-enable-masks ‘0x1000 0x0000 0x0000’ \
–disableISP0Output \
–disableISP1Output \
–disableISP2Output \
–enableRawOutput \
–showfps \
–runfor 5 \
-v2
The camera initializes and streams at approximately:
Sensor3_Out0 Frame rate: 29.9991 fps
We have also successfully tested four OX03H10 cameras simultaneously with NvSIPL using both the x2 and x4 platform configurations. All four stream at approximately 30 FPS with zero frame drops.
However, the equivalent DriveWorks rig fails.
Rig.json:
{
“name”: “camera:front:rooftop:left”,
“parameter”: “camera-name=OX03H10-EXAE-BA0C_MAX96724,interface=csi-ab,CPHY-mode=1,link=0,output-format=processed,async-record=1,file-buffer-size=16777216,skip-eeprom=1,nito-file=/usr/share/camera/OX03H10-EXAE-BA0C.nito”,
“protocol”: “camera.gmsl”
}
Previously on DriveOS 7.0.3, the below rig worked on the thor:
{
"rig": { "sensors": \[ { "name": "camera:front:center:ox03h10", "nominalSensor2Rig_FLU": { "roll-pitch-yaw": \[ 0.0, 0.0, 0.0 \], "t": \[ 1.8621, -0.1939, 1.3165 \] }, "parameter": "camera-name=OX03H10-EXAE-BA0C_R1E_H,deserializer=MAX96712_Fusa_nv,disable-custintf=1,groupInit=1,interface=csi-ef,CPHY-mode=1,link=2,output-format=processed,skip-eeprom=1,async-record=1,file-buffer-size=16777216", "properties": { "Model": "pinhole", "width": "3840", "height": "2160", "cx": "1920", "cy": "1080", "fx": "2000", "fy": "2000", "k1": "0.0", "k2": "0.0", "k3": "0.0", "polynomial-type": "backward" }, "protocol": "camera.gmsl" } \], "vehicle": { "valid": false } }, "version": 6}
Testing Command:
sudo /usr/local/driveworks/tools/sensors/sensor_initializer \
–rig=/opt/sw-constr/Configs/Rig/rig_3mp_csi_ab_link0.json \
–offscreen=1
DriveWorks correctly identifies:
- Platform: Detected Drive Thor P3960
- devBlock: 0 Passive = 0
- Interface = csi-ab
- Camera_name = OX03H10-EXAE-BA0C_MAX96724_CPHY_x4
- Link = 0
- Found matching DeviceBlock with csiPort: 2
but then fails:
CameraMaster::parseCSIPortMapInfo failed to read deserializer Tx port number from device tree, error No such file or directory
CameraMaster::parseCSIPortMapInfo setting default deserializer Tx port to : 4294967295
Driveworks exception thrown:
Bad access of safety result (underflow error)
Finally:
DW_FAILURE executing DW function:
dwSensorManager_initializeFromRig(…)
Device-tree investigation
The DriveWorks library references:
/deserializer/des_tx_port
/deserializer/des_i2c_port
/deserializer/cphy_rate_x2
/deserializer/cphy_rate_x4
/tegra/csi-port
The live P3960 device tree contains multiple sipl_devblk_* nodes. We found des_tx_port present only for two blocks:
sipl_devblk_0:
i2c-bus = 0
csi-port = 3
des_tx_port = 0
sipl_devblk_9:
i2c-bus = 9
csi-port = 2
des_tx_port = 1
while it is absent from:
- sipl_devblk_1
- sipl_devblk_3
- sipl_devblk_7
- sipl_devblk_12
For CSI-AB, DriveWorks reports:
- Found matching DeviceBlock with csiPort: 2
- but nevertheless fails to read
des_tx_port.
Questions:
- Is this a known DRIVE OS 7.2.5 / P3960 DriveWorks device-tree issue?
- What is the expected
sipl_devblk/des_tx_portconfiguration for MAX96724 on CSI-AB and CSI-GH? - What changes to my rig file should i do to make my 3MP camera run on thor in 7.2.5?
- why does it work for driveOS 7.0.3 but fail for 7.2.5 ?