Re: EFI shell compilation and use

Subject: Re: EFI shell compilation and use

From: "Andrew J. Fish" <>


Date: 2010-01-16 17:21:54


The EdkProtocolLib just contains the name (16 byte GUID - Guaranteed Unique=
 ID) in the form of a global variable.  There needs to be some driver to pr=
oduce the protocol.

There are a set of network drivers under the edk2/MdeModulePkg/Universal/Ne=
twork directory. You may want to make sure they are called out in you platf=
orm .DSC file, or you can load the drivers by hand from the shell.

Andrew Fish

On Jan 15, 2010, at 3:17 AM, C=C3=A9dric CANO wrote:

> Hi,
> I want to compile the EFI shell to add my own command. The EFI shell pack=
age compile by adding it at the root directory of the EDK2 project and by c=
ompiling the EdkShellPkg.
> When I launch the compiled shell on my target board, the shell run correc=
tly but I can't use the following functions:
> - ipconfig: error message:
> MAC Address: 00 10 CD 6B AF B8
> Broadcast MAC: FF FF FF FF FF
> ipconfig: Locate protocol error - 'PXE DHCP4 protocol'
> - ifconfig: error message:
> IfConfig: Locate protocol error - 'Ip4Config protocol'
> IfConfig: Failed to retrieve all NICs' configure data, Not Found
> The EdkProtocolLib from EdkCompatibilityPkg is compiled but it seems that=
 the protocol can't be used.
> Is there a specific compilation for the shell in the EDK2 project to use =
these commands?
> Is there a command to execute on the shell before using these commands? (=
installing protocols or drivers for example)
> Must I add packages in my board package in the EDK2?
> Thanks
> Cedric
> ------------------------------------------------------