[ipxe-devel] [PATCH] [efi] make load file protocol optional

Michael Brown mcb30 at ipxe.org
Thu Feb 12 10:55:30 UTC 2015


On 11/02/15 15:52, Gerd Hoffmann wrote:
> The load file implementation added by commit
> c7c3d839fc9120aee28de9aabe452dc85ad91502 doesn't support loading
> arbitrary files from the tftp server, so efi applications trying
> to do exactly that fail to boot:

Which part of the EDK2 codebase supports loading arbitrary files via 
EFI_LOAD_FILE_PROTOCOL?  I can find only two (almost identical) 
implementations of the protocol within EDK2:

- NetworkPkg/UefiPxeBcDxe/PxeBcImpl.c : ignores the FilePath parameter 
and fails unless BootPolicy is true

- MdeModulePkg/Universal/Network/UefiPxeBcDxe/PxeBcImpl.c : ignores the 
FilePath parameter and fails unless BootPolicy is true

both of which match the behaviour used by iPXE.

I'm happy to make iPXE's behaviour "correct", but I need some reference 
for what "correct" behaviour is supposed to be.  Where is the code which 
implements your desired behaviour?

Thanks,

Michael



More information about the ipxe-devel mailing list