2 Replies Latest reply on Aug 17, 2014 9:25 PM by clayder

    yocto build hangs during kernel fetch (1.0.0)

    gustafn

      Hi, when following the build guidelines

      Intel® Quark™ BSP Build and Software User Guide

      (Intel® Quark SoC X1000 Board Support Package (BSP) Build and Software User Guide; Release: 1.0.0; 04 March 2014),

      the build process for building a full-featured Linux via

      bitbake image-full-galileo 

      hangs "forever" in "linux-yocto-clanton-3.8-r0 do_fetch". It took me a while to figure out what went wrong. So i am posting the solution here, maybe this can help to save some time for others facing the same problem...

       

      The problem seems to be that the Linux kernel sources seems to have moved to a different place. It helps, if one fetches the linux-kernel manually and moves it then to the right place in the build directory. YB stands for the yocto_build directory, replace it by whatever you have.

      % YB=~/galileo/1.0.0/meta-clanton_v1.0.0/yocto_build 
      % bitbake image-full-galileo
      ...
      ... Hangs: linux-yocto-clanton-3.8-r0 do_fetch
      ...
      <Ctr-C>
      % bitbake -c cleanall linux-yocto-clanton
      % bitbake -c cleanall virtual/kernel
      % cd /tmp
      % git clone --bare --mirror git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
      % mv linux-stable.git $YB/downloads/git2/git.kernel.org.pub.scm.linux.kernel.git.stable.linux-stable.git
      % cd $YB
      % bitbake image-full-galileo

      With this, everything works as expected. The problem exists as well for other build targets involving kernel builds.

      Maybe, someone finds this helpful...

       

      All the best

      -gustaf neumann