[PATCH v7 7/9] Boot var automatic management for removable medias

João Marcos Costa jmcosta944 at gmail.com
Mon Oct 16 21:02:05 CEST 2023


Hello again,

Em seg., 16 de out. de 2023 às 09:58, João Marcos Costa <
jmcosta944 at gmail.com> escreveu:

> Hello,
>
> Em seg., 16 de out. de 2023 às 08:47, Masahisa Kojima <
> masahisa.kojima at linaro.org> escreveu:
>
>> From: Raymond Mao <raymond.mao at linaro.org>
>>
>> Changes for complying to EFI spec §3.5.1.1
>> 'Removable Media Boot Behavior'.
>> Boot variables can be automatically generated during a removable
>> media is probed. At the same time, unused boot variables will be
>> detected and removed.
>>
>> Please note that currently the function 'efi_disk_remove' has no
>> ability to distinguish below two scenarios
>> a) Unplugging of a removable media under U-Boot
>> b) U-Boot exiting and booting an OS
>> Thus currently the boot variables management is not added into
>> 'efi_disk_remove' to avoid boot options being added/erased
>> repeatedly under scenario b) during power cycles
>> See TODO comments under function 'efi_disk_remove' for more details
>>
>> The original efi_secboot tests expect that BootOrder EFI variable
>> is not defined. With this commit, the BootOrder EFI variable is
>> automatically added when the disk is detected. The original
>> efi_secboot tests end up with unexpected failure.
>> The efi_secboot tests need to be modified to explicitly set
>> the BootOrder EFI variable.
>>
>> squashfs ls test is also affected by this modification, need to
>> clear the previous state before squashfs ls test starts.
>>
>> Co-developed-by: Masahisa Kojima <masahisa.kojima at linaro.org>
>> Signed-off-by: Masahisa Kojima <masahisa.kojima at linaro.org>
>> Signed-off-by: Raymond Mao <raymond.mao at linaro.org>
>> Reviewed-by: Heinrich Schuchardt <xypron.glpk at gmx.de>
>> Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
>> ---
>
> [...]

> Signed-off-by: Joao Marcos Costa <jmcosta944 at gmail.com>
>

Sorry for the previous reply containing the wrong tag. Here is my
Reviewed-by tag:

Reviewed-by: Joao Marcos Costa <jmcosta944 at gmail.com>

--
Atenciosamente,
João Marcos Costa

www.linkedin.com/in/jmarcoscosta/
https://github.com/jmarcoscosta


More information about the U-Boot mailing list