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-K2G: Issue building the Big Data IPC example

Part Number: PROCESSOR-SDK-K2G

I have installed both processor SDK Linux and RTOS for K2G (both are version 6_01_00_08) and am trying to build the big data IPC example for the case where host is running Linux. The readme file in the processor_sdk_rtos/demos/bigdataipc directory says that the examples are integrated into the top level make of the Linux SDK but I cannot find the right command to build this example. I would greatly appreciate any suggestions.

  • I added the following in the top level makefile of the Linux SDK to build the example:

    bigdataipc_example: ti-ipc-rtos-path-check
    	@echo =================================
    	@echo     Building the Big Data IPC Example
    	@echo =================================
    	$(MAKE) -C ~/ti/processor_sdk_rtos_k2g_6_01_00_08/demos/bigdataipc host_linux \
    		PLATFORM=$(IPC_PLATFORM) \
    		KERNEL_INSTALL_DIR="$(LINUXKERNEL_INSTALL_DIR)" \
    	  	XDC_INSTALL_DIR="$(XDC_INSTALL_PATH)" \
    	  	PDK_INSTALL_DIR="$(PDK_INSTALL_PATH)/.." \
    	  	BIOS_INSTALL_DIR="$(BIOS_INSTALL_PATH)" \
    	  	IPC_INSTALL_DIR="$(IPC_INSTALL_PATH)" \
    	  	TOOLCHAIN_LONGNAME=$${TOOLCHAIN_SYS} \
    	  	TOOLCHAIN_INSTALL_DIR=$${SDK_PATH_NATIVE}/usr \
    	  	TOOLCHAIN_PREFIX=$(CROSS_COMPILE) \
    	  	LINUX_SYSROOT_DIR=$(SDK_PATH_TARGET) \
    	  	$(IPC_TOOLS_PATHS)

    There is an error when I run "make bigdataipc_example":
    =================================
    Building the Big Data IPC Example
    =================================
    make -C ~/ti/processor_sdk_rtos_k2g_6_01_00_08/demos/bigdataipc host_linux \
    PLATFORM=66AK2G \
    KERNEL_INSTALL_DIR="/home/negin/ti-processor-sdk-linux-k2g-evm-06.01.00.08/board-support/linux-4.19.59+gitAUTOINC+5f8c1c6121-g5f8c1c6121" \
    XDC_INSTALL_DIR="/home/negin/ti/xdctools_3_55_02_22_core" \
    PDK_INSTALL_DIR="/home/negin/ti/pdk_k2g_1_0_15/packages/.." \
    BIOS_INSTALL_DIR="/home/negin/ti/bios_6_76_02_02" \
    IPC_INSTALL_DIR="/home/negin/ti/ipc_3_50_04_07" \
    TOOLCHAIN_LONGNAME=${TOOLCHAIN_SYS} \
    TOOLCHAIN_INSTALL_DIR=${SDK_PATH_NATIVE}/usr \
    TOOLCHAIN_PREFIX=/home/negin/ti-processor-sdk-linux-k2g-evm-06.01.00.08/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf- \
    LINUX_SYSROOT_DIR=/home/negin/ti-processor-sdk-linux-k2g-evm-06.01.00.08/linux-devkit/sysroots/armv7at2hf-neon-linux-gnueabi/ \
    ti.targets.elf.C66=/home/negin/ti/ti-cgt-c6000_8.3.2
    make[1]: Entering directory '/home/negin/ti/processor_sdk_rtos_k2g_6_01_00_08/demos/bigdataipc'
    #
    # Making host_linux/simple_buffer_example...
    make -C host_linux/simple_buffer_example all
    make[2]: Entering directory '/home/negin/ti/processor_sdk_rtos_k2g_6_01_00_08/demos/bigdataipc/host_linux/simple_buffer_example'
    #
    # Making host ...
    make -C host PROCLIST="host dsp" \
    DSP_PLATFORM=ti.platforms.evmTCI66AK2G02:dsp \
    PROC_HOST_NAME=""HOST"" \
    PROC_DSP_NAME=""CORE0"" \
    PROC_NAME_LIST="\\\""HOST"\\\", \\\"CORE0\\\"" \
    SERVER="""CORE0"""
    make[3]: Entering directory '/home/negin/ti/processor_sdk_rtos_k2g_6_01_00_08/demos/bigdataipc/host_linux/simple_buffer_example/host'
    #
    # Making all ...
    make PROFILE=release app_host
    make[4]: Entering directory '/home/negin/ti/processor_sdk_rtos_k2g_6_01_00_08/demos/bigdataipc/host_linux/simple_buffer_example/host'
    #
    # Making bin/66AK2G/release/app_host ...
    /home/negin/ti-processor-sdk-linux-k2g-evm-06.01.00.08/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf-gcc --sysroot=/home/negin/ti-processor-sdk-linux-k2g-evm-06.01.00.08/linux-devkit/sysroots/armv7at2hf-neon-linux-gnueabi/ -O3 -Wall -Wl,-Map=bin/66AK2G/release/app_host.map -o bin/66AK2G/release/app_host bin/release/obj/main_host.ov7A bin/release/obj/App.ov7A bin/66AK2G/release/obj/shared/bigdataxlat/bigdataxlat.ov7A bin/66AK2G/release/obj/host/SharedRegion/src/SharedRegion.ov7A bin/66AK2G/release/obj/host/HeapMem/src/HeapMem.ov7A bin/66AK2G/release/obj/host/utils/List.ov7A bin/66AK2G/release/obj/host/utils/Memory.ov7A bin/66AK2G/release/obj/host/utils/Cache.ov7A -lpthread -lc -lrt -lticmem -ltiipc -ltiipcutils -ltitransportrpmsg
    bin/release/obj/main_host.ov7A: file not recognized: file format not recognized
    collect2: error: ld returned 1 exit status
    make[4]: *** [makefile:93: bin/66AK2G/release/app_host] Error 1
    make[4]: Leaving directory '/home/negin/ti/processor_sdk_rtos_k2g_6_01_00_08/demos/bigdataipc/host_linux/simple_buffer_example/host'
    make[3]: *** [makefile:68: all] Error 2
    make[3]: Leaving directory '/home/negin/ti/processor_sdk_rtos_k2g_6_01_00_08/demos/bigdataipc/host_linux/simple_buffer_example/host'
    make[2]: *** [makefile:107: host] Error 2
    make[2]: Leaving directory '/home/negin/ti/processor_sdk_rtos_k2g_6_01_00_08/demos/bigdataipc/host_linux/simple_buffer_example'
    make[1]: *** [makefile:53: host_linux/simple_buffer_example] Error 2
    make[1]: Leaving directory '/home/negin/ti/processor_sdk_rtos_k2g_6_01_00_08/demos/bigdataipc'
    make: *** [Makefile:421: bigdataipc_example] Error 2

    Any idea what I might be doing wrong?

  • For anyone who might face this issue:

    1- Make sure Linux and RTOS IPC libraries are built:

    in SDK_LINUX_DIR, run this command: make ti_ipc_linux

    in SDK_RTOS_DIR, run this command: make ipc_bios

    2- Make sure the demo is clean. In SDK RTOS directory run this command: make demo_clean

    3- Add the following lines in the Makefile in SDK Linux directory:

    bigdataipc_example: ti-ipc-rtos-path-check
    	@echo =================================
    	@echo     Building the Big Data IPC Example
    	@echo =================================
    	$(MAKE) -C ~/ti/processor_sdk_rtos_k2g_6_01_00_08/demos/bigdataipc host_linux \
    		PLATFORM=$(IPC_PLATFORM) \
    		KERNEL_INSTALL_DIR="$(LINUXKERNEL_INSTALL_DIR)" \
    	  	XDC_INSTALL_DIR="$(XDC_INSTALL_PATH)" \
    	  	PDK_INSTALL_DIR="$(PDK_INSTALL_PATH)/.." \
    	  	BIOS_INSTALL_DIR="$(BIOS_INSTALL_PATH)" \
    	  	IPC_INSTALL_DIR="$(IPC_INSTALL_PATH)" \
    	  	TOOLCHAIN_LONGNAME=$${TOOLCHAIN_SYS} \
    	  	TOOLCHAIN_INSTALL_DIR=$${SDK_PATH_NATIVE}/usr \
    	  	TOOLCHAIN_PREFIX=$(CROSS_COMPILE) \
    	  	LINUX_SYSROOT_DIR=$(SDK_PATH_TARGET) \
    	  	$(IPC_TOOLS_PATHS)
     

    4- From the SDK Linux directory, run this command: make bigdataipc_example

    5- Host and DSP executables can be found in SDK_RTOS_DIR/demos/bigdataipc/host_linux/simple_buffer_example