[U-Boot] bootefi disk probe once?

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

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
participants (2)
-
Alexander Graf
-
Bin Meng