EFI FileSystem drivers
) ) ) ) This is a GPLv3+ implementation of standalone EFI File System drivers, based on the GRUB 2.0 read-only drivers.
For additional info as well as precompiled drivers, see https://efi.akeo.ie
git submodule init and git submodule update.git.0001-GRUB-fixes.patch to the grub\ subdirectory. This applies the
changes that are required for successful compilation of GRUB.F5 to compile and debug the default driver.make in the top directory. If needed you can also issue something like
make ARCH= CROSS_COMPILE= where is one of `ia32`, `x64`, `arm`, `aa64`, `riscv64` or `loongarch64` (the __official__ UEFI abbreviations for an arch, as used in `/efi/boot/boot[ARCH].efi`) and
is the one for your cross-compiler, such as arm-linux-gnueabi- or
aarch64-linux-gnu-.
e.g. make ARCH=aa64 CROSS_COMPILE=aarch64-linux-gnu-EfiFsPkg,
inside your EDK2 directory, to the EfiFs source. On Windows, from an elevated
prompt, you could run something like mklink /D EfiFsPkg C:\efifs, and on
Linux ln -s ../efifs EfiFsPkg.set_grub_cpu.cmd ./set_grub_cpu.sh ia32, x64, arm, aarch64, riscv64 or loongarch64.
Note that you MUST invoke the set_grub_cpu script every time you
switch target.edksetup.bat (Windows) or edksetup.sh (Linux) run
something like: build -a X64 -b RELEASE -t -p EfiFsPkg/EfiFsPkg.dscVS2022 (Windows) or GCC5 (Linux).build -a X64 -b RELEASE -t -p EfiFsPkg/EfiFsPkg.dsc -m EfiFsPkg/EfiFsPkg/Ntfs.infedk2_build_drivers.cmd.If QEMU is installed, the Visual Studio solution will set up and test the
drivers using QEMU (by also downloading a sample image for each target file
system). Note however that VS debugging expects a 64-bit version of QEMU to be
installed in C:\Program Files\qemu\ (which you can download here).
If that is not the case, you should edit .msvc\debug.vbs accordingly.
For testing outside of Visual Studio, make sure you have at least one disk with a target partition using the target filesystem, that is not being handled by other EFI filesystem drivers. Then boot into the EFI shell and run the following:
load fs0:\_.efi or wherever your driver was copiedmap -r this should make a new fs# available, eg fs2:FS_LOGGING shell variable to 1 or moredrivers command, then unload with the driver IDPlease be mindful that, to enable ARM/ARM64 compilation support in Visual Studio 2022, you MUST go to the Individual components screen in the setup application and select the ARM compilers and libraries there, as they do NOT appear in the default Workloads screen:
This is a pure GPLv3+ implementation of EFI drivers. Great care was taken not to
use any code from non GPLv3 compatible sources, such as rEFInd's fsw_efi
(GPLv2 only) or Intel's FAT driver (requires an extra copyright notice).
Note however that some files (the non grub_#### sources under ./src/) are
licensed under GPLv2+ rather than GPLv3+ and that, just like the GPLv3+ sources,
we took great care of ensuring that we are fully compliant with any licensing
or relicensing matters, so that they can legally be reused into GPLv2+ works.
…No open issues yet, or sync has not completed.