From: Ed Bartosh <ed.bartosh@linux.intel.com>
To: Rick Altherr <raltherr@google.com>
Cc: OE-core <openembedded-core@lists.openembedded.org>
Subject: Re: How to use WIC to generate raw flash images
Date: Mon, 23 Jan 2017 12:34:03 +0200 [thread overview]
Message-ID: <20170123103403.GA15174@linux.intel.com> (raw)
In-Reply-To: <CAPLgG=muXdcmCcFCC7NY8Zk9ANH5yf616T5b9Bc31OCJq=AD3w@mail.gmail.com>
On Fri, Jan 20, 2017 at 10:37:15AM -0800, Rick Altherr wrote:
> 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.
This is indeed very interesting work. We definitely need support of flash images in oe-core.
> 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?
Wic doesn't support this type of images, but it shouldn't be hard to add
option to skip partitioning to .wks syntax and wic code.
> - How do I set padding to be 0xFF instead of 0x00?
The same thing here. Currently wic images are sparse files created by
os.ftruncate, but it's not a big deal to fill them with 0xFF
> - How do I include u-boot in the image?
This can be done by using/extending rawcopy plugin or writing similar
one.
> 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?
This sounds reasonable. Can you create a bug for this in bugzilla to discuss design and implementation details?
--
Regards,
Ed
next prev parent reply other threads:[~2017-01-23 10:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-20 18:37 How to use WIC to generate raw flash images Rick Altherr
2017-01-23 10:34 ` Ed Bartosh [this message]
2017-01-23 18:44 ` Rick Altherr
2017-01-24 8:56 ` Mike Looijmans
2017-01-24 9:54 ` Ed Bartosh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170123103403.GA15174@linux.intel.com \
--to=ed.bartosh@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=raltherr@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.