LongSoft / UEFITool

UEFI firmware image viewer and editor
BSD 2-Clause "Simplified" License
4.38k stars 627 forks source link

can you make a uefiextract for uefi oprom? for linux? for example #361

Closed kocoman1 closed 1 year ago

kocoman1 commented 1 year ago

can you make a uefiextract for uefi oprom? for linux? for example https://www.insanelymac.com/forum/topic/299627-uefi-option-rom-extractor-and-decompressor-v10/

i using it for the sas oracle/nynt/seagate f40/f80 warpdrive uefi oprom extraction for booting off its 100gb-128gb etc in tianocore where it doesn't run the uefi option rom but my windows install and osx install is always broken i prefer linux if possible.

thx

NikolajSchlej commented 1 year ago

That utility can be ported to pure C fairly easily (as it was mostly ported from C by copy-pasting). It's not an issue of UEFITool though, so I will close this as N/A. Will ping you here when that port is ready.

NikolajSchlej commented 1 year ago

@kocoman1, here, a single C file that should be buildable on any OS with a C compiler and libc (Linux, macOS, Windows, whatever): UEFIRomExtract.zip Usage: download, unzip, run gcc UEFIRomExtract.c -o uefiromextract, replace gcc with clang if your Linux distro uses it. Tested locally on Ubuntu 23.03, worked for me (with minor compiler warnings that can be ignored).

b23prodtm commented 1 year ago

Need it to compile for macOS, it run fine on monterey 12. https://forums.macrumors.com/threads/pre-opencore-gop-support-for-efi-era-imacs-and-mac-pros.2378942/

NikolajSchlej commented 1 year ago

Install Xcode command line tools and compile it using the same command as described above.