u-boot DDR size

cancel
Showing results for 
Search instead for 
Did you mean: 

u-boot DDR size

Jump to solution
274 Views
Giacomo_
Contributor I

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?



Tags (2)
0 Kudos
1 Solution
255 Views
igorpadykov
NXP TechSupport
NXP TechSupport

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

View solution in original post

0 Kudos
2 Replies
256 Views
igorpadykov
NXP TechSupport
NXP TechSupport

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

View solution in original post

0 Kudos
243 Views
Giacomo_
Contributor I

Thanks, it did the trick.

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

0 Kudos