flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
bzt 11 Jul 2025, 15:34
This has nothing to do with Assembly.
Regardless, your bash script sets the UEFI variable on your HOST, while your code running in QEMU queries the variable emulated for the GUEST. No wonder it's not found. What you should try instead is to enter UEFI setup on QEMU (by pressing Esc when you see the TIanoCore logo), select "EFI Internal Shell" under "Boot Manager", and set the variable there in the UEFI Shell prompt. I'm not sure what file is configured by default under Ubuntu, but QEMU stores the guest UEFI variables in a file, and not in the host's NVRAM. That file is then used when NVRAM is emulated inside QEMU; therefore adding a variable to your host's NVRAM is futile, you need to add it to that file. For simplicity, you can use my minimalistic POSIX-UEFI library which provides functions getenv() and setenv() to do this. Cheers, bzt |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.