<?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>3700</bug_id>
          
          <creation_ts>2013-01-10 12:42:00 +0000</creation_ts>
          <short_desc>When inherit boot-directdisk class, the first build fail with error &quot;disk full&quot;</short_desc>
          <delta_ts>2013-01-11 22:45:57 +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>BSPs</product>
          <component>bsps-oe-core</component>
          <version>1.3</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>NOTABUG</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.3 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Julien Ciesla">jciesla</reporter>
          <assigned_to name="Darren Hart">dvhart</assigned_to>
          
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>28718</commentid>
    <comment_count>0</comment_count>
    <who name="Julien Ciesla">jciesla</who>
    <bug_when>2013-01-10 12:42:00 +0000</bug_when>
    <thetext>in the boot-directdisk.bbclass, the call to the mkdosfs fonction is specified with an incorrect calculaled value of the image size.

The size should be calculed with the HDDIMG variable and not the HDDDIR variable. This is the correction:

...
	install -m 0644 ${S}/syslinux.cfg ${HDDDIR}/syslinux.cfg
	install -m 444 ${STAGING_LIBDIR}/syslinux/ldlinux.sys ${HDDDIR}/ldlinux.sys

---BLOCKS=`du -bks ${HDDDIR} | cut -f 1`
+++BLOCKS=`du -bks ${HDDIMG} | cut -f 1`
	BLOCKS=`expr $BLOCKS + ${BOOTDD_EXTRA_SPACE}`

	# Ensure total sectors is an integral number of sectors per
	# track or mcopy will complain. Sectors are 512 bytes, and we
...

Tested working.

Regards</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28783</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-01-11 22:45:57 +0000</bug_when>
    <thetext>Closing at the request of the reporter. I hadn&apos;t yet commented, but the fix noted here was definitely incorrect. This code could use a revamping along the lines of that in bootimg.bbclass, but this particular bug was opened in error.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>