All Questions
16 questions
1
vote
0
answers
45
views
UEFI Application: UEFI NTFS driver is not loading properly
I'm working on an EFI application to load an NTFS driver (ntfs_x64.efi). When I load the driver from the EFI shell using "load ntfs_x64.efi" command, it works perfectly. However, when I try ...
0
votes
1
answer
639
views
What is the equivalence of the command "set /p" present in bash, in efi shell?
I need the command that asks the user to write some input and then store it in a variable.
In the terminal I was using the command like this:
set /P SP=Enter the product model:
set /P SS=Enter the ...
1
vote
0
answers
1k
views
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 ...
2
votes
2
answers
1k
views
How to compare the content of two files in EFI Shell
I want to compare the content of two files in EFI Shell.
I saved the content of pci 05 00 00 in lan-ref.txt
My script looks like this:
echo -off
fs0:
pci 05 00 00 -s 0 > lan.txt
if lan.txt == lan-...
1
vote
0
answers
2k
views
Compile UEFI Application/Driver using EDK2
I'm trying to build an application/driver for UEFI, which will start an UEFI Shell script.
I'm using UDK2018 with Visual Studio 2017. I have build all tools properly, I can run SecMain which launches ...
0
votes
1
answer
2k
views
Where is tftp efi shell command?
Cannot find tftp command in shell.efi app from Tianocore.
When type tftp, got 'tftp' is not recognized as an internal or external command, operable program, or batch file. Help also doesn't know ...
-1
votes
1
answer
459
views
Running subprocess module in UEFI Shell
I want to run a command in UEFI shell and capture the output in a variable but not to file, please help me to use subprocess module in UEFI Shell..
0
votes
1
answer
1k
views
Is there any way to find out if secure boot is enabled from uefi shell?
So, my question is in title. I know I can parse nvram variables, but didn't find, where enable flag is stored.
If there is any another way, I'll glad to know, how to resolve my problem.
0
votes
1
answer
4k
views
running EFI shell commands on windows command line
I need to run EFI shell commands to get the directory listing of EFI partition.
Do i need to install some tool on my system(windows).
How can i run EFI shell commands on windows?
1
vote
1
answer
3k
views
Get efi return code in uefi mode
I boot into uefi mode And I have a xxx.efi, I would like to get it's return code I write a startup.sh to launch the xxx.efi How could I get the xxx.efi return code? I try like this, but it will return ...
0
votes
1
answer
1k
views
Compare two files in efi shell (.nsh) and paste result to if statement
How can I check if the comp function (https://software.intel.com/en-us/articles/efi-shells-and-scripting) from efi shell returns true?
if comp file1 file2
doesn't work for me.
Thanks in advance!
0
votes
1
answer
1k
views
How to pass string "Hello #" in EFI Shell scripting
I hope EFI Shell script will work similar to Linux scripting languages but its not.
Following is my EFI Shell script content,
MyApp.efi "Hello #"
Then i run script.nsh, its executing only following ...
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 ...
11
votes
1
answer
6k
views
Run a UEFI shell command from inside UEFI application
I'm new to UEFI application development.
My requirement is that,
I need to run an UEFI shell command from my UEFI application (app.efi) source code.
Need guidance on how I can do this.
Example,
...
1
vote
1
answer
2k
views
EFI application shell script
I want to run my .efi application using EFI shell script, is it possible? If yes, then would the startup.nsh script run this script each time a system boots?
Thanks.
5
votes
1
answer
32k
views
What is the difference between FS0 and BLK0 in UEFI shell mappings?
I think FS stands for filesystem, but I don't know what BLK stands for. Not only that, but what are the meanings behind the pci hierarchy parameters. i.e. When I see HD(1,MBR,0x0003B) what does "1","...