[U-Boot] efi disks in u-boot

Simon Glass sjg at chromium.org
Tue Nov 13 18:51:46 UTC 2018


Hi Akahsi,

On 5 November 2018 at 20:15, AKASHI Takahiro <takahiro.akashi at linaro.org> wrote:
> Hello Simon,
>
> You said, in efi/lib_loader/efi_disk.c,
>
> ===8<===
>  * TODO(sjg at chromium.org): Actually with CONFIG_BLK, U-Boot does have this.
>  * Consider converting the code to look up devices as needed. The EFI device
>  * could be a child of the UCLASS_BLK block device, perhaps.
>  *
>  * This gets called from do_bootefi_exec().
>  */
> efi_status_t efi_disk_register(void)
> {
> ===>8===
>
> What do you mean by this statement?
> Is it different from the code under "#if CONFIG_BLK"?
>
> I guess that you would suggest that some hook function be called
> in blk_create_device() and blk_unbind_all(). No?

I would actually like EFI to use the U-Boot DM devices directly, with
just the minimal amount of plumbing. Perhaps an EFI child device that
gets created for each block device?

Regards,
Simon


More information about the U-Boot mailing list