Tool/software:
Hello TI team,
I'm currently exploring the setup for psdk 9.02.00. I only want to have the necessary to start the development for mcu1_0, mcu1_1, mcu2_0, mcu2_1, mcu3_0, mcu3_1, c66xdsp_1, c66xdsp_2, c7x_1. Linux development and dependencies are not required for now. My plan is to create a psdk setup that can be used for all the dev team, that implies to create a repository with the needed changes in the psdk so everyone can follow the same steps for the setup. I have some doubts regarding this setup, below are the steps and observations that I have:
- I downloaded and extracted psdk ti-processor-sdk-rtos-j721e-evm-09_02_00_05
- I executed the script (/ti-processor-sdk-rtos-j721e-evm-09_02_00_05/sdk_builder/scripts) setup_psdk_rtos.sh with the options: --firmware_only --skip_pc_emulation --skip_atf_optee
- After the installation I observed that these compilers were installed in home/ti: ti-cgt-armllvm_3.2.1.LTS, ti-cgt-c6000_8.3.7, ti-cgt-c7000_4.1.0.LTS
- I executed the compilation for mcu3_0 from path ti-processor-sdk-rtos-j721e-evm-09_02_00_05/pdk_jacinto_09_02_00_30/packages/ti/build: make -s all BOARD=j721e_evm CORE=mcu3_0
- When executed the last command, I got some error regarding the gcc compiler, so I manually downloaded and installed the gcc package in /home/ti: gcc-arm-9.2-2019.12-x86_64-aarch64-none-elf
- I had to update the Rules.make file to use a new path for the tools: TOOLS_INSTALL_PATH ?= $(HOME)/ti
- I had to also install mono with sudo apt install mono-devel
With all the steps above, I was able to build mcu3_0 and mcu3_1. However, I faced some compilation issues, sometimes some coredumps and sometimes some clang issues.
CLANG issue:
/lib/x86_64-linux-gnu/libc.so.6(+0x29d90)[0x7dfcd4629d90]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0x80)[0x7dfcd4629e40]
/home/ep2000/ti/ti-cgt-armllvm_3.2.1.LTS/bin/tiarmclang[0xa1b0f5]
tiarmclang: error: clang frontend command failed with exit code 139 (use -v to see invocation)
TI Arm Clang Compiler 3.2.1.LTS
Target: arm-ti-none-eabi
Thread model: posix
InstalledDir: /home/ep2000/ti/ti-cgt-armllvm_3.2.1.LTS/bin
tiarmclang: note: diagnostic msg:
********************
PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
tiarmclang: note: diagnostic msg: /tmp/tasks-2986d4.c
tiarmclang: note: diagnostic msg: /tmp/tasks-2986d4.sh
tiarmclang: note: diagnostic msg:
********************
make[2]: *** [/home/ep2000/Documents/PSDK_09_02_00/ti-processor-sdk-rtos-j721e-evm-09_02_00_05/pdk_jacinto_09_02_00_30/packages/ti/build/makerules/rules_ti_cgt_arm.mk:199: /home/ep2000/Documents/PSDK_09_02_00/ti-processor-sdk-rtos-j721e-evm-09_02_00_05/pdk_jacinto_09_02_00_30/packages/ti/binary/ti/kernel/obj/j721e/mcu3_1/release/tasks.oer5f] Error 1
make[1]: *** [/home/ep2000/Documents/PSDK_09_02_00/ti-processor-sdk-rtos-j721e-evm-09_02_00_05/pdk_jacinto_09_02_00_30/packages/ti/build/makefile:325: freertos] Error 2
Core dump:
# SBL App image /home/ep2000/Documents/PSDK_09_02_00/ti-processor-sdk-rtos-j721e-evm-09_02_00_05/pdk_jacinto_09_02_00_30/packages/ti/binary/board_ddr_thermal_test_app_freertos/bin/j721e_evm/board_ddr_thermal_test_app_freertos_mcu3_1_release.appimage and /home/ep2000/Documents/PSDK_09_02_00/ti-processor-sdk-rtos-j721e-evm-09_02_00_05/pdk_jacinto_09_02_00_30/packages/ti/binary/board_ddr_thermal_test_app_freertos/bin/j721e_evm/board_ddr_thermal_test_app_freertos_mcu3_1_release_BE.appimage created.
#
make[1]: *** [/home/ep2000/Documents/PSDK_09_02_00/ti-processor-sdk-rtos-j721e-evm-09_02_00_05/pdk_jacinto_09_02_00_30/packages/ti/build/makefile:110: board_baremetal_ddr_thermal_test_app_has_dep] Segmentation fault (core dumped)
make: *** [makefile:132: all_apps] Error 2
The errors above are random, I can sometimes compile without any problem but sometimes those errors show up. When any of these errors happen, I have to re-run the compilation multiple times in order to fix it.
Summarizing, I have these questions:
- Are the steps I followed for psdk setup correct?
- Is expected to have clang issues and core dumps during the compilation?
Additional info: I'm using virtual machine (vmware) with ubuntu 22.04
Regards,
José Daniel