<?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>6513</bug_id>
          
          <creation_ts>2014-07-08 21:15:48 +0000</creation_ts>
          <short_desc>wic needs to support creating FAT partitions</short_desc>
          <delta_ts>2014-10-30 16:59:10 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</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>enhancement</bug_severity>
          <target_milestone>1.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Phlip Balister">philip</reporter>
          <assigned_to name="Tom Zanussi">tom.zanussi</assigned_to>
          <cc>tom.zanussi</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>44384</commentid>
    <comment_count>0</comment_count>
    <who name="Phlip Balister">philip</who>
    <bug_when>2014-07-08 21:15:48 +0000</bug_when>
    <thetext>part /boot --source rootfs --size 1000 --ondisk mmcblkp0 --fstype=vfat --label FAT --active --align 1024

this line in a wks file creates a partition, however a vfat filesystem is not created on the sd card. Many ARM based systems that boot from SD card need a vfat partition to hold u-boot and related files.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44385</commentid>
    <comment_count>1</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-07-08 22:10:12 +0000</bug_when>
    <thetext>Details and initial plan from IRC:

&lt;Crofton|work&gt; tomz, shoudl I get one FAT partion with this wks?&lt;Crofton|work&gt; http://pastebin.com/67yMU0TY
&lt;tomz&gt; Crofton: it would if there were vfat support for rootfs - currently the only filesystem types supported for rootfs are ext2/3/4 and btrfs. we&apos;d need to add vfat support
* nitink1 has quit (Quit: Leaving.)
* radzy has quit (Ping timeout: 240 seconds)
&lt;Crofton|work&gt; how do we add vfat?
&lt;Crofton|work&gt; tomz, for arm we need to make vfat partitions on sd cards for most
&lt;Crofton|work&gt; boot
&lt;Crofton|work&gt; boot loaders
&lt;tomz&gt; Crofton: likewise for x86 - if you look a the bootimg-pcbios and bootimg-efi plugins, they create fat partitions using mkdosfs and mcopy
&lt;tomz&gt; Crofton: sounds like that needs to be upleveled to some common code
&lt;Crofton|work&gt; tomz, any hints on how to do this?
&lt;Crofton|work&gt; we need to make progress getting wic usable
&lt;tomz&gt; Crofton: I think what needs to be done is to take the dosfs code from the pcbios/efi plugins that I mentioned and use it to implement a new case in /scripts/lib/mic/kickstart/custom_commands/partition.py:prepare_rootfs().  Then of course have those two other plugins reuse the new code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>44495</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-07-15 15:44:39 +0000</bug_when>
    <thetext>Patchset for this among other things sent to oe-core.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>46692</commentid>
    <comment_count>3</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2014-10-30 16:59:10 +0000</bug_when>
    <thetext>In master:

commit 83e5c09d2fa9209e11b312126571a6653c330eea
Author: Tom Zanussi &lt;tom.zanussi@linux.intel.com&gt;
Date:   Thu Jul 10 14:29:27 2014 -0500

    wic: Add vfat support
    
    Add vfat as a supported rootfs type (in addition to the current
    ext2/3/4 and btrfs support).
    
    vfat partitions can now be created using --source rootfs along with
    --fstype=vfat, or without --source but specifying a --size.
    
    (From OE-Core rev: d9efc110fd73822629b2a3326761f2256b9f23b0)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>