public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Persistent Variable Storage and PlatformBootTimeOut
@ 2016-09-06 11:13 Bhupesh Sharma
  2016-09-06 11:20 ` Ard Biesheuvel
  0 siblings, 1 reply; 2+ messages in thread
From: Bhupesh Sharma @ 2016-09-06 11:13 UTC (permalink / raw)
  To: edk2-devel@lists.01.org, Ard Biesheuvel; +Cc: Pankaj Bansal

Hi EDK2 experts,

We have recently added the support for storing UEFI run-time variables on underlying NOR
Flash slave on our ARMV8 NXP board.

We are successfully able to change the values of variables like boot-order using the latest
MdeModulePkg BDS:

	MdeModulePkg/Universal/BdsDxe/BdsDxe.inf

and retrieve them on next board boot.

While this works almost on all the places, we see that the Auto Boot Time we have set using the
following PCD:
	gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|20

Doesn't work when one enters the BIOS screen and enters the Boot Maintenance Manager to change this
value from say 20 to 10.

On the next board boot, the PlatformBootTimeOut value is still 20.

The same issue is replicable on latest EDK2 (master branch) on qemu for aarch64.

Is this a known issue or are we missing something here?

Regards,
Bhupesh


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

* Re: Persistent Variable Storage and PlatformBootTimeOut
  2016-09-06 11:13 Persistent Variable Storage and PlatformBootTimeOut Bhupesh Sharma
@ 2016-09-06 11:20 ` Ard Biesheuvel
  0 siblings, 0 replies; 2+ messages in thread
From: Ard Biesheuvel @ 2016-09-06 11:20 UTC (permalink / raw)
  To: Bhupesh Sharma; +Cc: edk2-devel@lists.01.org, Pankaj Bansal

On 6 September 2016 at 12:13, Bhupesh Sharma <bhupesh.sharma@nxp.com> wrote:
> Hi EDK2 experts,
>
> We have recently added the support for storing UEFI run-time variables on underlying NOR
> Flash slave on our ARMV8 NXP board.
>
> We are successfully able to change the values of variables like boot-order using the latest
> MdeModulePkg BDS:
>
>         MdeModulePkg/Universal/BdsDxe/BdsDxe.inf
>
> and retrieve them on next board boot.
>
> While this works almost on all the places, we see that the Auto Boot Time we have set using the
> following PCD:
>         gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|20
>
> Doesn't work when one enters the BIOS screen and enters the Boot Maintenance Manager to change this
> value from say 20 to 10.
>
> On the next board boot, the PlatformBootTimeOut value is still 20.
>
> The same issue is replicable on latest EDK2 (master branch) on qemu for aarch64.
>
> Is this a known issue or are we missing something here?
>

You should declare it as

[PcdsDynamicHii.common.DEFAULT]
  gEfiMdePkgTokenSpaceGuid.PcdPlatformBootTimeOut|L"Timeout"|gEfiGlobalVariableGuid|0x0|10
# Variable: L"Timeout"

to connect the dynamic PCD to the EFI variable.


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

end of thread, other threads:[~2016-09-06 11:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-06 11:13 Persistent Variable Storage and PlatformBootTimeOut Bhupesh Sharma
2016-09-06 11:20 ` Ard Biesheuvel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox