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