<?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>1205</bug_id>
          
          <creation_ts>2011-06-29 01:09:04 +0000</creation_ts>
          <short_desc>[blacksand/emenlow/crownbay] Format swap partition failed when install</short_desc>
          <delta_ts>2011-07-12 23:29:30 +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>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>1.1 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="wenhua.fan">wenhuax.fan</reporter>
          <assigned_to name="Dexuan Cui">dexuan.cui</assigned_to>
          <cc>dexuan.cui</cc>
    
    <cc>jiajun.xu</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>sgw</cc>
    
    <cc>wenhuax.fan</cc>
          
          
          <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>14462</commentid>
    <comment_count>0</comment_count>
    <who name="wenhua.fan">wenhuax.fan</who>
    <bug_when>2011-06-29 01:09:04 +0000</bug_when>
    <thetext>Tree/Branch: Poky/master
Poky Commit: a1f79a7896b6411669b3ccada6204d2695e80fc5
Meta Branch: master
Meta Commit: 50661bf038a34702f3aa139c3ea0d67fbb0ce5db

Image location:

Emenlow:

http://autobuilder02.pokylinux.org/emenlow-master/nightly/20110627-1/machines/emenlow/x86_32/core-image-sato-sdk-live-emenlow-20110627234406.hddimg.bz2

Blacksand:

http://autobuilder02.pokylinux.org/n450-master/nightly/20110627-1/machines/n450/x86_32/core-image-sato-sdk-live-n450-20110628021720.hddimg.bz2

Crownbay:

http://autobuilder02.pokylinux.org/crownbay-noemgd-master/nightly/20110627-1/machines/crownbay/x86_32/core-image-sato-sdk-live-crownbay-noemgd-20110627213608.hddimg.bz2

With Yocto 1.1 20110624 build, BSP images install failed on target platform when format swap partition.
But there is no such issue on sugarbay and jasperforest. And there is no such issue in Yocto 1.1 M1 testing.

The error message is as below:
######
………
This filesystem will be automatically checked every 38 mounts or 180 days, whichever comes firse.
Use trne2fs –c or –i to override.
Formatting swap partition…(/dev/sda3)
Mkswap: lseek: Value too large for defined data type
Installation image failed

Sh: can’t access tty; jab control turned off
/# 

######</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14474</commentid>
    <comment_count>1</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-06-29 08:11:20 +0000</bug_when>
    <thetext>&gt; Mkswap: lseek: Value too large for defined data type
http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Value-too-large-for-defined-data-type says mkswap (coming from util-linux) was not built with big file support.

Something must be broken recently (after May 21, I think).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14482</commentid>
    <comment_count>2</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-06-29 17:46:23 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; &gt; Mkswap: lseek: Value too large for defined data type
&gt; http://www.gnu.org/software/coreutils/faq/coreutils-faq.html#Value-too-large-for-defined-data-type
&gt; says mkswap (coming from util-linux) was not built with big file support.
&gt; Something must be broken recently (after May 21, I think).

This bug should be of high priority because I suppose it blocks QA&apos;s tesing BSP.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14501</commentid>
    <comment_count>3</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-06-30 19:26:23 +0000</bug_when>
    <thetext>I do not have a hardware device hand right now to test this, so I need some additional information about when the is occuring and which mkswap is being used.

If this occurs during installation, then it might be in busybox, if its during first boot then maybe util-linux.

Please try to determine this by ls -l on mkswap and give me the results.

Additional details are helpful.

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14503</commentid>
    <comment_count>4</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-06-30 20:14:44 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; I do not have a hardware device hand right now to test this, so I need some
I have the device and I&apos;ll try to look into this.

&gt; additional information about when the is occuring and which mkswap is being
&gt; used.
&gt; If this occurs during installation, then it might be in busybox, if its during
&gt; first boot then maybe util-linux.
&gt; Please try to determine this by ls -l on mkswap and give me the results.
&gt; Additional details are helpful.
I&apos;ll find out which one we&apos;re using.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14504</commentid>
    <comment_count>5</comment_count>
    <who name="wenhua.fan">wenhuax.fan</who>
    <bug_when>2011-06-30 20:16:24 +0000</bug_when>
    <thetext>This error occurs during installation.

The result of ls -l on mkswap as below:
lrwxrwxrwx 1 root root 14 Jun 27 17:37 /sbin/mkswap -&gt; ../bin/busybox

The size of mkswap command is 580.0KB

The image size are below:
Emenlow: 907M
BlackSand: 938M
Crownbay: 935M</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14505</commentid>
    <comment_count>6</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-06-30 20:27:04 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; This error occurs during installation.
&gt; The result of ls -l on mkswap as below:
&gt; lrwxrwxrwx 1 root root 14 Jun 27 17:37 /sbin/mkswap -&gt; ../bin/busybox
Thanks Wenhua for the info!

So I suppost the commit, which updtes busybox.inc, is the culprit:
http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=ab1171b512dc4a450324f6f0ea08a57489009c5f

Will further look into this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14506</commentid>
    <comment_count>7</comment_count>
    <who name="wenhua.fan">wenhuax.fan</who>
    <bug_when>2011-06-30 22:14:45 +0000</bug_when>
    <thetext>There are 8G swap disk space on Crownbay.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14507</commentid>
    <comment_count>8</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2011-06-30 23:06:10 +0000</bug_when>
    <thetext>Thanks for confirming that it&apos;s busybox.  Based on the commit, I would suggest, if someone can rebuild busybox with DISTRO_FEATURES =+ &quot;largefile&quot; and see if that fixes it. This can be done in a local.conf file.

8G is also a very large swap space, is that how much memory is on the system?  How is it generating that large a swap space? I can dig into this further next week, but in the short term is someone (Wenhau or Dexuan) can rebuild that would be a great test.

Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14511</commentid>
    <comment_count>9</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-07-01 02:57:40 +0000</bug_when>
    <thetext>(In reply to comment #8)
&gt; Thanks for confirming that it&apos;s busybox.  Based on the commit, I would suggest,
&gt; if someone can rebuild busybox with DISTRO_FEATURES =+ &quot;largefile&quot; and see if
&gt; that fixes it. This can be done in a local.conf file.
I&apos;ve sent out the patches.

&gt; 8G is also a very large swap space, is that how much memory is on the system? 
&gt; How is it generating that large a swap space? I can dig into this further next
&gt; week, but in the short term is someone (Wenhau or Dexuan) can rebuild that
&gt; would be a great test.
&gt; Thanks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14524</commentid>
    <comment_count>10</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-07-03 21:33:57 +0000</bug_when>
    <thetext>(In reply to comment #7)
&gt; There are 8G swap disk space on Crownbay.

(In reply to comment #8)
&gt; Thanks for confirming that it&apos;s busybox.  Based on the commit, I would suggest,
&gt; if someone can rebuild busybox with DISTRO_FEATURES =+ &quot;largefile&quot; and see if
&gt; that fixes it. This can be done in a local.conf file.
&gt; 8G is also a very large swap space, is that how much memory is on the system? 
&gt; How is it generating that large a swap space? I can dig into this further next
&gt; week, but in the short term is someone (Wenhau or Dexuan) can rebuild that
&gt; would be a great test.
&gt; Thanks

The current algorithm for swap partition&apos;s size is:
swap_size=$((disk_size*5/100))
So we can deduce Wenhua&apos;s Crownbay has a disk of 160G.

Looks the algorithm wastes too much disk space...
I&apos;ll mail the oe-core mailing list about this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14542</commentid>
    <comment_count>11</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-07-05 15:24:44 +0000</bug_when>
    <thetext>(In reply to comment #9)
&gt; (In reply to comment #8)
&gt; &gt; Thanks for confirming that it&apos;s busybox.  Based on the commit, I would suggest,
&gt; &gt; if someone can rebuild busybox with DISTRO_FEATURES =+ &quot;largefile&quot; and see if
&gt; &gt; that fixes it. This can be done in a local.conf file.
&gt; I&apos;ve sent out the patches.
Fixed by 
http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=101098bfb47bfe1096124c3ce6dd73d58b8c9e0e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>14703</commentid>
    <comment_count>12</comment_count>
    <who name="wenhua.fan">wenhuax.fan</who>
    <bug_when>2011-07-12 23:29:30 +0000</bug_when>
    <thetext>Verify this bug in Yocto1.1 M2 RC2 20110708 testing.

Tree/Branch: Poky/1.1_M2

Poky Commit id: 8df2a558b4d61778a669705b867969abe3514846

Meta Branch : 1.1_M2

Meta Commit id : 92fc07a5f1b98779806cdcc2341487ff5ea5a238

Image lacation:

Emenlow:
http://autobuilder02.yoctoproject.org/emenlow-1.1_M2/nightly/20110708-1/machines/emenlow/x86_32/core-image-sato-sdk-live-emenlow-20110709065339.hddimg.bz2

Blacksand:
http://autobuilder02.yoctoproject.org/n450-1.1_M2/nightly/20110708-1/machines/n450/x86_32/core-image-sato-sdk-live-n450-20110709045049.hddimg.bz2

Crownbay:
http://autobuilder02.yoctoproject.org/crownbay-noemgd-1.1_M2/nightly/20110709-1/machines/crownbay/x86_32/core-image-sato-sdk-live-crownbay-noemgd-20110709091053.hddimg.bz2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>