How to increase the CMA

Is there any tutorial to increase the CMA size? I am working on Pynq-Z1 board.

Hi @Arif_PENS,

This question is a bit outside of the scope of the PYNQ forums. You may be better off asking in the Xilinx forums.

But, you may find this useful


Hi @marioruiz thank you for your reply.
My Question is related to this thread: Pynq & maximum allocatable memory (CMA) , which is not clear until now.

Hi @Arif_PENS, @marioruiz ,

With Pynq v2.6.1 I’ve been able to increase CMA for several boards by modifying the file pynq.cfg before generating the image. This file is located at:


There, you have to change the value for CONFIG_CMA_SIZE_MBYTES.

For example, I’ve been able to change CMA to 256MB in PYNQZ2 and Zybo010.

I didn’t test whether this works with v3.0.1.


1 Like