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.

TDA4VM: How to expand memory reservation for linux.

Part Number: TDA4VM

Hi , experts.

I use Linux & RTOS mode on TDA4VM at following environment.

SDK:

ti-processor-sdk-rtos-j721e-evm-08_00_00_12
ti-processor-sdk-linux-j7-evm-08_00_00_08

From boot log of linux, about 2GB in 4GB is available for linux.

Can I expand the memory reservation for linux?
If it's possible , please tell me how to.

  • Hi,

    If you are running vision_apps then you will need memory to be reserved for the remote cores. If you are not then you can
    remove the nodes under: arch/arm64/boot/dts/ti/k3-j721e-rtos-memory-map.dtsi

    This should add to the Linux memory. How much more memory do you need for Linux?

    - Keerthy

  • Hi , Keerthy

    Thank you for quick reply.

    I don't run vision_apps.

    I haven't decided exactly what I want to do, but I want to add about 1GB. (2GB -> 3GB)

  • Hi,

    From the Linux SDK file: arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi

    Disable the nodes under reserved_memory & all the referencing nodes. You will
    be able to get more memory to Linux.

    Example:

    --- a/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi
    +++ b/arch/arm64/boot/dts/ti/k3-j721e-som-p0.dtsi
    @@ -27,6 +27,7 @@
                    };
     
                    mcu_r5fss0_core0_dma_memory_region: r5f-dma-memory@a0000000 {
    +                       status = "disabled";
                            compatible = "shared-dma-pool";
                            reg = <0x00 0xa0000000 0x00 0x100000>;
                            no-map;

    Similar to above disable all the dma_memory_regions and also disable the nodes referencing them.

    Best Regards,
    Keerthy

  • Hi , Keerthy

    I could do it.
    Thank you.