This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Linux/AM5728: CMA configration

Part Number: AM5728

Tool/software: Linux

We are working with custom board with emmc as only boot device. We are tring to increase cma by entering the following commands in uboot terminal:

=>setenv optargs cma=256MiB.

=>saveenv

But the saveenv is not working.It returns bad or no device error.

I used uEnv.txt for setting up cma but it too did not work.

I checked the cma using cat /cmd/procline after the boot.

How can i hardcode or set the cma default to 256MiB in uboot or kernel.

regards,

Marka

  • Hello Marka,

    You have a 3 choices.

    1. You can assign the cma size to optargs within the internal environment settings that are embedded to U-Boot in <Processor SDK>/board-support/u-boot-<version>/include/environment/ti/boot.h by changing "optargs=\0" \ line to "optargs=cma=256MiB\0" \ rebuild, reflash and boot the board with the new MLO and u-boot.img.

    2. You can change the location of the environment to your boot device by referring to this thread in order to fix the "bad or no device" error while saving the environment with saveenv command.

    3. You can change the cma size in kernel by refering to this thread and this page.

    Best regards,
    Kemal

  • Hello Kemal,

    I am using sdk03.02 with uboot 2016.05 version . It has no /include/environment/ti/boot.h file.

    Regards,

    Marka

  • Hello Marka,

    Edit <Processor SDK>/board-support/u-boot-<version>/include/configs/ti_omap5_common.h file for sdk03.02.

    Best regards,
    Kemal