imx8plus LPDDR4 4G ram calibration

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

imx8plus LPDDR4 4G ram calibration

2,527 Views
t2865k5
Contributor I

Dear NXP,

I have a srg_imx8mplus platform (base : imx8mplus).

(1) Please check the MX8M_Plus_LPDDR4_RPA_4G_RAM.xlsx.

(2) Use MSCALE_DDR_Tool to do DDR calibration and stress test . Test result : PASS.

(3) Update the new lpddr4_timing.c and imx8mp_evk.h .

(4) ../include/configs/imx8mp_evk.h  modify as follows:

     #define PHYS_SDRAM_SIZE 0x80000000 /* 2 GB */

     #define PHYS_SDRAM_2_SIZE 0x80000000 /* 2 GB */

(5) srg_imx8mplus can boot successfully.

(6) Please help me to check the content of LPDDR4_RPA_4G_RAM.xlsx. Is it correct ?

(3)   About this imx8mp_evk.h modification, is it correct ?

     

0 Kudos
8 Replies

2,470 Views
t2865k5
Contributor I

Dear NXP,

I have fixed this issue. Thank you!

0 Kudos

2,486 Views
t2865k5
Contributor I

Dear NXP,

Please check my imx8mp_evk.h . My modifications are as follows:

/* Totally 6GB DDR */
#define CONFIG_SYS_SDRAM_BASE 0x40000000
#define PHYS_SDRAM 0x40000000
#define PHYS_SDRAM_SIZE 0xC0000000 /* 3 GB */

#define PHYS_SDRAM_2 0x100000000
#ifdef CONFIG_TARGET_IMX8MP_DDR4_EVK
#define PHYS_SDRAM_2_SIZE 0x40000000 /* 1 GB */
#else
#define PHYS_SDRAM_2_SIZE 0x40000000 /* 1 GB */

#endif

U-boot displays the following messages:

 

Model: NXP i.MX8MPlus LPDDR4 EVK board
DRAM: 6 GiB

Please tell me how to modify.

 

t2865k5_0-1627628088980.png

t2865k5_1-1627628122213.png

 

 

0 Kudos

2,497 Views
t2865k5
Contributor I

Dear NXP,

I want to know the answer. Can you tell me as soon as possible.

0 Kudos

2,489 Views
igorpadykov
NXP Employee
NXP Employee

one can look at example below for "IMX8MP_DDR4_EVK"

https://github.com/varigit/uboot-imx/blob/imx_v2020.04_5.4.70_2.3.2_var01/include/configs/imx8mp_evk...

 

Best regards
igor

 

 

0 Kudos

2,511 Views
t2865k5
Contributor I

Dear NXP,

May you provide define HYS_SDRAM_SIZE value ,and define PHYS_SDRAM_2_SIZE value to me ?

0 Kudos

2,525 Views
t2865k5
Contributor I

Dear NXP,

Although it can be successfully booted, rsync the SD card data to emmc. The following message appears:
root@imx8mm-bse:~# rsync -avAX /* /tmp/rootfs/ --exclude={/dev/*,/proc/*,/sys/*,/tmp/*,/run/*,/mnt/*,/media/*,/lost+found,/reserved/*,/boot/*}
sending incremental file list


dev/
opt/images/Debian/
opt/images/Debian/rootfs.tar.gz
[ 87.999861] Insufficient stack space to handle exception!
[ 87.999869] ESR: 0x02000000 -- Unknown/Uncategorized
[ 88.010231] FAR: 0xffff800011e27fe0

Are these messages related to the LPDDR4 setting?

0 Kudos

2,521 Views
igorpadykov
NXP Employee
NXP Employee

Hi Albert

 

.xlsx seems as correct. For imx8mp_evk.h suggest to leave "PHYS_SDRAM_SIZE" in default value,

change only "PHYS_SDRAM_2_SIZE".

 

Best regards
igor

0 Kudos

2,526 Views
t2865k5
Contributor I

Dear NXP,

SW version:5.10.9-1.0.0

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

0 Kudos