[UEFITool] UEFI firmware image viewer and editor

Discussion in 'MDL Projects and Applications' started by CodeRush, Oct 8, 2013.

  1. CodeRush

    CodeRush MDL Member

    Joined:
    Jun 20, 2011
    Messages:
    221
    Likes Received:
    667
    Trophy Points:
    10
    0.18.7 is out, code rush indeed. :)

    Changes:
    - EFI11/Tiano compression code reverted to 0.17.x version because of higher compression ratio, thanks Serg008 for reporting.
    - delete and backspace keys handled properly for GUID field of search dialog

    ---
    @Serg008, tested 0.18.7 on that crappy Lenovo BIOS - rebuild now works, but there are not much free space for any complex mods. You can try to remove all unknown sections (they are useless) to save some space, if needed.
     
  2. Serg008

    Serg008 MDL BIOS/EFI Guru

    Joined:
    Feb 23, 2010
    Messages:
    22,777
    Likes Received:
    10,074
    Trophy Points:
    390
  3. adrian_p

    adrian_p MDL Novice

    Joined:
    Jan 13, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    "PEI Core entry point can't be found in VTF. VTF not patched."

    same thing with latest version.

    My test process:
    open bios image
    remove PeiCore
    add PeiCore
    and VTF should be patched...

    Am I doing something wrong in my test procedure?

    Thanks!

    EDIT:
    questions for a program feature:
    1. There is possibility to extract complete "Volume" from bios as is.
    Will there be possibility to not only extract "Volume" but to replace complete "Volume"

    2. When we wan't to extract module from bios, is it possible to auto add the name of module in "Save as" drop down menu how is it named in Text section of program,
    i.e.
    If I want to extract FileSystem DXE driver, I think it will be great to have that FileSystem already in Save as drop down menu along with ffs extension.
     
  4. CodeRush

    CodeRush MDL Member

    Joined:
    Jun 20, 2011
    Messages:
    221
    Likes Received:
    667
    Trophy Points:
    10
    @adrian_p, try "Replace as is" on PEI Core without removal, please.
    Send me your BIOS and new PEI core file for testing, if doesn't work.

    About features:
    1. If you need them, I will implement.
    2. This was previously in my planned features list, but I keep forgetting it. Will do.
     
  5. adrian_p

    adrian_p MDL Novice

    Joined:
    Jan 13, 2009
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    0
    When "Replace as is" there is no error!
    Further testing will follow...

    Well if 1. is not a problem to implement it will be handy to have (allot easier than replace one by one)
    And I know 2. is more cosmetic, but it helps(speeds up) allot in endless tweaking/testing.

    BRGDS
     
  6. CodeRush

    CodeRush MDL Member

    Joined:
    Jun 20, 2011
    Messages:
    221
    Likes Received:
    667
    Trophy Points:
    10
    UEFIExtract 0.3.1 is out.

    Changes:
    - added GUID filtering for extracting only specified FFS files (and all things in them), just run the program as "UEFIExtract /path/to/bios.image GUID1 GUID2 GUID3 ... GUID31"
    - return value is a bit mask, where 0 on position N means file with GUID_N is found and extracted, 1 otherwise. GUID numeration is started with 1, so if you have 1 as return value - there are some problems with BIOS file itself
     
  7. grilledcheese

    grilledcheese MDL Novice

    Joined:
    May 12, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
  8. FredWst

    FredWst MDL Novice

    Joined:
    Nov 18, 2013
    Messages:
    11
    Likes Received:
    13
    Trophy Points:
    0
    Hi,

    With rev 0.18.7 i got some troubles when adding module at the end.
    First module is correctly integrated but other after are corrupt.

    Fred
     
  9. CodeRush

    CodeRush MDL Member

    Joined:
    Jun 20, 2011
    Messages:
    221
    Likes Received:
    667
    Trophy Points:
    10
    @FredWst, will try to reproduce, but can you plase be more specific about it, i.e upload the files you are trying to add?
     
  10. FredWst

    FredWst MDL Novice

    Joined:
    Nov 18, 2013
    Messages:
    11
    Likes Received:
    13
    Trophy Points:
    0
    Hi,

    OZ file rev 894. with 0.18.5 it works.

    Fred
     
  11. Badawa

    Badawa MDL Novice

    Joined:
    Jan 27, 2013
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
  12. CodeRush

    CodeRush MDL Member

    Joined:
    Jun 20, 2011
    Messages:
    221
    Likes Received:
    667
    Trophy Points:
    10
  13. Badawa

    Badawa MDL Novice

    Joined:
    Jan 27, 2013
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
  14. billdh2k

    billdh2k MDL Novice

    Joined:
    Sep 12, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    Hi CodeRush,

    Fascinating work! Just got my self into this area since I am interested in adding new microcode to an Intel board (DG41TY) to support 771 Xeon (E0 stepping). Just wonder if your tool can help here. I've checked other existing tools that are dedicated for microcode update but non appear to touch the Intel board, in general. Any comment or suggestion are appreciated.

    Thanks in advance,

    Bill H
     
  15. billdh2k

    billdh2k MDL Novice

    Joined:
    Sep 12, 2014
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    0
    I am able to open the BIOS (.ROM file) with PhenixTool (v. 257) and it appears that the tool is able to decipher the BIOS and created a bios dump with bunch of module output. I just don't know what to do with them. Like which modules should I replace or to add with new Intel microcode?
     
  16. fr40

    fr40 MDL Member

    Joined:
    Aug 21, 2007
    Messages:
    156
    Likes Received:
    55
    Trophy Points:
    10
    yeah. really awosme work... still learn how this work, but tool is great!:clap:
     
  17. CodeRush

    CodeRush MDL Member

    Joined:
    Jun 20, 2011
    Messages:
    221
    Likes Received:
    667
    Trophy Points:
    10
    billdh2k, Intel's .BIO files are protected form any modification by RSA signatures, that is why to mod a BIOS on Intel board, you need to dump your current BIOS using external SPI programmer, modify it (there is now protection from modifying DXE volume for desktop boards) and then flash back into SPI chip using the same programmer.
    I don't know where the microcode module is located in that BIOS, but I will try to find it when I have more free time.

    fr40, I hope the interface is intuitive enough to have no documentation, but you need to have some background on UEFI technologies to use the tool, otherwise you will be lost with term like "Volume", "FFS file", "GUID-defined section", "Tiano compression" and so on. :)
    If you have any question - just ask, I will try to make a FAQ afterwards.
     
  18. Badawa

    Badawa MDL Novice

    Joined:
    Jan 27, 2013
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    0
  19. BDMaster

    BDMaster MDL BIOS/EFI Modifier

    Joined:
    Aug 2, 2009
    Messages:
    821
    Likes Received:
    313
    Trophy Points:
    30
    @ Badawa

    Hi friend,
    many times where Eeprom is Write Protected = FPT Error 28 or 280 the Recovery don't work !!!
    May be CodeRush can explain better this issue, but from my experience I can say that We have to
    use the first 2.xx upgrade Bios as Recovery File to go to 1.xx or rewrite a Bios !!!
    When It's not possible this way We can use Intel FPT using a Bios Mod Generalized Version or
    a Bios Backup Modified.
    All this will be possible if there is only Error 28, bypassable using Prr.exe (Svl7 Modder tool)
    otherwise We have to use a SPI external uSB Programmer with a Soic Pomona Clip.

    @ CodeRush
    I would ask to CodeRush a new feature into his UEFITool that's show the Bios Version e.g.
    Acer ZRQ v.1.19 or Lenovo G580 5ECN33WW (v2.03), this for Insyde is cover under $DMI,
    but into Phoenix is more difficult to get quickly.
    Regards
     
  20. RustyX

    RustyX MDL Novice

    Joined:
    Jan 2, 2013
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0