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.
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.
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:
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.
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?
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:
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:
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.
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.