Where to change in files for memory

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Where to change in files for memory

2,175 次查看
srinivasaporam
Contributor II

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)

标签 (2)
0 项奖励
回复
3 回复数

1,770 次查看
srinivasaporam
Contributor II

Hi,

this i have referred several times, but our board is not booting.

I have following Queries:

1. We are trying for u-boot customization in two ways (1) we are using yocto project  and (2) u-boot downloaded from das-u-boot git repo. in both ways we are failing.

2. We are cross verifying both yocto uboot and das uboot. in das uboot we have got two files (spl.c and wandboard.c) for reference board. in spl.c is doing spl-dram-init, checking for memory type, density no.of chip selects etc. in yocto project where they are being done.

0 项奖励
回复

1,770 次查看
BiyongSUN
NXP Employee
NXP Employee

In the stage, it doesn't need to modify the code you mentioned. But need to do the DDR calibration.

Have you  apply the ddr calibration result in uboot?

i.MX6/7 DDR Stress Test Tool V2.20

0 项奖励
回复

1,770 次查看
Yuri
NXP Employee
NXP Employee

Hello,

Please refer to  Chapter 1 (Porting U-Boot from an i.MX 6/7 Reference
Board to an i.MX 6/7 Custom Board) of “i.MX_BSP_Porting_Guide.pdf” in
FSL Linux documentation.

http://www.freescale.com/webapp/Download?colCode=L3.14.38_6UL_LINUX_DOCS


Have a great day,
Yuri

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复