[PATCH 1/1] sandbox: keep time offset when resetting

Simon Glass sjg at chromium.org
Thu Jan 7 13:35:28 CET 2021


Hi Heinrich,

On Wed, 30 Dec 2020 at 10:07, Heinrich Schuchardt <xypron.glpk at gmx.de> wrote:
>
> The UEFI Self Certification Test (SCT) checks the SetTime() service with
> the following steps:
>
> * set date
> * reset
> * check date matches
>
> To be compliant the sandbox should keep the offset to the host RTC during
> resets. The implementation uses the environment variable
> UBOOT_SB_TIME_OFFSET to persist the offset.
>
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
> ---
>  arch/sandbox/cpu/os.c      | 25 +++++++++++++++++++++++++
>  doc/arch/sandbox.rst       |  7 +++++++
>  drivers/rtc/i2c_rtc_emul.c |  4 +++-
>  include/os.h               | 18 ++++++++++++++++++
>  4 files changed, 53 insertions(+), 1 deletion(-)

Sandbox writes driver settings to a state file that can be read on
start-up. Is that suitable here?

Regards,
Simon


More information about the U-Boot mailing list