<div dir="ltr"><div><div><div><div>Hi Taiidan, try following these instructions:<br></div>1) download the latest official BIOS update .exe file from your laptop manufacturer's website (Lenovo in this case)<br></div>2) open this .exe file with 7zip utility and extract all its' contents to a separate folder<br></div>3) most likely is that amoung these extracted files you will see a several megabytes binary file, which contains not just a BIOS image but also EC firmware image and some other images. Then you open this binary file in a hex editor like Okteta and search for some ASCII string symbols like for example _EC_IMG to e.g. locate the beginning of EC firmware block, and knowing what size in bytes the EC firmware should be - you cut the same amount of bytes after _EC_IMG text - and save into a new binary file<br></div>Something like that, will probably work for you. Good luck in your research ;)<br></div><div class="gmail_extra"><br><div class="gmail_quote">2017-03-07 5:23 GMT+00:00 <a href="mailto:Taiidan@gmx.com">Taiidan@gmx.com</a> <span dir="ltr"><<a href="mailto:Taiidan@gmx.com" target="_blank">Taiidan@gmx.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Uhh thanks but that's kinda missing the point of this - that I don't
    want binaries from random people on the internet.<br>
    <br>
    I need to know how to extract it from the bios update files, not the
    bios already on the EEPROM.<div><div class="h5"><br>
    <br>
    <div class="m_8102150088842642581moz-cite-prefix">On 03/06/2017 11:35 PM, Matt DeVillier
      wrote:<br>
    </div>
    <blockquote type="cite">
      <pre>I have the IFD and ME from an x220 that I recently flashed with coreboot
for a customer, extracted from their stock firmware, and verified working
with the coreboot ROM I subsequently flashed.  Can zip and send via email,
or whatever you prefer

On Mon, Mar 6, 2017 at 10:23 PM, <a class="m_8102150088842642581moz-txt-link-abbreviated" href="mailto:Taiidan@gmx.com" target="_blank">Taiidan@gmx.com</a> <a class="m_8102150088842642581moz-txt-link-rfc2396E" href="mailto:Taiidan@gmx.com" target="_blank"><Taiidan@gmx.com></a> wrote:

</pre>
      <blockquote type="cite">
        <pre>On 03/05/2017 05:20 AM, Arthur Heymans wrote:

<a class="m_8102150088842642581moz-txt-link-rfc2396E" href="mailto:Taiidan@gmx.com" target="_blank">"Taiidan@gmx.com"</a> <a class="m_8102150088842642581moz-txt-link-rfc2396E" href="mailto:Taiidan@gmx.com" target="_blank"><Taiidan@gmx.com></a> writes:
</pre>
        <blockquote type="cite">
          <pre>Well I managed to download the latest BIOS from the lenovo site, which
</pre>
          <blockquote type="cite">
            <pre>includes an ME update now the issue is that I can't seem to figure out
how to extract it from the .FL1 and .FL2 files.

Those might have a length too long to fit a flash so you need to trim
</pre>
          </blockquote>
          <pre>those down before using ifdtool on those (If they contain and ifd of
course)
so depending on size of rom
dd if=FL1(or 2)file of=vendor_bios.rom bs=1 count=xM

and then ifdtool -x vendor_bios.rom

</pre>
        </blockquote>
        <pre>It didn't work :( after that still "no flash descriptor found in this
image"

These are the files and the flash chip on the board is 8M
8523776 '$01CB000.FL1'
8523776 '$01CB000.FL2'
8523776 '$01CB100.FL2'
All of them have different hashes, but I do not know what makes them
different (maybe it is for various board revisions?)


</pre>
        <blockquote type="cite">
          <pre>I would also like to know as to how I can re-flash the EC firmware if
</pre>
          <blockquote type="cite">
            <pre>that could potentially cause problems, I of course do not know if it
has DMA.

Only existing tool to flash EC is using vendor tool.
</pre>
          </blockquote>
          <pre>EC are only accessed trough port mapped IO (or on newer ones also via
memory mapped IO). EC itself does not have DMA afaik.


</pre>
        </blockquote>
        <pre>--
coreboot mailing list: <a class="m_8102150088842642581moz-txt-link-abbreviated" href="mailto:coreboot@coreboot.org" target="_blank">coreboot@coreboot.org</a>
<a class="m_8102150088842642581moz-txt-link-freetext" href="https://www.coreboot.org/mailman/listinfo/coreboot" target="_blank">https://www.coreboot.org/<wbr>mailman/listinfo/coreboot</a>

</pre>
      </blockquote>
      <pre></pre>
      <br>
      <fieldset class="m_8102150088842642581mimeAttachmentHeader"></fieldset>
      <br>
    </blockquote>
    <br>
  </div></div></div>

<br>--<br>
coreboot mailing list: <a href="mailto:coreboot@coreboot.org">coreboot@coreboot.org</a><br>
<a href="https://www.coreboot.org/mailman/listinfo/coreboot" rel="noreferrer" target="_blank">https://www.coreboot.org/<wbr>mailman/listinfo/coreboot</a><br></blockquote></div><br></div>