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.

Git error when using "amsdk-08.00.00.00-config.txt" with oe-layertool-setup

I am trying to build tisdk-rootfs with Qt5 support in order to evaluate TI AM335X EVM kit as a touchscreen product.


I followed following steps on my Ubuntu 12.04 virtual machine :

1) git clone arago-project.org/.../oe-layersetup.git tisdk

2) cd tisdk/ ;  ./oe-layertool-setup.sh -f configs/amsdk/amsdk-08.00.00.00-config.txt

After bitbake repo is cloned, I get following error from meta-arago-amsdk git clone :

cloning repo meta-arago

Cloning into '/home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago'...
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-af68b35164700421a8651b538048b279d74b4bcc.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-472f1dcd180cc99edaea79bde2415ba69d86d24c.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-0879ecda978a69871c013f6af73fbc2432b315c5.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-c7d65ec7e23307d48dd13394cc7e6849c4bafa83.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-1041fa729036fa25d4d2c3db07c6175effa115a8.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-07a6078da7999773986f481c6ad59bc669ffd26d.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-53445fa7d1d8d4c7f42c6bedfdfe82519e0be964.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-bd6044012ff881936e7846db5c22a5fbd80e2fab.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-9c4e7ae562672d47891fc3aef253ffa37bf985ea.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-0bcb1e41491da2d5c04b305c03fc1951937a7375.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-a1a25741a0a52f9d765f079a42400cd19bc2af4b.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-48d15ae662cfb33c4c84b6851abd4b0f156f3ee8.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-8fc3594c1d133765af528205cd6948c97b32ecbc.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-10552072c47aa48fc35589fa174a02a25e9d4863.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-1debe4c3f68b6a0f45104f88633ec39e75b57ed3.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-4b7718f9122e90d05aa18cb504f17a473c72afb4.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-da3968e4477688c624995744e4c7a339e65050be.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-0d23cfe1b689c63ef17d068f5ed3ebaeed7e799c.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-a54c6dbd4d8396fd397405fdaea915bce28351cc.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-4d2be44c48b328de03583f7a9c1364e887519a25.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-7664b77773e9fe01935871369520ac1a64d2d0b4.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-16acd8790344dab54fe9aa1a5f9b797313e79af5.idx.temp
error: non-monotonic index /home/ankurt/am335x/yocto/poky/tisdk/sources/meta-arago/.git/objects/pack/pack-836784cca9673f9612fef07f49e8f9ebf24f4a09.idx.temp
error: Unable to find b08303eca619977b19f9da2cfd07b48beb8b6f22 under arago-project.org/.../meta-arago-amsdk.git
Cannot obtain needed object b08303eca619977b19f9da2cfd07b48beb8b6f22
error: Fetch failed.
ERROR: Could not clone repository at arago-project.org/.../meta-arago-amsdk.git

How to fix that ?

thanks

Ankur

  • Hello Ankur,

    It seems you have a local trouble on verifying the connectivity and validity of the objects in the git database.

    You may have obsolete files on your source directory. Have you tried to delete the tisdk/sources and re-fetch them?

    Also make sure that you have installed all the development tools as described here.

    Best regards,

    Kemal

  • Hello Kemal

    Thanks for your response. All development tools are already installed and deleting + re-fetching didn't worked.

    It was a proxy issue which was causing it, now fixed by using a non-proxy network.

    Now moving forward, I want to include graphics modules+libraries along with QT5 in final build.

    So what all changes shall I do before issuing "bitbake tisdk-rootfs-image" ?

    I am following this link but things are not clear as I am new to Yocto environment.

    regards

    Ankur

  • Hi,


    Above error was because of network proxy. Without proxy(changed my machine), above step works.

    Now I am stuck after following steps :

    cd oe-layertool-setup
    ./oe-layertool-setup.sh -f configs/amsdk/amsdk-08.00.00.00-config.txt
    cd build
    . conf/setenv
    export PATH=/home/hr5/sdk8_ti/linux-devkit/sysroots/i686-arago-linux/usr/bin:$PATH
    updated conf/local.conf to include qt5
    updated conf/bblayers.conf to include meta-qt5
    MACHINE=am335x-evm bitbake tisdk-rootfs-image

    Get this error :

    ERROR: Function failed: do_install (log file is located at /home/hr5/yocto-ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/cortexa8t2hf-vfp-neon-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago7/temp/log.do_install.53377)
    ERROR: Logfile of failure stored in: /home/hr5/yocto-ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/cortexa8t2hf-vfp-neon-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago7/temp/log.do_install.53377
    Log data follows:
    | DEBUG: Executing shell function do_install
    | cp: cannot stat `/home/hr5/sdk8_ti/linux-devkit/sysroots/i686-arago-linux/usr/arm-linux-gnueabihf/libc/usr/share/*': No such file or directory
    | WARNING: exit code 1 from a shell command.
    | ERROR: Function failed: do_install (log file is located at /home/hr5/yocto-ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/cortexa8t2hf-vfp-neon-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago7/temp/log.do_install.53377)
    ERROR: Task 38 (/home/hr5/yocto-ti/oe-layersetup/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb, do_install) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 203 tasks of which 0 didn't need to be rerun and 1 failed.
    Waiting for 0 running tasks to finish:

    Summary: 1 task failed:
    /home/hr5/yocto-ti/oe-layersetup/sources/meta-linaro/meta-linaro-toolchain/recipes-devtools/external-linaro-toolchain/external-linaro-toolchain.bb, do_install
    Summary: There was 1 WARNING message shown.
    Summary: There was 1 ERROR message shown, returning a non-zero exit code.

    Thanks

    Ankur
  • Hello Ankur,

    For modules and library inclusion you can use the demo applications as a reference.

    It fails because of the absent share directory in your libc. You better use the recommended toolchain.

    Best regards,

    Kemal

  • Hello Kemal,

    After days of trials and reading various forums, I am still stuck.:

    Downloaded recommended toolchain (as you suggested) gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux.tar.bz2 and I get this error :

    ERROR: No valid toolchain in PATH

    I am confused and couldn't find answers to following questions :

    Question 1: Isn't Toolchain inside the SDK is sufficient ? Following thread says so https://e2e.ti.com/support/embedded/linux/f/354/p/359271/1270460

    Question 2: Even with recommended toolchain, why am I getting error.

    Question 3: Can you please be specific in mentioned which demo application shall I use as a reference ?

    Question 4 : I would appreciate if you can please tell me exact parameters that I should add in a particular file which would allow graphics modules, libraries, demos inclusion in my tisdk-rootfs.

    regards

    Ankur

  • Hello Ankur,

    These would be the answers which you are looking for.

    Question 1:

    May be it was sufficient before but in the present it is not, according the error which gives.

    Question 2:

    You are getting this error because of wrong or not exported toolchain path.

    Check the PATH variable:

    $ echo $PATH

    Correct the path or export it as per your toolchan location:

    $ export PATH=$HOME/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin:$PATH

    Question 3:

    I meant sources/meta-qt5/recipes-qt/demo-extrafiles.

    Question 4:

    Qt5 graphics, modules, libraries, demos are already included in the rootfs. If you want to add your own custom ones. You can find the answer here.

    Best regards,

    Kemal

  • Hello Kemal,

    Thanks for your response.

    With your suggestions and in order to use Qt5.4, I selected "arago-daisy-config.txt" and now I am stuck with this error :

    Build Configuration:
    BB_VERSION        = "1.24.0"
    BUILD_SYS         = "x86_64-linux"
    NATIVELSBSTRING   = "Ubuntu-12.04"
    TARGET_SYS        = "arm-linux-gnueabi"
    MACHINE           = "am335x-evm"
    DISTRO            = "arago"
    DISTRO_VERSION    = "2015.04"
    TUNE_FEATURES     = "armv7a vfp thumb neon callconvention-hard cortexa8"
    TARGET_FPU        = "vfp-neon"
    meta-arago-distro
    meta-arago-extras = "master:d89d88b0116db5ba6bad879edc527486bc661e26"
    meta-qt5          = "master:48ebff679e5dc084d395b861a1fc4cb21790d51b"
    toolchain-layer  
    meta-networking  
    meta-ruby        
    meta-oe           = "daisy:d3d14d3fcca7fcde362cf0b31411dc4eea6d20aa"
    meta-ti           = "daisy:22fae58f64285aff7e64af1fcab34a4d839341d6"
    meta-linaro-toolchain = "daisy:06008235ca752fea678953e85adaa29a491d246b"
    meta              = "daisy:a2966949e68bbdce8d0a0fd5946d078b84ae63e9"

    NOTE: Preparing runqueue
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    WARNING: Failed to fetch URL zlib.net/.../pigz-2.3.1.tar.gz, attempting MIRRORS if available
    WARNING: Checksum failure encountered with download of rpm5.org/.../popt-1.16.tar.gz - will attempt other sources if available
    WARNING: Renaming /home/hr5/yocto-ti/oe-layersetup/downloads/popt-1.16.tar.gz to /home/hr5/yocto-ti/oe-layersetup/downloads/popt-1.16.tar.gz_bad-checksum_6a15c564f38e9f330c0516b84bf061b0
    WARNING: Failed to fetch URL ftp.debian.org/.../base-passwd_3.5.29.tar.gz, attempting MIRRORS if available
    WARNING: Checksum failure encountered with download of www.hpl.hp.com/.../libatomic_ops-7.2.tar.gz - will attempt other sources if available
    WARNING: Renaming /home/hr5/yocto-ti/oe-layersetup/downloads/libatomic_ops-7.2.tar.gz to /home/hr5/yocto-ti/oe-layersetup/downloads/libatomic_ops-7.2.tar.gz_bad-checksum_597a15980f9dd8426c35bfbc48227812
    WARNING: Failed to fetch URL downloads.sourceforge.net/.../libpng-1.6.8.tar.xz, attempting MIRRORS if available
    WARNING: Failed to fetch URL software-dl.ti.com/.../Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin, attempting MIRRORS if available
    ERROR: Fetcher failure for URL: 'software-dl.ti.com/.../Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin'. The fetch of software-dl.ti.com/.../Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin resulted in a zero size file?! Deleting and failing since this isn't right.
    ERROR: Function failed: Fetcher failure for URL: 'software-dl.ti.com/.../Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin'. Unable to fetch URL from any source.
    ERROR: Logfile of failure stored in: /home/hr5/yocto-ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/cortexa8t2hf-vfp-neon-linux-gnueabi/libgles-omap3/5.01.01.02-r38.1/temp/log.do_fetch.14640
    ERROR: Task 1692 (/home/hr5/yocto-ti/oe-layersetup/sources/meta-ti/recipes-graphics/libgles/libgles-omap3_5.01.01.02.bb, do_fetch) failed with exit code '1'
    WARNING: Failed to fetch URL git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-linux-3.14.y, attempting MIRRORS if available
    ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
    Cloning into bare repository '/home/hr5/yocto-ti/oe-layersetup/downloads/git2/git.ti.com.ti-linux-kernel.ti-linux-kernel.git'...
    fatal: read error: Connection reset by peer
    fatal: early EOF
    fatal: index-pack failed

    ERROR: Function failed: Fetcher failure for URL: 'git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-linux-3.14.y'. Unable to fetch URL from any source.
    ERROR: Logfile of failure stored in: /home/hr5/yocto-ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/linux-ti-staging/3.14.39-r22a+gitrAUTOINC+1bc045ab66-arago2/temp/log.do_fetch.53149
    ERROR: Task 76 (/home/hr5/yocto-ti/oe-layersetup/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_3.14.bb, do_fetch) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 818 tasks of which 0 didn't need to be rerun and 2 failed.
    Waiting for 0 running tasks to finish:

    Summary: 2 tasks failed:
      /home/hr5/yocto-ti/oe-layersetup/sources/meta-ti/recipes-graphics/libgles/libgles-omap3_5.01.01.02.bb, do_fetch
      /home/hr5/yocto-ti/oe-layersetup/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_3.14.bb, do_fetch
    Summary: There were 9 WARNING messages shown.
    Summary: There were 4 ERROR messages shown, returning a non-zero exit code.

    regards

    Ankur

  • Hi Kemal,

    Thanks for your response, things are clear now (I hope)

    With your suggestions and in order to use Qt5.4, I selected "arago-daisy-config.txt" and now I am stuck with following :

    Build Configuration:
    BB_VERSION = "1.24.0"
    BUILD_SYS = "x86_64-linux"
    NATIVELSBSTRING = "Ubuntu-12.04"
    TARGET_SYS = "arm-linux-gnueabi"
    MACHINE = "am335x-evm"
    DISTRO = "arago"
    DISTRO_VERSION = "2015.04"
    TUNE_FEATURES = "armv7a vfp thumb neon callconvention-hard cortexa8"
    TARGET_FPU = "vfp-neon"
    meta-arago-distro
    meta-arago-extras = "master:d89d88b0116db5ba6bad879edc527486bc661e26"
    meta-qt5 = "master:48ebff679e5dc084d395b861a1fc4cb21790d51b"
    toolchain-layer
    meta-networking
    meta-ruby
    meta-oe = "daisy:d3d14d3fcca7fcde362cf0b31411dc4eea6d20aa"
    meta-ti = "daisy:22fae58f64285aff7e64af1fcab34a4d839341d6"
    meta-linaro-toolchain = "daisy:06008235ca752fea678953e85adaa29a491d246b"
    meta = "daisy:a2966949e68bbdce8d0a0fd5946d078b84ae63e9"

    NOTE: Preparing runqueue
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    WARNING: Failed to fetch URL zlib.net/.../pigz-2.3.1.tar.gz, attempting MIRRORS if available
    WARNING: Checksum failure encountered with download of rpm5.org/.../popt-1.16.tar.gz - will attempt other sources if available
    WARNING: Renaming /home/hr5/yocto-ti/oe-layersetup/downloads/popt-1.16.tar.gz to /home/hr5/yocto-ti/oe-layersetup/downloads/popt-1.16.tar.gz_bad-checksum_6a15c564f38e9f330c0516b84bf061b0
    WARNING: Failed to fetch URL ftp.debian.org/.../base-passwd_3.5.29.tar.gz, attempting MIRRORS if available
    WARNING: Checksum failure encountered with download of www.hpl.hp.com/.../libatomic_ops-7.2.tar.gz - will attempt other sources if available
    WARNING: Renaming /home/hr5/yocto-ti/oe-layersetup/downloads/libatomic_ops-7.2.tar.gz to /home/hr5/yocto-ti/oe-layersetup/downloads/libatomic_ops-7.2.tar.gz_bad-checksum_597a15980f9dd8426c35bfbc48227812
    WARNING: Failed to fetch URL downloads.sourceforge.net/.../libpng-1.6.8.tar.xz, attempting MIRRORS if available
    WARNING: Failed to fetch URL software-dl.ti.com/.../Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin, attempting MIRRORS if available
    ERROR: Fetcher failure for URL: 'software-dl.ti.com/.../Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin'. The fetch of software-dl.ti.com/.../Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin resulted in a zero size file?! Deleting and failing since this isn't right.
    ERROR: Function failed: Fetcher failure for URL: 'software-dl.ti.com/.../Graphics_SDK_setuplinux_hardfp_5_01_01_02.bin'. Unable to fetch URL from any source.
    ERROR: Logfile of failure stored in: /home/hr5/yocto-ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/cortexa8t2hf-vfp-neon-linux-gnueabi/libgles-omap3/5.01.01.02-r38.1/temp/log.do_fetch.14640
    ERROR: Task 1692 (/home/hr5/yocto-ti/oe-layersetup/sources/meta-ti/recipes-graphics/libgles/libgles-omap3_5.01.01.02.bb, do_fetch) failed with exit code '1'
    WARNING: Failed to fetch URL git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-linux-3.14.y, attempting MIRRORS if available
    ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
    Cloning into bare repository '/home/hr5/yocto-ti/oe-layersetup/downloads/git2/git.ti.com.ti-linux-kernel.ti-linux-kernel.git'...
    fatal: read error: Connection reset by peer
    fatal: early EOF
    fatal: index-pack failed

    ERROR: Function failed: Fetcher failure for URL: 'git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git;protocol=git;branch=ti-linux-3.14.y'. Unable to fetch URL from any source.
    ERROR: Logfile of failure stored in: /home/hr5/yocto-ti/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/linux-ti-staging/3.14.39-r22a+gitrAUTOINC+1bc045ab66-arago2/temp/log.do_fetch.53149
    ERROR: Task 76 (/home/hr5/yocto-ti/oe-layersetup/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_3.14.bb, do_fetch) failed with exit code '1'
    NOTE: Tasks Summary: Attempted 818 tasks of which 0 didn't need to be rerun and 2 failed.
    Waiting for 0 running tasks to finish:

    Summary: 2 tasks failed:
    /home/hr5/yocto-ti/oe-layersetup/sources/meta-ti/recipes-graphics/libgles/libgles-omap3_5.01.01.02.bb, do_fetch
    /home/hr5/yocto-ti/oe-layersetup/sources/meta-ti/recipes-kernel/linux/linux-ti-staging_3.14.bb, do_fetch
    Summary: There were 9 WARNING messages shown.
    Summary: There were 4 ERROR messages shown, returning a non-zero exit code.

    I don't have any proxy and I have tried cloning it on different machine but no success.

    regards
    Ankur
  • Hello Ankur,

    It looks like a network issue. You have the bad checksum warnings and fetch errors all along the log. Try to find out why these files are unreachable. With the proper proxy and git settings, you should be able to fetch them even behind a proxy.

    Best regards,
    Kemal

  • Hello Kemal,

    Following your points, I am able to proceed on a new machine without any proxy. I did following steps

    git clone git://arago-project.org/git/projects/oe-layersetup.git
    cd oe-layertool-setup
    ./oe-layertool-setup.sh -f configs/amsdk/arago-daisy-config.txt
    cd build
    . conf/setenv
    export PATH=$HOME/gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux/bin:$PATH
    MACHINE=am335x-evm bitbake tisdk-rootfs-image

    However, there are following things that I would like to know :

    1) How to disable qt-webkit, wayland, X11 and matrix-gui ? I only want qt-5.4 with eglfs

    thanks
    Ankur
  • Hello Ankur,

    X11 is not included by default, but If you want to explicitly exclude them however, add the following content to the local.conf file:

    #for removing the webkit
    PACKAGECONFIG_remove = "qtwebkit"
    #for removing the wayland and x11
    DISTRO_FEATURES_remove = "wayland x11"


    You can disable the Matrix GUI as described here.
    You should have the eglfs by default in the produced rootfs-image .

    Best regards,
    Kemal

  • Hello Kemal,

    Thanks for your response.
    But that way of disabling Matrix GUI stops it from getting executed during bootup.

    I want to disable matrix gui build during rootfs creation itself, something like DISTRO_FEATURES_remove = "matrix-gui"

    Another thing, how I can see the compile/configure options that bit bake is using to build stuff ? Bitbake doesn't give verbose output.

    Actually I am interested in seeing which defconfig is used to build vmlinux and what options are used to configure qt.

    thanks
    Ankur
  • Hello Ankur,

    You can exclude the whole matrix gui creation by this way.

    BBMASK = "meta-arago/meta-arago-extras/recipes-core/matrix/|meta-arago/meta-arago-distro/recipes-core/packagegroups/packagegroup-arago-tisdk-matrix.bb"
    IMAGE_INSTALL_remove = "packagegroup-arago-tisdk-matrix"


    If you pass the -v argument to the bitbake it'll give you verbose output.

    The default defconfig file is omap2plus_defconfig additionally config fragments are merged to it which is new in kernel 3.14. You can see this in build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/linux-ti-staging/3.14.42-r22a+gitrAUTOINC+742c0f0c7d-arago2/temp/log.do_compileconfigs.xxxx

    To see which options are used check the build/arago-tmp-external-linaro-toolchain/work/am335x_evm-linux-gnueabi/linux-ti-staging/3.14.42-r22a+gitrAUTOINC+742c0f0c7d-arago2/git/.config for kernel and build/arago-tmp-external-linaro-toolchain/work/cortexa8t2hf-vfp-neon-linux-gnueabi/qtbase/5.4.1-r0-arago6/build/config.summary for qt.

    Best regards,
    Kemal

  • Thank you for your response.  Moving ahead, I tried building a toolchain for Qt development for doing steps :

    1. MACHINE=am335x-evm bitbake -k meta-toolchain-qt5

    Above created "arago-2015.05-toolchain-2015.05.sh"  in directory /home/ankur/ti-yocto/oe-layersetup/build/arago-tmp-external-linaro-toolchain/deploy/sdk

    2.Installed toolchain in directory /home/ankur/toolchain-ti.

    3.Updated qtcreator.sh to set correct environment variables by adding following line

    source /home/ankur/toolchain-ti/environment-setup-cortexa8t2hf-vfp-neon-linux-gnueabi

    #! /bin/sh

    makeAbsolute() {

    Then did setup of Qtcreator 3.4.0 as per http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Hands_on_with_QT

    When I compile a simple hello world program, I get following errors:

    rm-linux-gnueabihf-g++ -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 --sysroot=/home/ankur/toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi -c -pipe -fstack-protector -O2 -pipe -g -feliminate-unused-debug-types -g -Wall -W -D_REENTRANT -fPIE -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../QTQuickDemo_v0.2 -I. -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5 -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtQuick -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtWidgets -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtGui -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtQml -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtNetwork -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtCore -I. -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o main.o ../QTQuickDemo_v0.2/main.cpp

    In file included from ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtCore/qglobal.h:70:0,

    from ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtCore/qcoreapplication.h:37,

    from ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtWidgets/qapplication.h:37,

    from ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtWidgets/QApplication:1,

    from ../QTQuickDemo_v0.2/main.cpp:1:

    ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtCore/qcompilerdetection.h:890:20: fatal error: utility: No such file or directory

    compilation terminated.

    I fixed above by adding following in my .pro file:


    INCLUDEPATH += /home/ankur/toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/include/c++/4.7.3
    INCLUDEPATH += /home/ankur/toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/include/c++/4.7.3/arm-linux-gnueabihf/arm-linux-gnueabi

    Then it gives error :

    arm-linux-gnueabihf-g++ -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 --sysroot=/home/ankur/toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi -c -pipe -fstack-protector -O2 -pipe -g -feliminate-unused-debug-types -g -Wall -W -D_REENTRANT -fPIE -DQT_QUICK_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_QML_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I../QTQuickDemo_v0.2 -I. -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/include/c++/4.7.3 -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/include/c++/4.7.3/arm-linux-gnueabihf/arm-linux-gnueabi -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5 -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtQuick -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtWidgets -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtGui -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtQml -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtNetwork -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtCore -I. -I../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/lib/qt5/mkspecs/linux-oe-g++ -o main.o ../QTQuickDemo_v0.2/main.cpp

    In file included from ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtGui/qopenglcontext.h:54:0,

    from ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtGui/QtGui:32,

    from ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtQuick/QtQuickDepends:4,

    from ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtQuick/QtQuick:3,

    from ../QTQuickDemo_v0.2/main.cpp:4:

    ../../../toolchain-ti/sysroots/cortexa8t2hf-vfp-neon-linux-gnueabi/usr/include/qt5/QtGui/qopengl.h:99:26: fatal error: GLES2/gl2.h: No such file or directory

    compilation terminated.

    Clearly, toolchain is not properly built or setup.

    Am I missing some step ? Any help is appreciated.

    thanks

    Ankur

  • Hello Ankur,

    If you source the environment-setup file it should provide all the necessary settings for the first hello world example.

    source /home/sitara/ti-sdk-<machine>-<sdk version>/linux-devkit/environment-setup

    Since we start to go off topic. If the git errors are solved "Git error when using "amsdk-08.00.00.00-config.txt" with oe-layertool-setup", please close this thread and create another one if you encounter any other difficulties during the implementation of these examples.

    Best regards,
    Kemal

  • Hi Kemal,

    Thanks for your help.

    I have started a new thread for qtcreator error @ e2e.ti.com/.../424154

    Regards

    Ankur