2022-10-24 15:21:19 +02:00
POSIX-UEFI Utilities
====================
2022-10-29 17:10:54 +02:00
These are small portable commands to help you with the UEFI toolchain (libc only, no EFI headers needed). They convert the .efi
output that you've compiled with POSIX-UEFI into different file formats required by the UEFI firmware.
2022-10-24 15:21:19 +02:00
* __efirom__ - creates a PCI Option ROM image
2022-10-29 17:10:54 +02:00
```
POSIX-UEFI utils - efirom by Michael Brown GPL
./efirom [--vendor=VVVV] [--device=DDDD] infile outfile
```
2022-10-24 15:21:19 +02:00
2022-10-24 16:06:55 +02:00
* __efiffs__ - creates a DXE UEFI driver image (see [this wiki ](https://github.com/pbatard/efifs/wiki/Adding-a-driver-to-a-UEFI-firmware#adding-the-module-to-the-firmware ) on how to add it to a firmware).
2022-10-29 17:10:54 +02:00
```
POSIX-UEFI utils - efiffs by bztsrc@gitlab MIT
./efiffs [-g < guid > ] [-n < name > ] [-v < ver > ] [-t < type > ] [-p < type > ] infile [outfile]
-g < guid > specify the GUID (defaults to random)
-n < name > specify the driver's name (eg 'FAT')
-v < ver > specify the driver's version (eg '1.0')
-t < type > specify the ffs type (defaults to 7, EFI_FV_FILETYPE_DRIVER)
-p < type > specify the pe section type (defaults to 16, EFI_SECTION_PE32)
infile input .efi file
outfile output file name (default generated from infile)
```
* __efidsk__ - creates a bootable disk image with EFI System Partition from the contents of a directory. Copy the POSIX-UEFI
compiled file under the given directory as `EFI/BOOT/BOOTX64.EFI` to get it automatically booted.
```
POSIX-UEFI utils - efidsk by bztsrc@gitlab MIT
2022-11-08 19:42:02 +01:00
./efidsk [-p|-c] [-s < size > ] indir outfile
2022-10-25 17:36:33 +02:00
2022-10-29 17:10:54 +02:00
-p save only the partition image without GPT
2022-11-08 19:42:02 +01:00
-c save EFI CDROM (ISO9660 El Torito no emulation boot catalog)
2022-10-29 17:10:54 +02:00
-s < size > set the size of partition in megabytes (defaults to 33M)
indir use the contents of this directory
outfile output image file name
```