]> git.baikalelectronics.ru Git - uboot.git/commit
efi_loader: test/py: Reset system after capsule update on disk
authorMasami Hiramatsu <masami.hiramatsu@linaro.org>
Wed, 16 Feb 2022 06:16:12 +0000 (15:16 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 26 Feb 2022 06:37:01 +0000 (07:37 +0100)
commit55280559e6226e7643c47d7e2a703e0e00a03a51
tree22441bfd91c004cda3d3e61cd60ba70f2dc32bee
parentf16a296e6fad45c551242d857e4b35ccec69fd65
efi_loader: test/py: Reset system after capsule update on disk

Add a cold reset soon after processing capsule update on disk.
This is required in UEFI specification 2.9 Section 8.5.5
"Delivery of Capsules via file on Mass Storage device" as;

    In all cases that a capsule is identified for processing the system is
    restarted after capsule processing is completed.

This also reports the result of each capsule update so that the user can
notice that the capsule update has been succeeded or not from console log.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_capsule.c
test/py/tests/test_efi_capsule/test_capsule_firmware.py