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.

[FAQ] PROCESSOR-SDK-K2E: Rootfs Image creation

Part Number: PROCESSOR-SDK-K2E

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:

  1. Install dependencies using this command 
    1. “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”
  2. Configure Dash
    1. sudo dpkg-reconfigure dash” and select “No” option.
  3. Install Cross compile toolchains
    1. 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”. 
    2. Extract it to "$HOME" directory, “tar -Jxvf gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf.tar.xz -C $HOME”.
    3. 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”. 

    4. Extract it to "$HOME" directory, “tar -Jxvf gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu.tar.xz -C $HOME”. 
  4. Build steps
    1. Download from git : “git clone git://arago-project.org/git/projects/oe-layersetup.git tisdk”.
    2. Change current directory to "tisdk" : "cd tisdk".
    3. “./oe-layertool-setup.sh -f configs/processor-sdk/processor-sdk-06.03.00.106-config.txt”.
    4. Change current directory to "build" : "cd build".
    5. Set environment variables : “. conf/setenv”
    6. Set tool chain paths,
      1. “export TOOLCHAIN_PATH_ARMV7=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabihf”
      2. “export TOOLCHAIN_PATH_ARMV8=$HOME/gcc-linaro-7.2.1-2017.11-x86_64_aarch64-linux-gnu”

    7. Finally, give bitbake commands to build, “MACHINE=k2e-evm bitbake tisdk-rootfs-image”
      1. “k2e-evm” and “k2h-evm” are the two options for selecting appropriate evaluation modules.