About DDR calibration

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

About DDR calibration

2,839 次查看
t2865k5
Contributor I

Dear NXP,

We have a new project . srg_imx8mplus (imx8mplus HW base.)

We use a new memory MT53D512M32D2 in  srg_imx8mplus platform. It must do DDR calibration.

(1)  repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-gatesgarth -m imx-5.10.9-1.0.0.xml 

(2) repo sync

(3) Load the srg_imx8_plus_1.ds to srg_imx8mplus platform . Do MT53D512M32D2 DDR calibration

     and  stress test in srg_imx8mplus platform. Test result : Pass . 

(4) Select format is array and gen code . It get the lpddr4_timing.c .

(5) Update the new lpddr4_timing.c to ../u-boot-imx/1_2020.04-r0/git/board/freescale/imx8mp_evk/

(6) Build uboot image and get the imx-boot-imx8mpevk-sd.bin-flash_evk.

(7) Update the imx-boot-imx8mpevk-sd.bin-flash_evk to SD card ,and select the switch to SD card boot 

      mode (0011).

(8) Uboot message :Training FAILED .

t2865k5_0-1626247231244.png

Are there any errors in my steps? How to solve this problem ?

0 项奖励
回复
5 回复数

2,826 次查看
t2865k5
Contributor I

Dear Padkov ,

(1) I modify "#define PHYS_SDRAM_SIZE 0x80000000 /* 2 GB */ " in the imx8mp_EVK.h .

(2) I add DISTRO_FEATURES_remove = " optee" in the local.conf.

(3) 

bitbake optee-os -f -c cleanall
bitbake imx-atf -f -c cleanall
bitbake imx-boot -f -c cleanall

bitbake u-boot-imx -c compile -f
bitbake u-boot-imx -c deploy
bitbake imx-boot -c compile -f
bitbake imx-boot -c deploy

 

(4) Build imx-boot-imx8mpevk-sd.bin-flash_evk ,and update the file to SD card.

(5) Uboot message :Training FAILED 

 

Please tell me how to solve this problem.

0 项奖励
回复

2,820 次查看
igorpadykov
NXP Employee
NXP Employee

for i.MX8M Plus you should use MX8M_Plus_LPDDR4_RPA_v6.xlsx, not MX8M_Mini_LPDDR4_RPA_v18 (1).xlsx (sorry I overlooked it in my first answer).

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX-8M-Plus-DDR-Register-Programming-Ai...

 

Best regards
igor

0 项奖励
回复

2,816 次查看
t2865k5
Contributor I

Dear Padykov,

We use the memory is MT53D512M32D2 ,but you provided MT53E1536M32D4DT memory to me (MX8M_Plus_LPDDR4_RPA_v6.xlsx).

0 项奖励
回复

2,803 次查看
igorpadykov
NXP Employee
NXP Employee

you should adjust it yourself for your custom lpddr4 part.

 

Best regards
igor

0 项奖励
回复

2,835 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Albert

 

xlsx file looks as correct, additionally one can try to adjust ddr size in uboot

(#define PHYS_SDRAM_SIZE)

https://source.codeaurora.org/external/imx/uboot-imx/tree/include/configs/imx8mp_evk.h?h=imx_v2020.0...

and try to build image without OPTee using sect. 5.6.10 OP-TEE enablement i.MX Yocto Project User’s Guide​

 

Best regards
igor

0 项奖励
回复