Hi everyone, hoping someone can help me out here. I’m running an Arducam 64MP camera (the arducam_64mp one) on a Raspberry Pi 3 B+ and I’m stuck.
The weird thing is I can get video off the camera fine, but the moment I try to take an actual picture it fails. And after I installed a 64bit Raspbian Bullseye environment, the camera doesn’t even show up anymore. At this point I’m starting to think the camera itself might be defective, but before I give up I wanted to check here.
My setup:
Raspberry Pi 3 B+
64bit Raspbian Bullseye
OctoPrint / Octopi
Arducam 64MP camera (arducam_64mp)
libcamera v0.0.0+3572-e13ccdd5
Installed packages:
ii libcamera-apps 0.0.2 armhf libcamera-apps
ii libcamera-dev 0.0.2 armhf libcamera
I’ve double-checked all the connections and they’re solid and in the right orientation. Any ideas what I’m missing?
Welcome! Don’t jump to “defective” just yet, this one is usually fixable.
First thing I want to confirm is whether the kernel driver overlay is actually installed. Can you paste a few things for me?
The full output of dpkg -l | grep libcamera
The output of a test still capture, e.g. libcamera-jpeg -o test.jpg
Whether you have any dtoverlay= lines related to the camera in /boot/config.txt
The “video works but still fails” symptom is a pretty classic hint that something is off with how the full-resolution buffers are being set up, but let’s start by confirming the driver is present. A quick way to grab a proper diagnostic is camera-bug-report -t 5 -o bug.txt -c "libcamera-still -t 1000 -o test.jpg" if you have it available.
fernizzil@octopi:~ $ dpkg -l | grep libcamera
ii libcamera-apps 0.0.2 armhf libcamera-apps
ii libcamera-dev 0.0.2 armhf libcamera
Then trying a simple still capture:
pi@raspberrypi:~ $ libcamera-jpeg -o test.jpg
That’s the one that fails. Here are the logs from it:
Made X/EGL preview window
[0:16:48.453254511] [3386] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3572-e13ccdd5
[0:16:48.523442089] [3387] WARN CameraSensorProperties camera_sensor_properties.cpp:163 No static properties available for 'arducam_64mp'
[0:16:48.523530110] [3387] WARN CameraSensorProperties camera_sensor_properties.cpp:165 Please consider updating the camera sensor properties database
[0:16:48.524314274] [3387] ERROR CameraSensor camera_sensor.cpp:591 'arducam_64mp 10-001a': Camera sensor does not support test pattern modes.
[0:16:48.566368384] [3387] WARN RPI raspberrypi.cpp:1263 Mismatch between Unicam and CamHelper for embedded data usage!
[0:16:48.568582753] [3387] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[0:16:48.568956815] [3387] INFO RPI raspberrypi.cpp:1386 Registered camera /base/soc/i2c0mux/i2c@1/arducam_64mp@1a to Unicam device /dev/media3 and ISP device /dev/media0
[0:16:48.570190093] [3386] INFO Camera camera.cpp:1029 configuring streams: (0) 2048x1536-YUV420
[0:16:48.570873060] [3387] INFO RPI raspberrypi.cpp:764 Sensor: /base/soc/i2c0mux/i2c@1/arducam_64mp@1a - Selected sensor format: 2312x1736-SBGGR10_1X10 - Selected unicam format: 2312x1736-pBAA
[0:16:55.008703505] [3386] INFO Camera camera.cpp:1029 configuring streams: (0) 9152x6944-YUV420 (1) 9152x6944-SBGGR10_CSI2P
[0:16:55.010142824] [3387] INFO RPI raspberrypi.cpp:764 Sensor: /base/soc/i2c0mux/i2c@1/arducam_64mp@1a - Selected sensor format: 9152x6944-SBGGR10_1X10 - Selected unicam format: 9152x6944-pBAA
[0:16:56.007049984] [3387] ERROR V4L2 v4l2_videodevice.cpp:1211 /dev/video0[17:cap]: Unable to request 1 buffers: Cannot allocate memory
[0:16:56.007495295] [3387] ERROR RPI raspberrypi.cpp:1012 Failed to allocate buffers
ERROR: *** failed to start camera ***
I also tried the bug report command you mentioned but it just says command not found:
fernizzil@octopi:~ $ camera-bug-report -t 5 -o bug.txt -c "libcamera-still -t 1000 -o test.jpg"
-bash: camera-bug-report: command not found
To recap what I’ve tried: video capture works, still capture fails, I reinstalled as a fresh 64bit Bullseye, tried it under OctoPrint, and checked all the cabling. Nothing’s helped yet.
Thanks, that block is really helpful. Two things stand out.
First, the camera-bug-report: command not found just means the bug report tool isn’t installed on your image — ignore that one, we don’t need it.
The important thing: the overlay for this camera is dtoverlay=arducam_64mp. If that line is NOT in your /boot/config.txt, then the driver isn’t installed and the camera won’t be detected properly. The absence of that line is exactly what makes it look “defective” when it really isn’t.
Can you check /boot/config.txt and tell me if dtoverlay=arducam_64mp shows up anywhere? If it’s missing, you’ll need to install the 64MP Pi Hawk-Eye kernel driver via the Arducam Pivariety install script, then add the CMA/vc4 overlay. Instead of pasting a wall of steps here, here’s the gist:
Grab the install script: wget -O install_pivariety_pkgs.sh https://github.com/ArduCAM/Arducam-Pivariety-V4L2-Driver/releases/download/install_script/install_pivariety_pkgs.sh
Make it executable: chmod +x install_pivariety_pkgs.sh
Run it for the driver: ./install_pivariety_pkgs.sh -p 64mp_pi_hawk_eye_kernel_driver
Then sudo nano /boot/config.txt and add dtoverlay=vc4-kms-v3d,cma-512 under the [all] line.
One more note: Buster (or older) is not a supported system for this camera — Bullseye is what you want, so you’re already on the right base. Let me know what the config file shows.
You were right. I checked /boot/config.txt and there is no dtoverlay=arducam_64mp line at all. So the driver was never installed, that explains why the camera isn’t being detected.
Then I opened sudo nano /boot/config.txt and added this under the [all] line:
dtoverlay=vc4-kms-v3d,cma-512
Rebooted. Now the camera is getting detected (I can see arducam_64mp in the logs). But I’m still hitting the still-capture problem — video is fine, but as soon as I try to grab a full-res still with libcamera-jpeg -o test.jpg it dies with the same buffer error as before. So the detection is fixed but the picture failure isn’t. What next?
Good progress — the driver being installed explains the detection part, and now we can focus on the still-capture failure, which is a separate issue.
Looking at your log again, this is the key part:
[0:16:55.008703505] configuring streams: (0) 9152x6944-YUV420 (1) 9152x6944-SBGGR10_CSI2P
[0:16:56.007049984] ERROR V4L2 v4l2_videodevice.cpp:1211 /dev/video0[17:cap]: Unable to request 1 buffers: Cannot allocate memory
[0:16:56.007495295] ERROR RPI raspberrypi.cpp:1012 Failed to allocate buffers
ERROR: *** failed to start camera ***
See what happens there? For a still, the sensor tries to configure at the FULL resolution — 9152x6944 — and then it can’t get 1 buffer allocated. Cannot allocate memory + Failed to allocate buffers on a full-res 64MP capture is almost always insufficient CMA (Contiguous Memory Allocator) memory.
The 64MP sensor needs a big chunk of CMA for those huge buffers, and by default there isn’t enough. This is exactly what the dtoverlay=vc4-kms-v3d,cma-512 line is for — it allocates 512MB of CMA.
So the fix here:
sudo nano /boot/config.txt
Under the [all] line, make sure you have: dtoverlay=vc4-kms-v3d,cma-512
It’s important that this line sits under [all] and not in a model-specific section, otherwise it gets skipped. Can you double-check the placement and confirm it’s directly under [all], then reboot and try the still capture again?
Hmm, I already had that line added under [all] from the previous step. Let me paste the relevant part of my config to be sure:
[all]
dtoverlay=vc4-kms-v3d,cma-512
So it looks correctly placed. But the still capture still fails the same way. Do I need to reinstall something else, or is there another kernel driver step I skipped? I really want to get the full-res stills working since that’s the whole point of the 64MP sensor.
There were two separate problems in your original report, and they have two separate causes:
Camera not detected after the fresh Bullseye install — cause was the missing driver. dtoverlay=arducam_64mp was not in /boot/config.txt, meaning the Arducam 64MP (Pi Hawk-Eye) kernel driver had never been installed. Installing it via the Pivariety install script fixed detection for you.
Still capture fails while video works — cause is insufficient CMA memory. The log shows the sensor trying to configure full-res streams at 9152x6944 and then failing: Unable to request 1 buffers: Cannot allocate memory → Failed to allocate buffers → failed to start camera.
Since you already have dtoverlay=vc4-kms-v3d,cma-512 correctly under [all] and it’s still failing, I’d want to confirm the CMA actually got applied after reboot rather than silently skipped. A couple of things to check:
Did the install script or anything else append a second [all] section or a [pi3]/[pi4] style section that could shadow your line? Only the first matching [all] block behavior matters, and a misplaced line gets ignored.
Run vcgencmd get_mem cma after reboot and tell me what it reports — that tells us how much CMA is actually allocated.
Also confirm you didn’t end up with a competing dtoverlay=vc4-kms-v3d (without ,cma-512) later in the file, which would override the CMA setting.
Paste your current vcgencmd get_mem cma output and a fresh libcamera-jpeg -o test.jpg log and we’ll see whether the CMA is really being applied.
So CMA is reported as 512M after the reboot. And I checked the config — there’s no second [all] section and no competing dtoverlay=vc4-kms-v3d line, just the one with ,cma-512. Here’s a fresh still attempt:
pi@raspberrypi:~ $ libcamera-jpeg -o test.jpg
Made X/EGL preview window
[0:16:48.453254511] [3386] INFO Camera camera_manager.cpp:293 libcamera v0.0.0+3572-e13ccdd5
[0:16:48.523442089] [3387] WARN CameraSensorProperties camera_sensor_properties.cpp:163 No static properties available for 'arducam_64mp'
[0:16:48.523530110] [3387] WARN CameraSensorProperties camera_sensor_properties.cpp:165 Please consider updating the camera sensor properties database
[0:16:48.524314274] [3387] ERROR CameraSensor camera_sensor.cpp:591 'arducam_64mp 10-001a': Camera sensor does not support test pattern modes.
[0:16:48.568582753] [3387] ERROR DelayedControls delayed_controls.cpp:87 Delay request for control id 0x009a090a but control is not exposed by device /dev/v4l-subdev0
[0:16:48.568956815] [3387] INFO RPI raspberrypi.cpp:1386 Registered camera /base/soc/i2c0mux/i2c@1/arducam_64mp@1a to Unicam device /dev/media3 and ISP device /dev/media0
[0:16:55.008703505] [3386] INFO Camera camera.cpp:1029 configuring streams: (0) 9152x6944-YUV420 (1) 9152x6944-SBGGR10_CSI2P
[0:16:56.007049984] [3387] ERROR V4L2 v4l2_videodevice.cpp:1211 /dev/video0[17:cap]: Unable to request 1 buffers: Cannot allocate memory
[0:16:56.007495295] [3387] ERROR RPI raspberrypi.cpp:1012 Failed to allocate buffers
ERROR: *** failed to start camera ***
Still the same result. So CMA is definitely 512M, driver is installed, but the full-res still won’t allocate buffers. Anything else I should try?
Thanks — that rules out the obvious CMA placement/double-overlay problems, since vcgencmd get_mem cma confirms 512M is live and the log is unchanged. So at this point we’ve verified:
Driver: installed (dtoverlay=arducam_64mp present, camera registers as expected)
CMA: 512M allocated (dtoverlay=vc4-kms-v3d,cma-512 correctly under [all])
Symptom: still capture at 9152x6944-YUV420 fails with Unable to request 1 buffers: Cannot allocate memory → Failed to allocate buffers → failed to start camera, while video capture keeps working.
So the documented causes for this exact failure (missing driver, then insufficient CMA) are both handled on your side, yet the full-res buffer allocation is still failing. That means I don’t want to hand you another “this should fix it” step that doesn’t actually apply.
What I’d like to do next is look at this in more detail with our team, since it may come down to something specific to the 64MP full-res path on your combination of Pi 3 B+ / Bullseye / libcamera 0.0.0+3572 rather than a config mistake. Can you send me (privately, in a message rather than the thread):
A copy of your full /boot/config.txt
The output of dmesg | grep -i -E "arducam|unicam|v4l2|cma"
The exact libcamera-still version from libcamera-still --version
I’ll take those and get back to you. For now, the summary from this thread stands as: detection was fixed by installing the 64MP Pi Hawk-Eye kernel driver, and the still-capture buffer error points at CMA/full-res buffer allocation — which is confirmed at 512M here, so we still need to dig further into why the full-res still path can’t allocate buffers.