Skip to contentSkip to conversation

Creating New EFI variables in Red Hat AS 2.1

DISCUSSION Kamesh R 2 participants 2 messages Nov 17, 2003

lore
Share & tools
lore

Kamesh R

author
#0 lore raw

Hello All,

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?

Thanks in advance,
Kamesh.

#1 lore raw
Quoted 4 lines

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

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