All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/4] efi_loader: non-volatile variables support
@ 2018-11-28  6:00 AKASHI Takahiro
  2018-11-28  6:00 ` [U-Boot] [PATCH 1/4] efi_loader: support non-volatile variable behavior AKASHI Takahiro
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: AKASHI Takahiro @ 2018-11-28  6:00 UTC (permalink / raw)
  To: u-boot

As the subject suggested, this patch set allows any efi variable to be
volatile or non-volatile as UEFI specification describes.

With my efishell patch[1] with patch #2, you can try as follows:
  => efi setvar PlatformLang en
  => efi setvar -nv BootNext =H0200
  => env save

BootNext will be preserved across reboot, while PlatformLang not.

Please note that, currently, setvar command does not automatically
append NON_VOLATILE attribute, while UEFI specification expects that
PlatformLang be non-volatile, you'd better also specify -nv for
this variable here.

Patch #2/#3 depend on my efishell patch[1].
Patch #4 depends on my BootNext patch[2].

Patch[1] and [2] have not been merged yet, so patch#1 can be applied 
on its own.

[1] https://lists.denx.de/pipermail/u-boot/2018-November/346450.html
[2] https://lists.denx.de/pipermail/u-boot/2018-November/349281.html

AKASHI Takahiro (4):
  efi_loader: support non-volatile variable behavior
  cmd: efishell: support -nv option to setvar sub-command
  cmd: efishell: make Boot####/BootOrder variable non-volatile
  efi_loader: bootmgr: make BootNext non-volatile

 cmd/efishell.c                | 20 ++++++++---
 env/env.c                     |  4 +++
 include/efi_loader.h          |  1 +
 lib/efi_loader/efi_bootmgr.c  |  3 +-
 lib/efi_loader/efi_variable.c | 64 +++++++++++++++++++++++++++++++++--
 5 files changed, 84 insertions(+), 8 deletions(-)

-- 
2.19.1

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2018-12-11 19:07 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-28  6:00 [U-Boot] [PATCH 0/4] efi_loader: non-volatile variables support AKASHI Takahiro
2018-11-28  6:00 ` [U-Boot] [PATCH 1/4] efi_loader: support non-volatile variable behavior AKASHI Takahiro
2018-12-11 18:37   ` Heinrich Schuchardt
2018-11-28  6:00 ` [U-Boot] [PATCH 2/4] cmd: efishell: support -nv option to setvar sub-command AKASHI Takahiro
2018-12-11 18:50   ` Heinrich Schuchardt
2018-11-28  6:00 ` [U-Boot] [PATCH 3/4] cmd: efishell: make Boot####/BootOrder variable non-volatile AKASHI Takahiro
2018-12-11 19:05   ` Heinrich Schuchardt
2018-11-28  6:00 ` [U-Boot] [PATCH 4/4] efi_loader: bootmgr: make BootNext non-volatile AKASHI Takahiro
2018-12-11 19:07   ` Heinrich Schuchardt
2018-12-05  6:23 ` [U-Boot] [PATCH 0/4] efi_loader: non-volatile variables support Sumit Garg
2018-12-07  2:29   ` Takahiro Akashi
2018-12-07 12:40     ` Sumit Garg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.