gnu-efi

UEFI Resolve full path

痴心易碎 提交于 2019-12-24 08:59:29
问题 I'm working on a bootloader of sorts using GNU-EFI. So far I've been able to read the Boot#### NVRAM variable, so I have a semi-populated FilePathList[] , which looks like this (printed with DevicePathToStr ): HD(Part2, SigCD0400E6-54F3-49F4-81F2-65B21E8278A8)/\EFI\Microsoft\Boot\bootmgfw.efi When passed to LoadImage it fails with EFI_NOT_FOUND . As I understand it (UEFI Doc Section 3.1.2), I need to add the full path before what I already have. I've found out that the correct path is PciRoot

How to compile uefi application using gnu-efi?

别说谁变了你拦得住时间么 提交于 2019-12-24 03:28:05
问题 I tried to compile uefi code using gnu-efi . But I don't understand how to compile my uefi application code. I get gnu-efi 3.0.2, decompress and type make && make install . I write hello world code: #include <efi.h> #include <efilib.h> EFI_STATUS efi_main (EFI_HANDLE ImageHandle, EFI_SYSTEM_TABLE *SystemTable) { InitializeLib(ImageHandle, SystemTable); Print(L"Hello, world!\n"); return EFI_SUCCESS; } My OS is Ubuntu 15.04. 回答1: Include the gnu-efi files #include <efi.h> #include <efilib.h> it