TIP: OSError: [Errno 12] Cannot allocate memory

Troubleshooting

Pi 3B+, Bookworm and picamera2 2.01

This works (for me) - add to /boot/firmware/config.txt the cma-384 part

Enable DRM VC4 V3D driver

dtoverlay=vc4-kms-v3d,cma-384

After lots of poking around in forums, StackOverflow, picamera2 docs, etc looking for a solution I figured I needed to allocate more memory (cma). It didn't work. My problem was I tried to add the cma-384 in the wrong place in the config.txt file.

Background: Version 2.00 Beta worked without increasing the memory (cma). When I upgraded to 2.01 ... bork. This is for a Violet-green swallow nest box camera at the top of a very long pole. SSH is my friend.

Posted Jul 9, 2026, 7:46 PM UTC

10
Loading comments…