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.

u-boot build fail - DTC upgrade



Dear Champs,

I tried to build PSDKv3.01 of AM335x and failed to build u-boot.

I found the message to upgrade dtc 1.4 in the log, but I don't know how I can upgrade dtc.

Could you please let me know how dtc can be upgraded?

~~~

OBJCOPY u-boot-nodtb.bin

../scripts/dtc-version.sh: line 17: dtc: command not found

./scripts/dtc-version.sh: line 18: dtc: command not found

******** Your dtc is too old, please upgrade to dtc 1.4 or newer

make[2]: *** [checkdtc] Error 1

make[1]: *** [__build_one_by_one] Error 2

Thanks and Best Regards,

SI.

  • Hi SI,

    Seems you have some issue with device tree compiler. I suggest you to check the version of your dtc using the command:

    dpkg -s device-tree-compiler | grep Version

    On my host PC the version is:

    Version: 1.3.0-2ubuntu1

    but I successfully build u-boot.

    You can try to install dtc:

    sudo apt-get install device-tree-compiler

    Also check the toolchain. The recommended version is: gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02)

    BR
    Tsvetolin Shulev

  • SI,

    For installing Device Tree Compiler version 1.4.1 you can get it from source:
    git clone git://git.kernel.org/pub/scm/utils/dtc/dtc.git -b v1.4.1
    cd dtc/
    make
    export PATH=$HOME/dtc/:$PATH

    BR
    Tsvetolin Shulev