u-boot DDR size

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

u-boot DDR size

跳至解决方案
3,167 次查看
Giacomo_
Contributor II

Hello support team,
we have developed a proprietary board derived from the NXP evaboard imx8mqevk.
The DDR memory format has changed to 2GB but u-boot always states 3GB of memory (the same size of the evaboard).

Yocto version is Zeus (imx-5.4.24-2.1.0)

The boot output:
------------------------------------------------------------------------------------------
U-Boot 2020.04-5.4.24-2.1.0+g4979a99482 (Apr 26 2021 - 10:03:28 +0000)

CPU: i.MX8MD rev2.1 1500 MHz (running at 1000 MHz)
CPU: Commercial temperature grade (0C to 95C) at 42C
Reset cause: POR
Model: NXP i.MX8MQ EVK
DRAM: 3 GiB
TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C0 0x50]
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment
<snip>
------------------------------------------------------------------------------------------

  1. We replaced the file generated by the mscale_ddr_tool (nightly test passed) in file: "board/freescale/imx8mq_evk/lpddr4_timing.c"

  2. Fixed the memory node in device tree: "arch/arm/dts/imx8mq-evk.dts"
    memory@40000000 {
        device_type = "memory";
        reg = <0x00000000 0x40000000 0 0x80000000>;
    };

  3. Changed the constant PHYS_SDRAM_SIZE in file: "include/configs/imx8mq_evk.h"


Still no luck, what else are we missing?



标记 (2)
0 项奖励
1 解答
3,148 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Giacomo

 

just for test one can try to build without OPTee, as described in sect.5.6.10 OP-TEE enablement

Yocto Guide included in  Documentation

Also i.MX8M Mini EVK has 2GB configuration and one can look at its configs for comparison.

 

Best regards
igor

在原帖中查看解决方案

0 项奖励
2 回复数
3,149 次查看
igorpadykov
NXP Employee
NXP Employee

Hi Giacomo

 

just for test one can try to build without OPTee, as described in sect.5.6.10 OP-TEE enablement

Yocto Guide included in  Documentation

Also i.MX8M Mini EVK has 2GB configuration and one can look at its configs for comparison.

 

Best regards
igor

0 项奖励
3,136 次查看
Giacomo_
Contributor II

Thanks, it did the trick.

I do not need really the op-tee so I am good. 

0 项奖励