<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5581</bug_id>
          
          <creation_ts>2013-11-21 14:20:36 +0000</creation_ts>
          <short_desc>Kernel file is not generated under tmp/deploy/images/machine</short_desc>
          <delta_ts>2013-12-02 10:32:27 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>BitBake</product>
          <component>bitbake</component>
          <version>1.6</version>
          <rep_platform>x86</rep_platform>
          <op_sys>mips</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.6 M1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ionut Chisanovici">ionutx.chisanovici</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>dvhart</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>38986</commentid>
    <comment_count>0</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2013-11-21 14:20:36 +0000</bug_when>
    <thetext>I tried to build some core-image-minimal images for qemuppc and qemumips machines but I cannot start the machines with runqemu as there is no kernel files generated under tmp/deploy/images/machine
There is no bzImage.bin or vmlinux.bin files.

Build Configuration:
BB_VERSION        = &quot;1.21.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Fedora-19&quot;
TARGET_SYS        = &quot;powerpc-poky-linux&quot;
MACHINE           = &quot;qemuppc&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.5+snapshot-20131121&quot;
TUNE_FEATURES     = &quot;m32 fpu-hard ppc7400 altivec&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;master:215dab864e7cf74394840621ad0754db593708f1&quot;

[ionut@ionut-fedora build]$ runqemu qemuppc

Continuing with the following parameters:
KERNEL: [/home/ionut/work/poky/build/tmp/deploy/images/qemuppc/vmlinux-qemuppc.bin]
ROOTFS: [/home/ionut/work/poky/build/tmp/deploy/images/qemuppc/core-image-minimal-qemuppc.ext3]
FSTYPE: [ext3]
Acquiring lockfile for tap0...
Using preconfigured tap device &apos;tap0&apos;
If this is not intended, use flock on /tmp/qemu-tap-locks/tap0.lock to make runqemu skip tap0.
Error: Kernel image file /home/ionut/work/poky/build/tmp/deploy/images/qemuppc/vmlinux-qemuppc.bin doesn&apos;t exist

[ionut@ionut-fedora qemuppc]$ pwd
/home/ionut/work/poky/build/tmp/deploy/images/qemuppc
[ionut@ionut-fedora qemuppc]$ ll
total 9092
-rw-r--r-- 1 ionut ionut 8388608 Nov 21 16:01 core-image-minimal-qemuppc-20131121133331.rootfs.ext3
-rw-r--r-- 1 ionut ionut 2397193 Nov 21 16:01 core-image-minimal-qemuppc-20131121133331.rootfs.tar.bz2
lrwxrwxrwx 1 ionut ionut      53 Nov 21 16:01 core-image-minimal-qemuppc.ext3 -&gt; core-image-minimal-qemuppc-20131121133331.rootfs.ext3
lrwxrwxrwx 1 ionut ionut      56 Nov 21 16:01 core-image-minimal-qemuppc.tar.bz2 -&gt; core-image-minimal-qemuppc-20131121133331.rootfs.tar.bz2
-rw-r--r-- 1 ionut ionut     294 Nov 21 16:01 README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt

Also on Ubuntu 13:

Build Configuration:
BB_VERSION        = &quot;1.21.0&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Ubuntu-13.04&quot;
TARGET_SYS        = &quot;mips-poky-linux&quot;
MACHINE           = &quot;qemumips&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.5+snapshot-20131121&quot;
TUNE_FEATURES     = &quot;o32 bigendian fpu-hard mips32&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        
meta-yocto-bsp    = &quot;master:215dab864e7cf74394840621ad0754db593708f1&quot;

ionut@ionut-ubuntu:~/work/poky/build$ runqemu qemumips

Continuing with the following parameters:
KERNEL: [/home/ionut/work/poky/build/tmp/deploy/images/qemumips/vmlinux-qemumips.bin]
ROOTFS: [/home/ionut/work/poky/build/tmp/deploy/images/qemumips/core-image-minimal-qemumips.ext3]
FSTYPE: [ext3]
Setting up tap interface under sudo
[sudo] password for ionut: 
Acquiring lockfile for tap0...
Error: Kernel image file /home/ionut/work/poky/build/tmp/deploy/images/qemumips/vmlinux-qemumips.bin doesn&apos;t exist

ionut@ionut-ubuntu:~/work/poky/build$ cd tmp/deploy/images/qemumips/
ionut@ionut-ubuntu:~/work/poky/build/tmp/deploy/images/qemumips$ ll
total 9676
drwxr-xr-x 2 ionut ionut    4096 nov 21 16:02 ./
drwxr-xr-x 3 ionut ionut    4096 nov 21 16:01 ../
-rw-r--r-- 1 ionut ionut 8780800 nov 21 16:02 core-image-minimal-qemumips-20131121133130.rootfs.ext3
-rw-r--r-- 1 ionut ionut 2385132 nov 21 16:02 core-image-minimal-qemumips-20131121133130.rootfs.tar.bz2
lrwxrwxrwx 1 ionut ionut      54 nov 21 16:02 core-image-minimal-qemumips.ext3 -&gt; core-image-minimal-qemumips-20131121133130.rootfs.ext3
lrwxrwxrwx 1 ionut ionut      57 nov 21 16:02 core-image-minimal-qemumips.tar.bz2 -&gt; core-image-minimal-qemumips-20131121133130.rootfs.tar.bz2
-rw-r--r-- 1 ionut ionut     294 nov 21 16:01 README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38987</commentid>
    <comment_count>1</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2013-11-21 14:31:26 +0000</bug_when>
    <thetext>More ... I saw on the AB that the kernel files were generated.

http://autobuilder.yoctoproject.org/pub/nightly/20131119-7/machines/qemu/qemumips/

http://autobuilder.yoctoproject.org/pub/nightly/20131119-7/machines/qemu/qemuppc/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39005</commentid>
    <comment_count>2</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-11-21 18:01:33 +0000</bug_when>
    <thetext>Do you see this in a clean build environment?

Did you delete the vmlinux* and modules files manually prior to the build?

Do the files get created if you run &quot;bitbake linux-yocto -c deploy -f&quot; ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39018</commentid>
    <comment_count>3</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2013-11-22 09:15:37 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; Do you see this in a clean build environment?

Yes, every time I did the builds above the envs were cleaned.

&gt; 
&gt; Did you delete the vmlinux* and modules files manually prior to the build?

No I didn&apos;t do that.

&gt; 
&gt; Do the files get created if you run &quot;bitbake linux-yocto -c deploy -f&quot; ?

Yes they are:

[ionut@ionut-fedora qemuppc]$ ll
total 138680
-rw-r--r-- 1 ionut ionut  8388608 Nov 21 16:01 core-image-minimal-qemuppc-20131121133331.rootfs.ext3
-rw-r--r-- 1 ionut ionut  2397193 Nov 21 16:01 core-image-minimal-qemuppc-20131121133331.rootfs.tar.bz2
lrwxrwxrwx 1 ionut ionut       53 Nov 21 16:01 core-image-minimal-qemuppc.ext3 -&gt; core-image-minimal-qemuppc-20131121133331.rootfs.ext3
lrwxrwxrwx 1 ionut ionut       56 Nov 21 16:01 core-image-minimal-qemuppc.tar.bz2 -&gt; core-image-minimal-qemuppc-20131121133331.rootfs.tar.bz2
-rw-rw-r-- 2 ionut ionut 35362028 Nov 22 11:15 modules--3.10.17+git0+6ad20f049a_3e99f981fe-r0-qemuppc-20131122080528.tgz
lrwxrwxrwx 1 ionut ionut       73 Nov 22 11:15 modules-qemuppc.tgz -&gt; modules--3.10.17+git0+6ad20f049a_3e99f981fe-r0-qemuppc-20131122080528.tgz
-rw-rw-r-- 2 ionut ionut      294 Nov 22 11:15 README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
lrwxrwxrwx 1 ionut ionut       73 Nov 22 11:15 vmlinux -&gt; vmlinux--3.10.17+git0+6ad20f049a_3e99f981fe-r0-qemuppc-20131122080528.bin
-rw-r--r-- 2 ionut ionut 97386141 Nov 22 11:15 vmlinux--3.10.17+git0+6ad20f049a_3e99f981fe-r0-qemuppc-20131122080528.bin
lrwxrwxrwx 1 ionut ionut       73 Nov 22 11:15 vmlinux-qemuppc.bin -&gt; vmlinux--3.10.17+git0+6ad20f049a_3e99f981fe-r0-qemuppc-20131122080528.bin

ionut@ionut-ubuntu:~/work/poky/build/tmp/deploy/images/qemumips$ ll
total 130000
drwxrwxr-x 2 ionut ionut     4096 nov 22 10:22 ./
drwxr-xr-x 3 ionut ionut     4096 nov 21 16:01 ../
-rw-r--r-- 1 ionut ionut  8780800 nov 21 16:02 core-image-minimal-qemumips-20131121133130.rootfs.ext3
-rw-r--r-- 1 ionut ionut  2385132 nov 21 16:02 core-image-minimal-qemumips-20131121133130.rootfs.tar.bz2
lrwxrwxrwx 1 ionut ionut       54 nov 21 16:02 core-image-minimal-qemumips.ext3 -&gt; core-image-minimal-qemumips-20131121133130.rootfs.ext3
lrwxrwxrwx 1 ionut ionut       57 nov 21 16:02 core-image-minimal-qemumips.tar.bz2 -&gt; core-image-minimal-qemumips-20131121133130.rootfs.tar.bz2
-rw-rw-r-- 2 ionut ionut 31574134 nov 22 10:22 modules--3.10.17+git0+6ad20f049a_e87d2cb44b-r0-qemumips-20131122080702.tgz
lrwxrwxrwx 1 ionut ionut       74 nov 22 10:22 modules-qemumips.tgz -&gt; modules--3.10.17+git0+6ad20f049a_e87d2cb44b-r0-qemumips-20131122080702.tgz
-rw-rw-r-- 2 ionut ionut      294 nov 22 10:22 README_-_DO_NOT_DELETE_FILES_IN_THIS_DIRECTORY.txt
lrwxrwxrwx 1 ionut ionut       74 nov 22 10:22 vmlinux -&gt; vmlinux--3.10.17+git0+6ad20f049a_e87d2cb44b-r0-qemumips-20131122080702.bin
-rw-r--r-- 2 ionut ionut 91622868 nov 22 10:22 vmlinux--3.10.17+git0+6ad20f049a_e87d2cb44b-r0-qemumips-20131122080702.bin
lrwxrwxrwx 1 ionut ionut       74 nov 22 10:22 vmlinux-qemumips.bin -&gt; vmlinux--3.10.17+git0+6ad20f049a_e87d2cb44b-r0-qemumips-20131122080702.bin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39042</commentid>
    <comment_count>4</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-11-22 18:55:55 +0000</bug_when>
    <thetext>So you do a clean checkout, no shared sstate, run &quot;bitbake core-image-minimal&quot;, it completes without errors and the vmlinux files are not deployed in tmp/deploy/images/$MACHINE. You then run &quot;bitbake linux-yocto -c deploy -f&quot;, and the files appear?

Is that correct?

I haven&apos;t been able to reproduce that from a clean build.

Paul, is there possibly some stamp breakage happening here?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39054</commentid>
    <comment_count>5</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2013-11-25 07:53:25 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; So you do a clean checkout, no shared sstate, run &quot;bitbake
&gt; core-image-minimal&quot;, it completes without errors and the vmlinux files are
&gt; not deployed in tmp/deploy/images/$MACHINE. You then run &quot;bitbake
&gt; linux-yocto -c deploy -f&quot;, and the files appear?
&gt; 
&gt; Is that correct?

Yes, that&apos;s correct.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39086</commentid>
    <comment_count>6</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2013-11-26 10:29:52 +0000</bug_when>
    <thetext>Darren, this is happening on for the qemuppc and qemumips machines.
For qemux86 machines, the kernel files are generate.

Cheers,
Ionut</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39102</commentid>
    <comment_count>7</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-11-26 16:21:59 +0000</bug_when>
    <thetext>Yes, I understand. I have been unable to reproduce with qemumips. Hrm.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39119</commentid>
    <comment_count>8</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-11-27 21:25:03 +0000</bug_when>
    <thetext>I&apos;m not sure why this is happening, but several folks have reported it. Tracking the caue down, assuming it can be reproduced currently, should be pretty easy - use &quot;git bisect&quot; to find when &quot;bitbake -g&quot; doesn&apos;t report linux-yocto.do_deploy in task-depends.dot.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39124</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-11-28 15:35:38 +0000</bug_when>
    <thetext>*** Bug 5587 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39136</commentid>
    <comment_count>10</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-11-29 10:53:12 +0000</bug_when>
    <thetext>I&apos;m pretty sure this is from http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=bba44c613f12079081fb0a20cbd2e99adc5276c3 and is an unintended side effect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39149</commentid>
    <comment_count>11</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-11-29 16:25:23 +0000</bug_when>
    <thetext>Confirmed that this commit was the problem. There is magic in base.bbclass for do_build:

do_build[recrdeptask] = &quot;do_deploy&quot;

which meant that once virtual/kernel was into DEPENDS, it ended up getting its deploy task run. I&apos;ve sent out a patch which adds in a proper dependency in the right place.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39152</commentid>
    <comment_count>12</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-11-29 18:16:32 +0000</bug_when>
    <thetext>Fixed in master: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=32c5d84823de336163a4aeceeb390afc48eeaad6</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39174</commentid>
    <comment_count>13</comment_count>
    <who name="Ionut Chisanovici">ionutx.chisanovici</who>
    <bug_when>2013-12-02 10:32:27 +0000</bug_when>
    <thetext>This is now fixed for both qemuppc and qemumips machines.
Verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>