Intel® SoC FPGA Embedded Development Suite
Support for SoC FPGA Software Development, SoC FPGA HPS Architecture, HPS SoC Boot and Configuration, Operating Systems
573 Discussions

Agilex 7 M-series GSRD wrong DDR5 memory size

ihsan28
Beginner
1,241 Views

Hi,

I followed the development of GSRD for Agilex 7 M-series, like in https://altera-fpga.github.io/rel-25.1/embedded-designs/agilex-7/m-series/hbm2e/ug-gsrd-agx7m-hbm2e/

When I boot, I get 


init_mem_cal: Initial DDR calibration IO96B_0 succeed
DDR: Calibration success
io96b_mb_init: num_instance 1
io96b_mb_init: get memory interface IO96B 0
io96b_mb_init: IO96B 0 mem_interface 0: ip_type_ret: 0x1
io96b_mb_init: IO96B 0 mem_interface 0: instance_id_ret: 0x0
io96b_mb_init: IO96B 0: num_mem_interface: 0x1
DDR: Warning: DRAM size from device tree (2048 MiB)
mismatch with hardware (4096 MiB).
DDR5: 2048 MiB
ecc_enable_status: ECC enable status: 0
DDR5: size check success
DDR5: firewall init success
DDR5 init success

So I am thinking of changing the size of DRAM in the device tree, but I cannot find out where I should change it. Could anyone help me find out?
Thank you.

Labels (1)
0 Kudos
3 Replies
alifzakuan_altera
1,083 Views

Hi ihsan28,

 

You can set your desired DRAM size in the device tree by modifying this line of code here - https://github.com/altera-fpga/u-boot-socfpga/blob/cd3a9044d66128bc67c4ce60eb752ac528620f54/arch/arm/dts/socfpga_agilex7m_socdk-u-boot.dtsi#L36

 

Currently, the default value was set to 2GB - 0x80000000

reg = <0 0x00000000 0 0x80000000>;

 

You can set it to 4GB by changing the value to 0x100000000.

 

Thanks,

Alif

Jeet14
Employee
958 Views

Hi Ihsan.


Please let us know if there is any further query on this?


Regards

Tiwari


0 Kudos
Jeet14
Employee
773 Views

As we do not receive any response from you on the previous question/reply/answer that we have provided. Please login to ‘https://supporttickets.intel.com/s/?language=en_US’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.


0 Kudos
Reply