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.

AM6421: DDR SIZE 1GB

Part Number: AM6421

Hi,

 

  We are  using 1GB DDR4 ram on our custom board with AM6421.

  WE have changed the  device tree entries as below to 1GB as below but there is no effect.

memory@80000000 {
        device_type = "memory";
        /* 2G RAM */
        //reg = <0x00000000 0x80000000 0x00000000 0x80000000>; //commented by us
        /* 1G RAM */
        reg = <0x00000000 0x80000000 0x00000000 0x40000000>;

    };

We are using processor SDKv9_00_00_03.

Can you tell any other changes to be done to make kernel recognize only 1GB as populated on the Board.

 suggest if any thing has to be done in uboot k3-ddrss.c

Thank You.

  • Hi,

      WE have changed the  device tree entries as below to 1GB as below but there is no effect.

    memory@80000000 {
            device_type = "memory";
            /* 2G RAM */
            //reg = <0x00000000 0x80000000 0x00000000 0x80000000>; //commented by us
            /* 1G RAM */
            reg = <0x00000000 0x80000000 0x00000000 0x40000000>;

        };

    Is this done in U-Boot or kernel device tree? Please ensure it is done in U-Boot device tree.

  • Hi Bin Liu,

                      We have done the changes as suggested as below. in u-boot device tree file but there is no change in the DDR size it still shows 2GB.


    /dts-v1/;

    #include <dt-bindings/phy/phy.h>
    #include <dt-bindings/mux/ti-serdes.h>
    #include <dt-bindings/leds/common.h>
    #include <dt-bindings/gpio/gpio.h>
    #include <dt-bindings/net/ti-dp83867.h>
    #include "k3-am642.dtsi"

    / {
    compatible = "ti,am642-evm", "ti,am642";
    model = "Texas Instruments AM642 EVM";

    chosen {
    stdout-path = "serial2:115200n8";
    bootargs = "console=ttyS2,115200n8 earlycon=ns16550a,mmio32,0x02800000";
    };

    memory@80000000 {
    device_type = "memory";
    /* 2G RAM */
    /*reg = <0x00000000 0x80000000 0x00000000 0x80000000>;*/ //commented by us
    /* 1G RAM */ //below added by us
    reg = <0x00000000 0x80000000 0x00000000 0x40000000>; //added by us

    };

       Please suggest if any other changes has to be made.

    Thank You.

  • Hi Narasimha?

    Please attach the full console boot log including the u-boot messages?

    We have done the changes as suggested as below. in u-boot device tree file

    Which filename did you do this modification?

  • Hi Bin Liu,

            Thank you for the reply.

             We have done the above changes in the below file.

    ~/ti-processor-sdk-linux-rt-am64xx-evm-09.00.00.03/board-support/ti-u-boot/arch/arm/dts/k3-am642-evm.dts

       Thank You.

  • Please attach the full console boot log including the u-boot messages.