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.

U-Boot reports 2GB of memory on DM8168 EVM

Guru 10685 points

As title. Why does U-Boot report 2GB of memory on DM8168 EVM at boot time?

This link says the default memory map is 2GB - why?

http://processors.wiki.ti.com/index.php/EZSDK_Memory_Map#Changing_Memory_Map_For_512MB_Board

The EVM only has 1GB of memory on. I have visually checked the board and also checked the schematics.

Thanks,
Ralph

  • Hi Ralph,

    I noticed the same on our board. Haven't checked out the link you mentioned.

    It looks like the uboot source [EZSDK/board-support/u-boot-2010.06-psp04.00.00.12/include/configs/ti8168_evm.h]

    has the PHYS_DRAM_1_SIZE/PHYS_DRAM_2_SIZE macros at 0x40000000 instead of 0x20000000.

    I've changed mine locally and rebuilt and then uboot reports a total of "DRAM: 1 GiB".

    Not sure if this might cause other problems but this did the trick for me.

     

    Hope this helps.

     

    Juan Solis.

     

  • Hi Juan,

    I saw this source file too and the problem is hard coded into the code.

    Thanks,
    Ralph

  • The 2GB value is hardcoded. Without memory size detection in place this has been left to max for now. Please change the config option mentioned by Juan as required,

    Regards,

    Vaibhav