Re: [PATCH] efi_loader: Allow capsule update on-disk without checking OsIndications

2021-06-29 Thread Ilias Apalodimas
On Tue, 29 Jun 2021 at 16:04, AKASHI Takahiro wrote: > > On Tue, Jun 29, 2021 at 03:45:29PM +0300, Ilias Apalodimas wrote: > > > > > > > [...] > > > > > +config EFI_IGNORE_OSINDICATIONS > > > > > + bool "Ignore OsIndications for CapsuleUpdate on-disk" > > > > > + depends on EFI_CAPSULE

Re: [PATCH] efi_loader: Allow capsule update on-disk without checking OsIndications

2021-06-29 Thread AKASHI Takahiro
On Tue, Jun 29, 2021 at 03:45:29PM +0300, Ilias Apalodimas wrote: > > > > > [...] > > > > +config EFI_IGNORE_OSINDICATIONS > > > > + bool "Ignore OsIndications for CapsuleUpdate on-disk" > > > > + depends on EFI_CAPSULE_ON_DISK > > > > + default n > > > > + help > > > > +

Re: [PATCH] efi_loader: Allow capsule update on-disk without checking OsIndications

2021-06-29 Thread Ilias Apalodimas
> > > [...] > > > +config EFI_IGNORE_OSINDICATIONS > > > + bool "Ignore OsIndications for CapsuleUpdate on-disk" > > > + depends on EFI_CAPSULE_ON_DISK > > > + default n > > > + help > > > + There are boards were we can't support SetVariable at runtime. > > > + Select this option if you want t

Re: [PATCH] efi_loader: Allow capsule update on-disk without checking OsIndications

2021-06-29 Thread AKASHI Takahiro
On Tue, Jun 29, 2021 at 09:43:40AM +0200, Heinrich Schuchardt wrote: > On 6/29/21 6:55 AM, Ilias Apalodimas wrote: > > From: apalos > > > > Although U-Boot supports capsule update on-disk, it's lack of support for > > SetVariable at runtime prevents applications like fwupd from using it. > > > >

Re: [PATCH] efi_loader: Allow capsule update on-disk without checking OsIndications

2021-06-29 Thread Ilias Apalodimas
> > + if (IS_ENABLED(CONFIG_EFI_IGNORE_OSINDICATIONS)) [...] > > + return true; > > + > > + size = sizeof(os_indications); > > + ret = efi_get_variable_int(L"OsIndications", &efi_global_variable_guid, > > + NULL, &size, &os_indications, NULL); > > + if

Re: [PATCH] efi_loader: Allow capsule update on-disk without checking OsIndications

2021-06-29 Thread Heinrich Schuchardt
On 6/29/21 6:55 AM, Ilias Apalodimas wrote: From: apalos Although U-Boot supports capsule update on-disk, it's lack of support for SetVariable at runtime prevents applications like fwupd from using it. In order to perform the capsule update on-disk the spec says that the OS must copy the capsu

[PATCH] efi_loader: Allow capsule update on-disk without checking OsIndications

2021-06-28 Thread Ilias Apalodimas
From: apalos Although U-Boot supports capsule update on-disk, it's lack of support for SetVariable at runtime prevents applications like fwupd from using it. In order to perform the capsule update on-disk the spec says that the OS must copy the capsule to the \EFI\UpdateCapsule directory and set