UBOOT Shows 3GB RAM on hardware 2GB RAM

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

UBOOT Shows 3GB RAM on hardware 2GB RAM

跳至解决方案
2,060 次查看
trongthinh
Contributor IV

I used MScale DDR Tool to do RAM calibration on my custom board base on iMX8mq-evk. MScale DDR Tool RAM shows size of RAM is 2GB (2GB is correct value). Then I generated ddr_init.c and ddrphy_train.c to build with uboot. 

LPDDR4Calib.PNG

Uboot was build successfully but it show 3GB RAM in boot log (3GB is wrong value). I marked it Yellow. So What wrong with my uboot or MScale DDR Tool? I would like to correct this for my custom board. I also attached some files that generated by MScale ddr tool.

LPDDR4Log.PNG

标签 (1)
1 解答
1,870 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Thinh

one can check #define PHYS_SDRAM_SIZE parameter in

uboot/include/configs/imx8mq_evk.h   

imx8mq_evk.h\configs\include - uboot-imx - i.MX U-Boot 

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

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,871 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Thinh

one can check #define PHYS_SDRAM_SIZE parameter in

uboot/include/configs/imx8mq_evk.h   

imx8mq_evk.h\configs\include - uboot-imx - i.MX U-Boot 

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

0 项奖励
回复
1,870 次查看
trongthinh
Contributor IV

Hi igor,

Thank you very much

0 项奖励
回复
1,281 次查看
shashikanthacha
Contributor I

Hi @trongthinh ,

I am also facing the same issue in BSP release L5.15.32.

I have changed the lpddr size in header file as below.

#define PHYS_SDRAM_SIZE 0x80000000 /* 2GB DDR */

Still i am getting 3 GiB print in Uboot.

How did you solve the issue?

I really appreciate your reply in this regards.

Thank you 

with regards

Shashi

0 项奖励
回复
1,152 次查看
trongthinh
Contributor IV

Hi @shashikanthacha,

It seem that change PHYS_SDRAM_SIZE does not effect,

Please use MSCALE_DDR_Tool to recalibrate RAM on the board.

Look at user guide at the end of this paper:

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8M-Family-DDR-Tool-Release/ta-p/110...

0 项奖励
回复