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.

TDA4VE-Q1: How to build PDK in SDK RTOS r10.1 of J721S2

Part Number: TDA4VE-Q1

Tool/software:

Hi TI Experts, 

We are currently upgrading the J721S2 RTOS SDK we used from r8.5 to r10.1, and would like to ask how to properly build the PDK.

In r8.5, we built the PDK using the following steps:

cd PDK_INSTALL_DIR/packages/ti/build
make -s pdk_libs_allcores BOARD=j721s2_evm -j4

However, in r10.1, we referred to the official PDK documentation here:
https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-j721s2/10_01_00_04/exports/docs/pdk_j721s2_10_01_00_25/docs/userguide/j721s2/getting_started.html#building-the-pdk

The build method appears to be the same, but we encountered a build error.

$ make -s pdk_libs_allcores BOARD=j721s2_evm -j4
Nothing to be done for j721s2 mpu1_0 csl_intc
# Compiling j721s2:mpu1_0:release:csl_utils_common: ./src/app_utils_k3.c
make[3]: /media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf/bin/aarch64-none-elf-gcc: Command not found
make[3]: *** [/media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/pdk_j721s2_10_01_00_25/packages/ti/build/makerules/rules_a72.mk:111: /media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/pdk_j721s2_10_01_00_25/packages/ti/binary/ti/csl/example/utils/common/obj/j721s2/a72/release/app_utils_k3.oa72fg] Error 127
make[2]: *** [/media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/pdk_j721s2_10_01_00_25/packages/ti/build/makefile:331: csl_utils_common] Error 2
make[1]: *** [makefile:114: csl_utils_common_has_dep] Error 2
make[1]: *** Waiting for unfinished jobs....
# Compiling j721s2:mpu1_0:release:csl_init: a53/src/startup/aarch64/bootcode.asm
# Compiling j721s2:mpu1_0:release:csl_init: a53/src/startup/aarch64/vectors.asm
make[3]: /media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf/bin/aarch64-none-elf-gcc: Command not found
make[3]: /media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf/bin/aarch64-none-elf-gcc: Command not found
make[3]: *** [/media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/pdk_j721s2_10_01_00_25/packages/ti/build/makerules/rules_a72.mk:121: /media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/pdk_j721s2_10_01_00_25/packages/ti/binary/ti/csl/arch/obj/j721s2/a72/release/bootcode.oa72fg] Error 127
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [/media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/pdk_j721s2_10_01_00_25/packages/ti/build/makerules/rules_a72.mk:121: /media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/pdk_j721s2_10_01_00_25/packages/ti/binary/ti/csl/arch/obj/j721s2/a72/release/vectors.oa72fg] Error 127
make[2]: *** [/media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/pdk_j721s2_10_01_00_25/packages/ti/build/makefile:331: csl_init] Error 2
make[1]: *** [makefile:114: csl_init_has_dep] Error 2
# Compiling j721s2:mpu1_0:release:csl_uart_console: ./src/uartConfig.c
make[3]: /media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf/bin/aarch64-none-elf-gcc: Command not found
make[3]: *** [/media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/pdk_j721s2_10_01_00_25/packages/ti/build/makerules/rules_a72.mk:111: /media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/pdk_j721s2_10_01_00_25/packages/ti/binary/ti/csl/example/utils/uart_console/obj/j721s2/a72/release/uartConfig.oa72fg] Error 127
make[2]: *** [/media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/pdk_j721s2_10_01_00_25/packages/ti/build/makefile:331: csl_uart_console] Error 2
make[1]: *** [makefile:114: csl_uart_console_has_dep] Error 2
# Compiling j721s2:mpu1_0:release:csl: ./arch/a53/src/csl_a53v8cache.asm
# Compiling j721s2:mpu1_0:release:csl: ./arch/a53/src/csl_a53v8func.asm
make[3]: /media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf/bin/aarch64-none-elf-gcc: Command not found
make[3]: /media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf/bin/aarch64-none-elf-gcc: Command not found
make[3]: *** [/media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/pdk_j721s2_10_01_00_25/packages/ti/build/makerules/rules_a72.mk:121: /media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/pdk_j721s2_10_01_00_25/packages/ti/binary/ti/csl/obj/j721s2/a72/release/csl_a53v8cache.oa72fg] Error 127
make[3]: *** Waiting for unfinished jobs....
make[3]: *** [/media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/pdk_j721s2_10_01_00_25/packages/ti/build/makerules/rules_a72.mk:121: /media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/pdk_j721s2_10_01_00_25/packages/ti/binary/ti/csl/obj/j721s2/a72/release/csl_a53v8func.oa72fg] Error 127
make[2]: *** [/media/christopher/EXT/j721s2/ti-processor-sdk-rtos-j721s2-evm-10_01_00_04/pdk_j721s2_10_01_00_25/packages/ti/build/makefile:331: csl] Error 2
make[1]: *** [makefile:114: csl_has_dep] Error 2
Nothing to be done for j721s2 mcu1_0 csl_intc
Nothing to be done for j721s2 pm_hal
Nothing to be done for j721s2 pm_hal_optimized
.....

It seems the issue is related to an incorrect TOOLS_INSTALL_PATH.

In r10.1, the GCC toolchain and ti-cgt-c7000_4.1.0.LTS seem to be installed under $(HOME)/ti.
But the build process still try to get the tool from the root of SDK installed folder (same as r8.5)

Could you please advise on the correct way to build the PDK in r10.1?

Thanks.

Regards,
Christopher

  • Hi Christopher,

    It seems the issue is related to an incorrect TOOLS_INSTALL_PATH.

    Could you share your updated pdk_tools_path.mk file? Let me verify it and suggest possible changes.

    Regards,

    Karthik

  • Hi Christopher,

    In r10.1, the GCC toolchain and ti-cgt-c7000_4.1.0.LTS seem to be installed under $(HOME)/ti.

    Yes, correct. This was a change from previous SDKs to allow a single installation of tools if building multiple SDKs, whether it be for the same SoC or for different SoCs.

    This was a change done at the top-level SDK.

    But the build process still try to get the tool from the root of SDK installed folder (same as r8.5)

    The underlying SDK components though haven't changed and retained their previous build tool-path.

    You will need to modify the TOOLS_INSTALL_PATH in the <PDK>/packages/ti/build/Rules.make if you want to build from PDK folder, or pass the variable to the build command. This will apply to other components as well, if following that respective component build.

    Alternatively, you can build the PDK from the top-level SDK builder folder which doesn't need any tool adjustments.

    regards

    Suman

  • Hi Suman and Karthik,

    Thank you for the detailed explanation.

    I will proceed with building the PDK either from the top-level SDK builder or locally with modifications to Rules.make.

    Close the thread.

    Regards,
    Christopher