public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Matt Domsch <Matt_Domsch@dell.com>
To: linux-ia64@vger.kernel.org
Subject: Re: Creating New EFI variables in Red Hat AS 2.1
Date: Mon, 17 Nov 2003 15:10:08 +0000	[thread overview]
Message-ID: <marc-linux-ia64-106908201020280@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-106908087618714@msgid-missing>

> For one of my application, I want to create a new EFI variable from the OS.
> The contents of this EFI variable will be used by and EFI application
> running at the EFI shell.
> How do I do it? Can any one Please explain?

Please see the source code for efibootmgr.  This is the only application 
I'm aware of that creates/deletes/changes EFI variables from within the OS 
at present.  http://domsch.com/linux/ia64/efibootmgr/.  Version 0.4.2 is 
the most recent released.  There's a test version 0.5.0-test1 in the 
testing directory there which handles both the 2.4.x kernel style EFI 
variables, and the new sysfs-based style on 2.6.x (if/when that patch is 
submitted and accepted - hint hint Matt T.).    You'll want your app to be 
able to handle both I'm certain.  efibootmgr is licensed under the GNU 
GPL.

Essentially, you fill out a structure, open a file, and write the 
structure to the file.  The structure contains your variable name, GUID, 
data, and properties.

Thanks,
Matt

-- 
Matt Domsch
Sr. Software Engineer, Lead Engineer
Dell Linux Solutions www.dell.com/linux
Linux on Dell mailing lists @ http://lists.us.dell.com


      reply	other threads:[~2003-11-17 15:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-17 14:54 Creating New EFI variables in Red Hat AS 2.1 Kamesh R
2003-11-17 15:10 ` Matt Domsch [this message]

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-all 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=marc-linux-ia64-106908201020280@msgid-missing \
    --to=matt_domsch@dell.com \
    --cc=linux-ia64@vger.kernel.org \
    /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