I’m trying to use an Arducam Owlsight OV64A40 (64 MP) camera with libcamera inside a Docker container on BalenaOS running on a Raspberry Pi 5.
When I try to capture, I get the error:
libcamera: ERROR No buffers available for capture
I already:
- Enabled the overlay with dtoverlay=ov64a40
- Tried increasing CMA memory (cma=512M in /boot/config.txt), but when I set CMA too high the camera stops responding inside the container
- Declared my service in docker-compose.yml with privileged: true, devices: - “/dev:/dev”, and io.balena.features.camera: ‘1’
- Installed libcamera-dev and rpicam-apps in my Dockerfile (based on balenalib/raspberrypi5-debian:bookworm-run)
What is the proper way to configure CMA memory and device access so that libcamera inside Docker/Balena can use the camera without hitting the “no buffers available” error?