When I start libcamera on Zero 2W, it always says:
[0:27:46.722643836]  ERROR V4L2 v4l2_videodevice.cpp:1211 /dev/video14[16:cap]: Unable to request 1 buffers: Cannot allocate memory [0:27:46.722790559]  ERROR RPI raspberrypi.cpp:1023 Failed to allocate buffers ERROR: *** failed to start camera ***
I did as follows, but it seems useless.
[pi4] # Enable DRM VC4 V3D driver on top of the dispmanx display stack #arm_boost=1 #dtoverlay=vc4-fkms-v3d #max_framebuffers=2 [all] #dtoverlay=vc4-fkms-v3d arm_boost=1 hdmi_force_hotplug=1 dtparam=i2c_arm=on dtparam=spi=on enable_uart=1 dtoverlay=mhs35:rotate=90 hdmi_group=2 hdmi_mode=1 hdmi_mode=87 hdmi_cvt 480 320 60 6 0 0 0 hdmi_drive=2 dtoverlay=arducam_64mp dtoverlay=vc4-kms-v3d,cma-512 gpu_mem=128
Finally I found because of 512MB cache for Zero 2W, the cache for CMA is only 8MB…
So what should I do?
Is there a way to make the CMA cache bigger?