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.

J721e Change RAM size in uboot

Hello,

We have J7 based custom board and we are planning to use 8gb RAM.Since J721e EVM defaults to 4gb RAM, I have to change it in our source code to inflate the RAM size from 4 to 8gb.

Could you please point me where in U-boot source code I should make this change?

Also Do you think I need to change anything in Linux kernel about 8gb RAM?

Thanks,

Satish

  • Hi Satish,

    I do not have a board with 8GB RAM. Can you try the below diff:

    diff --git a/board/ti/j721e/evm.c b/board/ti/j721e/evm.c
    index d9846f3c46..08524834cf 100644
    --- a/board/ti/j721e/evm.c
    +++ b/board/ti/j721e/evm.c
    @@ -71,8 +71,8 @@ int dram_init_banksize(void)
     #ifdef CONFIG_PHYS_64BIT
            /* Bank 1 declares the memory available in the DDR high region */
            gd->bd->bi_dram[1].start = CONFIG_SYS_SDRAM_BASE1;
    -       gd->bd->bi_dram[1].size = 0x80000000;
    -       gd->ram_size = 0x100000000;
    +       gd->bd->bi_dram[1].size = 0x180000000;
    +       gd->ram_size = 0x200000000;
     #endif
     
            return 0;


    With that i could get to uboot with print:


    U-Boot 2020.01-dirty (Jul 27 2020 - 09:53:53 +0530)

    SoC:   J721E SR1.0
    Model: Texas Instruments K3 J721E SoC
    Brd: J721EX-PM2-SOM rev E6
    DRAM:  8 GiB

    Let me know if that works.

    Regards,
    Keerthy

  • Hi Satish,

    Could you please resolve this issue?

    Best Regards,
    Keerthy