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] 66AK2H12: Linux build from Processor Linux SDK

Part Number: 66AK2H12
Other Parts Discussed in Thread: 66AK2H14, , 66AK2H06

How to build Boot Monitor, Linux, Device tree, and Kernel from "Processor-SDK-Linux" for K2H Family devices (EVMK2H, 66AK2H12, 66AK2H06, 66AK2H14)?

  • To build Linux for K2H EVM, the following pre-requisites should be met,

    1. PC with Ubuntu OS 18.04 LTS installed (The SDK can also be installed in CentOS).
    2. Download and Install " PROCESSOR-SDK-LINUX-K2E  Linux Processor SDK for K2H / K2K " from https://www.ti.com/tool/download/PROCESSOR-SDK-LINUX-K2HK (Make sure SDK is installed in "$HOME" directory)

    Steps:

    1. Install all the dependency packages (Open Linux bash terminal and give the following commands).

      "sudo apt-get install diffstat texi2html texinfo subversion chrpath build-essential subversion ccache sed wget cvs coreutils unzip texinfo docbook-utils gawk help2man file g++ bison flex htmldoc chrpath libxext-dev xserver-xorg-dev doxygen socat u-boot-tools git"



      Also refer to this link for environment setup: 
      https://software-dl.ti.com/processor-sdk-linux/esd/docs/06_03_00_106/linux/Overview_Building_the_SDK.html#prerequisites-one-time-setup

    2. Download the cross-compile toolchain using the below commands and place them in "$HOME" directory
    3. Add the toolchain path to the "$PATH" variable

      "export PATH=$HOME/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf/bin:$PATH"
      "export PATH=$HOME/gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu/bin:$PATH"


    4. Goto "{SDK_FOLDER}/board-support/linux-{VERSION}/" folder and below commands will remove the previous builds,

      make clean distclean ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

      ls arch/arm/configs/ | grep k2hk

      make tisdk_k2hk-evm_defconfig ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

      make -j8 zImage dtbs ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-

      ls -al ./arch/arm/boot/dts/keystone-k2hk-evm.dtb

      ls -al ./arch/arm/boot/zImage

    5. After sucessful compilation "zImage" will be present in the path "arch/arm/boot/zimage"  and "keystone-k2hk-evm.dtb" will be present in "arch/arm/boot/dts/keystone-k2hk-evm.dtb"
    6.  The following video demonstrates the steps,

                                         

                             

    Thanks  & Regards,

    Rajarajan U