<?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>6449</bug_id>
          
          <creation_ts>2014-06-13 14:08:35 +0000</creation_ts>
          <short_desc>do_bootimg hangs in syslinux for large images</short_desc>
          <delta_ts>2015-07-02 01:37:43 +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>OE-Core</product>
          <component>deployment</component>
          <version>1.6.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.9 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stuart Weaver">stuart.weaver</reporter>
          <assigned_to name="Robert Yang">liezhi.yang</assigned_to>
          <cc>blloyd</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>43941</commentid>
    <comment_count>0</comment_count>
    <who name="Stuart Weaver">stuart.weaver</who>
    <bug_when>2014-06-13 14:08:35 +0000</bug_when>
    <thetext>I have a image file based on core-image-sato with added gstreamer/vaapi packages. I added a value for IMAGE_ROOTFS_SIZE in the image file and since then bitbake seems to lock up on the do_bootimg task to the extent that I have to kill the python processes. Since then I&apos;ve deleted the IMAGE_ROOTFS_SIZE and tried with same issue and also replaced it with IMAGE_ROOTFS_EXTRA_SPACE, again same issue. After killing processes again I&apos;ve added -vvv to bitbake to see what&apos;s going on and last messages are below:

+ mcopy -i /home/stuartw/Yocto-Daisy/poky/build/tmp/deploy/images/valleyisland-32/sato-vaapi-image-valleyisland-32-20140613134341.hddimg -s /home/stuartw/Yocto-Daisy/poky/build/tmp/work/valleyisland_32-poky-linux/sato-vaapi-image/1.0-r0/sato-vaapi-image-1.0/hddimg/EFI /home/stuartw/Yocto-Daisy/poky/build/tmp/work/valleyisland_32-poky-linux/sato-vaapi-image/1.0-r0/sato-vaapi-image-1.0/hddimg/initrd /home/stuartw/Yocto-Daisy/poky/build/tmp/work/valleyisland_32-poky-linux/sato-vaapi-image/1.0-r0/sato-vaapi-image-1.0/hddimg/ldlinux.sys /home/stuartw/Yocto-Daisy/poky/build/tmp/work/valleyisland_32-poky-linux/sato-vaapi-image/1.0-r0/sato-vaapi-image-1.0/hddimg/rootfs.img /home/stuartw/Yocto-Daisy/poky/build/tmp/work/valleyisland_32-poky-linux/sato-vaapi-image/1.0-r0/sato-vaapi-image-1.0/hddimg/syslinux.cfg /home/stuartw/Yocto-Daisy/poky/build/tmp/work/valleyisland_32-poky-linux/sato-vaapi-image/1.0-r0/sato-vaapi-image-1.0/hddimg/vmlinuz ::/

File &quot;rootfs.img&quot; too big

+ [ 1 = 1 ]
+ syslinux_hddimg_install
+ syslinux /home/stuartw/Yocto-Daisy/poky/build/tmp/deploy/images/valleyisland-32/sato-vaapi-image-valleyisland-32-20140613134341.hddimg</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43951</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2014-06-13 16:50:55 +0000</bug_when>
    <thetext>Stuart, what is your host system configuration?  The host type, and the bit size, 32-bit or 64-bit?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43968</commentid>
    <comment_count>2</comment_count>
    <who name="Stuart Weaver">stuart.weaver</who>
    <bug_when>2014-06-16 07:32:58 +0000</bug_when>
    <thetext>Hi Mark, Didn&apos;t think about that but may be an issue, It&apos;s an i7-4770S 64-bit but running latest Ubuntu (14.04). Reason I chose 14.04 was because it states that Yocto supports it in the Reference manual.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43987</commentid>
    <comment_count>3</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2014-06-16 18:35:21 +0000</bug_when>
    <thetext>My initial thought of a 32-bit overflow would not be the culpret as you are on a 64-bit machine.

I&apos;ll see if I can find someone to work on this, or get a newer Ubuntu installed to attempt to reproduce/resolve this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45333</commentid>
    <comment_count>4</comment_count>
    <who name="Blloyd">blloyd</who>
    <bug_when>2014-08-29 14:36:05 +0000</bug_when>
    <thetext>Fedora 20 does the same thing.

For me, it triggers when I add IMAGE_ROOTFS_EXTRA_SPACE = &quot;4096304&quot; to any image.
Instead of failing, it hangs permanently.

FAT32 is limited to 4GB file sizes, so images greater than 4GB will fail.  Instead of erroring out, the image creation hangs.

The above test was to test when it started hanging.  My original discovery was a hung image after increasing the free space.  Since that image was normally @3GB, it didn&apos;t take much added to hit 4GB.


+ mcopy -i /embedded/var/bldtmp/master/deploy/images/vortex86/image-omccore-qaimage-vortex86-20140829141839.hddimg -s /embedded/var/bldtmp/master/work/vortex86-poky-linux/image-omccore-qaimage/1.0-r0/image-omccore-qaimage-1.0/hddimg/initrd /embedded/var/bldtmp/master/work/vortex86-poky-linux/image-omccore-qaimage/1.0-r0/image-omccore-qaimage-1.0/hddimg/ldlinux.sys /embedded/var/bldtmp/master/work/vortex86-poky-linux/image-omccore-qaimage/1.0-r0/image-omccore-qaimage-1.0/hddimg/rootfs.img /embedded/var/bldtmp/master/work/vortex86-poky-linux/image-omccore-qaimage/1.0-r0/image-omccore-qaimage-1.0/hddimg/syslinux.cfg /embedded/var/bldtmp/master/work/vortex86-poky-linux/image-omccore-qaimage/1.0-r0/image-omccore-qaimage-1.0/hddimg/vmlinuz ::/

File &quot;rootfs.img&quot; too big


Useful responses to this error would be to warn that hddimg could not be generated and to create all the other selected images, or to fail and exit with an error that the image size is too large for hddimg.

I suspect that .iso images will have the same problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>50571</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2015-04-28 18:23:01 +0000</bug_when>
    <thetext>I agree, a warning/error from the image generation is the right way to deal with this.

Robert can you fix this or assign someone to implement the warning?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>52085</commentid>
    <comment_count>6</comment_count>
    <who name="Robert Yang">liezhi.yang</who>
    <bug_when>2015-07-02 01:37:43 +0000</bug_when>
    <thetext>Merged into master:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b3c79c4d0f1aaed5b2901ce6d87bd3348ca3435d

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=5c71337cd79b03322f39e56c22c3e7634a2d9abd

Use -iso-level 3 for iso when the file is larger than 4GB, and print appropriate error message when for hddimg</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>