UBOOT Shows 3GB RAM on hardware 2GB RAM

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

UBOOT Shows 3GB RAM on hardware 2GB RAM

ソリューションへジャンプ
2,251件の閲覧回数
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 解決策
2,061件の閲覧回数
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 返答(返信)
2,062件の閲覧回数
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 件の賞賛
返信
2,061件の閲覧回数
trongthinh
Contributor IV

Hi igor,

Thank you very much

0 件の賞賛
返信
1,472件の閲覧回数
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,343件の閲覧回数
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 件の賞賛
返信