Questions about 64mp on Raspberry Zero 2W

When I start libcamera on Zero 2W, it always says:

[0:27:46.722643836] [14339] ERROR V4L2 v4l2_videodevice.cpp:1211 /dev/video14[16:cap]: Unable to request 1 buffers: Cannot allocate memory
[0:27:46.722790559] [14339] 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…
image
So what should I do?
Is there a way to make the CMA cache bigger?

Hi, @Lumina

Pi Zero 2 W only has 1G memory in total. CMA is maximized to 128m.

Therefore, the 64MP camera cannot run the maximum resolution on Pi Zero.

Thanks.
I changed a Pi 4 and it worked successfully.