]> git.dujemihanovic.xyz Git - u-boot.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)
commit3e6f81000672e6d0d88fde9c7ad5b01414eccf86
tree22441bfd91c004cda3d3e61cd60ba70f2dc32bee
parente7233c9c93ae0f59d00063eaf4d7e4f9bd01d63d
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