LongSoft / IFRExtractor-RS

Rust utility to extract UEFI IFR data into human-readable text
BSD 2-Clause "Simplified" License
280 stars 21 forks source link

how to extract UEFI Internal Form Representation (IFR) at efi runtime #17

Open llxiaoyuan opened 1 year ago

llxiaoyuan commented 1 year ago

Hello. First of all, thanks for creating this rep it's really helpful.

i wonder how to extract UEFI Internal Form Representation (IFR) at efi runtime,like run a efi at edk2 shell,thanks in advance

Kostr commented 11 months ago

You can create UEFI Shell application that would utilize EFI_HII_DATABASE_PROTOCOL.ExportPackageLists function to export all the package lists from the HII database. Iterate on PackageLists and save them as files, then try to use ifrextractor on each one. To make things more clever, you can peak inside each of the PackageLists and save only the ones that have FORMS package inside.