[flashrom] Partial reads of specific address ranfe

David Hendricks dhendrix at google.com
Fri May 29 00:56:36 CEST 2015


Hi Adam,
Partial reads are not currently supported in upstream (even with a layout
file), but they are supported in the ChromiumOS branch:
https://chromium.googlesource.com/chromiumos/third_party/flashrom

Basically what you'll need to do is:
1. Make sure your chip is supported (in flashchips.c).
2. Create a layout file ('echo "start:end name" >> layout.txt')
3. flashrom -p dediprog -r -l layout.txt -i name:name.bin

For example, if your start and end are 000:fff and the name is "bottom_4k",
the command `flashrom -p dediprog -r -l layout.txt -i
bottom_4k:bottom_4k.bin` will read 4K from 0x000000-0x000fff and write it
to a file called bottom_4k.bin.

HTH!


On Wed, May 27, 2015 at 7:32 PM, Adam Duncan <adam.duncan at gmail.com> wrote:

> Hi,
>
> I am trying to read a specific address range of a  chip using the partial
> read feature in flashrom .9.7 using a dediprog or buspirate. Is there a
> command line argument to specify the addresses you would like to read from?
>
> Thanks!
>
> _______________________________________________
> flashrom mailing list
> flashrom at flashrom.org
> http://www.flashrom.org/mailman/listinfo/flashrom
>



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


More information about the flashrom mailing list