AnsweredAssumed Answered

Where to change in files for memory

Question asked by srinivasaporam on Nov 12, 2015
Latest reply on Nov 15, 2015 by Biyong Sun

Hi,

We have got custom board which is designed based on reference design, but differing in memory capacity and type.

 

Reference design memory capacity 1024MB (1GB) where as our customized board capacity is 512MB. Where will we edit or change these values for u-boot customization.

 

our u-boot code config files (include/configs/xyz_board.h) has the following:

 

/* Physical Memory Map */

#define CONFIG_NR_DRAM_BANKS        1

#define PHYS_SDRAM            MMDC0_ARB_BASE_ADDR

 

#define CONFIG_SYS_SDRAM_BASE        PHYS_SDRAM

#define CONFIG_SYS_INIT_RAM_ADDR    IRAM_BASE_ADDR

#define CONFIG_SYS_INIT_RAM_SIZE    IRAM_SIZE    //#define IRAM_SIZE 0x00040000

 

#define CONFIG_SYS_INIT_SP_OFFSET \

    (CONFIG_SYS_INIT_RAM_SIZE - GENERATED_GBL_DATA_SIZE)

#define CONFIG_SYS_INIT_SP_ADDR \

    (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)

Outcomes