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: EVMK2H U-Boot build

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

How to build U-Boot from "Processor-SDK-Linux" for K2H Family devices (EVMK2H, 66AK2H12, 66AK2H06, 66AK2H14)?

  • To build U-Boot 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

      "wget ">developer.arm.com/.../gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz"
      "tar -Jxvf gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf.tar.xz -C $HOME"
      "wget ">developer.arm.com/.../gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz"
      "tar -Jxvf gcc-arm-8.3-2019.03-x86_64-aarch64-linux-gnu.tar.xz -C $HOME"

    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/u-boot-{VERSION}/" folder and below commands will remove the previous builds,

      make CROSS_COMPILE=arm-linux-gnueabihf- distclean
      rm -rf ./k2hk_evm

    5. For compilation and build, please give following commands

      make CROSS_COMPILE=arm-linux-gnueabihf- O=k2hk_evm k2hk_evm_defconfig
      make CROSS_COMPILE=arm-linux-gnueabihf- O=k2hk_evm

    6. After successful compilation, Inside "k2hk_evm" directory "u-boot-spi.gph" file will be present.

                 

         The following video demonstrates the steps:

                         

    Thanks & Regards,

    Rajarajan U