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
5
votes
3 answers

Build edk2 in linux

i'm getting started to write a little and simple application with edk2. So to write a simple edk2 UEFI application , i have started like this : #git clone https://github.com/tianocore/edk2.git #. edksetup.sh BaseTools Loading previous configuration…
Esaïe Njongssi
  • 63
  • 2
  • 13
4
votes
1 answer

What is the correct way to load a UEFI protocol?

Apologies if this doesn't fit the StackOverflow format. I'm currently learning about writing UEFI applications. I've been reading the UEFI standard as well as a wealth of tutorials online and I can't seem to figure out what is the correct method for…
ajxs
  • 3,347
  • 2
  • 18
  • 33
3
votes
1 answer

Is there a guide on porting edk2 to a new ARM64 platform?

I am new to EDK2. For porting ekd2 firmware to a new ARM64 platform, it would be good to first get a minimum edk2 port which can run UEFI Shell at least, improvements can be added gradually based on that. It seems that the first step is rather…
bruin
  • 979
  • 1
  • 10
  • 30
2
votes
1 answer

Timer callback in UEFI application is hanging only in AMI BIOS

While porting UEFI application from AARCH64 to X64 i ran into following problem: application was hanging after enabling periodic timer (timer is used in application for I/O polling). Timer callback finishes and nothing executes afterwards. During…
2
votes
2 answers

System stucks on attempt to load EFI driver image

I build driver for UEFI subsystem using EDK-2 in which I implement one my custom protocol. To use this protocol functionality I load this driver into memory to find and use this protocol later. It works fine everywhere except one my test…
2
votes
1 answer

EDK2 Shell Application using Variable Arguments built with GCC causes Page Fault when run

I am having issues with using variable arguments under EDK2 (x64 shell application) when built under a Linux host with gcc. Program builds but when executed it will cause a page fault at the point VA_ARG() is executed. The same code when built under…
2
votes
1 answer

How to embed iPXE into EDK2-based UEFI firmware?

I've just started to study UEFI development, as a playground I've got a custom AARCH64 platform with EDK2-based sources provided for building full firmware image (to be burned into flash). "Hello world" in DXE driver is already done, so I've…
2
votes
1 answer

How to set dxe drivers loading sequence?

As far as i know DXE dispatcher first loads the driver that specifed in Apriori file. Then loads other considering dependencies. I want to load utility either before AMITSE or after. If after AMITSE then the idea was…
away228
  • 31
  • 4
2
votes
2 answers

EDK2 (Development Environment for UEFI) failed after performing a test build

I am using EDK2 and Visual Studio 2019. I followed the instruction to set up EDKII build environment on Windows systems. After sending the following command "edksetup.bat Rebuild" on windows command line, I got the following message. subprocess not…
H Zam
  • 21
  • 1
  • 4
2
votes
1 answer

How Do I Link An Object File Into a UEFI DXE/EFI Driver?

I am building a UEFI DXE/EFI (UDK2018) driver (on Windows, using VS2017) into which I need to link an existing object (.obj) file. I'm fairly certain this should be done from inside the INF file, but I don't see anything specific about object file…
rtillery
  • 367
  • 1
  • 10
2
votes
1 answer

Guids vs. Protocols in EDK2

I was trying to understand the different sections in the package declaration file (.dec) of an EDK2 module, however I can't seem to figure out why some GUID definitions are under the [GUIDs] section and some are under the [Protocols] section or…
blessthefry
  • 121
  • 7
1
vote
0 answers

How to specify include paths for a UEFI application built using an INF file in edk2?

The INF file format is being used to specify module information for UEFI application. Source files are mentioned using [Sources] section. The include path where the header required by these files are automatically generated giving no control over…
1
vote
0 answers

EDK2 UEFI shell does not connect with Network adapters

I am trying to build an EFI application that uses socket udp connection to send and receive data. I was following this example (https://stackoverflow.com/a/67076583/19633704). I am able to build the application successfully with EDK2 but when its is…
1
vote
0 answers

How to get configured firmware keyboard layout in UEFI?

We can configure keyboard layout language in firmware settings. See the screenshot below How can I get string name of this configured firmware keyboard layout in UEFI in form like "en_US" or "de_DE"? I can use efilib or EDK-2
1
vote
1 answer

Does a protocol continue to be in memory and usable by other drivers even after the driver that installed it is unloaded?

If we have a driver that installs a protocol in EDK2/UEFI and then that driver is unloaded, does the protocol continue to exist and be usable by other drivers and services? Same question for UEFI applications. I am mostly wondering if the UEFI…
joelsh
  • 23
  • 3
1
2 3 4 5