How to distribution the “$(CMASIZE)”?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How to distribution the “$(CMASIZE)”?

895 次查看
传策薛
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 项奖励
回复
1 回复

781 次查看
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 项奖励
回复