Nvsipl camera failed

Please provide the following info (check/uncheck the boxes after creating this topic):
Software Version
DRIVE OS Linux 5.2.6
DRIVE OS Linux 5.2.6 and DriveWorks 4.0
DRIVE OS Linux 5.2.0
DRIVE OS Linux 5.2.0 and DriveWorks 3.5
NVIDIA DRIVE™ Software 10.0 (Linux)
NVIDIA DRIVE™ Software 9.0 (Linux)
other DRIVE OS version
other

Target Operating System
Linux
QNX
other

Hardware Platform
NVIDIA DRIVE™ AGX Xavier DevKit (E3550)
NVIDIA DRIVE™ AGX Pegasus DevKit (E3550)
other

SDK Manager Version
1.9.1.10844
other

Host Machine Version
native Ubuntu 18.04
other

Hello,
When i try to run the nvsipl sample camera within the target, I run into this error

nvidia@tegra-ubuntu:~/drive-t186ref-linux/samples/nvmedia/nvsipl/test/sample$ ./nvsipl_sample 
MAX96712: Revision 2 detected
Module_id 30 Severity 2 : src/devblk/nonfusa/devices/MAX96712DeserializerDriver/cdi_max96712.c 2326
Module_id 30 Severity 2 : MAX96712: GMSL1 config link lock not detected 0 50
Module_id 30 Severity 2 : src/devblk/nonfusa/cameramodule/MAX96712cameramodule/CNvMTransportLink_Max96712_96705.cpp 268
Module_id 30 Severity 2 : MAX96705: MAX96712CheckLink(CDI_MAX96712_GMSL1_CONFIG_LINK_LOCK) failed with NvMedia error 7
Module_id 30 Severity 2 : src/devblk/nonfusa/cameramodule/MAX96712cameramodule/CNvMTransportLink_Max96712_96705.cpp 399
Module_id 30 Severity 2 : MAX96705: SetupConfigLink failed with SIPL error 127
Module_id 30 Severity 2 : src/devblk/nonfusa/cameramodule/MAX96712cameramodule/CNvMMAX96712CameraModule.cpp 89
Module_id 30 Severity 2 : MAX96712: TransportLink Init failed with SIPL error 127
Module_id 30 Severity 2 : src/devblk/common/core/CNvMDeviceBlock.cpp 711
Module_id 30 Severity 2 : Init failed for module on link 0
DEVBLK_WORKER_0: /dvs/git/dirty/git-master_linux/camera/fusa/sipl/src/core/CNvMDeviceBlockMgr.cpp: 435: ThreadFunc: Device block init failed(7f)
Module_id 30 Severity 2 : src/core/CNvMDeviceBlockMgr.cpp 144
Module_id 30 Severity 2 : Device block action failed for block (action, block) 10
Module_id 30 Severity 2 : src/core/CNvMDeviceBlockMgr.cpp 180
Module_id 30 Severity 2 : Failed to initialize device blocks

nvsipl_sample: /dvs/git/dirty/git-master_linux/camera/fusa/sipl/src/core/CNvMCamera.cpp: 436: Init: DeviceBlock manager init failed
nvsipl_sample: ERROR: INvSIPLCamera::Init() failed, status: 127

nvsipl_sample: /dvs/git/dirty/git-master_linux/camera/fusa/sipl/src/core/pipelineMgr/spmgr/pipeline/CNvMSensorPipeline.cpp: 705: Deinit: Deinit() call in wrong state
nvsipl_sample: /dvs/git/dirty/git-master_linux/camera/fusa/sipl/src/core/CNvMCamera.cpp: 994: DeinitPipelines: Pipeline deinit failed for pipeline:0
nvsipl_sample: /dvs/git/dirty/git-master_linux/camera/fusa/sipl/src/core/CNvMCamera.cpp: 49: ~CNvMCamera: CNvMCamera object fails to deinit
nvsipl_sample: ERROR: Unexpected output type

nvsipl_sample: ERROR: Unexpected output type

nvsipl_sample: ERROR: Unexpected output type

I also ran this command for the camera based on the documentation provided in the link

https://docs.nvidia.com/drive/drive-os-5.2.6.0L/drive-os/index.html#page/DRIVE_OS_Linux_SDK_NGC_Development_Guide/NvMedia/nvmedia_nvsipl_camera.html#wwpID0E0WB0HA

Here also I encounter the following error

nvidia@tegra-ubuntu:~/drive-t186ref-linux/samples/nvmedia/nvsipl/test/camera$ ./nvsipl_camera --platform-config "F008A120RM0A_CPHY_x4" --link-enable-masks "0x0001 0x0000 0x0000 0x0000" --showfps -d 0 -w 1
nvsipl_camera: ERROR: ModeSetCrtc failed for mode index 0

nvsipl_camera: ERROR: Unable to get EGLOutput layer

nvsipl_camera: ERROR: Compositor: InitDisplay failed

nvsipl_camera: ERROR: Compositor initialization failed. status: 127

Could you please kindly explain the reason for this issue?

Best regards,
Roshan

Thank you for reaching out and providing the details of the error you encountered while running the nvsipl_sample and nvsipl_camera applications. I recommend searching the forum as a first step when facing issues, as it can often provide valuable insights and solutions from the community.

For the specific errors you mentioned, I suggest referring to the following forum topics that discuss similar problems:

Hello,

As per one of the suggestions, I tried without the -d flag and I obtain output,

nvidia@tegra-ubuntu:~/drive-t186ref-linux/samples/nvmedia/nvsipl/test/camera$ ./nvsipl_camera --platform-config "F008A120RM0A_CPHY_x4" --link-enable-masks "0x0001 0x0000 0x0000 0x0000" --showfps -w 1
MAX96712: Revision 2 detected
MAX96712 Rev 2: Link 0: Tx amplitude 0x28, 0x68, 0xb3, 0x72, 0xd2
MAX96712 Rev 2 manual adaptation on the link 0 (31)
MAX9295: Revision 8 detected!
Sensor AR0820 GRBG Rev 2.1 detected!
Module_id 22 Severity 6 : NvMediaICPCreateEx 76
Module_id 22 Severity 6 : T19x VI version  0x000019
nvsipl_camera: Opened NITO file for module "F008A120RM0A", file name: "/opt/nvidia/nvmedia/nit/F008A120RM0A.nito"
Enter 'les' followed by sensor ID to enable LED
Enter 'lds' followed by sensor ID to disable LED
Enter 'dl' followed by sensor ID to disable the link
Enter 'el' followed by sensor ID to enable the link without module reset
Enter 'elr' followed by sensor ID to enable the link with module reset
Enter 'q' to quit the application
-
Output
Sensor0_Out1    Frame rate (fps):        28.9983
Sensor0_Out2    Frame rate (fps):        28.9983

Output
Sensor0_Out1    Frame rate (fps):        29.9981
Sensor0_Out2    Frame rate (fps):        29.9981

Output
Sensor0_Out1    Frame rate (fps):        29.9983
Sensor0_Out2    Frame rate (fps):        29.9983

Output
Sensor0_Out1    Frame rate (fps):        29.9981
Sensor0_Out2    Frame rate (fps):        29.9981

Output
Sensor0_Out1    Frame rate (fps):        29.9981
Sensor0_Out2    Frame rate (fps):        29.9981

Output
Sensor0_Out1    Frame rate (fps):        29.9982
Sensor0_Out2    Frame rate (fps):        29.9982

Could you please let me know what could be the reason for this issue?

Our design allows for only one graphics process (one graphics app) to run at a time. Therefore, running two graphics apps simultaneously is not supported.

To resolve this issue, please follow To run the sample applications and disable any conflicting processes to use the ‘-d’ option. This will ensure that only one graphics app is running at a time, allowing for proper operation.

Hello,

I found the solution,

After I sudo pkill X, it works

nvidia@tegra-ubuntu:~/drive-t186ref-linux/samples/nvmedia/nvsipl/test/camera$ sudo pkill X
nvidia@tegra-ubuntu:~/drive-t186ref-linux/samples/nvmedia/nvsipl/test/camera$ ./nvsipl_camera --platform-config "F008A120RM0A_CPHY_x4" --link-enable-masks "0x0001 0x0000 0x0000 0x0000" --showfps -d 0 -w 1 
MAX96712: Revision 2 detected
MAX96712 Rev 2: Link 0: Tx amplitude 0x28, 0x68, 0xb3, 0x72, 0xd2
MAX96712 Rev 2 manual adaptation on the link 0 (31)
MAX9295: Revision 8 detected!
Sensor AR0820 GRBG Rev 2.1 detected!
Module_id 22 Severity 6 : NvMediaICPCreateEx 76
Module_id 22 Severity 6 : T19x VI version  0x000019
nvsipl_camera: Opened NITO file for module "F008A120RM0A", file name: "/opt/nvidia/nvmedia/nit/F008A120RM0A.nito" 
Enter 'ld' to list display-able outputs.
Enter 'e' followed by 'ID' to enable display for specific camera group
Enter 'les' followed by sensor ID to enable LED
Enter 'lds' followed by sensor ID to disable LED
Enter 'dl' followed by sensor ID to disable the link
Enter 'el' followed by sensor ID to enable the link without module reset
Enter 'elr' followed by sensor ID to enable the link with module reset
Enter 'q' to quit the application
-
Output
Sensor0_Out1	Frame rate (fps):		28.9982
Sensor0_Out2	Frame rate (fps):		28.9982

Output
Sensor0_Out1	Frame rate (fps):		29.9982
Sensor0_Out2	Frame rate (fps):		29.9982

^COutput
Sensor0_Out1	Frame rate (fps):		29.9965
Sensor0_Out2	Frame rate (fps):		29.9965

SUCCESS

In order to get back the display on my monitor, I just run sudo systemctl restart gdm3

Thanks for the help and the explanation

Best regards,
Roshan

I’m glad to hear that the solution provided worked for you!

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