Site Search

u-boot hangs when using less than 1GB DRAM. Please tell me what to do.

Embedded SW (OS)

Tools: Quartus® II
Tool version: 13.0SP1


There is code to check the size of the DRAM in the process embedded in the u-boot source code.
The maximum data size for this process is 1GB, and if the actual DRAM size is less than 1GB, access to an undefined address will occur and the program will hang.


<Countermeasures>
It can be avoided by modifying the following file.

\uboot-socfpga\include\configs\socfpga_cyclone5.h

line 292
Before modification) #define PHYS_SDRAM_1_SIZE 0x40000000
After correction) #define PHYS_SDRAM_1_SIZE <actual DRAM capacity>


Experienced FAE
Free consultation is available.

From specific product specifications to parts selection, the Company FAE will answer your technical concerns free of charge. Please feel free to contact us.