IMX519 dual camera on Orin NX: sensor0 not working in nvgstcapture while sensor1 works

Hi all, hoping someone here has seen this. I’ve got an IMX519 dual camera setup on a Jetson Orin NX and I’m stuck: both cameras are detected in v4l2 after install, but only the camera on sensor1 actually works. sensor0 shows up but nvgstcapture-1.0 and gst-launch-1.0 both fail when I try to use it. The error I get when sensor0 crashes is:

Nvbuf_utils: dmabuf_fd -1 mapped entry NOT found

For context I’m using a third-party carrier board, in case that matters. Any pointers?

Thanks for the details. Could you share your JetPack version, how you installed the IMX519 drivers, and confirm which ports the two cameras are on? Also, if you can paste the full terminal output from a failed sensor0 run and any related dmesg lines, that’ll help narrow things down.

Sure. It’s JetPack 5.1.3 on the Orin NX. I installed using the ArduCam GitHub process with -m imx519. The two cameras are on the sensor0 and sensor1 ports. On sensor0 I get that Nvbuf_utils dmabuf_fd -1 mapped entry NOT found error when it crashes. dmesg shows something like:

[ 0.002712] DTS F…

…which looks device-tree related. Same commands work fine on sensor1.

From what you’ve described, the failure is isolated to sensor0 (sensor1 works), with ‘dmabuf_fd -1 mapped entry NOT found’ appearing when sensor0 crashes. One important caveat: since this is a third-party carrier board, we can’t verify or promise normal operation of the IMX519 module on it. The board vendor isn’t an Arducam partner either, so we can’t check compatibility with them directly.

That said, I’d like to take a closer look at what’s happening on sensor0. I can arrange a remote session to check the live failure if you’re open to that.

Remote would be great, yes. Let me know how to set it up on the device.

I’ve sent you the remote support details in a private message. Please check your messages, enable it on the device, and let me know when it’s ready so we can connect.

I’ve enabled the remote access per your message. In the meantime I’m also going to keep digging on my own and look for any publicly available code to make the dual camera work.

Quick heads-up on the driver side: the IMX519 driver source code for the Jetson Orin NX isn’t publicly available. It’s restricted and requires an NDA. If you want the source to debug this yourself, you’d need to request it from the Arducam sales team at [email protected]. After signing the NDA they can send the IMX519 driver source for the Orin NX.

Honestly a bit confused by that. The IMX519 code is already publicly available in the Raspberry Pi kernel, so why is the Orin NX version under NDA? I also found this repo that looks similar and usable:

I need the source code / device tree for the IMX519 to get dual camera working, either as a kernel module or embedded in the kernel. Is that repo not the same driver?

Just to clarify: that GitHub repo targets the AK7375 focuser variant, so it isn’t a drop-in for the Orin NX driver that the install script pulls in. The Orin NX driver source itself is still under NDA and available through the sales team at [email protected].

So where we’ve landed: sensor1 works, sensor0 fails with ‘Nvbuf_utils: dmabuf_fd -1 mapped entry NOT found’, and compatibility with your third-party carrier board can’t be verified on our side. There’s no direct fix for sensor0 yet. The two open paths are requesting the NDA’d driver source from sales if you want to modify the driver/device tree for your board, or experimenting with that public IMX519 repo you found to see if it gets you anywhere.