Thanks Andrew. That makes sense.

I'm running out of time. So I may not perhaps spend any time debugging the
StartImage() problem further. Therefore, I'm trying something different now.

I'm changing my shim so that instead of doing these three steps:

1. Download bootmgfw.efi via TFTP.
2. Load it with LoadImage()
3. Start it with StartImage()

it simply trigger PXE Discover and that's all. I'm doing this because I
know that bootmgfw.efi runs okay if the client directly does a PXE discover
for it. So I'm hoping that if my shim triggers a discover it will cause
bootmgfw.efi to run as well.

I've written some code for it but am facing some difficulties. I'll ask
about that in a separate email, however.

Thanks a lot Andrew for your help so far. I know I'm a little annoying with
my frantic emails, but I'm just a under a little pressure to get this thing
working soon.

-Gurinder








On Fri, Jul 4, 2014 at 9:44 PM, Andrew Fish <af...@apple.com> wrote:

>
> On Jul 4, 2014, at 7:37 AM, Gurinder Singh <frederick.the.f...@gmail.com>
> wrote:
>
> >
> > Oh wait. Please Ignore my last email. I just found the command to load
> an application in Nt32Pkg.  Type only the name of the application. "load"
> is not required.
> >
> > Now I have managed to load x86 version of boogmgfw.efi in Nt32Pkg shell.
> It seems to start okay. An exception "0xC0000096: Privileged instruction"
> occurs at the following line in CoreStartImage():
> >
> >       Image->Status = Image->EntryPoint (ImageHandle,
> Image->Info.SystemTable);
> >
> > But I think that's expected because this exception is coming from inside
> the image itself and, being a bootloader, this image is calling some
> privileged instruction which SecMain.exe cannot support.
> >
> > Could this be the cause of the failure inside my shim? May be
> bootmgfw.efi needs some more privileges or something and my puny shim
> doesn't have them? Could that be a reason why StartImage() is returning
> EFI_INVALID_PARAMETER?
> >
>
> The Nt32Pkg (EmulatorPkg) run as an OS application, so it runs
> deprivileged. Real EFI runs as ring 0, so that would not be an issue.
>
> Thanks,
>
> Andrew Fish
>
> > -Gurinder
> >
> >
> ------------------------------------------------------------------------------
> > Open source business process management suite built on Java and Eclipse
> > Turn processes into business applications with Bonita BPM Community
> Edition
> > Quickly connect people, data, and systems into organized workflows
> > Winner of BOSSIE, CODIE, OW2 and Gartner awards
> >
> http://p.sf.net/sfu/Bonitasoft_______________________________________________
> > edk2-devel mailing list
> > edk2-devel@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/edk2-devel
>
>
>
> ------------------------------------------------------------------------------
> Open source business process management suite built on Java and Eclipse
> Turn processes into business applications with Bonita BPM Community Edition
> Quickly connect people, data, and systems into organized workflows
> Winner of BOSSIE, CODIE, OW2 and Gartner awards
> http://p.sf.net/sfu/Bonitasoft
> _______________________________________________
> edk2-devel mailing list
> edk2-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/edk2-devel
>
------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to