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.

Linux/PROCESSOR-SDK-AM335X: Yocto build issue

Part Number: PROCESSOR-SDK-AM335X
Other Parts Discussed in Thread: AM3354, OMAPL138

Tool/software: Linux

Hello All,

I am using TI processor AM3354 for development.Where application based on QT with SQLite to store the data.but when compile and try to run QT based SQlite application on target AM335x starter kit then fails and through the error SQL driver are missing.so finally trying to building Processor SDK(processor-sdk-03.02.00.05) and individual components from source using Yocto .But getting the following error:

Cloning into '/home/administrator/tisdk/sources/meta-arago'...
error: Could not resolve host: arago-project.org (curl_result = 6, http_code = 0, sha1 = 4b41ddf38da0b5c6a0458609a36411ed1884336d)
error: Unable to find 700424cdbf608b989615b3b2ff960093fed9e9a9 under arago-project.org/.../meta-arago.git
Cannot obtain needed tree 700424cdbf608b989615b3b2ff960093fed9e9a9
while processing commit d2594fff3e0c5567a26e853de95035337fca52cf.
error: Fetch failed.

The following procedure  followed for the building of SDK:

http://processors.wiki.ti.com/index.php/Processor_SDK_Building_The_SDK

Thanks,

Anil

  • The software team have been notified. They will respond here.
  • Hi Anil,

    There are a couple of reasons for this:
    1. The url is temporary unavailable. Try reaching the website & corresponding repository through your web browser.
    2. You're working behind a proxy and git is not configured correctly. Try exporting your proxy settings.

    Best Regards,
    Yordan
  • Hi Yordan,

    Thanks for reply,after couple of tries able to completed cloning of different components (bitbake,meta-arago,meta-qt5,meta-ti,meta-linaro etc.) but when execute the following the last command for build then getting error.

    command :
    MACHINE=am335x-evm bitbake arago-core-tisdk-image

    error:
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/anil/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -v' failed: [Errno 8] Exec format error
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/anil/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -v' failed: [Errno 8] Exec format error
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/anil/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -v' failed: [Errno 8] Exec format error
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/anil/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -v' failed: [Errno 8] Exec format error
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/anil/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -v' failed: [Errno 8] Exec format error
    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/anil/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -v' failed: [Errno 8] Exec format error
    Loading cache: 100% |###########################################################################################################| ETA: 00:00:00
    Loaded 2275 entries from dependency cache.
    ERROR: /home/anil/tisdk/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb: Failed to obtain external Linaro toolchain version: Execution of '/home/anil/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -v' failed: [Errno 8] Exec format error
    ERROR: /home/anil/tisdk/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb: Failed to obtain external Linaro toolchain version: Execution of '/home/anil/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc -v' failed: [Errno 8] Exec format error
    ERROR: ExpansionError during parsing /home/anil/tisdk/sources/meta-arago/meta-arago-extras/recipes-core/meta/external-linaro-sdk-toolchain.bb: Failure expanding variable ELT_VER_BFD[:=], expression was ${@elt_get_bfd_version(d)} which triggered exception OSError: [Errno 8] Exec format error

    I have tried all recommended solution in e2e community but still issue is persist.
    export arch=ARM
    export CROSS_COMPILE=/home/anil/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
    export PATH=$HOME/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/bin:$PATH


    Thanks,
    Anil
  • Hi Anil,

    Why don't you use the toolchain located inside the tisdk folder:
    ~/ti-processor-sdk-linux-am335x-evm-03.03.00.04/linux-devkit/sysroots/x86_64-arago-linux/usr/bin

    Another suggestion, check the permissions of home/anil/gcc-linaro-5.3-2016.02-x86_64_arm-linux-gnueabihf/ it is possible that this is accessible only to root or users with sudo rights.

    Best Regards,
    Yordan
  • Hi Yordan,

    Thanks for help and suggestion .

    Now I am able to compile and build the Am335x SDK using Yocto build.Please let me know how to add sqlite driver support though this yocto build.


    Thanks,
    Anil
  • Hello Anil,

    Please, check this thread.

    Best regards,
    Kemal

    1. Hi Kemal,

      Thanks for suggestion and support..

      We have already successfully build  AM335x SDK  using Yocto build procedure so we have followed following step to bring the SQLite driver support.here we are not used internet connection during the build.

      1.  cd build
      2.  echo 'PACKAGECONFIG_append = " sql-sqlite"' >> conf/local.conf
      3 . conf/setenv
      4. export PATH=$HOME/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin:$PATH
      5. MACHINE=am335x-evm bitbake qtbase

      Please note:
      The following step not used during build because we don't want migrate QT from resent version  to higher version of QT
      opkg install qtbase_5.4.1-r0-arago6-tisdk0_cortexa8t2hf-vfp-neon.ipk
      opkg install libcrypto1.0.0_1.0.1p-r0_cortexa8t2hf-vfp-neon.ipk
      opkg install libssl1.0.0_1.0.1p-r0_cortexa8t2hf-vfp-neon.ipk


      But we are getting following warning and errors
       
      1. WARNING: quilt-native-0.64-r0 do_configure: QA Issue: quilt-native: invalid PACKAGECONFIG: sql-sqlite [invalid-packageconfig]

      2. WARNING: cryptodev-module-1.8-r0.arago0 do_configure: QA Issue: cryptodev-module: invalid PACKAGECONFIG: sql-sqlite [invalid-packageconfig]
      NOTE: Tasks Summary: Attempted 1665 tasks of which 547 didn't need to be rerun and all succeeded.

      Please find the attached build log for more clarity.

      sqlite enable log.txt

    Regards,

    Anil

  • This warnings are expected.

  • I've a very similar problem, I'm trying to build yocto image using ti-processor sdk for omapl-138.
    Following the guide "processors.wiki.ti.com/.../Processor_SDK_Building_The_SDK", I can start making image for AM57xx but not for OMAPL138
    So command "MACHINE=am57xx-evm bitbake arago-core-tisdk-image" works fine.
    But command "MACHINE=omapl138 bitbake arago-core-tisdk-image" gives me following error.

    ERROR: Failed to obtain external Linaro toolchain version: Execution of '/home/ghumman/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/INVALID-linux-gcc -v' failed: command not found

    Following are parameters and paths in my terminal.

    ghumman@ghumman-HP-Desktop:~/tisdk/build$ echo $arch
    ARM
    ghumman@ghumman-HP-Desktop:~/tisdk/build$ echo $CROSS_COMPILE
    /home/ghumman/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-
    ghumman@ghumman-HP-Desktop:~/tisdk/build$ echo $PATH
    /home/ghumman/gcc-linaro-6.2.1-2016.11-x86_64_arm-linux-gnueabihf/bin/:/home/ghumman/tisdk/sources/oe-core/scripts:/home/ghumman/tisdk/sources/meta-browser/scripts:/home/ghumman/tisdk/sources/bitbake/bin:/home/ghumman/bin:/home/ghumman/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/opt/Qt/


    Please help.
    Thanks.
  • Hello Ahmed,

    Please, use the latest config file and make you sure that you have installed all the helper tools from the Host Setup step.

    Best regards,
    Kemal