Arducam PiVariety camera intermittently not detected on Raspberry Pi 5 (Bookworm)

Hi everyone, hoping someone can help me out here. I’ve got an Arducam PiVariety 2.2MP Mira220 MONO Global Shutter Camera Module plugged into a Raspberry Pi 5 running Raspberry Pi OS Bookworm. I followed the official setup guide at the Arducam docs page for AMS-OSRAM cameras.

The problem: camera detection is really flaky. Sometimes libcamera-hello --list-cameras finds it, sometimes it doesn’t. It’s totally intermittent. The same camera module worked absolutely fine on my old Pi 4 with Bullseye, so I know the hardware isn’t dead.

What I’ve tried so far:

  • Reinstalled the camera driver from scratch
  • Switched from 64-bit OS to 32-bit OS to rule that out

Neither made any difference. The behavior is the same on both — sometimes detected, sometimes not. Very random. Any ideas what might be going on with Pi 5 and Bookworm specifically?

Thanks for the detailed report. Intermittent detection on Pi 5 with Bookworm is something we’ve seen before, and it’s usually traceable once we can look at the actual system state. Let’s start with two things:

  1. Could you post some clear photos of your hardware connections — both the camera-end of the ribbon cable and the Raspberry Pi CSI connector end? Sometimes a slightly misaligned or not-fully-seated ribbon on the Pi 5’s connector can cause exactly this kind of intermittent behaviour.

  2. We’ll also want to grab a diagnostic snapshot of your system. I’ll post the instructions for that in a follow-up — it’s a bug report tool that collects all the relevant configs, dmesg output, and module states in one go.

Here’s how to generate the bug report:

First, reboot your Pi so we’re working from a clean boot state. Then download and run the tool:

wget -O arducam-camera-bug-report https://github.com/Dion4cen/arducam-camera-bug-report/releases/download/Tool/arducam-camera-bug-report
chmod +x ./arducam-camera-bug-report
./arducam-camera-bug-report

This will create a file called arducam-bug-report.txt in your current directory. It grabs kernel logs, the device tree state, loaded modules, config.txt contents, and a few other things we need to check.

Once you’ve got that, send the bug report and the connection photos over via PM and I’ll dig through them.

Alright, I followed your steps. Here’s what happened:

I rebooted the Pi as instructed, downloaded the tool, and ran it. Interestingly, after the reboot the camera was detected again — libcamera-hello --list-cameras showed the Mira220 right away. So yeah, definitely confirms the intermittent nature of this. It’ll probably disappear again on the next power cycle.

I’ve sent you the arducam-bug-report.txt file and photos of both ends of the ribbon cable connection via PM. Let me know what you find.

Thanks — I’ve reviewed the bug report and your connection photos. The hardware connections look fine, so we can rule out a physical seating issue.

Looking at the bug report, I can see what’s causing the intermittent detection. In your /boot/firmware/config.txt, there’s a specific dtoverlay line that’s causing instability with how the Pi 5’s camera subsystem probes the CSI interface on Bookworm. I’ve sent you a screenshot via PM with the exact line circled, but for anyone else hitting this: the issue is a duplicate/conflicting dtoverlay=arducam-pivariety entry that likely got added during the driver reinstall without removing the previous one. Having both entries present causes the probing to race and sometimes fail.

Fix: Open /boot/firmware/config.txt and comment out or delete the redundant dtoverlay=arducam-pivariety line — keep only one instance of it. Then reboot and the detection should be stable.

Give that a try and let me know how it goes after a few cold boots.