<div dir="ltr"><a href="https://bugzilla.yoctoproject.org/show_bug.cgi?id=10957">https://bugzilla.yoctoproject.org/show_bug.cgi?id=10957</a><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jan 23, 2017 at 2:34 AM, Ed Bartosh <span dir="ltr">&lt;<a href="mailto:ed.bartosh@linux.intel.com" target="_blank">ed.bartosh@linux.intel.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Fri, Jan 20, 2017 at 10:37:15AM -0800, Rick Altherr wrote:<br>
&gt; For OpenBMC (based on Yocto), the target is an SoC that has an external<br>
&gt; boot flash connected via SPI.  Right now, we have a class (<br>
&gt; <a href="https://github.com/openbmc/openbmc/blob/master/meta-phosphor/classes/image-overlay.bbclass" rel="noreferrer" target="_blank">https://github.com/openbmc/<wbr>openbmc/blob/master/meta-<wbr>phosphor/classes/image-<wbr>overlay.bbclass</a>)<br>
&gt; used by our top-level image recipe (<br>
&gt; <a href="https://github.com/openbmc/openbmc/blob/master/meta-phosphor/common/recipes-phosphor/images/obmc-phosphor-image.bb" rel="noreferrer" target="_blank">https://github.com/openbmc/<wbr>openbmc/blob/master/meta-<wbr>phosphor/common/recipes-<wbr>phosphor/images/obmc-phosphor-<wbr>image.bb</a>)<br>
&gt; that manually constructs a flash image from the kernel, rootfs, etc.<br>
<br>
</span>This is indeed very interesting work. We definitely need support of flash images in oe-core.<br>
<span class=""><br>
&gt; I&#39;d like to move to an upstream-supported approach and I think that is WIC.<br>
<br>
&gt; What I don&#39;t understand is:<br>
&gt; - How do I build a raw flash image where it is divided into partitions but<br>
&gt; has no partition table?<br>
<br>
</span>Wic doesn&#39;t support this type of images, but it shouldn&#39;t be hard to add<br>
option to skip partitioning to .wks syntax and wic code.<br>
<span class=""><br>
&gt; - How do I set padding to be 0xFF instead of 0x00?<br>
</span>The same thing here. Currently wic images are sparse files created by<br>
os.ftruncate, but it&#39;s not a big deal to fill them with 0xFF<br>
<span class=""><br>
&gt; - How do I include u-boot in the image?<br>
<br>
</span>This can be done by using/extending rawcopy plugin or writing similar<br>
one.<br>
<span class=""><br>
&gt; Do I need to add a new imager plugin to support writing raw images with<br>
&gt; non-zero padding and no partition table?  For U-Boot, do I add a new<br>
&gt; bootimg plugin?<br>
<br>
</span>This sounds reasonable. Can you create a bug for this in bugzilla to discuss design and implementation details?<br>
<br>
--<br>
Regards,<br>
Ed<br>
</blockquote></div><br></div>