[MTK] 如何调整手机的DRAM size

文摘 MediaTek 2020-04-25 阅读:7154

[DESCRIPTION]

如何调整手机的DRAM size

[SOLUTION]

DRAM size由CUSTOM_CONFIG_MAX_DRAM_SIZE与手机DRAM物理size共同决定,其值为两者的最小值。

CUSTOM_CONFIG_MAX_DRAM_SIZE修改方法(需同时修改下列2个文件):

device/mediatekprojects/[project_name]/ProjectConfig.mk

vendor/mediatek/proprietary/bootable/bootloader/preloader/custom/[project_name]/[project_name].mk

example:

CUSTOM_CONFIG_MAX_DRAM_SIZE=0x80000000 (2G)
                           0x40000000   (1G)

计算方式:

2G = 0x80000000 =2147483648/1024/1024/1024

0条评论

© 2024 芯缘异码. Powered by Typecho