On Tue, Dec 27, 2011 at 2:52 PM, David Hendricks
<dhendrix@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.