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.
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.
Solved! Go to Solution.
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!
-----------------------------------------------------------------------------------------------------------------------
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!
-----------------------------------------------------------------------------------------------------------------------
Hi igor,
Thank you very much
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
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: