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 Kernel building error for K2HEVM

Hello

I was trying to build Linux Kernel FOR K2H EVM. I was following the MCSDK User Guide . In the 3.3.5 Build procedure, I type "MACHINE=k2hk-evm TOOLCHAIN_BRAND=linaro ARAGO_BRAND=mcsdk bitbake tisdk-server-rootfs-image". And then I got the following errors (part of terminal output is showing).

 Can anyone help me with that? I am using Ubuntu-14.04.

Thanks.

Xining Yu 

make[3]: Leaving directory `/home/iart/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/build.x86_64-linux.x86_64-linux/bfd/po'
| make[3]: Entering directory `/home/iart/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/build.x86_64-linux.x86_64-linux/bfd/po'
| make[3]: Nothing to be done for `info'.
| make[3]: Leaving directory `/home/iart/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/build.x86_64-linux.x86_64-linux/bfd/po'
| make[3]: Entering directory `/home/iart/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/build.x86_64-linux.x86_64-linux/bfd'
| make[3]: Nothing to be done for `info-am'.
| make[3]: Leaving directory `/home/iart/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/build.x86_64-linux.x86_64-linux/bfd'
| make[2]: *** [info-recursive] Error 1
| make[2]: Leaving directory `/home/iart/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/build.x86_64-linux.x86_64-linux/bfd'
| make[1]: *** [all-bfd] Error 2
| make[1]: Leaving directory `/home/iart/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/binutils-2.20.1/build.x86_64-linux.x86_64-linux'
| make: *** [all] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (see /home/iart/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/binutils-native/2.20.1-r9/temp/log.do_compile.31639 for further information)
ERROR: Task 714 (virtual:native:/home/iart/oe-layersetup/sources/meta-arago/meta-arago-extras/recipes-devtools/binutils/binutils_2.20.1.bb, do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 348 tasks of which 72 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
virtual:native:/home/iart/oe-layersetup/sources/meta-arago/meta-arago-extras/recipes-devtools/binutils/binutils_2.20.1.bb, do_compile
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

  • Hi,
    Are you using 64 bit machine ?
    Is that your machine is native host or virtual machine ?
  • Yes, I am using 64 bit native host PC.
  • Can anyone help me with that?
    Thanks!
  • Hi,

    Right now, we don't have 64bit ubuntu 14.04 machine to test but we did it in ubuntu 12.04 32bit and got success.

    Let us try this and update you.

    Please make sure that you installed necessary packages for 32bit toolchains etc.,

  • In which host machine you have done yocto build ? Is it Ubuntu 14 or Ubuntu 12.04?

    I have tried on both the versions of ubuntu. I was successful in the version 12.04 and seems to have some build errors  in the version 14. However, the recommended version for yocto build is 12.04.

    Please use the following commands for yocot build on Ubuntu 12.04 LTS host machine.

    $git clone arago-project.org/.../oe-layersetup.git

    $cd oe-layersetup

    $./oe-layertool-setup.sh -f configs/mcsdk/mcsdk-03.01.03.06-config.txt

    $export CROSS_COMPILE=arm-linux-gnueabihf-

    $export ARCH=arm

    $cd oe-layersetup/build

    $source conf/setenv

    $MACHINE=k2hk-evm TOOLCHAIN_BRAND=linaro ARAGO_BRAND=mcsdk bitbake tisdk-server-rootfs-image

    Attached the boot log of the successful build.

    yocto_build_log.txt

     

    Regards,

    Shankari

    -----------------------------------------------------------------------------------------------------------------------

    Please click the verify answer button if this post answer your question.

    -----------------------------------------------------------------------------------------------------------------------

  • Hi Shankari

    I installed the Ubuntu 12.04 64bit, and follow your steps.

    At this time, I have following "errors"

    Xining

    ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
    Cloning into bare repository '/home/iart/oe-layersetup/downloads/git2/www.jdl.com.software.dtc.git'...

    fatal: unable to connect to www.jdl.com:
    www.jdl.com: Name or service not known


    ERROR: Function failed: Fetcher failure for URL: 'git://www.jdl.com/software/dtc.git;protocol=git'. Unable to fetch URL from any source.
    ERROR: Logfile of failure stored in: /home/iart/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/dtc-native/1.3.0+gitAUTOINC+033089f29099bdfd5c2d6986cdb9fd07b16cfde0-r3.1-mcsdk0/temp/log.do_fetch.9530
    ERROR: Task 5360 (virtual:native:/home/iart/oe-layersetup/sources/oe-core/meta/recipes-kernel/dtc/dtc_git.bb, do_fetch) failed with exit code '1'

  • Hi Shankari

    I installed the Ubuntu 12.04, and I followed your steps. I got the following 2 errors.

    ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
    Cloning into bare repository '/home/iart/oe-layersetup/downloads/git2/www.jdl.com.software.dtc.git'...

    fatal: unable to connect to www.jdl.com:
    www.jdl.com: Name or service not known


    ERROR: Function failed: Fetcher failure for URL: 'git://www.jdl.com/software/dtc.git;protocol=git'. Unable to fetch URL from any source.
    ERROR: Logfile of failure stored in: /home/iart/oe-layersetup/build/arago-tmp-external-linaro-toolchain/work/x86_64-linux/dtc-native/1.3.0+gitAUTOINC+033089f29099bdfd5c2d6986cdb9fd07b16cfde0-r3.1-mcsdk0/temp/log.do_fetch.9530
    ERROR: Task 5360 (virtual:native:/home/iart/oe-layersetup/sources/oe-core/meta/recipes-kernel/dtc/dtc_git.bb, do_fetch) failed with exit code '1'
  • Hi,
    Sorry for the delay in response.
    I'm trying to setup the machine ubuntu 12.04 64bit machine for yocto build.
    Mean while, I would like you to suggest to try the same with 32bit ubuntu iso image.