AnsweredAssumed Answered

how to update ddr from 1g to 2g in kernel

Question asked by Xiyuan Zhou on Apr 18, 2019
Latest reply on Apr 18, 2019 by Yuri Muhin

Hi,

 

My environment:

Imx6q, 2G ddr, 8G emmc, Android8 oreo, kernel: 4.9.17,

 

How to update ddr from 1g to 2g in kernel?  

Should  I change memory node in dts file?

default:

 memory: memory {

 reg = <0x10000000 0x40000000>;
 };

 

Is this change correct?:

 memory: memory {

 reg = <0x10000000 0x80000000>;
 };

 

in uboot, I changed 

include/configs/mx6sabresd.h

#define PHYS_SDRAM_SIZE (2u * 1024 * 1024 * 1024) 

board/freescale/mx6sabresd/mx6q_4x_mt41j128.cfg

 

It seems works in uboot, and I noticed there is also memory config dts file in kernel, and should I change it accordingly?

 

Thanks,

Outcomes