From: <Jim.Dailey@dell.com>
To: <TigerLiu@zhaoxin.com>
Cc: <edk2-devel@lists.01.org>
Subject: Re: how to create environmental variable for Shell
Date: Fri, 3 Nov 2017 11:54:08 +0000 [thread overview]
Message-ID: <d135a59a10df4b8a816710d95bbcd02a@ausx13mps339.AMER.DELL.COM> (raw)
In-Reply-To: <3644d77ecb5347feaef9518e16c779f8@ausx13mps339.AMER.DELL.COM>
Please excuse the stupid email plug-in I have to use that puts the
"Internal Use" line in my text emails. The plug-in does not allow
me to see that text, so I have to remember to remove it every time
even though I never see it. Sadly, I sometimes forget.
-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Dailey, Jim
Sent: Friday, November 3, 2017 6:49 AM
To: TigerLiu@zhaoxin.com
Cc: edk2-devel@lists.01.org
Subject: Re: [edk2] how to create environmental variable for Shell
Dell - Internal Use - Confidential <=== No, this is *NOT* true!
You need to use the shell's GUID, gShellVariableGuid, if you want to
create a shell variable.
Regards,
Jim
-----Original Message-----
From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of Tiger Liu
Sent: Friday, November 3, 2017 12:01 AM
To: edk2-devel@lists.01.org
Subject: [edk2] how to create environmental variable for Shell
Hi, experts:
I have a question about creating shell’s environmental variable.
Such as : StartupDelay
I tried to create this variable at uefi boot phase.
……
TmpVal = 2;
Status = gRT->SetVariable (
L"StartupDelay",
&gEfiGlobalVariableGuid,
EFI_VARIABLE_BOOTSERVICE_ACCESS | EFI_VARIABLE_RUNTIME_ACCESS |EFI_VARIABLE_NON_VOLATILE,
sizeof (TmpVal),
&TmpVal
);
……
When boot to shell, it still delays 5 seconds.
I tried to use shell cmd ‘set’, then it’s ok, shell’s default delay switched to 2 seconds.
I used dmpstore cmd to list current system’s variables, and found 2 StartupDelay variables:
Efi:StartupDelay
SEnv:StartupDelay
So, my question is:
How to create “SEnv:StartupDelay” variable in UEFI BIOS code.
Thanks
Best wishes,
保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
next prev parent reply other threads:[~2017-11-03 11:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-11-03 5:00 how to create environmental variable for Shell Tiger Liu
2017-11-03 11:48 ` Jim.Dailey
2017-11-03 11:54 ` Jim.Dailey [this message]
2017-11-03 20:31 ` Jarlstrom, Laurie
2017-11-03 20:54 ` Jarlstrom, Laurie
-- strict thread matches above, loose matches on Subject: below --
2017-11-06 1:39 Tiger Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d135a59a10df4b8a816710d95bbcd02a@ausx13mps339.AMER.DELL.COM \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox