Nvbuf_utils: dmabuf_fd -1 mapped entry NOT found

Hi
I am trying to interface @leopard-zwc imx-728 with AGX xavier. The first time I connect it with jetson it works , but when I remove the camera and reconnect it , I get the following error.

nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadExecute:694 NvBufSurfaceFromFd Failed.
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, threadFunction:247 (propagating)

I need to reboot my jetson everytime , when I want to remove my camera and connect it again. Any knows how to solve this issue?

I use the following gstreamer pipeline

gst-launch-1.0 nvarguscamerasrc sensor-mode=0 ! 'video/x-raw(memory:NVMM), width=(int)3856, height=(int)2176,format=(string)NV12, framerate=(fraction)29/1' ! nvvidconv flip-method=0  ! nv3dsink

hello sundar2,

this may damage the hardware…
may I know what’s the real use-case to remove this camera module from the board?

We develop a custom chip , but when I try to interface the camera with our custom chip and jetson as a host it shows only a blank black screen. The connection is as follows imx-728 <=> D-PHYRX our chip <=> Base-T1 <=> D-PHYTX our chip <=> jetson ( as host)

hello sundar2,

you may try recompile the driver as Loadable Kernel Module (LKM).

Thanks , I heard from the leopard team that the reboot is necessary everytime as the probe function which consists of all i2c commands only runs at the boot up

hello sundar2,

if you make the sensor driver as Loadable Kernel Module (LKM).
you could use rmmod/insmod to reload the *.ko file to re-run the probe process.

Most of my drivers are provided by leopard camera , so I am not sure where they are exactly located . You have any clue where all the camera drivers are located?
Thanks

hello sundar2,

basically, sensor drivers were located at… $public_sources/kernel_src/kernel/nvidia/drivers/media/i2c/…
there’s kernel configuration file, Kconfig. To compile this driver as a module, choose the configuration as M.

please see-also developer guide for the steps, Loadable Kernel Module (LKM).
thanks

Thanks , will do that if any questions I will let you know.

I do not understand where is public_sources folder? is the name specific to the provider?

please visit Jetson Linux Archive | NVIDIA Developer page,
you should download [Driver Package (BSP) Sources] with the same release version, such as Jetson Linux 35.3.1 | NVIDIA Developer

Thank you so much

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