All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] bootefi disk probe once?
@ 2018-06-25  1:44 Bin Meng
  2018-06-25 11:40 ` Alexander Graf
  0 siblings, 1 reply; 2+ messages in thread
From: Bin Meng @ 2018-06-25  1:44 UTC (permalink / raw)
  To: u-boot

Hi Alex, Heinrich,

During testing bootefi command, I found that:

If I type 'bootefi' at first time, and forgot to probe the disk before, I got:

Found 0 disks

Later I did the disk probe (eg: usb start, or scsi scan), and re-run
'bootefi', the disk was not probed for the 2nd time by 'bootefi'.

Is this bug, or intended design?

Regards,
Bin

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [U-Boot] bootefi disk probe once?
  2018-06-25  1:44 [U-Boot] bootefi disk probe once? Bin Meng
@ 2018-06-25 11:40 ` Alexander Graf
  0 siblings, 0 replies; 2+ messages in thread
From: Alexander Graf @ 2018-06-25 11:40 UTC (permalink / raw)
  To: u-boot

Hi Bin,

On 06/25/2018 03:44 AM, Bin Meng wrote:
> Hi Alex, Heinrich,
>
> During testing bootefi command, I found that:
>
> If I type 'bootefi' at first time, and forgot to probe the disk before, I got:
>
> Found 0 disks
>
> Later I did the disk probe (eg: usb start, or scsi scan), and re-run
> 'bootefi', the disk was not probed for the 2nd time by 'bootefi'.
>
> Is this bug, or intended design?

Phew, it's the way things work today. We basically create our object 
model on the first bootefi invocation. Any later invocation just reuses 
the existing object model and any new object on the U-Boot side doesn't 
automatically get instantiated as a new EFI object.

The reason it works that way is that previous EFI applications (such as 
iPXE) may leave objects around after they exit, similar to DOS TSR 
programs. Those objects should not disappear when you invoke the next 
bootefi command.

I think ideally this should be fixed long term by merging DM and EFI 
object support. But this is nothing we can quickly change.


Alex

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-06-25 11:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-25  1:44 [U-Boot] bootefi disk probe once? Bin Meng
2018-06-25 11:40 ` Alexander Graf

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.