* [RFC] Testing EFI_CAPSULE_ON_DISK
@ 2020-12-08 21:46 Heinrich Schuchardt
2020-12-09 1:42 ` AKASHI Takahiro
0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2020-12-08 21:46 UTC (permalink / raw)
To: u-boot
Hello Takahiro
when I select EFI_CAPSULE_ON_DISK_EARLY this implies EFI_SETUP_EARLY.
With EFI_SETUP_EARLY I cannot use PREBOOT to add a disk via the host
command. So I do not see how the feature could be tested on the sandbox.
I think we will have to enable dynamic binding of block devices to
overcome this mutual blocking of features.
What are your ideas?
Best regards
Heinrich
^ permalink raw reply [flat|nested] 2+ messages in thread
* [RFC] Testing EFI_CAPSULE_ON_DISK
2020-12-08 21:46 [RFC] Testing EFI_CAPSULE_ON_DISK Heinrich Schuchardt
@ 2020-12-09 1:42 ` AKASHI Takahiro
0 siblings, 0 replies; 2+ messages in thread
From: AKASHI Takahiro @ 2020-12-09 1:42 UTC (permalink / raw)
To: u-boot
Heinrich,
On Tue, Dec 08, 2020 at 10:46:15PM +0100, Heinrich Schuchardt wrote:
> Hello Takahiro
>
> when I select EFI_CAPSULE_ON_DISK_EARLY this implies EFI_SETUP_EARLY.
>
> With EFI_SETUP_EARLY I cannot use PREBOOT to add a disk via the host
> command. So I do not see how the feature could be tested on the sandbox.
I have noticed this issue.
In sandbox test case, a disk will be attached via "host bind" command,
and so EFI_SETUP_EARLY is simply unusable. Instead, the trick is
that the current python script performs
> if not capsule_early:
> # need to run uefi command to initiate capsule handling
> output = u_boot_console.run_command(
> 'env print -e -all Capsule0000')
after rebooting U-Boot.
So at least temporarily you have to turn off EFI_CAPSULE_ON_DISK_EARLY,
and do the similar thing in PREBOOT.
> I think we will have to enable dynamic binding of block devices to
> overcome this mutual blocking of features.
I'm not sure yet how the scenario looks like here, but as far as
"dynamic binding" is concerned, I have submitted the patch of this exact
feature to support plug-in/removable devices (like usb stick and cd-rom)
more than two years ago.
https://lists.denx.de/pipermail/u-boot/2018-November/346740.html
>
> What are your ideas?
Or simply, we'd better move efi_obj_list_init() backward just before
efi_launch_capsules() in main_loop() if it is feasible.
Thanks,
-Takahiro Akashi
> Best regards
>
> Heinrich
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-12-09 1:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-08 21:46 [RFC] Testing EFI_CAPSULE_ON_DISK Heinrich Schuchardt
2020-12-09 1:42 ` AKASHI Takahiro
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.