AnsweredAssumed Answered

u-boot fails to boot with 4GB RAM on i.MX8mq

Question asked by PKZ on May 25, 2018
Latest reply on Jun 6, 2018 by PKZ

Hi,

 

We have a custom board based on i.mx8mq with DD4 4GB, and it fails to boot with 4GB configuration in u-boot.

The code updated is:

in header file:

from #define PHYS_SDRAM_SIZE 0xC0000000 to #define PHYS_SDRAM_SIZE 0x100000000

 

in dtsi file:

memory@40000000 {
    device_type = "memory";
    reg = <0x00000000 0x40000000 0 0x100000000>;
};

 

Note: it boots up successfully with 3GB setting.

 

The bootlog is below

check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
Training PASS
check ddr4_pmu_train_imem code
check ddr4_pmu_train_imem code pass
check ddr4_pmu_train_dmem code
check ddr4_pmu_train_dmem code pass
Training PASS
Normal Boot
Trying to boot from MMC1


U-Boot 2017.03 (May 25 2018 - 16:53:01 +0800)

CPU: Freescale i.MX8MQ rev2.0 1500 MHz (running at 1000 MHz)
CPU: Commercial temperature grade (0C to 95C) at 43C
Reset cause: POR
Model: LF COM i.MX8MQ
DRAM: 4 GiB
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Error found for upper 32 bits
Error found for upper 32 bits
Error found for upper 32 bits

 

 

Any idea? Anywhere else to update?

With 3GB configuration in u-boot and 4GB configuration in kernel dtsi file, the kernel still shows 3GB.

 

Thanks.

 

Regards

PK

Outcomes