Bios Mods -The Best BIOS Update and Modification Source

Full Version: [UEFIPatch] semi-universal UEFI image patcher
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi, guys.

I wrote another small program based on UEFITool's engine, that can be used to patch UEFI image file without unpacking it on disk.

Patches can either be applied directly, calling the program with 4 parameters:
UEFIPatch.exe ImageFile FfsFileGuid SearchPattern ReplacePattern
or taken from patches.txt file (example file with OSX PM Patches provided), in this case only ImageFile parameter is needed.
Basically, you can just drop your BIOS file on program's icon and all patches from txt file will be tried.

I hope you will find it useful to automate whitelist removals and stuff. If you can catch a bug - please report. Thank you all in advance.

All my UEFITool-based utilities can always be downloaded from sendspace.
Good tool.
But I think that is possible to generate errors for small and common patterns.
In that case is need to increase pattern size.
My ideea is to use ida diff file.
That is offset based and then no more problem in case pattern is common or found in more than one instance.
It can easily be modified by changing a single QByteArray.replaceAll call to something more appropriate. I don't think offset-based solution will be more convenient, because it's unlikely that there be too many patch patterns in a single FFS file, but if you need it - it's easy to implement.
(06-19-2014, 05:30 AM)CodeRush Wrote: [ -> ]Hi, guys.

I wrote another small program based on UEFITool's engine, that can be used to patch UEFI image file without unpacking it on disk.

Patches can either be applied directly, calling the program with 4 parameters:
UEFIPatch.exe ImageFile FfsFileGuid SearchPattern ReplacePattern
or taken from patches.txt file (example file with OSX PM Patches provided), in this case only ImageFile parameter is needed.
Basically, you can just drop your BIOS file on program's icon and all patches from txt file will be tried.

I hope you will find it useful to automate whitelist removals and stuff. If you can catch a bug - please report. Thank you all in advance.

All my UEFITool-based utilities can always be downloaded from sendspace.

You're always a Genious, man !!!
Many thanks for all yours productions and efforts to help all of us !!!
Can I ask for more patch on the same module how to do ?
I think use other rows with same GUID etc. ?
Regards
Thanks, BDMaster.
To patch more then one string, just add a second line to patches.txt with the same GUID. Patches are applied from top to bottom, succesfully applied patches are listed in program's output.
@BDMaster, check this out, I have implemented some of your proposals.
(07-05-2014, 08:25 AM)CodeRush Wrote: [ -> ]@BDMaster, check this out, I have implemented some of your proposals.

I think You have some Einstein DNA in yours man !!!
Infinite Thanks !
I will test It quickly and will spread this superb tool.
Regards
Thank you for your contributions to the BIOS modding community CodeRush! We need more programmers like you. I also want to thank BDMaster for his great ideas in the development of this tool. Once BDMaster tests this tool, him and I will spread the news and make this tool public.

I am not experienced with Whitelist removal, but this tool makes the process easy. I will happily beta test this tool if you are in need of testers.


~Steven
@BDMaster, stop the glory, I'm feeling shy. Smile I'm not a genius in any means, just want to develop my BIOS knowledge further, and if it can help other people without breaking NDAs - why not then.

@Sml6397, thanks. Beta testers are always welcome.
The engine that UEFIPatch is using (UEFITool's ffsEngine) is already somewhat tested and appears to be OK, but there are still much room for improvement (like initial support of FIT table editing to prevent new mobile-HSW and mobile-BDW besed systems from surprise brick) and bugs can still lurk in it's code.
I don't think it will be possible to write an 100%-universal utility, and it's a hobby project with a list of limitations, but I will definitely try to add some features needed by modders like you and BDMaster (if, again, it won't break NDAs I have with AMI).
(07-07-2014, 01:59 AM)CodeRush Wrote: [ -> ]@BDMaster, stop the glory, I'm feeling shy. Smile I'm not a genius in any means, just want to develop my BIOS knowledge further, and if it can help other people without breaking NDAs - why not then.

@Sml6397, thanks. Beta testers are always welcome.
The engine that UEFIPatch is using (UEFITool's ffsEngine) is already somewhat tested and appears to be OK, but there are still much room for improvement (like initial support of FIT table editing to prevent new mobile-HSW and mobile-BDW besed systems from surprise brick) and bugs can still lurk in it's code.
I don't think it will be possible to write an 100%-universal utility, and it's a hobby project with a list of limitations, but I will definitely try to add some features needed by modders like you and BDMaster (if, again, it won't break NDAs I have with AMI).

I have read about your work in Ami Bios (Congatec AG as BIOS developer) so
Gratulations friend !!!
But let You give always your Gifts to us, please don't miss us !
Regards
Pages: 1 2