Openembedded Core Discussions
 help / color / mirror / Atom feed
* How to use WIC to generate raw flash images
@ 2017-01-20 18:37 Rick Altherr
  2017-01-23 10:34 ` Ed Bartosh
  0 siblings, 1 reply; 5+ messages in thread
From: Rick Altherr @ 2017-01-20 18:37 UTC (permalink / raw)
  To: OE-core

[-- Attachment #1: Type: text/plain, Size: 923 bytes --]

For OpenBMC (based on Yocto), the target is an SoC that has an external
boot flash connected via SPI.  Right now, we have a class (
https://github.com/openbmc/openbmc/blob/master/meta-phosphor/classes/image-overlay.bbclass)
used by our top-level image recipe (
https://github.com/openbmc/openbmc/blob/master/meta-phosphor/common/recipes-phosphor/images/obmc-phosphor-image.bb)
that manually constructs a flash image from the kernel, rootfs, etc.  I'd
like to move to an upstream-supported approach and I think that is WIC.
What I don't understand is:
- How do I build a raw flash image where it is divided into partitions but
has no partition table?
- How do I set padding to be 0xFF instead of 0x00?
- How do I include u-boot in the image?

Do I need to add a new imager plugin to support writing raw images with
non-zero padding and no partition table?  For U-Boot, do I add a new
bootimg plugin?

Rick

[-- Attachment #2: Type: text/html, Size: 1250 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-01-24 10:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-20 18:37 How to use WIC to generate raw flash images Rick Altherr
2017-01-23 10:34 ` Ed Bartosh
2017-01-23 18:44   ` Rick Altherr
2017-01-24  8:56   ` Mike Looijmans
2017-01-24  9:54     ` Ed Bartosh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox