Pre-requisite:
For K2E EVM: Download the PROCESSOR-SDK-LINUX-K2E 06_03_00_106 http://software-dl.ti.com/processor-sdk-linux/esd/K2E/latest/index_FDS.html
For K2H EVM: Download the PROCESSOR-SDK-LINUX-K2HK 06_03_00_106 http://software-dl.ti.com/processor-sdk-linux/esd/K2HK/latest/index_FDS.html
Steps:
- Install dependencies using this command
- “sudo apt-get install git build-essential python diffstat texinfo gawk chrpath dos2unix wget unzip socat doxygen libc6:i386 libncurses5:i386 libstdc++6:i386 libz1:i386”
- Configure Dash
- “sudo dpkg-reconfigure dash” and select “No” option.
- Install Cross compile toolchains
- Download ARM tool chain : “wget https://releases.linaro.org/components/toolchain/binaries/7.2-2017.11/arm-linux-gnueabihf/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz”.
- Extract it to "$HOME" directory, “tar -Jxvf gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz -C $HOME”.
-
Download "aarch64" tool chain :“wget https://releases.linaro.org/components/toolchain/binaries/7.2-2017.11/aarch64-linux-gnu/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu.tar.xz”.
- Extract it to "$HOME" directory, “tar -Jxvf gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu.tar.xz -C $HOME”.
- Build steps
- Download from git : “git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk”.
- Change current directory to "tisdk" : "cd tisdk".
- “./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-06.03.00.106-config.txt”.
- Change current directory to "build" : "cd build".
- Set environment variables : “. conf/setenv”
- Set tool chain paths,
- “export TOOLCHAIN_PATH_ARMV7=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf”
-
“export TOOLCHAIN_PATH_ARMV8=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu”
- Finally, give bitbake commands to build, “MACHINE=k2e-evm bitbake tisdk-rootfs-image”
- “k2e-evm” and “k2h-evm” are the two options for selecting appropriate evaluation modules.