As Andrew stated. The BDS in EDKII will spawn the shell based on the PCD of it's GUID.
Add this to the DSC file for your system if you're using the UEFI Shell.
gEfiIntelFrameworkModulePkgTokenSpaceGuid.PcdShellFile|{ 0x83, 0xA5, 0x04, 0x7C, 0x3E, 0x9E, 0x1C, 0x4F, 0xAD, 0x65, 0xE0, 0x52, 0x68, 0xD0, 0xB4, 0xD1 }
Note that this is discussed in the Readme.txt in the ShellPkg.
Post by Calvin (Hao) Guan-----Original Message-----
Sent: Thursday, October 30, 2014 2:35 PM
Subject: Re: [edk2] Pacing UEFI Shell Application in firmware volume
I don't have a device that supports FS at this point. i.e. the USB i/f has not
been brought up yet.
Can I 1) put the shell.efi and my shell app in FV and 2) run from there before I
got any storage controller up?
I think the answer to q1 is yes because FDF supports such option. What do I
do with those EFI app place in the FV?
Thanks,
Calvin
-----Original Message-----
Sent: Thursday, October 30, 2014 2:22 PM
Subject: Re: [edk2] Pacing UEFI Shell Application in firmware volume
Post by Scott Duplichan]Hi,
]
]FDF file allows EFI application to be placed in firmware volume but I
can’t ]seem to find what to do with these apps if placed in the FV.
Because they are ]apps, they won’t be dispatched. How do I invoke such an
application from the FV?
Post by Scott Duplichan]
]Thanks,
]Calvin
Hello Calvin,
http://sourceforge.net/p/edk2/mailman/message/32169701/
I don't believe there is a mechanism to directly launch a UEFI app during
boot.
Post by Scott DuplichanOne reason might be that UEFI apps can use stdout/stdin, and those are
might not be available if the UEFI shell is not running. There might
be a way to automatically launch a shell and have it launch your app,
then exit after the app exits, but I have never done that.
If you can build it as a driver rather than an app, you can arrange to have it
run during build. Or if you can put it on a file system such as a USB drive, you
can set the shell as your default boot target, and write a startup.nsh script
which launches your app when the shell starts.
--
Brian
--------------------------------------------------------------------
"There is the greatest practical benefit in making a few failures
early in life."
-- Thomas Henry Huxley
------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
https://lists.sourceforge.net/lists/listinfo/edk2-devel
------------------------------------------------------------------------------
_______________________________________________
edk2-devel mailing list
https://lists.sourceforge.net/lists/listinfo/edk2-devel