How to distribution the “$(CMASIZE)”?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to distribution the “$(CMASIZE)”?

432 Views
传策薛
Contributor V

Hi community:

    I notice that the Android8.1 bsp has below BOARD_KERNEL_CMDLINE:

BOARD_KERNEL_CMDLINE := console=ttymxc0,115200 earlycon=imxuart,0x30860000,115200 init=/init video=HDMI-A-1:1920x1080-32@60 androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale androidboot.fbTileSupport=enable cma=$(CMASIZE) androidboot.primary_display=imx-drm firmware_class.path=/vendor/firmware androidboot.selinux=permissive

 the evk board has 3GB memory ,and its cma=1536M, my question is if I have a 2GB board,how much “$(CMASIZE)” should I distribution? Is there any rules?

thanks.

0 Kudos
1 Reply

318 Views
b36401
NXP Employee
NXP Employee

It is application dependent what value to set.
This option splits the memory with common and continuous (CMA) parts.
So you need to configure as much continuous memory as required.

Have a great day,
Victor

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos