wfdCreateDevice failed on drive agx orin

The hardware is Drive AGX orin DevKit
The sdk version is drive os 6.0.4
When we run nvsipl_camera with ‘-d 1’ option, the program stopped and output an error message;
We use ‘-v 4’ option, and the error output message is:

nvsipl_camera: Creating consumer for output:1 of sensor:3

nvsipl_camera: Register with compositor for output:1 of sensor:3

nvsipl_camera: Compositor: Registered output:1 from link:3 of quad:0 as id:13

nvsipl_camera: Consumer initialization for output:1 of sensor:3

nvsipl_camera: Creating consumer for output:2 of sensor:3

nvsipl_camera: Register with compositor for output:2 of sensor:3

nvsipl_camera: Compositor: Registered output:2 from link:3 of quad:0 as id:14

nvsipl_camera: Consumer initialization for output:2 of sensor:3

nvsipl_camera: Creating consumer for output:3 of sensor:3

nvsipl_camera: Register with compositor for output:3 of sensor:3

nvsipl_camera: Compositor: Registered output:3 from link:3 of quad:0 as id:15

nvsipl_camera: Consumer initialization for output:3 of sensor:3

nvsipl_camera: GetPtpDeviceNode() selected /dev/ptp2

nvsipl_camera: Using PTP clock

nvsipl_camera: Initializing compositor

nvsipl_camera: ERROR: wfdCreateDevice failed

nvsipl_camera: ERROR: Unable to initialize IDisplayManager

nvsipl_camera: ERROR: Compositor: InitDisplay failed

nvsipl_camera: ERROR: Compositor initialization failed. status: 4

nvsipl_camera: Queue timeout

nvsipl_camera: Queue timeout

nvsipl_camera: Queue timeout

nvsipl_camera: ERROR: NvMedia2DGetComposeParameters failed. nvmStatus: 1

nvsipl_camera: ERROR: Compositor: Deinit failed

nvsipl_camera: ERROR: GetSyncObj failed. status: 10

nvsipl_camera: ERROR: Compositor: UnregisterNvSciSyncObjs failed

nvsipl_camera: ~CNvWfdResourcesCommon enter

nvsipl_camera: ~CNvWfdResourcesCommon exit


log.txt (34.7 KB)

It seems that the error is caused by ‘wfdCreateDevice’ function.
So can someone help us, thankyou!!!

Hi @ying.chen7
Please provide the complete command line of the log. Thanks.

The complete command line is:
./nvsipl_camera -c F008A120RM0A_CPHY_x4 --link-enable-masks “0x1000 0x0000 0x0000 0x0000” -d 1 -v 4

Dear @ying.chen7,
Please confirm the camera module and camera port number ? Could you check with sudo and confirm if it helps?

The camera module is F008A120RM0A, and if we run the command without ‘-d’ option, the result is ok:
sudo ./nvsipl_camera -c F008A120RM0A_CPHY_x4 --link-enable-masks “0x1000 0x0000 0x0000 0x0000” -v 4

Dear @ying.chen7,
Could you share the syslog as well when you hit this issue.

This is the syslog
syslog (3.9 MB)

I saw the below message in your syslog. Please try to run the command after killing the X server gdm process.

Sep 1 21:26:47 tegra-ubuntu nvsipl_camera: Module_id 0 Severity 2 : NvKms Backend failed to acquire required permissions.

Dear @ying.chen7,
Did you check Vick’s suggestion? Could you provide any update?

Sorry for reply so late,
we try to disable gdm service by command below:

systemctl disable gdm
systemctl stop gdm

and then run the nvsipl_camera like below:

nvidia@tegra-ubuntu:/opt/nvidia/drive-linux/samples/nvmedia/nvsipl/test/camera$ sudo ./nvsipl_camera -c F008A120RM0A_CPHY_x4 --link-enable-masks “0x0001 0x0000 0x0000 0x0000” -d 1
[sudo] password for nvidia:
Could not create NVCCP shared memory nvccpmutex
Couldn’t find enough connectors: 0 < 1
nvsipl_camera: ERROR: Unable to initialize IDisplayManager

nvsipl_camera: ERROR: Compositor: InitDisplay failed

nvsipl_camera: ERROR: Compositor initialization failed. status: 10

nvsipl_camera: ERROR: CompositeHelper: Could not get at least one output buffer

nvsipl_camera: ERROR: Compositor: Deinit failed

Closing of TACP shared memory handle failed nvccpmutex

and here is the syslog
syslog (197.4 KB)

Dear @ying.chen7,
Could you check Could not create NVCCP shared memory nvccpmutex ?

The board we use is : 940-63710-0010-D00
and we choose “p3710-10-s05” when flashing
and the problem remains