No camera image from /dev/video0 with GStreamer on Jetson Xavier NX and Arducam B0397

Hi everyone. I have an Arducam B0397 camera array on a Jetson Xavier NX Developer Kit. Jetpack 5.0.2 (also tried 5.2), kernel 5.10.104-tegra-35.1.0-20220810203728. I can’t get a camera image from /dev/video0 with gstreamer or any other program. The camera has never worked properly since I got it. I’ve been following the Arducam IMX477 guide at Quick start - Arducam Wiki

Dion here from Arducam support. Have you referred to the camera driver installation documentation for the IMX477? That page covers the driver setup for the multi-camera array, and the B0397 specifically needs the dual IMX477 configuration.

Yes, I’ve been going through that page. I configured the board with the jetson-io.py script, and I noticed the video0 node only shows up when I select ‘imx477 dual’. I’ve also tried different modes of the Arducam HAT using the i2cset command, but it never gives me a working image.

That video0 behavior is actually a strong clue. For the B0397 array, the device only appearing with ‘imx477 dual’ selected suggests the dual IMX477 driver config is required. Can you paste the exact output you get when you try to open the camera with gstreamer?

Sure. Gstreamer fails with these errors:
nvbuf_utils: dmabuf_fd -1 mapped entry NOT found
[…]threadExecute:694 NvBufSurfaceFromFd failed

Also, when I run the driver installer from the guide, it stops with: ‘Cannot find the corresponding deb package, please send the following information to support.’ So I don’t think the driver is actually installed.

Those gstreamer errors point to a buffer/fd mapping failure - that usually happens when the camera driver isn’t set up correctly or the wrong mode is selected. And the installer message about not finding the deb package means the driver package for your Jetpack version isn’t being detected. Please follow the official Arducam IMX477 camera driver installation guide step by step: Quick start - Arducam Wiki

Thanks. Just so I’m clear, should I keep the board on ‘imx477 dual’ while I redo the driver steps? I wasn’t sure if that was the right mode or a side effect of something else.

Yes, keep it on ‘imx477 dual’ - that’s the expected configuration for the B0397. To summarize where we are: the root cause isn’t definitively confirmed yet, but everything points to the IMX477 driver install/configuration for the multi-camera array on the Xavier NX. The missing deb package from the installer is the main thing to resolve, and the gstreamer fd mapping errors are consistent with the driver not being properly installed. Work through the guide and check the installer output again.