<div class="gmail_quote">On Tue, Sep 28, 2010 at 9:55 PM, Peter Stuge <span dir="ltr"><<a href="mailto:peter@stuge.se">peter@stuge.se</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div class="im">Aurélien wrote:<br>
> > > I tried to make a patch which reads from /dev/mem directly in 2 ways:<br>
> > >  - mmap()ing /dev/mem, but it seemed that it would be too specific a<br>
> > > modification to be accepted.<br>
> ><br>
> > See <a href="http://stuge.se/physrd.c" target="_blank">http://stuge.se/physrd.c</a> for a fairly generic tool to do this.<br>
><br>
> You're right, splitting the feature in two tools seems much more<br>
> correct. This way we can extract the ROM image, then extract the<br>
> specific payload.<br>
<br>
</div>Well, for that purpose it's much better to simply use flashrom.<div><div class="h5"><br></div></div></blockquote><div> </div><div>Probably, but flashrom takes slighly more time due to various calibration routines (I could not find a way to disable those, but I didn't try very hard), and is less integrable that just reading like this. I don't need much portability between mainboards anyways.</div>

<div><br></div><div>In the general case however, you are right, the flashrom method seems much more robust.</div><div><br></div></div>-- <br>Aurélien Guillaume<br><br>