How to distribution the “$(CMASIZE)”?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to distribution the “$(CMASIZE)”?

466件の閲覧回数
传策薛
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 返信

352件の閲覧回数
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 件の賞賛