Replace the 4GB lpddr4 the uboot boot fail on imx8mq

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

Replace the 4GB lpddr4 the uboot boot fail on imx8mq

1,922 Views
chenfeng2016
Contributor I
Hello.
 we change the lpddr4 3GB to 4GB, then update the firmware by uuu.exe,  the update always fail,  the log stop , after print the "DRAM :" the log as below:  
pastedImage_1.png
we modify the code as follow:
1. change the PHYS_SDRAM_SIZE to 4G:#define PHYS_SDRAM_SIZE       0x100000000
2. get the lpddr4_timing.c file  by MSCALE_DDR_Tool.exe tool and the MX8M_LPDDR4_RPA_v24.xlsx with new ddr chip params
pastedImage_2.png
we debug the uboot souce code,  it boot fail when the size += gd->bd->bi_dram[i].size  of the show_dram_config is executed          pastedImage_3.png
 
By the weay 
 if we change the PHYS_SDRAM_SIZE to 3G #define PHYS_SDRAM_SIZE       0xC0000000,
 the uboot can run normally;
 
What's the reason?
Best Regars
feng
0 Kudos
3 Replies

1,705 Views
chenfeng2016
Contributor I

Hello, igor

 we check the uboot .config , the OPTEE is not set

pastedImage_1.png

we test on the 4.14.98-2.2.0 release , only change the PHYS_SDRAM_SIZE  to 4G :#define PHYS_SDRAM_SIZE 0x100000000,

it is fail also , when update the firmware by uuu.exe.

pastedImage_2.png

0 Kudos

1,705 Views
chenfeng2016
Contributor I

Hello, igor

  There is another question need your help.

   the params of the Number of ROW Addresses is 16 or 17, which is inputed ?

   as the below 32G be used (32gb, R[16:0],c[9:0]), 

pastedImage_2.png

 pastedImage_1.png

Beset Regards

feng

0 Kudos

1,705 Views
igorpadykov
NXP Employee
NXP Employee

Hi feng

issue may be related to TEE, one can disable it using sect.5.6.11 OP-TEE

attached Yocto Guide.

TEE can't be set in the top of the memory if 4GB are used, because above 4GB space,

only A53 can use it, So for i.MX8MQ one can split 4GB memory as 3GB + 1GB and keep

TZ address not changed. Also recommended to use release L4.14.98_2.1.0 and later, which
has 4 GB support implemented by default.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos