I have an Arducam IMX219 camera for the Raspberry Pi that I just can’t get working on my Pi 4B. The camera shows up as detected, but libcamera keeps failing with a Unicam timeout. I’ve never gotten it to work even once. This is the error I keep hitting:
[0:09:25.457448458] [1344] ERROR RPI raspberrypi.cpp:1794 Unicam has timed out!
[0:09:25.457501844] [1344] ERROR RPI raspberrypi.cpp:1795 Please check that your camera sensor connector is attached securely.
[0:09:25.457553545] [1344] ERROR RPI raspberrypi.cpp:1796 Alternatively, try another cable and/or sensor.
I’ve been following the Arducam 8MP IMX219 software setup docs. Any advice on what I’m missing would be great.
Hi, sorry you’re dealing with this. Let’s figure out whether it’s a config problem or something with the hardware. Can you send me a few things so I know exactly what you’re working with?
A picture of the camera or the product/part number (or the product page) so I can confirm the exact model.
The output of uname -a.
The output of cat /etc/os-release and cat /boot/config.txt.
Sure. It’s an Arducam IMX219 CAM for RPi, running on a Raspberry Pi 4B with Raspbian GNU/Linux 11 (bullseye). The platform reports kernel 5.15.32-v7l+.
uname -a:
Linux my-printer 5.15.45-v7l+ #1561 SMP Mon Jun 6 15:24:26 BST 2022 armv7l GNU/Linux
A couple of notes: I also tried adding ,cma-256 to the dtoverlay=vc4-kms-v3d line, and I tried it with and without the start_x=1 line. Same result either way.
I’ve tried both included cables, same thing on both. I’ve checked the orientation multiple times and it’s definitely correct - the camera was connected and verified before I powered the Pi on. I also tried a few different OS images. The camera just gets detected and then throws the same Unicam timeout. Here it is again:
[0:09:25.457448458] [1344] ERROR RPI raspberrypi.cpp:1794 Unicam has timed out!
[0:09:25.457501844] [1344] ERROR RPI raspberrypi.cpp:1795 Please check that your camera sensor connector is attached securely.
[0:09:25.457553545] [1344] ERROR RPI raspberrypi.cpp:1796 Alternatively, try another cable and/or sensor.
Appreciate all the detail. We actually took one of these units and tested it on our side - the camera worked normally for us, so the standard setup is definitely correct and the module itself is fine in general. That makes me think it may be something specific to your unit. Can you confirm once more that the module is fully seated, the ribbon orientation is correct, and that it misbehaves on both cables? Just want to be sure before we call it.
Confirmed - connected properly and verified before powering on, and it does the same on both of the supplied cables. Both cables seem fine to me since it fails identically with each of them. The camera is detected but just reports those errors, exactly as in the log I posted.
Thanks for confirming. Based on everything so far:
Your /boot/config.txt is correct (camera_auto_detect=0 + dtoverlay=imx219), rebooted, and it didn’t change anything.
Cables and orientation are ruled out - you tried both cables with identical results.
Different OS images behave the same way.
Our own test of this camera worked normally on our side.
Since the connection and cabling are ruled out and the module still times out with the Unicam error, that points to a hardware fault with the camera module itself rather than the software setup. The next step would be to get that unit exchanged for a working one - reach out through the point of purchase to arrange it.