我使用了 gnu-efi。
我不明白如何简单地读取文件。
我了解使用 BlockIOProtocol。
你能告诉我们一个简单的例子吗?
我尝试使用编译uefi代码gnu-efi。但是我不明白如何编译我的uefi应用程序代码。
我得到gnu-efi3.0.2,解压缩并输入make && make install。我写你好世界代码:
#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;
}
Run Code Online (Sandbox Code Playgroud)
我的操作系统是Ubuntu 15.04。