[flashrom] [PATCH 3/5] layout: Add -i <image>[:<file>] support

David Hendricks dhendrix at google.com
Wed Dec 28 00:00:54 CET 2011


On Tue, Dec 27, 2011 at 2:52 PM, David Hendricks <dhendrix at google.com>wrote:

> For read, if the sum of regions included covers the entire chip, then you
> will end up with two identical files. Included regions will also show up in
> the -r argument, while the rest is filled in with 0xff's.
>

Bleh, sorry I did not make that very clear at all. Let's try again...

For read, if the region you specify covers the entire chip, then the file
output by -i region:file syntax will be identical to the file output by the
-r argument.

In other cases, the -r argument will be filled with the included regions,
and the rest will be filled with 0xff bytes.

>From a historical perspective, the ':filename' stuff was added later in
order keep the layout processing logic contained within flashrom. With our
flashmap data structure embedded in the ROM image itself, this makes the
logic required for scripts much simpler since they do not need to handle
layout files or have any knowledge of chip layout. They just need to know
the names of regions to look for.

-- 
David Hendricks (dhendrix)
Systems Software Engineer, Google Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.flashrom.org/pipermail/flashrom/attachments/20111227/0271ab79/attachment.html>


More information about the flashrom mailing list