This repository contains the EFI runtime component of my UEFI-based USB target disk mode solution.
You will need a GNU/Linux machine that supports building ELF objects for your target system (which POSIX-UEFI's toolchain converts into PE executables for us).
Clone our upstream submodules:
git submodule update --init --recursive
Build POSIX-UEFI:
make -j$(nproc) -Cposix-uefi uefi
make
If you have a GNU/Linux system with KVM enabled, you can run a demo like so:
./qemu_test.sh .
The above will put you at Tianocore's EFI shell. Simply type the following (and press enter) to run the application:
FS0:\targetdisk.efi
You can also run the .efi
on any UEFI-compliant machine that matches the
architecture that you just compiled for. It's easiest if you do it from the
UEFI shell. If your machine doesn't have a Tianocore shell, you can use
something like the Arch Linux install ISO to get one.
If you're an absolute madperson you can also add the
.efi
file to your EFI boot vars!