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.

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.

For more information see:

526 questions
0
votes
1 answer

Finding ImageHandle of an uefi shell app. or module

I have a uefi shell app and a uefi module, providing similar functionality, I am trying to merge them into a single entity that can be executed either as a module from Boot Menu or from uefi shell. Is it possible to create an efi app that can be…
user28264
  • 249
  • 2
  • 9
0
votes
1 answer

How does the keyboard driver binding logic work in UEFI?

The EFI console input device can not only have bindings with several keyboard drivers (PS/2, USB, terminal), but also several keyboards can be connected. For instance: On my portable PC with built-in PS/2 keyboard I connected two USB keyboards by…
user2707695
  • 126
  • 1
  • 12
0
votes
1 answer

How to boot with memmap kernel option in Linux UEFI?

Using various Linux distributions with UEFI support none of them seem to work with the memmap kernel parameter(trying it on a MacBook Air A1370). I'm using the following parameter: memmap=100M$200M Same install media and parameter works well in non…
0
votes
1 answer

UEFI Create User

I try to use this code Status = gBS->OpenProtocol(handles[i], &gEfiUserManagerProtocolGuid, (void **) &mUserManager, gImageHandle, NULL, EFI_OPEN_PROTOCOL_BY_HANDLE_PROTOCOL); switch (Status) { case EFI_SUCCESS: …
0
votes
1 answer

How can I fix this "Set-SecureBootUEFI : Incorrect authentication data: 0xC0000022" error?

I used the tutorial and the PowerShell scripts in UefiSecureBootManualTests.zip(EnableSecureBoot.ps1 and append_LostCA_db.ps1) found here to sign an .efi file and enable SecureBoot to see if the system boots(it all worked well). Now I'm trying to…
Teddy Razvan
  • 1
  • 1
  • 4
0
votes
1 answer

UEFI programming EFI_USER_MANAGER_PROTOCOL

I use following command to locate EFI_USER_MANAGER_PROTOCOL: Status = gBS->LocateHandle(ByProtocol, &gEfiUserManagerProtocolGuid, NULL, &bufferSizeu, handlesu); I get EFI_ERROR - EFI_NOT_FOUND. Now i try to install protocol and then open protocol: …
0
votes
1 answer

Access SATA drive via AHCI directly in efi shell?

If we want to access(read/write) SATA drive via AHCI in EFI shell, is there any read/write interface used for this purpose ? That is, does EFI shell application need to implement the AHCI spec to access drive ? (build command, issue command and…
liaoo
  • 193
  • 2
  • 15
0
votes
1 answer

Bios always jumps on first sector (512B) why ? is this some kind of BIOS limitation?

First I am not the expert in Booting but would like to understand it better way. 1) System boots goes to BIOS and BIOS goes to first boot sector which is first 512 bytes and from there it reads the first 440 bytes. This is called as bootloader or…
0
votes
2 answers

UEFI file systems GUIDs and firmware

UEFI itself understand FAT file systems. Apple systems add support for HFS+. Is there some registrar which registers GUID codes, which are understood by firmware?
0
votes
1 answer

C code to print the USB content

I am working in a UEFI environment and working with C code. To run a simple UEFI command I have to do it through C as shown below: swprintf( run_cmd, wcslen(L"idrac1:\\Tools\\TCP_Recieve.efi")+wcslen(ipAddress)+1, …
0
votes
1 answer

How to Boot Xen Hypervisor from Uefi using Gummiboot under Arch linux

I recently had the problem, that I wanted to boot a Xen Hypervisor from Uefi using Gummiboot. Mostly for reasons of elegance I didn't want to fall back to Bios or use another (more clunky) boot manager. I didn't find a step-by-step guide, so I had…
0
votes
2 answers

Unable to install windows 7 UEFI fail

I'm trying to install Windows 7 x64 (currently on Windows 8 x64 & got nVidia driver memory leaks, that's why I'm downgrading) but once I enter te UEFI and select my USB device to boot I get a black screen with a white blinking text indicator. And…
Thomas De Marez
  • 668
  • 8
  • 24
-1
votes
1 answer

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 by ConvertDevicePathToText function. The issue…
-1
votes
0 answers

Operating System from scratch on Ryzen 5 4600H (UEFI)

I have a laptop that runs on a AMD Ryzen 4600H processor with 16G RAM and has an ASUS UEFI out of the box. I want to write a simple minimal kernel from scratch, in C language for this computer. The steps that I have explored involve writing a…
-1
votes
0 answers

Booting a custom BOOTx64.EFI file works in QEMU, but not on real hardware

I've recently found myself following this tutorial: https://johv.dk/blog/bare-metal-assembly-tutorial I've followed all steps, and my file boots fine using QEMU, but when I try to run it on my laptop (ASUS TUF Gaming F15 with Core i5-11400H, 16GB,…