V4l2 capture working but nvgstcapture not working

Hello All,
I have customised the IMX219 driver and device tree for my custom sensor.
I am able to get data through v4l2 but nvgstcapture is failing to work in jetson nano.
I used the same customised driver in NX its working properly.
I am attaching the argus log here.
Let me know what could have been gone wrong.

nvargus_log.txt (33.6 KB)

Hi,
Maybe sensor driver is not ready. Please try the command and see if it works:

$ gst-launch-1.0 nvarguscamerasrc ! fakesink

Hi @DaneLLL ,
I am facing the same issue if I use this pipeline “gst-launch-1.0 nvarguscamerasrc ! fakesink”
I am attaching the V4l2, argus and gst logs below.

argus_log.txt (31.6 KB)
nvgstcapture_log.txt (3.9 KB)
v4l2_log.txt (3.3 KB)

What do you mean by the driver is not ready ?? The same driver is working in v4l2.
The same the driver worked perfectly fine in Jetson NX (Both Nvgstcapture and v4l2).

Hi,
The programming of device tree can be slightly different for each release. Looks like some setting is not correct for Jetson Nano:

 (NvCamV4l2) Error ModuleNotPresent: V4L2Device not available (in /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function findDevice(), line 256)
(NvCamV4l2) Error ModuleNotPresent:  (propagating from /dvs/git/dirty/git-master_linux/camera/utils/nvcamv4l2/v4l2_device.cpp, function initialize(), line 60)
(NvOdmDevice) Error ModuleNotPresent:  (propagating from dvs/git/dirty/git-master_linux/camera-partner/imager/src/devices/V4L2SensorViCsi.cpp, function initialize(), line 107)
NvPclDriverInitializeData: Unable to initialize driver v4l2_sensor
NvPclInitializeDrivers: error: Failed to init camera sub module v4l2_sensor
NvPclStartPlatformDrivers: Failed to start module drivers
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f8c9890f0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f8c9333d0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f8c933460
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f8c96a9d0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f8c98a4e0
NvPclCloseModuleDrivers: deallocate/free overrides pathname @ 0x7f8c988060
NvPclStateControllerOpen: Failed ImagerGUID 0. (error 0xA000E)
NvPclStateControllerClose: Module porg_rear_RBPCV3 closed
NvPclOpen: PCL Open Failed. Error: 0xf
NvPclClose: ++++++++++++++++++++++
NvPclClose: ----------------------
NvPclOpen: ----------------------
SCF: Error BadParameter: Sensor could not be opened. (in src/services/capture/CaptureServiceDeviceSensor.cpp, function getSourceFromGuid(), line 582)
SCF: Error BadParameter:  (propagating from src/services/capture/CaptureService.cpp, function addSourceByGuid(), line 437)
SCF: Error BadParameter:  (propagating from src/api/CameraDriver.cpp, function addSourceByIndex(), line 305)
SCF: Error BadParameter:  (propagating from src/api/CameraDriver.cpp, function getSource(), line 471)
Acquiring SCF Camera device source via index 1 has failed.

Please check sensor driver programming guide

Hi @DaneLLL
I followed as per the sensor programming guide only Can you suggest where it would have gone wrong?

Hi,
By default RPi camera v2 is enabled. Seems like your camera is recognized as RPi camera v2. Please apply your device tree to overwrite RPi camera v2 and try again.

Remove all the sensor configure include your sensor device tree only to avoid overwrite problem.

https://docs.nvidia.com/jetson/archives/l4t-archived/l4t-3274/index.html#page/Tegra%20Linux%20Driver%20Package%20Development%20Guide/camera_sensor_prog.48.2.html#wwpID0E0XF0HA

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