<?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>10957</bug_id>
          
          <creation_ts>2017-01-23 18:44:02 +0000</creation_ts>
          <short_desc>wic: support generating raw flash images</short_desc>
          <delta_ts>2026-07-30 15:28:05 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>Wic</product>
          <component>wic</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Rick Altherr">raltherr</reporter>
          <assigned_to name="Trevor Woerner">twoerner</assigned_to>
          <cc>akuster</cc>
    
    <cc>brian.avery</cc>
    
    <cc>california.l.sullivan</cc>
    
    <cc>maciej.pijanowski</cc>
    
    <cc>mikko.ylinen</cc>
    
    <cc>ndec13</cc>
    
    <cc>raltherr</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
    
    <cc>sgw</cc>
    
    <cc>stephano</cc>
    
    <cc>tim.orling</cc>
    
    <cc>twoerner</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>70038</commentid>
    <comment_count>0</comment_count>
    <who name="Rick Altherr">raltherr</who>
    <bug_when>2017-01-23 18:44:02 +0000</bug_when>
    <thetext>For SoCs that boot from a raw flash device (such as Aspeed AST2500), an image&apos;s U-Boot, kernel image, and rootfs are combined into a single image suitable for writing directly the flash.  Specifically:
- there is no partition table (but the contents are organized into parition-like ranges)
- padding is 0xFF instead of 0x00
- U-Boot is written as a raw binary at a fixed location

WIC, today, assumes that a partition table (msdos or gpt) will be written, padding is all zeros, and boot files are copied into a filesystem.  A new imager plugin and bootimg source plugin are likely required to add the raw flash features.

Discussion on oe-core mailing list: http://lists.openembedded.org/pipermail/openembedded-core/2017-January/131533.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70056</commentid>
    <comment_count>1</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-01-23 21:55:41 +0000</bug_when>
    <thetext>from the first look we can do this the following way:

- Implement wks option to skip creating partition table for existing imager plugin or implement new imager plugin if modification is not feasible.

- Implement wks option to set padding. Would it be enough to pad partitions or it&apos;s better to pad the image?

- Use existing wks option --fixed-size in to set partition sizes

- implement --offset wks option if partition content needs to be written with an offset from the partition start (is this u-boot case?)

- Use rawcopy or/and fsimage plugin or write new plugin to populate partitions

I think it&apos;s better to use existing functionality than create new plugins.

Comments?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71038</commentid>
    <comment_count>2</comment_count>
    <who name="Ed Bartosh">eduard.bartosh</who>
    <bug_when>2017-03-02 12:12:47 +0000</bug_when>
    <thetext>There is a tool developed for similar purpose: http://git.denx.de/?p=u-boot.git;a=tree;f=tools/binman;h=706dfe34f9557807ffa7eeab80c502145d3cddbc;hb=HEAD

It&apos;s tightly coupled with uboot, so probably we can&apos;t use it, but we should look at least look at a possibility to reuse it&apos;s ideas.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84158</commentid>
    <comment_count>3</comment_count>
    <who name="Maciej Pijanowski">maciej.pijanowski</who>
    <bug_when>2019-06-12 14:19:47 +0000</bug_when>
    <thetext>I&apos;m interested in this feature. Has anyone started working on that? If not, I will try to take a look at it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84465</commentid>
    <comment_count>4</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-07-19 22:42:48 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; I&apos;m interested in this feature. Has anyone started working on that? If not,
&gt; I will try to take a look at it.

you are more than welcome to take this issue as it sounds like you have interest in this subject.  If you don&apos;t have an bug account, you may want to recreate on.

thank you for helping.
- armpit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>96934</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-24 14:24:46 +0000</bug_when>
    <thetext>Bulk move from 4.99 or 0.00 to 5.99</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>