All Questions
44 questions
-2
votes
0
answers
26
views
GPU doesn't load if my monitor is turned off and pc is turned on by WOL [closed]
So i'm bit with a little problem:
PC for AI server, sometimes i need to turn on the pc by wol and the monitor is turned off. The pc turns on fine and the OS loads but after some hours, when i need to ...
0
votes
0
answers
25
views
Why does the state of the modified stack pointer of my test program differ from the behavior in Linux in posix uefi?
I made a small test program to demonstrate:
#ifdef UEFI
#include "uefi/uefi.h"
#else
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#endif
register void* rsp ...
1
vote
0
answers
29
views
"Objcopy: error: the input file '*.dll' is empty" when running the edk2 build script in linux
I've been trying to build the edk2 from source in a Kali 2023.3 VM, followed every step from the linux guide, but I got a few error messages just like the one in the title for some files like "...
0
votes
0
answers
149
views
Syslinux EFI 64bit: start_image() returned Load Error
The syslinux binaries provided by debian are working well with qemu.
But I have compiled syslinux from Debian 12 source code. And when I run it with qemu, it fails saying start_image() returned Load ...
0
votes
1
answer
49
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 ...
0
votes
0
answers
212
views
UEFI runtime services gRT->SetTime(&Time) does not sync with the operating system time
I have implemented a time config form browser on UEFI to enable users to set the time. However, I am not able to get the same time I set in the UEFI browser when I boot to the Linux operating system.
...
0
votes
1
answer
118
views
Blocking other UEFI Runtime Services tasks from running
Is there a way to block other UEFI RT services from running when I execute a Linux program that calls the UEFI RT service? Either from the linux side or from the UEFI side is ok (Both are written in C)...
1
vote
1
answer
3k
views
How to make a .efi program execute at boot
I have written a .efi executable using Edk2 and have been able to successfully execute the file in the UEFI Shell. I'm attempting to have my file execute as my device, which is running Ubuntu, boots ...
1
vote
1
answer
881
views
Elegant way to get text section (.cmdline) from efi stub
I want to read the .cmdline section of a systemd efi stub (where initramfs, kernel and cmdline was inserted).
$ cp linux.efi x.efi
$ objcopy --dump-section .cmdline=/dev/stdout x.efi
root=UUID=...
0
votes
1
answer
4k
views
Can't locate File/Slurp.pm in @INC
I'm trying to compile an uefi application on Ubuntu 20.04.2 LTS but the compilation terminates with an error.
./mkkeys.sh
Enter a Common Name to embed in the keys: keys
cc -I/home/...
1
vote
0
answers
178
views
Linux secure boot automatic enrollement
I'm able to enrolled a pub key with mokutil but my server must reboot and I have to manually enter password and navigate to UEFI to validate etc...
In case of the pub key change and the pub will ...
3
votes
2
answers
9k
views
mkfs.vfat: unable to open {partition}: No such file or directory (command succeeds, but throws this error and blocks rest of script)
Update: I got this working but am still not 100% sure why. I've appended the fully and consistently working script to the end for reference.
I'm trying to script a series of disk partition commands ...
0
votes
1
answer
6k
views
How to write startup.nsh for linux kernel boot?
How to write startup.nsh for linux kernel boot?
Thank you for answers!
0
votes
1
answer
1k
views
How to create bootable application image (efi)?
I trying to boot an elf microkernel in an UEFI environment. So i compiled a minimal boot loader and created an ESP image. This works fine if I boot via an HDD but I want to direct boot it via the qemu ...
0
votes
1
answer
553
views
UEFI application for Creating ext2/3/4 Filesystem
Almost all linux distro invoke an application during installation that formats storage drive into ext2/3/4 filesystem.
How is it done? Is it achieved by any UEFI application?
1
vote
0
answers
318
views
Linux boot loop in 64-bit boot protocol
I'm trying to create a bootloader for Linux as a UEFI application. The problem is after jumping into the 64-bit kernel entry point QEMU will restart without any output. I really don't know what going ...
2
votes
3
answers
1k
views
Create EFI-stub boot entry from Windows
I use Linux kerne EFI stub to boot. Now I have run into an emergency, because I have lost my UEFI boot entry and I am stuck with Windows.
Is there any possibility to create UEFI NVRAM boot entry for ...
2
votes
2
answers
2k
views
Unable to compile GNU-EFI Program
I've followed one tutorial to study about UEFI shell
Problem is when I try compile I get this which I don't understand
ERROR:`hello.c: In function ‘efi_main’:
hello.c:8:10: warning: passing argument ...
0
votes
1
answer
467
views
How to backup laptop SSD with UEFI [closed]
I have an Acer Aspire R laptop with 260GB SSD, UEFI, Ubuntu and Windows 10 dual boot. How can I backup / clone / image the whole drive to be reinstalled on a new drive if current drive fails?
...
1
vote
0
answers
2k
views
how to create uefi bootable image from bzimage (custom kernal)
for my project i have useb build-root to create a custom Linux kernel using menuconfig. i got my custom kernel image as bzimage file and root file directory as .tar image. i have built the kernel for ...
1
vote
2
answers
1k
views
How to find MCFG table without knowing EFI System table?
I'm working on a special OS(VMWare ESXi, a close source OS which looks based on linux), there is a requirement that I need to get physical address of MCFG table. Since the APIs are very limited, I can ...
-1
votes
1
answer
280
views
No bootable device error after restoring debian image to annother ssd disk
I created an image of debian 7 on an SSD disk and later restored it on another computer with excatly same type of SSD disk. however I'm getting the error message No bootable device -- insert boot disk ...
-2
votes
1
answer
799
views
Can't install ElementaryOS on DELL XPS 15 (9650) [closed]
I've just got a new Dell XPS 15 (9650) with Windows 10 on it, but I want to install ElementaryOS (https://elementary.io) as the only OS (so I want to remove Windows). I created a bootable USB with ...
0
votes
1
answer
375
views
UEFI secure boot issues with hello efi
I have created one efi and signed with pesign using the docs -
UEFI secure boot :
https://en.altlinux.org/UEFI_SecureBoot_mini-HOWTO
https://en.opensuse.org/openSUSE:UEFI_Secure_boot_using_qemu-kvm
...
0
votes
1
answer
386
views
Buildroot Config Option for Armv8 Architeture
I am new to Buildroot and working on using Buildroot to use Linaro as a kernel and build UEFI.
For building UEFI it needs ACPI tools mainly iasl command..
But iasl command available as a part of ...
2
votes
0
answers
706
views
Set a Linux USB drive as next boot device in Windows UEFI programmatically
this is my first question here on SOF, I hope I get lucky! :)
I'm working on a small "USB launcher" app for amd64 architecture. This question is aimed at Windows 8 and 10 systems. I'm more of a *nix ...
0
votes
0
answers
307
views
UEFI Secure Boot Linux Permissions
I've got a CentOS setup with UEFI Secure Boot turned on. I'm working on debugging a set of BIOS tools that were developed quite some time ago. However when Secure Boot is turned on it appears user ...
1
vote
1
answer
498
views
efivar: cannot find -lpopt
I'm attempting to compile efivars on LFS for UEFI when I get the following output, even after I've compiled libpopt (attempted with and without sed -i -e "s/@MARK64@//" Makefile.am as noted in http://...
0
votes
1
answer
1k
views
How can I build object files with Cargo?
To build an UEFI executable, I need to build an object file from my library. I can then link it to the right PE format with pei-x86-64 subsystem 10
1
vote
0
answers
224
views
UEFI script to programatically select boot OS
Is it possible via UEFI scripting or EFI applications to programatically select which Linux OS to boot from based on the state of UEFI variables?
I am trying to achieve a form of recovery system ...
0
votes
1
answer
502
views
Black Console after automated Debian UEFI install
I try to build a reproducible automated build environment based on Debian 8.1 Jessie.
I created a boot iso image based on a netinstall image and put a preseed.cfg file in int for automatic ...
-1
votes
2
answers
632
views
UEFI prevents installing linux [closed]
Being Belgian, all laptops come with windowsTM pre-installed. Ingnorantly, I bought on thinking I would be able to install (K)ubuntu. I found out the UEFI is just microsoft's way to prevent you ...
0
votes
1
answer
6k
views
How to remove Ubuntu entries from UEFI [closed]
I 've got an issue with my UEFI boot values.
In the past I installed Ubuntu 14.10 LTS as a dual-boot system.
It was working ok, until I decited to remove it.
I deleted the Ubuntu partitions and merged ...
-3
votes
1
answer
1k
views
Can't format Hard Disk Drives and install linux to Dell hybrid ultrabook [closed]
OpenSUSE 13.2: Will show disks, allows to delete and create partitions, and even create a new partition table. But won't format the disks, launchs the error "can't mount /dev/sda1: device or resource ...
1
vote
3
answers
8k
views
How to install VirtualBox on linux even with secure boot - bash script
I'we buildt a simple bash script which should be able to install VirtualBox repository and VirtualBox, even on secure boot systems.
It utilizes my own bash Function Library which is in beta.
So if ...
5
votes
2
answers
2k
views
Chainloading Windows-EFI from Linux-EFI
Currently, I have the following boot chain in legacy (MBR) mode:
GRUB2 -> Linux -> kexec to Grub4Dos -> Windows.
I'm trying to figure out if this is also possible in UEFI-mode, i.e. starting the ...
2
votes
2
answers
4k
views
Passing kernel parametes to EFI-Stub in Apple's EFI env [closed]
Good day, everybody.
I'm trying to shorten the boot process of an iMac dual-booting OS-X and Ubuntu as much as possible. So far i managed to boot grub (and Ubuntu afterwards) directly by Apple's EFI ...
0
votes
1
answer
2k
views
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
...
-2
votes
1
answer
933
views
How to mount preallocated ISO image in RAM [closed]
I have an ISO image (stock Ubuntu 13.10 DVD ISO image) loaded into memory pre-OS and I'm trying to start the Linux installation process from this image. GRUB can recognize the image as a cd and I can ...
2
votes
1
answer
2k
views
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 ...
0
votes
1
answer
2k
views
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 ...
3
votes
1
answer
6k
views
Converting EFI memory Map to E820 map
I am new to Linux and learing about how Linux comes to know about the avaible Physical Mmeory .I came to know there are some BIOS system call int 0x15 which willl gives you E20 memory Map.
Now I find ...