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.

PROCESSOR-SDK-J784S4: Top Makefile Execution error

Part Number: PROCESSOR-SDK-J784S4
Other Parts Discussed in Thread: TDA4VH

Tool/software:

Im trying to execute the top makefile present within board support inorder to built the environment within the pc itself, but im geeting some errors.

the sdk im using is jacinto 7 sdk linux 09_02_5_00 and the target board is TDA4VH.

how to rectify these errors and setup the environment within the pc.

my main motive is to setup the environment that doesnt need external support(like without an evm board or without actual target board )and will able to create built image and binaries within the pc itself and i want to perform i2c protocol in it

  • Hi Saranya,

    Can you start with the below command:

    'make linux'

    Can you confirm if this builds fine? That builds fine for me on the same SDK version. So a good starting point to compare the ubuntu setups.

    - Keerthy

  • i ran this command under the sdk root directory, this is what i got. im getting these erros whenever i execute these cmds "make linux" or "make all"

  • Hi Saranya,

    Have you added any additional changes on top? By default on my setup this is compiling fine.

    - Keerthy

  • no i haven't made any changes to my top make file and followed the steps given in the documentation.

    Despite using the official document to compile the make file which is not successful, can you then provide the outline of commands you did for compiling the top make file successfully.

  • Hi Saranya,

    When you are copying the contents of "k3-j784s4-rtos-memory-map.dtsi" from PSDK RTOS to PSDK Linux, you have to only replace the "reserved_memory" node in the original PSDK Linux file, not the entire file.

    So now, revert back the changes in "k3-j784s4-rtos-memory-map.dtsi" from PSDK Linux (It is tracked by git, so it should be easy to revert). And then only replace the "reserved_memory node in the file. You file should look something like this (See the comments marked by //CHANGE HERE)- 

    // SPDX-License-Identifier: GPL-2.0
    /*
     * Vision-apps: device-tree overlay
     *
     * Copyright (C) 2019 - 2022 Texas Instruments Incorporated - http://www.ti.com/
     */
    
    #include <dt-bindings/soc/ti,sci_pm_domain.h>
    
    &{/} {
    	dma-buf-phys {
    		compatible = "ti,dma-buf-phys";
    	};
    };
    
    &mcu_r5fss0_core0_memory_region {
    	status = "disabled";
    };
    
    &mcu_r5fss0_core0_dma_memory_region {
    	status = "disabled";
    };
    
    &mcu_r5fss0_core1_dma_memory_region {
    	status = "disabled";
    };
    
    &mcu_r5fss0_core1_memory_region {
    	status = "disabled";
    };
    
    &main_r5fss0_core0_dma_memory_region {
    	status = "disabled";
    };
    
    &main_r5fss0_core0_memory_region {
    	status = "disabled";
    };
    
    &main_r5fss0_core1_dma_memory_region {
    	status = "disabled";
    };
    
    &main_r5fss0_core1_memory_region {
    	status = "disabled";
    };
    
    &main_r5fss1_core0_dma_memory_region {
    	status = "disabled";
    };
    
    &main_r5fss1_core0_memory_region {
    	status = "disabled";
    };
    
    &main_r5fss1_core1_dma_memory_region {
    	status = "disabled";
    };
    
    &main_r5fss1_core1_memory_region {
    	status = "disabled";
    };
    
    &main_r5fss2_core0_dma_memory_region {
    	status = "disabled";
    };
    
    &main_r5fss2_core0_memory_region {
    	status = "disabled";
    };
    
    &main_r5fss2_core1_dma_memory_region {
    	status = "disabled";
    };
    
    &main_r5fss2_core1_memory_region {
    	status = "disabled";
    };
    
    &c71_0_dma_memory_region {
    	status = "disabled";
    };
    
    &c71_0_memory_region {
    	status = "disabled";
    };
    
    &c71_1_dma_memory_region {
    	status = "disabled";
    };
    
    &c71_1_memory_region {
    	status = "disabled";
    };
    
    &c71_2_dma_memory_region {
    	status = "disabled";
    };
    
    &c71_2_memory_region {
    	status = "disabled";
    };
    
    &c71_3_dma_memory_region {
    	status = "disabled";
    };
    
    &c71_3_memory_region {
    	status = "disabled";
    };
    
    &reserved_memory {
    	#address-cells = <2>;
    	#size-cells = <2>;
    	
     //CHANGE HERE
    	vision_apps_mcu_r5fss0_core0_dma_memory_region: vision-apps-r5f-dma-memory@a0000000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xa0000000 0x00 0x00100000>;
            no-map;
        };
        vision_apps_mcu_r5fss0_core0_memory_region: vision-apps-r5f-memory@a0100000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xa0100000 0x00 0x00f00000>;
            no-map;
        };
        vision_apps_mcu_r5fss0_core1_dma_memory_region: vision-apps-r5f-dma-memory@a1000000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xa1000000 0x00 0x00100000>;
            no-map;
        };
        vision_apps_mcu_r5fss0_core1_memory_region: vision-apps-r5f-memory@a1100000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xa1100000 0x00 0x00f00000>;
            no-map;
        };
        vision_apps_main_r5fss0_core0_dma_memory_region: vision-apps-r5f-dma-memory@a2000000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xa2000000 0x00 0x00100000>;
            no-map;
        };
        vision_apps_main_r5fss0_core0_memory_region: vision-apps-r5f-memory@a2100000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xa2100000 0x00 0x01f00000>;
            no-map;
        };
        vision_apps_main_r5fss0_core1_dma_memory_region: vision-apps-r5f-dma-memory@a4000000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xa4000000 0x00 0x00100000>;
            no-map;
        };
        vision_apps_main_r5fss0_core1_memory_region: vision-apps-r5f-memory@a4100000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xa4100000 0x00 0x00f00000>;
            no-map;
        };
        vision_apps_main_r5fss1_core0_dma_memory_region: vision-apps-r5f-dma-memory@a5000000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xa5000000 0x00 0x00100000>;
            no-map;
        };
        vision_apps_main_r5fss1_core0_memory_region: vision-apps-r5f-memory@a5100000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xa5100000 0x00 0x00f00000>;
            no-map;
        };
        vision_apps_main_r5fss1_core1_dma_memory_region: vision-apps-r5f-dma-memory@a6000000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xa6000000 0x00 0x00100000>;
            no-map;
        };
        vision_apps_main_r5fss1_core1_memory_region: vision-apps-r5f-memory@a6100000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xa6100000 0x00 0x00f00000>;
            no-map;
        };
        vision_apps_main_r5fss2_core0_dma_memory_region: vision-apps-r5f-dma-memory@a7000000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xa7000000 0x00 0x00100000>;
            no-map;
        };
        vision_apps_main_r5fss2_core0_memory_region: vision-apps-r5f-memory@a7100000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xa7100000 0x00 0x00f00000>;
            no-map;
        };
        vision_apps_main_r5fss2_core1_dma_memory_region: vision-apps-r5f-dma-memory@a8000000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xa8000000 0x00 0x00100000>;
            no-map;
        };
        vision_apps_main_r5fss2_core1_memory_region: vision-apps-r5f-memory@a8100000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xa8100000 0x00 0x00f00000>;
            no-map;
        };
        vision_apps_rtos_ipc_memory_region: vision-apps-rtos-ipc-memory-region@ac000000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xac000000 0x00 0x03000000>;
            no-map;
        };
        vision_apps_memory_region: vision-apps-dma-memory@af000000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xaf000000 0x00 0x03000000>;
            no-map;
        };
        vision_apps_c71_0_dma_memory_region: vision-apps-c71-dma-memory@b2000000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xb2000000 0x00 0x00100000>;
            no-map;
        };
        vision_apps_c71_0_memory_region: vision-apps-c71_0-memory@b2100000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xb2100000 0x00 0x01f00000>;
            no-map;
        };
        vision_apps_c71_1_dma_memory_region: vision-apps-c71_1-dma-memory@b4000000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xb4000000 0x00 0x00100000>;
            no-map;
        };
        vision_apps_c71_1_memory_region: vision-apps-c71_1-memory@b4100000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xb4100000 0x00 0x01f00000>;
            no-map;
        };
        vision_apps_c71_2_dma_memory_region: vision-apps-c71_2-dma-memory@b6000000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xb6000000 0x00 0x00100000>;
            no-map;
        };
        vision_apps_c71_2_memory_region: vision-apps-c71_2-memory@b6100000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xb6100000 0x00 0x01f00000>;
            no-map;
        };
        vision_apps_c71_3_dma_memory_region: vision-apps-c71_3-dma-memory@b8000000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xb8000000 0x00 0x00100000>;
            no-map;
        };
        vision_apps_c71_3_memory_region: vision-apps-c71_3-memory@b8100000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xb8100000 0x00 0x01f00000>;
            no-map;
        };
        vision_apps_core_heaps_lo: vision-apps-core-heap-memory-lo@ba000000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xba000000 0x00 0x04000000>;
            no-map;
        };
        vision_apps_main_r5fss0_core0_shared_memory_queue_region: vision-apps-r5f-virtual-eth-queues@be000000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xbe000000 0x00 0x00800000>;
            no-map;
        };
        vision_apps_main_r5fss0_core0_shared_memory_bufpool_region: vision-apps-r5f-virtual-eth-buffers@be800000 {
            compatible = "shared-dma-pool";
            reg = <0x00 0xbe800000 0x00 0x01800000>;
            no-map;
        };
        c7x_ddr_heaps_hi: c7x-ddr-heaps-hi@880000000 {
            compatible = "shared-dma-pool";
            reg = <0x08 0x80000000 0x00 0x80000000>;
            no-map;
        };
        vision_apps_shared_region: vision_apps_shared-memories {
            compatible = "dma-heap-carveout";
            reg = <0x09 0x00000000 0x00 0x3c000000>;
        };
    };
    
    &mcu_r5fss0_core0 {
    	memory-region = <&vision_apps_mcu_r5fss0_core0_dma_memory_region>,
    			<&vision_apps_mcu_r5fss0_core0_memory_region>;
    };
    
    &mcu_r5fss0_core1 {
    	memory-region = <&vision_apps_mcu_r5fss0_core1_dma_memory_region>,
    			<&vision_apps_mcu_r5fss0_core1_memory_region>;
    };
    
    &main_r5fss0_core0 {
    	memory-region = <&vision_apps_main_r5fss0_core0_dma_memory_region>,
    			<&vision_apps_main_r5fss0_core0_memory_region>,
    			<&vision_apps_main_r5fss0_core0_shared_memory_queue_region>,
    			<&vision_apps_main_r5fss0_core0_shared_memory_bufpool_region>;
    };
    
    &main_r5fss0_core1 {
    	memory-region = <&vision_apps_main_r5fss0_core1_dma_memory_region>,
    			<&vision_apps_main_r5fss0_core1_memory_region>;
    };
    
    &main_r5fss1_core0 {
    	memory-region = <&vision_apps_main_r5fss1_core0_dma_memory_region>,
    			<&vision_apps_main_r5fss1_core0_memory_region>;
    };
    
    &main_r5fss1_core1 {
    	memory-region = <&vision_apps_main_r5fss1_core1_dma_memory_region>,
    			<&vision_apps_main_r5fss1_core1_memory_region>;
    };
    
    &main_r5fss2_core0 {
    	memory-region = <&vision_apps_main_r5fss2_core0_dma_memory_region>,
    			<&vision_apps_main_r5fss2_core0_memory_region>;
    };
    
    &main_r5fss2_core1 {
    	memory-region = <&vision_apps_main_r5fss2_core1_dma_memory_region>,
    			<&vision_apps_main_r5fss2_core1_memory_region>;
    };
    
    &c71_0 {
    	memory-region = <&vision_apps_c71_0_dma_memory_region>,
    			<&vision_apps_c71_0_memory_region>;
    };
    
    &c71_1 {
    	memory-region = <&vision_apps_c71_1_dma_memory_region>,
    			<&vision_apps_c71_1_memory_region>;
    };
    
    &c71_2 {
    	memory-region = <&vision_apps_c71_2_dma_memory_region>,
    			<&vision_apps_c71_2_memory_region>;
    };
    
    &c71_3 {
    	memory-region = <&vision_apps_c71_3_dma_memory_region>,
    			<&vision_apps_c71_3_memory_region>;
    };

    Regards,
    Tanmay