UBOOT Shows 3GB RAM on hardware 2GB RAM

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

UBOOT Shows 3GB RAM on hardware 2GB RAM

Jump to solution
2,239 Views
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

Labels (1)
1 Solution
2,049 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
4 Replies
2,050 Views
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 Kudos
Reply
2,049 Views
trongthinh
Contributor IV

Hi igor,

Thank you very much

0 Kudos
Reply
1,460 Views
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 Kudos
Reply
1,331 Views
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 Kudos
Reply