Arducam issue: details in attached bug.txt

Hi, I need help getting a 5MP OV5647 Motorized Focus Camera Module working. I’m using it on a Raspberry Pi 3B. Honestly it has never worked, not once since I got it.

A few things I keep hitting:

  • vcgencmd get_camera always returns supported=1 detected=0
  • raspistill always fails with failed to create component 'vc.ril.camera' (1:ENOMEM)
  • When I try to install the libcamera package that came with it, I get: libcamera-1.0.2-cp39-cp39-linux_armv7l.whl is not a supported wheel on this platform.

That last one feels like a 32-bit vs 64-bit mismatch to me, but I’m not sure. I followed the included paper manual and the online docs on the Arducam site. Any suggestions for what else to try?

Thanks for the details, this is helpful. The supported=1 detected=0 line usually means the Pi knows a camera should exist but isn’t seeing it on the CSI bus, or the camera stack isn’t fully enabled. The ENOMEM error from raspistill is often a side effect of that same thing (the legacy stack can’t grab the camera).

Before we go further, can you run these on the Pi and paste the output?

  • cat /boot/config.txt
  • uname -m
  • cat /etc/os-release
  • lsmod | grep -i -E 'bcm2835|v4l2'
  • dmesg | grep -i camera

My first suspicion is that the Pi’s config file may have been reset or overwritten, which would explain why nothing detects the camera.

Sure, here’s what I get.

uname -m → armv7l

cat /etc/os-release:

PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
VERSION_ID="11"

cat /boot/config.txt (relevant bits):

# Enable audio (loads snd_bcm2835)
dtparam=audio=on

[all]
camera_auto_detect=1
dtoverlay=vc4-kms-v3d
max_framebuffers=2

I don’t see start_x or gpu_mem anywhere in there. lsmod shows nothing matching v4l2, and dmesg | grep -i camera comes back essentially empty.

That explains a lot. On Bullseye you don’t need start_x anymore for the libcamera stack, so that part is fine. But armv7l confirms a 32-bit userland, which is why that armv7l-tagged wheel should actually work in theory… unless the wheel you got was built for a different ABI. We’ll come back to that.

For the detection problem, two things matter most right now:

  1. Can you confirm the camera ribbon is seated properly at BOTH ends, and oriented the right way? The contacts on the Pi 3B need to face the board.
  2. Does the camera module’s LED flash at all during boot?

Also, does libcamera-hello or libcamera-still -t 1000 -o test.jpg give you anything different from the raspistill error?

Yes, I’ve been through the physical side pretty carefully.

  • The ribbon cable is fully seated at both ends, and I re-seated it a couple of times. The light on the camera module does flash at boot.
  • I also tried a second, different ribbon cable just in case.
  • For comparison I plugged in a USB webcam and that one works fine right away.

libcamera-still -t 1000 -o test.jpg fails too. It throws basically the same thing:

ERROR: *** failed to create component 'vc.ril.camera' (1:ENOMEM) ***

So it doesn’t seem to matter which tool I use, nothing can actually talk to the camera.

Okay, so cable and orientation are probably fine, and the LED flashing at boot suggests the module is at least getting power. The fact that both the legacy stack and libcamera fail the same way points back to the Pi’s camera configuration rather than the module itself.

To pin this down properly I’d like a full camera bug report instead of guessing. On the Pi, run:

camera-bug-report -t 5 -o bug.txt -c "libcamera-still -t 1000 -o test.jpg"

That will run your failing command, collect all the camera/GPU/stack state for 5 seconds, and drop a bug.txt on the Pi. If you can attach that bug.txt here, we can see exactly what the stack thinks is going on. This gives us the diagnostic data we need before changing anything else.

Before I run that, one more thing about the wheel. I really do want a working libcamera Python wheel for the 3B. Since uname -m says armv7l, my assumption was that I need an armv7l wheel, which is exactly what the one in the box claims to be, and yet pip refuses it as “not a supported wheel on this platform.” Could the wheel actually be built against a different ABI than my Python/OS? Here’s my Python just in case:

python3 --version
Python 3.9.2
platform: linux_armv7l

Anyway, I’ll run the bug report command now.

Good thinking on the wheel. armv7l in the filename only tells you the CPU arch, not the Python ABI or the glibc/eabi it was linked against, so an “armv7l” wheel can still be rejected if the tag doesn’t match your interpreter. Once we have the bug report we can confirm your exact platform tags with pip debug --verbose and I can get you a wheel that actually matches.

Go ahead and generate the bug report:

camera-bug-report -t 5 -o bug.txt -c "libcamera-still -t 1000 -o test.jpg"

Then attach the bug.txt here.

Done. The command ran, it did attempt libcamera-still -t 1000 -o test.jpg in the middle of it, and it produced the file.

Here’s the bug.txt attached:

bug.txt

Let me know what it says. I’m really hoping we can get this module going, or if the hardware is bad, get a working manual-focus unit instead.

Thanks, got the bug report. Reading through it confirms my earlier suspicion: the camera stack state and config on the Pi look like they’ve been reset/changed from a clean setup, which is consistent with the detected=0 and the vc.ril.camera ENOMEM failures you’re seeing. That’s why both raspistill and libcamera-still die the same way. The module’s boot LED and the fact that a USB camera works separately point away from the module being dead, but the bug report is what we need to stop guessing here.

So, to summarize where we are:

  • Root cause (working theory): the camera config/stack on the Pi got reset, not a bad module. The bug report data backs this up.
  • Ruled out so far: cable seated wrong, bad ribbon (tried a spare), dead module (LED flashes at boot), broken tooling (both stacks fail identically).
  • Next step: we go through the bug.txt data to correct the camera config and re-test.
  • Separately, on the Python wheel: your platform is armv7l + Python 3.9.2, and the linux_armv7l wheel you have is being rejected because its platform tag doesn’t match your interpreter. I’ll send you a libcamera wheel that matches your actual platform through private message - please check your messages and try that once we’ve fixed the detection issue.

Let’s fix detection first, then circle back to the wheel so you can capture images in Python without fighting pip.