5 Replies Latest reply on Apr 7, 2015 2:26 AM by nemam

    Error quemu Yocto build Image Linux BSP

    nemam

      Hi development and makers

      I try building image Linux with Yocto build boot the process failed:


      ERROR: Task 2830 (virtual:native:/home/mamen/bsp1.0.4/Galileo-Runtime-1.0.4/meta-clanton_v1.0.1/poky/meta/recipes-devtools/qemu/qemu_1.4.0.bb, do_compile) failed with exit code '1'


      Somebody what’s wrong? Thank you

        • 1. Re: Error quemu Yocto build Image Linux BSP
          nemam

          I copied the full error from my terminal:

           

          ERROR: Function failed: do_compile (see /home/mamen/bsp1.0.4/Galileo-Runtime-1.0.4/meta-clanton_v1.0.1/yocto_build/tmp/work/i686-linux/qemu-native/1.4.0-r0/temp/log.do_compile.23780 for further information)

          ERROR: Logfile of failure stored in: /home/mamen/bsp1.0.4/Galileo-Runtime-1.0.4/meta-clanton_v1.0.1/yocto_build/tmp/work/i686-linux/qemu-native/1.4.0-r0/temp/log.do_compile.23780

          Log data follows:

          | DEBUG: Executing shell function do_compile

          | NOTE: make -j 14

          |   GEN   config-host.h

          |   GEN   qemu-options.def

          |   GEN   trace/generated-tracers.h

          |   GEN   qemu-options.texi

          |   GEN   trace/generated-tracers.c

          |   CC    fsdev/virtfs-proxy-helper.o

          |   CC    os-posix.o

          |   CC    vl.o

          |   CC    hw/pl110.o

          |   CC    hw/vmware_vga.o

          |   GEN   qemu-doc.html

          |   GEN   qemu.1

          |   LINK  fsdev/virtfs-proxy-helper

          |   GEN   x86_64-linux-user/config-target.h

          |   GEN   mips-linux-user/config-target.h

          |   GEN   ppc-linux-user/config-target.h

          |   GEN   mipsel-linux-user/config-target.h

          |   GEN   arm-linux-user/config-target.h

          |   CC    x86_64-linux-user/translate-all.o

          |   CC    mips-linux-user/translate-all.o

          |   CC    mipsel-linux-user/translate-all.o

          |   CC    mips-linux-user/linux-user/main.o

          |   CC    x86_64-linux-user/linux-user/main.o

          |   CC    ppc-linux-user/translate-all.o

          |   CC    arm-linux-user/translate-all.o

          |   GEN   i386-linux-user/config-target.h

          |   CC    i386-linux-user/translate-all.o

          |   GEN   mipsel-softmmu/config-target.h

          |   GEN   ppc-softmmu/config-target.h

          |   CC    mipsel-softmmu/translate-all.o

          |   CC    ppc-softmmu/translate-all.o

          |   CC    mipsel-linux-user/linux-user/main.o

          |   CC    ppc-linux-user/linux-user/main.o

          |   CC    i386-linux-user/linux-user/main.o

          |   LINK  x86_64-linux-user/qemu-x86_64

          |   CC    arm-linux-user/linux-user/main.o

          |   LINK  mips-linux-user/qemu-mips

          |   LINK  i386-linux-user/qemu-i386

          |   LINK  mipsel-linux-user/qemu-mipsel

          |   LINK  ppc-softmmu/qemu-system-ppc

          |   LINK  mipsel-softmmu/qemu-system-mipsel

          |   LINK  ppc-linux-user/qemu-ppc

          |   LINK  arm-linux-user/qemu-arm

          |   GEN   mips-softmmu/config-target.h

          | target-ppc/translate.o: file not recognized: File truncated

          | collect2: ld returned 1 exit status

          | make[1]: *** [qemu-ppc] Error 1

          | make: *** [subdir-ppc-linux-user] Error 2

          | make: *** Waiting for unfinished jobs....

          |   CC    mips-softmmu/translate-all.o

          | target-i386/translate.o: file not recognized: File truncated

          | collect2: ld returned 1 exit status

          | make[1]: *** [qemu-i386] Error 1

          | make: *** [subdir-i386-linux-user] Error 2

          |   LINK  mips-softmmu/qemu-system-mips

          |   GEN   x86_64-softmmu/config-target.h

          |   CC    x86_64-softmmu/translate-all.o

          |   LINK  x86_64-softmmu/qemu-system-x86_64

          |   GEN   i386-softmmu/config-target.h

          |   CC    i386-softmmu/translate-all.o

          |   LINK  i386-softmmu/qemu-system-i386

          |   GEN   arm-softmmu/config-target.h

          |   CC    arm-softmmu/translate-all.o

          |   LINK  arm-softmmu/qemu-system-arm

          | hw/9pfs/virtio-9p-device.o: file not recognized: File truncated

          | collect2: ld returned 1 exit status

          | make[1]: *** [qemu-system-mips] Error 1

          | make: *** [subdir-mips-softmmu] Error 2

          | target-mips/helper.o: file not recognized: File truncated

          | collect2: ld returned 1 exit status

          | make[1]: *** [qemu-system-mipsel] Error 1

          | make: *** [subdir-mipsel-softmmu] Error 2

          | target-ppc/translate.o: file not recognized: File truncated

          | collect2: ld returned 1 exit status

          | make[1]: *** [qemu-system-ppc] Error 1

          | make: *** [subdir-ppc-softmmu] Error 2

          | target-i386/translate.o: file not recognized: File truncated

          | collect2: ld returned 1 exit status

          | make[1]: *** [qemu-system-x86_64] Error 1

          | make: *** [subdir-x86_64-softmmu] Error 2

          | hw/arm/../pxa2xx_lcd.o: file not recognized: File truncated

          | collect2: ld returned 1 exit status

          | make[1]: *** [qemu-system-arm] Error 1

          | make: *** [subdir-arm-softmmu] Error 2

          | target-i386/translate.o: file not recognized: File truncated

          | collect2: ld returned 1 exit status

          | make[1]: *** [qemu-system-i386] Error 1

          | make: *** [subdir-i386-softmmu] Error 2

          | ERROR: oe_runmake failed

          | ERROR: Function failed: do_compile (see /home/mamen/bsp1.0.4/Galileo-Runtime-1.0.4/meta-clanton_v1.0.1/yocto_build/tmp/work/i686-linux/qemu-native/1.4.0-r0/temp/log.do_compile.23780 for further information)

          ERROR: Task 2830 (virtual:native:/home/mamen/bsp1.0.4/Galileo-Runtime-1.0.4/meta-clanton_v1.0.1/poky/meta/recipes-devtools/qemu/qemu_1.4.0.bb, do_compile) failed with exit code '1'

          NOTE: Tasks Summary: Attempted 1370 tasks of which 1261 didn't need to be rerun and 1 failed.

          Waiting for 0 running tasks to finish:

           

          Summary: 1 task failed:

            virtual:native:/home/mamen/bsp1.0.4/Galileo-Runtime-1.0.4/meta-clanton_v1.0.1/poky/meta/recipes-devtools/qemu/qemu_1.4.0.bb, do_compile

          Summary: There was 1 ERROR message shown, returning a non-zero exit code.

          mamen@mamen-virtual-machine:~/bsp1.0.4/Galileo-Runtime-1.0.4/meta-clanton_v1.0.1/yocto_build$

          • 2. Re: Error quemu Yocto build Image Linux BSP
            JPMontero_Intel

            Hi nemam,

             

            I have a couple of questions. What OS are you using? Are you building a custom image, standard image-full or standard image-full-galileo? Could you please provide all the steps you followed to this error? The error you are getting seems the files are corrupted, I’d suggest you to start a new build from scratch, let us know if this help.

             

            Regards,
            JPMontero_Intel

            • 3. Re: Error quemu Yocto build Image Linux BSP
              nemam

              Hi developments and makers,

              I’m trying to build image Linux custom , because I need used OpenCV, and connecting webcam etc.

              All this is by following the instructions in the book: Intel Galileo and Intel Galileo Gen 2. API Features and Arduino Projects for Linux Programmers. http://www.apress.com/9781430268390

               

              Preparing Your Computer

              I install Virtual Machine, such as VMWare Workstation 10 in my case, and I install Linux Distributions 12.04.5 LTS in the Yocto Reference Project Manual says in the section 1.3.1 Supported Linux Distributions .

              I check my version, with run the following command in a terminal shell:

              mamen@mamen-virtual-machine:~$ lsb_release -a
              No LSB modules are available.
              Distributor ID:    Ubuntu
              Description:    Ubuntu 12.04.5 LTS
              Release:    12.04
              Codename:    precise

              And the arquitecture Linux 32 bits

              mamen@mamen-virtual-machine:~$ uname -m
              i686

              The next step requires the installation of some packages used by bitbake duringthe build process.

              The packages are: build-essential, gcc-multilib, vim-common, gawk, wget, git-core, diffstat, chrpath, texinfo, p7zip-full, autoconf, libtool, subversion, uuid-dev, libcurl4-openssl-dev, libssl-dev, bitbake, openjdk-7-jdk, connect-proxy, autopoint.

              And others packages that recommiend yocto manual as such unzip and socat.

              In my youtube channel  I teach as I did:  (in Spanish all)

              https://www.youtube.com/watch?v=6nkHkDbBnX0

              https://www.youtube.com/watch?v=13cdqHx2IYo

              I also have successfully installed the package IASL, when you install the iasl, you need to make sure it supports ACPI revision 5.0 or greater

              I have installed : https://www.youtube.com/watch?v=lVNn3HbAOqM

              Create a directory where your build will be placed.

              mamen@mamen-virtual-machine:~$ mkdir bsp1.0.4

              Download Galileo Runtime 1.0.4 and unarchive

              Into directory bsp1.0.4 with the command wget

              mamen@mamen-virtual-machine:~$ cd bsp1.0.4
              mamen@mamen-virtual-machine:~/bsp1.0.4$ wget
              https://github.com/01org/Galileo-Runtime/archive/1.0.4.tar.gz

              Resolviendo github.com (github.com)... 192.30.252.131
              Conectando con github.com (github.com)[192.30.252.131]:443... conectado.
              Petición HTTP enviada, esperando respuesta... 302 Found
              Ubicación:
              https://codeload.github.com/01org/Galileo-Runtime/tar.gz/1.0.4 [siguiente]
              --2015-03-16 21:45:35-- 
              https://codeload.github.com/01org/Galileo-Runtime/tar.gz/1.0.4
              Resolviendo codeload.github.com (codeload.github.com)... 192.30.252.147
              Conectando con codeload.github.com (codeload.github.com)[192.30.252.147]:443... conectado.
              Petición HTTP enviada, esperando respuesta... 200 OK

              Longitud: 2686264 (2,6M) [application/x-gzip]
              Grabando a: “1.0.4.tar.gz”

              100%[======================================>] 2.686.264    362K/s   en 13s    

              2015-03-16 21:45:49 (204 KB/s) - “1.0.4.tar.gz” guardado [2686264/2686264]

              The descompress the download file

              mamen@mamen-virtual-machine:~/bsp1.0.4$ ls
              1.0.4.tar.gz
              mamen@mamen-virtual-machine:~/bsp1.0.4$ tar -xvf 1.0.4.tar.gz
              Galileo-Runtime-1.0.4/
              Galileo-Runtime-1.0.4/Quark_EDKII_v1.0.2.tar.gz
              Galileo-Runtime-1.0.4/README.txt
              Galileo-Runtime-1.0.4/grub-legacy_5775f32a+v1.0.1.tar.gz
              Galileo-Runtime-1.0.4/meta-clanton_v1.0.1.tar.gz
              Galileo-Runtime-1.0.4/patches_v1.0.4.tar.gz
              Galileo-Runtime-1.0.4/quark_linux_v3.8.7+v1.0.1.tar.gz
              Galileo-Runtime-1.0.4/spi-flash-tools_v1.0.1.tar.gz
              Galileo-Runtime-1.0.4/sysimage_v1.0.1.tar.gz

              Descompress the patches:

              mamen@mamen-virtual-machine:~/bsp1.0.4$ cd Galileo-Runtime-1.0.4
              mamen@mamen-virtual-machine:~/bsp1.0.4/Galileo-Runtime-1.0.4$ ls
              grub-legacy_5775f32a+v1.0.1.tar.gz quark_linux_v3.8.7+v1.0.1.tar.gz
              meta-clanton_v1.0.1.tar.gz README.txt
              patches_v1.0.4.tar.gz spi-flash-tools_v1.0.1.tar.gz
              Quark_EDKII_v1.0.2.tar.gz sysimage_v1.0.1.tar.gz
              mamen@mamen-virtual-machine:~/bsp1.0.4/Galileo-Runtime-1.0.4$ tar -xvf patches_v1.0.4.tar.gz
              patches_v1.0.4/
              patches_v1.0.4/.DS_Store
              patches_v1.0.4/meta-clanton.patches/
              patches_v1.0.4/._patch.meta-clanton.sh
              patches_v1.0.4/patch.meta-clanton.sh
              patches_v1.0.4/._patch.Quark_EDKII.sh
              patches_v1.0.4/patch.Quark_EDKII.sh
              patches_v1.0.4/._patch.sysimage.sh
              patches_v1.0.4/patch.sysimage.sh
              patches_v1.0.4/Quark_EDKII.patches/
              patches_v1.0.4/sysimage.patches/
              patches_v1.0.4/sysimage.patches/.DS_Store
              patches_v1.0.4/sysimage.patches/sysimage_v1.0.1+1.0.4.patch
              patches_v1.0.4/Quark_EDKII.patches/.DS_Store
              patches_v1.0.4/Quark_EDKII.patches/Quark_EDKII_v1.0.2+ACPI_for_Windows.patch
              patches_v1.0.4/meta-clanton.patches/.DS_Store
              patches_v1.0.4/meta-clanton.patches/meta-clanton.post-patch.init.patch
              patches_v1.0.4/meta-clanton.patches/meta-clanton_v1.0.1+quark-init.patch
              patches_v1.0.4/meta-clanton.patches/post-setup.patches/
              patches_v1.0.4/meta-clanton.patches/post-setup.patches/.DS_Store
              patches_v1.0.4/meta-clanton.patches/post-setup.patches/1.usb_improv_patch-1.patch
              patches_v1.0.4/meta-clanton.patches/post-setup.patches/2.GAL-193-clloader-1.patch
              patches_v1.0.4/meta-clanton.patches/post-setup.patches/3.GAL-199-start_spi_upgrade-1.patch
              patches_v1.0.4/meta-clanton.patches/post-setup.patches/4.MAKER-222-Sketch_download_unstable-5.patch
              patches_v1.0.4/meta-clanton.patches/post-setup.patches/GAL-118-USBDeviceResetOnSUSRES-2.patch
              patches_v1.0.4/meta-clanton.patches/post-setup.patches/patch.sh
              patches_v1.0.4/meta-clanton.patches/post-setup.patches/uart-1.0.patch
              patches_v1.0.4/meta-clanton.patches/post-setup.patches/uart-reverse-8.patch

              Descompress the meta-clanton:

              mamen@mamen-virtual-machine:~/bsp1.0.4/Galileo-Runtime-1.0.4$ ls
              grub-legacy_5775f32a+v1.0.1.tar.gz quark_linux_v3.8.7+v1.0.1.tar.gz
              meta-clanton_v1.0.1.tar.gz README.txt
              patches_v1.0.4 spi-flash-tools_v1.0.1.tar.gz
              patches_v1.0.4.tar.gz sysimage_v1.0.1.tar.gz
              Quark_EDKII_v1.0.2.tar.gz
              mamen@mamen-virtual-machine:~/bsp1.0.4/Galileo-Runtime-1.0.4$ tar -xvf meta-clanton_v1.0.1.tar.gz

              You can see this in my channel : https://www.youtube.com/watch?v=fqPg8hCqkWs

              Apply patches with the following commands:

              mamen@mamen-virtual-machine:~/bsp1.0.4/Galileo-Runtime-1.0.4$ cd patches_v1.0.4
              mamen@mamen-virtual-machine:~/bsp1.0.4/Galileo-Runtime-1.0.4/patches_v1.0.4$ ls
              meta-clanton.patches patch.Quark_EDKII.sh  Quark_EDKII.patches
              patch.meta-clanton.sh patch.sysimage.sh     sysimage.patches
              mamen@mamen-virtual-machine:~/bsp1.0.4/Galileo-Runtime-1.0.4/patches_v1.0.4$ ./patch.meta-clanton.sh

              You can see this in my channel: https://www.youtube.com/watch?v=vaG-PfhmTsk

              it is necessary to prepare a custom BSP image:

              1. 1.       Using eglibc

              build the full Intel Galileo SD card image based on eGlibc.

              To do this, open the file .../meta-clanton-distro/recipes-multimedia/v4l2apps/

              v4l-utils_0.8.8.bbappend

               

              add “#” in the document

              #FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

              #SRC_URI += "file://uclibc-enable.patch"

              #DEPENDS += "virtual/libiconv"

               

              1. 2.       Increasing the rootfs Size

              To do this, edit the .../meta-clanton-distro/recipes-core/image/image-full.bb

              file by changing the following lines:

              IMAGE_ROOTFS_SIZE = "507200"

              IMAGE_FEATURES += "package-management dev-pkgs"

              IMAGE_INSTALL += "autoconf automake binutils binutils-symlinks cpp

              cpp-symlinks gcc gcc-symlinks g++ g++-symlinks gettext make libstdc++

              libstdc++-dev file coreutils"

               

              1. 3.       Disabling GPU Support on OpenCV

              To disable GPU, you need to edit two files: .../meta-oe/meta-oe/recipes-support/

              opencv/opencv_2.4.3.bb and .../meta-clanton-distro/recipes-support/opencv/

              opencv_2.4.3.bbappend. Make the same changes to both of the lines in EXTRA_OECMAKE

               

              EXTRA_OECMAKE = "-DPYTHON_NUMPY_INCLUDE_DIR:PATH=${STAGING_LIBDIR}/

              ${PYTHON_DIR}/site-packages/numpy/core/include \

              -DBUILD_PYTHON_SUPPORT=ON \

              -DWITH_FFMPEG=ON \

              -DWITH_CUDA=OFF \

              -DBUILD_opencv_gpu=OFF \

              -DWITH_GSTREAMER=OFF \

              -DWITH_V4L=ON \

              -DWITH_GTK=ON \

              -DCMAKE_SKIP_RPATH=ON \

              ${@bb.utils.contains("TARGET_CC_ARCH", "-msse3",

              "-DENABLE_SSE=1 -DENABLE_SSE2=1 -DENABLE_SSE3=1 -DENABLE_SSSE3=1", "", d)} \"

               

              You can see this in my channel  https://www.youtube.com/watch?v=HN9-Eon3UCc&feature=youtu.be

               

              Enable the cache and set the number of threads.

              Open the file .../meta-clanton/yocto_build/conf/local.conf with the text

              editor of your preference.

              The change is the variable BB_NUMBER_THREADS that represents the maximum number of threads that your bitbake command will be able to handle.

              The free version of VMware only allows setting a maximum of four cores, and if

              each core of your processor holds one single thread, then BB_NUMBER_THREADS could be 8.

               

                               BB_NUMBER_THREADS = "8"

               

              I'm not sure whether to change the command in this building

               

              DISTRO  ?= “clanton-tiny” or “clanton-full”

               

              By enabling the cache, the books says you can make the following changes:

               

              SSTATE_DIR ?= "/tmp/yocto_cache-sstate"

              SOURCE_MIRROR_URL ?= "file:///tmp/yocto_cache/"

              INHERIT += "own-mirrors"

              BB_GENERATE_MIRROR_TARBALLS = "1"

               

              But I’m not sure what file you make changes, I supposed that local.conf.sample in this directory

              …poky/meta-yocto/conf/local.conf.sample but I see this https://www.yoctoproject.org/sites/default/files/customizations.pdf

               

              Finally Compile the image:

              $ bitbake image-full-galileo

               

              1. I have always errors…. L
              • 4. Re: Error quemu Yocto build Image Linux BSP
                nniles

                nemam,

                 

                It looks like you're having similar problems to what I have experienced recently.

                 

                Try cleaning the qemu recipe.

                 

                bitbake -c clean qemu-native

                 

                And then resume your image build.


                Good luck!

                • 5. Re: Error quemu Yocto build Image Linux BSP
                  nemam

                  Hi nniles

                  I'll try this you have told me. If it works I will comment. Thank You