<div class="gmail_quote">On Tue, Dec 27, 2011 at 2:52 PM, David Hendricks <span dir="ltr"><<a href="mailto:dhendrix@google.com">dhendrix@google.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div class="gmail_quote"><div class="im">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.</div>

</div></blockquote><div><br></div><div>Bleh, sorry I did not make that very clear at all. Let's try again...</div><div><br></div><div>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.</div>

<div><br></div><div>In other cases, the -r argument will be filled with the included regions, and the rest will be filled with 0xff bytes.</div><div><br></div><div>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.</div>

</div><div><br></div>-- <br>David Hendricks (dhendrix)<br>Systems Software Engineer, Google Inc.<br>