On Aug 7, 2014, at 3:11 PM, Reza Jelveh <[email protected]> wrote:

> Currently booting from devices works by setting EFI_REMOVABLE_MEDIA_FILE_NAME
> based on the architecture in MdePkg/Include/Uefi/UefiSpec.h
> 

Well these are the defaults for removable media devices. 

A non removable device can set any value they want when the OS was installed 
and save it in an NVRAM variable. For a non-removable media boot device these 
are optional location to search for a recovery tool or generic boot manager if 
none of the NVRAM variables match. These are NOT well known loader addresses. 

> That information is then used in
> IntelFrameworkModulePkg/Library/GenericBdsLib/BdsBoot.c to boot from a
> selected device.
> 
> OSX uses a different loader path /System/Library/CoreServices/boot.efi . I
> have modified the BdsBoot.c to check that loader path as well.
> 
> What is the right way to patch this so that it makes it into edk2 upstream?

There is not currently any code that tries to guess the actually OS install 
location for any OS that I know about in the edk2. We general try to avoid 
reverse engineering and guessing in the edk2. 

Thanks,

Andrew Fish

> 
> Thanks,
> Reza
> 
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls. 
> Build a bridge from your legacy apps to the future.
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> edk2-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/edk2-devel


------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to