Questions tagged [edk2]

Questions with this tag should be about working with the edk2 codebase or build system. Do NOT use for questions relating to PI or UEFI specifications.

edk2 is a modern, feature-rich, cross-platform firmware development environment for the UEFI and PI specifications from www.uefi.org. ([source])(https://github.com/tianocore/edk2)

It serves as the reference implementation of the UEFI and PI firmware specifications, developed as part of the TianoCore project.

Questions under this tag should be ones about working with the edk2 codebase or build system - not questions specific to PI or UEFI specifications.

65 questions
1
vote
0 answers

How do you build a capsule in EDK2 and how do you put UEFI images inside that capsule?

I am testing around with EDK2 by Tianocore (https://github.com/tianocore/edk2) and I can build BIOS images as well as UEFI Applications and drivers but when it comes to building a UEFI capsule, I am not sure how to go about doing…
joelsh
  • 23
  • 3
1
vote
1 answer

MSVC Manually Linking stdlib

Currently I am trying to use the C standard library in my EDK2 project. As my Visual Studio 2019 did not automatically add the necessary include directories, I manually added the following folders to my include…
Dalex
  • 61
  • 1
  • 5
1
vote
1 answer

How to load debug symbols for the whole OVMF UEFI image in gdb?

I am trying to debug a driver in UEFI firmware (OVMF) via gdb as described here: https://github.com/tianocore/tianocore.github.io/wiki/How-to-debug-OVMF-with-QEMU-using-GDB It works well, but I discovered that just having debug symbols for my driver…
Thunderbeef
  • 1,471
  • 1
  • 13
  • 17
0
votes
0 answers

UEFI AMD CPU MSR Thermal status

I try to read through AsmReadMsr64 declared in uefi and get stuck on this function: UINT64 Read = AsmReadMsr64(MSR_IA32_THERM_STATUS); program just stops responding in efi shell, attempts to insert MSR_IA32_PACKAGE_THERM_STATUS are…
Rustam
  • 1
  • 1
0
votes
0 answers

include EDK2 UefiSpec.h cause "error: unknown type name ‘UINT8’"

I'm trying to build a hello world c program to run on UEFI referencing EDK2 headers https://github.com/tianocore/edk2/tree/master/MdePkg/Include I've git clone the repo, copied the folder above in my project directory and included as #include…
moxede3067
  • 21
  • 3
0
votes
0 answers

Build failure when compiling edk2

I am experiencing a build failure when trying to compile MdePkg with EDK2. The error occurs when building the BaseLib module. following this https://github.com/tianocore/tianocore.github.io/wiki/Common-instructions to build on ubuntu…
0
votes
1 answer

EDK2 application fails to build when including both LibC & OpensslLib, stdatomic.h not found

I'm modifying EDK2's ShellPkg application to hardcode the arguments and launch a specific efi application through that shell (see here for context). I want to include OpenSSL so I can verify whether the application I want to run is the correct one.…
zjeffer
  • 311
  • 4
  • 16
0
votes
1 answer

edk2 build error /nologo tbuild failed to build winhost in windows 10

I am a newbie to edk2, and I am trying to setup and build the edk2 as explained in the following link [edk2 tutorial wiki](https://github.com/tianocore training/Tianocore_Training_Contents/wiki). but when I say $ build -D ADD_SHELL_STRING -a X64 -p…
Vibeesh V
  • 1
  • 1
0
votes
1 answer

Properly implement the Simple File System Protocol on a RAM Disk

I have need to make a RAM Disk during the DXE phase of UEFI. Beginning in version 2.6 of the UEFI spec, there is a RAM Disk protocol. I've successfully used this to make a RAM Disk. This RAM Disk must also have a FAT32 system on it. I am building…
Andrew Falanga
  • 2,274
  • 4
  • 26
  • 51
0
votes
0 answers

Use HPET timer with EDK2 framework

I am currently developing on a UEFI program using the EDK2 framework and would like to fetch HPET time or utilize the HPET interrupt as a countdown timer. I have attempted to use HpetTimerDxe from the PcAtChipsetPkg, but I have no idea how to…
Kaiser
  • 9
  • 1
0
votes
1 answer

Run AfuEfiX64.efi BIOS upgrader as a boot entry instead of through UEFI shell, with secure boot enabled

Usually, to use the AfuEfiX64.efi BIOS upgrader from AMI, you have to run the .efi file through the UEFI shell. This works with secure boot disabled, but the UEFI shell is not accessible when secure boot is enabled, so I have to run this EFI file…
zjeffer
  • 311
  • 4
  • 16
0
votes
0 answers

"Command Error Status: Unsupported" Error on QEMU & OVMF & Linux Kernel

I’m trying to compile a (lightweight) Linux kernel and start it on QEMU (and OVMF). There is the build-and-run script. In OVMF’s EFI Internal Shell, on $ fs0:\vmlinuz-6.2.1 I get: Command Error Status: Unsupported Calculate Linux 23…
Kuraga
  • 331
  • 3
  • 16
0
votes
1 answer

How do I use driver from Universal directory in a UEFI_APPLICATION

I want to use some of the functions provided by the PartitionDxe, but I do not understand how to use this driver within my application as it does not have GUID in any header files. What do I need to include in the inf/dsc and how can I use it after…
roat
  • 73
  • 5
0
votes
1 answer

Setting up the EFI Shell in Qemu to allow for Http requests

I am developing an UEFI App that will need to perform a GET request through http. As a start up point, I want to make sure my setup is working properly so that the http requests can actually go through. To that end, I spent the last few days trying…
0
votes
1 answer

Qemu asking for 'raw' format with -pflash parameter

After properly building OVMF x64 with EDK2, the command: qemu-system-x86_64 -s -pflash run-ovmf/bios.bin -net none provides the following message WARNING: Image format was not specified for 'run-ovmf/bios.bin' and probing guessed raw. …
archer
  • 3
  • 1