How to increase the CMA

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

1 Like

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 https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841683/Linux+Reserved+Memory

Mario

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:

PYNQ/sdbuild/boot/meta-pynq/recipes-kernel/linux/linux-xlnx

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.

Regards,
Dave

1 Like