This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Cannot boot with 8GB DRAM?

Hi,

I have a Kingston SO-DIMM (1.5V, 204pin, 8GB, 1333MHz) and I wanted to put it on the K2H EVM board. When booting it says:

U-Boot SPL 2013.01 (Apr 24 2014 - 02:06:05)
SF: Detected N25Q128A with page size 64 KiB, total 16 MiB


U-Boot 2013.01 (Apr 24 2014 - 02:06:05)

I2C:   ready
Detected SO-DIMM [99U5428-065.A00LF ]

And then it stuck there.. It seems like U-boot doesn't support this dimm under current configuration. So I got 2 questions:

1. Will the DIMMs I have work on K2H EVM at all? If not I'll have to return the dimms..

2. I've cloned the source of U-boot, and there seems to be several variables related to ddr3 size or things like that.. So would you please provide any pointers to how to modify the code so that it can recognize 8GB ram?

Thanks,

Shang

  • I looked more source code from U-boot, and in ddr3_cfg.h there are only structs like:

    ddr3phy_1600_8g
    ddr3phy_1333_2g
    ddr3phy_1600_2g

    Does it mean ddr3 1333 8g not supported?

  • Hi Shang Li,

    In u-boot source, you have to concentrate on files such as

    1. u-boot-keystone/board/ti/ks2_evm/board_k2hk.c
    2. u-boot-keystone/include/configs/ks2_evm.h

    In ks2_evm.h, make sure all the parameters are modified according to your SDRAM.

    /* Memory Configuration */
    #define CONFIG_NR_DRAM_BANKS 1
    #define CONFIG_SYS_SDRAM_BASE 0x80000000
    #define CONFIG_SYS_LPAE_SDRAM_BASE 0x800000000
    #define CONFIG_MAX_RAM_BANK_SIZE (2 << 30) /* 2GB */
    #define CONFIG_STACKSIZE (512 << 10) /* 512 KiB */
    #define CONFIG_SYS_MALLOC_LEN (2 << 20) /* 2 MiB */
    #define CONFIG_SYS_MEMTEST_START CONFIG_SYS_SDRAM_BASE
    #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_SDRAM_BASE + 32 << 20)
    #define CONFIG_SYS_INIT_SP_ADDR (CONFIG_SYS_TEXT_BASE - GENERATED_GBL_DATA_SIZE)

    3. u-boot-keystone/board/ti/ks2_evm/board_k2hk.c

    ------


  • Hi Shankari,

    Thanks for your reply!

    In the files you listed, 1 and 3 are the same, is that a typo?
  • Hi,
    Yes it seems, that could be "ddr3" source file, I didn't remember that name.
    Like, ddr3_k2hk.c