Arducam imx519 on Orin NX: port 1 works, port 0 black screen in nvgstcapture

Hi everyone, I’ve got an Orin NX with two Arducam imx519 cameras connected, one on each CSI port. Port 1 gives me an image, but port 0 just stays black. I installed everything using the official Arducam GitHub install script. I’m wondering if the driver needs an update or if there’s a separate device tree module for dual/stereo imx519 setups? I couldn’t find anything obvious about a dual camera config.

Hi, thanks for posting this. Let’s work through it here so anyone else with the same setup can follow along. Can you share a bit more about the environment? Specifically which JetPack version you’re on, how exactly you ran the install (any flags), and what dmesg shows when the cameras probe. Also, can you confirm with v4l2 that both sensors actually enumerate as /dev/video nodes?

Sure. Environment: NVIDIA Orin NX, JetPack 5.1.3. Both cameras are Arducam imx519, installed from the Arducam GitHub script using -m imx519. After boot, v4l2 does detect both cameras on both ports. In dmesg I’m seeing: ‘imx519: no symbol version for module_layout’. When I run nvgstcapture with sensor-id=0, I only get a black screen and this error: nvbuf_utils: dmabuf_fd -1 mapped entry NOT found. sensor-id=1 works fine.

I also tried gst-launch-1.0 and got the same result: sensor0 doesn’t work, sensor1 does. When sensor0 fails I get: Nvbuf_utils: dmabuf_fd -1 mapped entry NOT found. There’s also something odd in dmesg right at boot: [ 0.002712] DTS F… but the line gets cut off in what I captured. I’ll try to pull more of that.

Thanks, that’s useful. The ‘no symbol version for module_layout’ message usually means the imx519 module was built against a different kernel than the one currently running, so that’s worth checking first. Combined with the dmabuf_fd error on sensor0 only, the likely areas are either that driver/kernel mismatch or the device tree setup for dual imx519 on that port. Could you run ‘lsmod | grep imx519’ and paste the dmesg lines around where the imx519 driver probes? It would also help to know whether the install script you used was validated against the 5.1.3 kernel or an earlier one.

One thing I’m suspicious about: the script/readme may only mention JetPack 5.1.2 support. I really need to stay on 5.1.3 though. Is there an official answer for 5.1.3, or should I just wait and see if someone in the community has hit the same thing?

Just checking in on this. To recap for anyone landing here: imx519 on Orin NX with dual cameras, sensor0 doesn’t work but sensor1 does. JetPack 5.1.3, installed from the ArduCam GitHub script with -m imx519. Both cameras are detected in v4l2, but nvgstcapture-1.0 and gst-launch-1.0 fail on sensor0 with: Nvbuf_utils: dmabuf_fd -1 mapped entry NOT found. dmesg shows: [ 0.002712] DTS F… and also ‘imx519: no symbol version for module_layout’. Is there any update on a fix?

No confirmed fix yet for this exact symptom on 5.1.3 with dual imx519, I’m afraid. Current conclusion: sensor1 is functional and sensor0 is not, and the two most likely culprits are the module_layout/kernel version mismatch in the imx519 module and the device tree configuration for the second CSI port. If you can share the full dmesg probe lines and the lsmod output, that will help narrow it down. In the meantime, if running a single camera is an option, using port 1 is the current workaround. I’ll update this thread once we pin down the root cause.