Questions tagged [uefi]

The Unified Extensible Firmware Interface (UEFI) is a specification that defines a software interface between an operating system and platform firmware. UEFI is meant to replace the Basic Input/Output System (BIOS) firmware interface.

Filter by
Sorted by
Tagged with
1 vote
0 answers
25 views

How to reconfigure the TDP of my N100 intel alder lake processor?

I have an N100 Intel Alder Lake processor, that can be configured to adhere to TDP of 6, 10 or 15 W. Intel calls this "TDP Up" and "TDP down" How do I do that? N100 at Intel Ark ...
Bengt's user avatar
  • 14.1k
0 votes
0 answers
33 views

why doesn't my loop work in 64 bit nasm for efi [duplicate]

I'm writing a basic bootloader for my laptop, which uses uefi, I have got booting from the usb working, printing working, exits working, everything but a simple loop. This the the loop: mov r10, 0x05 ....
Chromegism's user avatar
0 votes
0 answers
39 views

How do I find a file which is inside a directory in all the fat32 filesystems and then when found, print the file contents to the terminal [closed]

How do I find a file which is inside a directory in all the fat32 filesystems and then when found, print the file contents to the terminal. I am currently using Posix UEFI I have tried this code. #...
CherryDev86's user avatar
0 votes
0 answers
30 views

PXE boot via EFI - DHCP completes, but TFTP never kicks off or tries to transfer file

I am attempting to PXE boot a VM via EFI and have tried both via Foreman and Cobbler. The server used for DHCP/TFTP is running Ubuntu 20.04 LTS, and the server I'm trying to kickstart is Ubuntu 20.04 ...
hustluh's user avatar
0 votes
1 answer
34 views

Is there a way to use dynamic link libraries in UEFI?

We are developing UEFI Application using EDK2. I need to use a library with LGPL-3.0 license, but our source code cannot be made public. (Of course, the library can be modified, and the modified parts ...
user212942's user avatar
1 vote
1 answer
128 views

Calling the entry point of a separate EFI file from a UEFI bootloader

I am looking to call a function from a separate EFI file from my UEFI-utilizing bootloader, both of which are in the same virtual hard disk. I've looked into both the LoadImage and StartImage ...
DSMOS's user avatar
  • 13
0 votes
1 answer
72 views

EDKII Base Tools Fails to build

I'm following this tutorial and, while running python BaseTools/Edk2ToolsBuild.py -t GCC5 It throws this: Traceback (most recent call last): File "<path to>\edk2\BaseTools\Edk2ToolsBuild....
Golden Star's user avatar
0 votes
0 answers
64 views

Is there a UEFI emulator for ubuntu

I'm trying to write a basic bootloader for my laptop, which uses UEFI. I've got the code working when I boot it from a usb, but it's just a pain to restart my computer every time I want to run my code....
Chromegism's user avatar
0 votes
0 answers
38 views

UEFI TLS Socket: TlsDoHandshake error while trying to build response packet

I'm currently trying to communicate with a remote server that only accepts TLS connections, so I have to implement TLS over the TCP protocol in UEFI using the TLS protocol. However when trying build ...
dave's user avatar
  • 1
0 votes
0 answers
64 views

UEFI TCP4 Protocol not found when starting application without EFI Shell

I'm currently trying to implement Networking in my UEFI bootloader but failing to find the Tcp4 Service Binding Protocol when starting it from any device (VMware, real hardware) by renaming it to ...
dave's user avatar
  • 1
1 vote
0 answers
31 views

Running/Building Yocto intel-core2-32 on 64-bit machine

I have been trying to run meta-intel Intel BSP intel-core2-32 on my 64-bit x86 hardware with 64-bit UEFI. I know that 64-bit UEFI will look only for bootx64.efi which gets produced and successfully ...
Anton9988's user avatar
  • 395
-1 votes
1 answer
55 views

Inconsistent SATA DevicePath naming in UEFI

I am trying to have ability to distinguish various SATA disks in UEFI. I try to use DevicePath for this. I use protocol gEfiDevicePathProtocolGuid to retrieve DevicePath and after i convert it to text ...
user2779778's user avatar
2 votes
1 answer
148 views

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 ...
user2779778's user avatar
0 votes
0 answers
38 views

Is UEFI returning a false memory map or has QEMU an error?

I have a bootloader written with UEFI. I use -m 100M when running QEMU and I excpected to have about 100M of memory when using BS->GetMemoryMap(); But I got about 350M which is weird. Following is ...
MagaCraft202's user avatar
2 votes
1 answer
143 views

u-boot EFI support for SetVariable runtime service

For a proof-of-concept project, I have built a linux kernel image with CONFIG_EFI_STUB that I'm launching from a Shell.efi prebooted by u-boot. The environment variables set by the Shell.efi are ...
Rohit Khapare's user avatar
0 votes
0 answers
57 views

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 ...
Rustam's user avatar
  • 1
0 votes
0 answers
20 views

Setting EFI vars for a GCE VM

I am trying to create a boot disk for a GCE VM from scratch. I am using gcloud compute images create myimage --source-uri gs://mybucket/image.tar.gz When setting up a bare metal boot disk, I create ...
Alex Flint's user avatar
  • 6,160
0 votes
0 answers
112 views

KVM internal error suberror 1 when filling the CR3 register

I'm working on a x64 uefi bootloader to load a hobby OS. I'm running on AMD (Ryzen 7 5700G) with kvm, and when I try to fill the CR3 register with my PML4, I get a KVM internal error with 5 extra data ...
bl4ckb0ne's user avatar
0 votes
0 answers
45 views

Graphics stop working after calling ExitBootServices()

I'm trying to write a printf function to use after exiting uefi boot services, and of course to do it i have to access the frame buffer. Now.. as you can see from the code below, i save the gop frame ...
cam0347's user avatar
  • 23
0 votes
0 answers
207 views

Try to load and start 'EFI\Boot\bootx64.efi' from UEFI code of a DXE

Good day, dear colleagues! I am having the following problem. I'm trying to launch the OS from my own DXE-module through efi-loader. My DXE-module starts at the moment BSD-phase, when READY_TO_BOOT ...
DeadBrother's user avatar
0 votes
0 answers
164 views

How do I get the device path of the current running image in UEFI?

As part of a UEFI application I am writing, I would like for my application to load a second application in the same folder as this one. However, to do this, I need to know the full file path of the ...
JD9999's user avatar
  • 406
-1 votes
1 answer
21 views

How can I boot an os on a clean pc? [closed]

I have made bootable an USB key with mint on it. But when I launch my PC HP Pro Book x360 11 GE EE: it checks the harddisk and sees no boot device with the error hardDisk 3F0 which is normal because ...
pyno prog's user avatar
-1 votes
1 answer
44 views

Turn on pc on remotely

So I'm going away for holidays and I only take a Laptop with me. My plan is that I plug my PC into a smart home plug which I can control on my smartphone and if I turn on the plug I the PC should ...
LC195's user avatar
  • 21
0 votes
1 answer
125 views

Is it possible to make UEFI settings ON/OFF using PowerShell command in a virtual machine?

I want to create a Virtual Machine in Azure with security Type as Trusted Launch where security profile has UEFI settings like SecureBoot and vTPM enabled. Now, Once VM is deployed I want to turn off ...
Talang_madave's user avatar
0 votes
0 answers
79 views

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 ...
moxede3067's user avatar
0 votes
0 answers
255 views

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/...
Rabia Hussain's user avatar
0 votes
0 answers
60 views

GnuUEFI sprintf causes corrupted control flow

I'm developing an UEFI program against GnuEFI (-lefi -lgnuefi). It is first compiled/linked as a shared object, then transformed into a EFI binary by objcopy (objcopy -j .text -j .sdata -j .data -j ....
performancematters's user avatar
0 votes
1 answer
343 views

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 ...
zjeffer's user avatar
  • 331
0 votes
1 answer
156 views

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 ...
Vibeesh V's user avatar
1 vote
0 answers
208 views

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 ...
geralt rivia's user avatar
0 votes
0 answers
105 views

Create UEFI bootable ISO using PyCdlib

Target System: x64 Virtual Machine w/ UEFI Given the UEFI application called grubaa64.efi, how can I make a UEFI bootable ISO file using the PyCdlib python library? see https://github.com/clalancette/...
Impase Thread's user avatar
0 votes
0 answers
88 views

Seeing if a file exists in gnu-efi

So I'm trying to make a simple shell in UEFI and I wanted to know how you can tell if a file exists (on the EFI partion). From my testing reading a non existent file returns a string without anything ...
Ccode's user avatar
  • 3
0 votes
0 answers
26 views

Does openssl3.1 support UEFI target with FIPS enabled?

I am trying to build openssl 3.1 in FIPS mode for the UEFI target. But the config option enable-fips as defined in the documentation does not define the flag FIPS_MODULE for UEFI targets. Also, I ...
sr01853's user avatar
  • 6,041
0 votes
0 answers
122 views

How do I read and program the Up Squared V2 board using external EEPROM programmer?

I have an Up Squared V2 board and I need to be able to read and program the UEFI/BIOS using an external EEPROM programmer. I have a CH341A programmer (https://instructables.com/CH341A-Programmer/) ...
Bruno Yamashita's user avatar
0 votes
1 answer
192 views

Strange Invalid Parameter error returned in UEFI LocateProtocol and HandleProtocol

I recently started learning UEFI application programming, and I am using GNU-EFI and QEMU as the development platform, following https://wiki.osdev.org/GNU-EFI. However, I encounter some strange issue ...
Eric Stdlib's user avatar
  • 1,362
0 votes
1 answer
386 views

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 ...
Andrew Falanga's user avatar
2 votes
0 answers
39 views

Why the 15MB Size limit for bzImages

I'm working with bzImage to boot a x86 version of my kernel in a virtual machine via U-Boot. U-Boot set a size limitation for bzImage's of 15Mb though. U-Boot git I patched to size limitation to 45Mb ...
obvg's user avatar
  • 129
0 votes
0 answers
105 views

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 ...
Kaiser's user avatar
  • 9
0 votes
1 answer
480 views

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 ...
zjeffer's user avatar
  • 331
1 vote
0 answers
1k views

Calculation of TOLUD - Can't understand Intel's programming example

Modern Intel x86-64 processors contain a register TOLUD (Top of Low Usable DRAM), which effectively marks the boundary in 32-bit address space between RAM and I/O. To a first approximation, writes ...
J Ashley's user avatar
  • 806
0 votes
0 answers
33 views

How to run SCT PI on current UEFI Shell

I'm running a validation test for a module that uses the ACPI SDT tests. The application is requiring the use of the older version of EFI Shell, which requires a USB boot key or a partition on the HDD/...
Kyle Howington's user avatar
1 vote
0 answers
88 views

GNU-EFI: How to do callbacks properly (calling convention incompatibilities)?

I'm using GNU-EFI and calling UEFI functions works like a charm, thanks to the uefi_call_wrapper() macro, which ensures that differences in calling conventions won't be an issue. But: What to do in ...
arngineer's user avatar
  • 105
0 votes
1 answer
84 views

Calling own function results in an crash

I try to write a simple start uefi program for my kernel, but I have a problem linking everything together. I want to call functions defined in my header files but this results in my uefi application ...
usernameisunavaible's user avatar
0 votes
0 answers
16 views

Are there any Aarch32 (arm32) RPI_EFI.fd anywhere?

I'm asking this question because I only can find Aarch64 things and I need the 32 bits thing. Are there any 32 bits arm RPI_EFI.fd ? Thanks. I expect this to test some UEFI tests under my Pi3.
Julen Urizar Compains's user avatar
0 votes
0 answers
53 views

UEFI EBC: EFI_BOOT_SERVICES.Exit() throws EFI_OUT_OF_RESOURCES

A EBC application that just calls EFI_BOOT_SERVICES.Exit() returns %lasterror% = 0x09 (EFI_OUT_OF_RESOURCES) on the 5th and all consecutive executions. This happens under OVMF and on real hardware. ...
Alexander Zhak's user avatar
0 votes
0 answers
148 views

Error in x86_64 kernel: Page fault when trying to write to memory

I'm currently working on an x86_64 kernel as a personal project and I'm running into a page fault error when trying to write to memory. I've checked my code and I believe I've set up my paging ...
Yassine Dakhlaoui's user avatar
18 votes
1 answer
488 views

How can I prevent MSVC from replacing my memset with its memset?

I am building an EFI driver and therefore cannot use stdlib, so no memset. I am also running after ExitBootServices, so no edk2 CopyMem. This is my function: void Set_Memory(VOID* Dest, UINTN Len, ...
EatingTechnobladesRemainsAt3am's user avatar
1 vote
0 answers
296 views

"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 ...
Kuraga's user avatar
  • 361
0 votes
1 answer
189 views

Printing to UEFI Shell StdOut

As per UEFI Shell Specification, EFI_SHELL_PARAMETERS_PROTOCOL typedef struct _EFI_SHELL_PARAMETERS_PROTOCOL { CHAR16 **Argv; UINTN Argc; EFI_FILE_HANDLE StdIn; ...
Alexander Zhak's user avatar
0 votes
1 answer
49 views

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 ...
roat's user avatar
  • 73

1
2 3 4 5
11