I'm trying to make a yocto image using a Congatec conga-QMX8-Plus. I've followed this manufacturer manual on this web page:
https://congatec.atlassian.net/wiki/spaces/I8D/pages/26345474/conga-QMX8-Plus+Yocto+4.0+Kirkstone
I've been able to create my image, but after boot when when I run "dmseg | grep cma" I get this message:
OF: reserved mem: failed to allocate memory for node 'linux,cma'
I've seen in other posts in this forums that I'm not the only one that's faced this issue:
https://community.nxp.com/t5/i-MX-Processors/imx8mp-increase-CMA-Memory/m-p/1734041#M213583
https://community.nxp.com/t5/i-MX-Processors/IMX8MP-Yocto-chane-memory-size-and-disable-optee/m-p/14...
Although some have managed to solve the problem, I'm stucked.
What I think is going on is that Congatec BSD is 4GB ram. But my board is the 2GB and here is where the conflict appears. I've tried to change the reserve-memory in the imx8mp.dtsi but my error persist.
I've reduced the size of the CMA to 256 MB like this:
resmem: reserved-memory {
#address-cells = <2>;
#size-cells = <2>;
ranges;
/* global autoconfigured region for contiguous allocations */
linux,cma {
compatible = "shared-dma-pool";
reusable;
size = <0 0x10000000>;
alloc-ranges = <0 0x40000000 0 0xC0000000>;
linux,cma-default;
};
};
I really don't know if I have to change any other file in the device tree.
Thanks for any help in advanced.