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.

Building Meta-Arago distro for AM3352 based boards

Other Parts Discussed in Thread: AM3352

Hi everyone

I'm developing applications on a custom board based on AM3352 Sitara processor, using
TI amsdk 7.0.

I need to install on the board an embedded Linux distribution that features opkg
package manager and also gcc for native compiling (I know it's very unusual but for
us would be useful), are also apreciated also audio-features like ALSA and gstreamer.
I would like to obtain it starting from meta-arago and tryed working as suggested
in arago-project tutorial
(http://arago-project.org/wiki/index.php/Setting_Up_Build_Environment)

Obtaining a "core-image-minimal" was easy, problems appeared quickly when trying to add
some features.

First idea was to modify /build/conf/local.conf file setting
EXTRA_IMAGE_FEATURES = "tools-sdk debug-tweaks" but bitbaking failed task
"do_rootfs" due to unresolved dependecies for "ldd"


Trying instead of running with different parameters together
1) oe-layertool-setup.sh with amsdk-07.00.00.00-config.txt
2) EXTRA_IMAGE_FEATURES = "tools-sdk debug-tweaks"
3) image target = tisdk-rootfs-image

last time gave a failure during /ptpd_2.3.0.bb, do_compile.

I can't understand if are the gitted/fetched files/recipes are broken or is something
that I miss to configure. Maybe a problem with mismatching toolchains? Any suggestion?

I'm also reasoning if should be possible to use the EZSDK_7.0 toolchain as crosscompiler
for bitbake instead of using downloaded gcc-linaro?
I suppose this would grant maximum compatibility between my distro and developed
applications.

Thanks in advice, Mirko.

  • Little insight...

    Bitbaking a dylan, core-image-minimal with option

    EXTRA_IMAGE_FEATURES = "dev-pkgs tools-sdk debug-tweaks" in /build/conf/local.conf, I get following error before end compiling:

    QA Issue: gcc: Files/directories were installed but not shipped
      /usr/bin/arm-oe-linux-gnueabi-arm-linux-gnueabihf-gcc-nm
      /usr/bin/arm-oe-linux-gnueabi-arm-linux-gnueabihf-gcc
      /usr/bin/arm-oe-linux-gnueabi-arm-linux-gnueabihf-gcc-ar
      /usr/bin/arm-oe-linux-gnueabi-arm-linux-gnueabihf-gcc-ranlib
      /usr/bin/arm-oe-linux-gnueabi-arm-linux-gnueabihf-g++

    it seems to me there are too much prefixs! "arm-oe-linux-gnueabi" and "linux-gnueabi-hf", but not sure were modify recipes to correct this.

  • Hi Mirko,

    I'm not very familiar with the bitbaking process, but can you please attach the whole build log with the errors?

    Best regards,
    Miroslav

  • Unfortunately BitBake has the bad habit to output its log files to display (600 or more lines) when error occur, so I completely lost previous bitbake's log, comprised warnings about gcc packages. I'm re-renning bit bake to recover it.

    Meanwhile I can tell that this time to compilation failed in do_rootfs task with the following error:

    Collected errors:
     * satisfy_dependencies_for: Cannot satisfy the following dependencies for packagegroup-core-sdk:
     *     ldd *
     * opkg_install_cmd: Cannot install package packagegroup-core-sdk.

    I faced Bitbake first just one week ago, I'm still messing around with recipes and manuals to understand how it works.

    PS: I'm wondering if it should be possible/wise to modify the sdk 7.0 script "ti-sdk-am335x-evm-07.00.00.00/bin/create-sdcard.sh" to include gcc into the generated sdcard distro.

  • Here is the full bitbake log plus the rows of error file specified specyfing error.

    MACHINE=am335x-evm bitbake core-image-minimal
    Pseudo is not present but is required, building this first before the main build
    Parsing recipes: 100% |#############################################################################################| Time: 00:01:46
    Parsing of 1595 .bb files complete (0 cached, 1595 parsed). 1976 targets, 154 skipped, 0 masked, 0 errors.
    WARNING: No recipes available for:
      /home/mirko/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtwebkit_5.2.0.bbappend
      /home/mirko/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtbase_5.2.0.bbappend

    Build Configuration:
    BB_VERSION        = "1.18.0"
    BUILD_SYS         = "i686-linux"
    NATIVELSBSTRING   = "Ubuntu-12.04"
    TARGET_SYS        = "arm-oe-linux-gnueabi"
    MACHINE           = "am335x-evm"
    DISTRO            = "arago"
    DISTRO_VERSION    = "2013.12"
    TUNE_FEATURES     = "armv7a vfp thumb neon callconvention-hard cortexa8"
    TARGET_FPU        = "vfp-neon"
    meta-arago-distro
    meta-arago-extras = "dylan:370ed5e9f68afd0937e01f6cd69863e45ba19c1f"
    meta-qt5          = "master:05ed65d22578296d5ef145ec20e6e7bb7b434c9b"
    toolchain-layer   
    meta-networking   
    meta-ruby         
    meta-oe           = "dylan:70ebe86f193decd17d6295bcd4d4e5589585c0cc"
    meta-ti           = "dylan:61fdfef43ee1aa4e5082923aea5b5a35673c0e30"
    meta-linaro-toolchain = "dylan:c9f78d6eff14ada3f2bc960e81883b27a10afecc"
    meta              = "dylan:b2d96a966215d90bd2514e2bbe8deabe9eaabea1"

    NOTE: Resolving any missing task queue dependencies
    NOTE: Preparing runqueue
    NOTE: Executing SetScene Tasks
    NOTE: Executing RunQueue Tasks
    NOTE: Tasks Summary: Attempted 72 tasks of which 0 didn't need to be rerun and all succeeded.

    Summary: There was 1 WARNING message shown.
    Loading cache: 100% |###############################################################################################| ETA:  00:00:00
    Loaded 1977 entries from dependency cache.
    WARNING: No recipes available for:
      /home/mirko/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtwebkit_5.2.0.bbappend
      /home/mirko/tisdk/sources/meta-arago/meta-arago-distro/recipes-qt/qt5/qtbase_5.2.0.bbappend

    Build Configuration:
    BB_VERSION        = "1.18.0"
    BUILD_SYS         = "i686-linux"
    NATIVELSBSTRING   = "Ubuntu-12.04"
    TARGET_SYS        = "arm-oe-linux-gnueabi"
    MACHINE           = "am335x-evm"
    DISTRO            = "arago"
    DISTRO_VERSION    = "2013.12"
    TUNE_FEATURES     = "armv7a vfp thumb neon callconvention-hard cortexa8"
    TARGET_FPU        = "vfp-neon"
    meta-arago-distro
    meta-arago-extras = "dylan:370ed5e9f68afd0937e01f6cd69863e45ba19c1f"
    meta-qt5          = "master:05ed65d22578296d5ef145ec20e6e7bb7b434c9b"
    toolchain-layer   
    meta-networking   
    meta-ruby         
    meta-oe           = "dylan:70ebe86f193decd17d6295bcd4d4e5589585c0cc"
    meta-ti           = "dylan:61fdfef43ee1aa4e5082923aea5b5a35673c0e30"
    meta-linaro-toolchain = "dylan:c9f78d6eff14ada3f2bc960e81883b27a10afecc"
    meta              = "dylan:b2d96a966215d90bd2514e2bbe8deabe9eaabea1"

    WARNING: QA Issue: external-linaro-toolchain: Files/directories were installed but not shipped
      /lib/libattr.so.1.1.0
      /lib/libacl.so.1
      /lib/libattr.so.1
      /lib/libacl.so.1.1.0
      /usr/lib/liblzma.so.5.0.0
      /usr/lib/liblzma.so.5
     
     
    WARNING: QA Issue: No GNU_HASH in the elf binary: '/home/mirko/tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/libssp/lib/libssp.so.0.0.0'


    WARNING: QA Issue: No GNU_HASH in the elf binary: '/home/mirko/tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/libmudflap/lib/libmudflap.so.0.0.0'
    WARNING: QA Issue: No GNU_HASH in the elf binary: '/home/mirko/tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/libmudflap/lib/libmudflapth.so.0.0.0'
    WARNING: QA Issue: non -staticdev package contains static .a library: libmudflap-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/libmudflap-dev/lib/libmudflap.a'
    WARNING: QA Issue: non -staticdev package contains static .a library: libmudflap-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/libmudflap-dev/lib/libmudflapth.a'
    WARNING: QA Issue: No GNU_HASH in the elf binary: '/home/mirko/tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/libgomp/lib/libgomp.so.1.0.0'
    WARNING: QA Issue: No GNU_HASH in the elf binary: '/home/mirko/tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/libitm/lib/libitm.so.1.0.0'
    WARNING: QA Issue: ELF binary '/home/mirko/tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/libitm/lib/libitm.so.1.0.0' has relocations in .text
    WARNING: QA Issue: non -staticdev package contains static .a library: external-linaro-toolchain-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/external-linaro-toolchain-dev/usr/lib/libnsl.a'
    WARNING: QA Issue: non -staticdev package contains static .a library: external-linaro-toolchain-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/external-linaro-toolchain-dev/usr/lib/libanl.a'
    WARNING: QA Issue: non -staticdev package contains static .a library: external-linaro-toolchain-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/external-linaro-toolchain-dev/usr/lib/libmcheck.a'
    WARNING: QA Issue: non -staticdev package contains static .a library: external-linaro-toolchain-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/external-linaro-toolchain-dev/usr/lib/libresolv.a'
    WARNING: QA Issue: non -staticdev package contains static .a library: external-linaro-toolchain-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/external-linaro-toolchain-dev/usr/lib/librt.a'
    WARNING: QA Issue: non -staticdev package contains static .a library: external-linaro-toolchain-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/external-linaro-toolchain-dev/usr/lib/libbsd-compat.a'
    WARNING: QA Issue: non -staticdev package contains static .a library: external-linaro-toolchain-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/external-linaro-toolchain-dev/usr/lib/libieee.a'
    WARNING: QA Issue: non -staticdev package contains static .a library: external-linaro-toolchain-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/external-linaro-toolchain-dev/usr/lib/libBrokenLocale.a'
    WARNING: QA Issue: non -staticdev package contains static .a library: external-linaro-toolchain-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/external-linaro-toolchain-dev/usr/lib/libpthread.a'
    WARNING: QA Issue: non -staticdev package contains static .a library: external-linaro-toolchain-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/external-linaro-toolchain-dev/usr/lib/libutil.a'
    WARNING: QA Issue: non -staticdev package contains static .a library: external-linaro-toolchain-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/external-linaro-toolchain-dev/usr/lib/librpcsvc.a'
    WARNING: QA Issue: non -staticdev package contains static .a library: external-linaro-toolchain-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/external-linaro-toolchain-dev/usr/lib/libm.a'
    WARNING: QA Issue: non -staticdev package contains static .a library: external-linaro-toolchain-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/external-linaro-toolchain-dev/usr/lib/libdl.a'
    WARNING: QA Issue: non -staticdev package contains static .a library: external-linaro-toolchain-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/external-linaro-toolchain-dev/usr/lib/libc.a'
    WARNING: QA Issue: non -staticdev package contains static .a library: external-linaro-toolchain-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/external-linaro-toolchain-dev/usr/lib/libcrypt.a'
    WARNING: QA Issue: non -staticdev package contains static .a library: external-linaro-toolchain-dev path '/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/external-linaro-toolchain/2013.03-r2-arago5/packages-split/external-linaro-toolchain-dev/usr/lib/libg.a'
    WARNING: QA Issue: No GNU_HASH in the elf binary: '/home/mirko/tisdk/build/arago-tmp-external-linaro-toolchain/work/cortexa8hf-vfp-neon-3.8-oe-linux-gnueabi/gdbm/1.8.3-r4/packages-split/gdbm/usr/lib/libgdbm.so.3.0.0'


    WARNING: The recipe attr is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
       /home/mirko/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm/lib/libattr.so.1.1.0
       Matched in manifest-am335x-evm-external-linaro-toolchain
       /home/mirko/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm/lib/libattr.so.1
       Matched in manifest-am335x-evm-external-linaro-toolchain
    Please verify which package should provide the above files.


    WARNING: The recipe acl is trying to install files into a shared area when those files already exist. Those files and their manifest location are:
       /home/mirko/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm/lib/libacl.so.1
       Matched in manifest-am335x-evm-external-linaro-toolchain
       /home/mirko/tisdk/build/arago-tmp-external-linaro-toolchain/sysroots/am335x-evm/lib/libacl.so.1.1.0
       Matched in manifest-am335x-evm-external-linaro-toolchain
    Please verify which package should provide the above files.


    WARNING: am33x-cm3: No generic license file exists for: TI-BSD in any provider


    #obtainde during task do_populate_sysroot
    WARNING: QA Issue: gcc: Files/directories were installed but not shipped
      /usr/bin/arm-oe-linux-gnueabi-arm-linux-gnueabihf-gcc-nm
      /usr/bin/arm-oe-linux-gnueabi-arm-linux-gnueabihf-gcc
      /usr/bin/arm-oe-linux-gnueabi-arm-linux-gnueabihf-gcc-ar
      /usr/bin/arm-oe-linux-gnueabi-arm-linux-gnueabihf-gcc-ranlib
      /usr/bin/arm-oe-linux-gnueabi-arm-linux-gnueabihf-g++


    ERROR: Task 8 (/home/mirko/tisdk/sources/oe-core/meta/recipes-core/images/core-image-minimal.bb, do_rootfs) failed with exit code '1'


    #the only error found in specified file is:
    Adding system startup for /home/mirko/tisdk/build/arago-tmp-external-linaro-toolchain/work/am335x_evm-oe-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/etc/init.d/run-postinsts.
    Collected errors:
     * satisfy_dependencies_for: Cannot satisfy the following dependencies for packagegroup-core-sdk:
     *     ldd *
     * opkg_install_cmd: Cannot install package packagegroup-core-sdk.