Re: EFI shell compilation and use

Subject: Re: EFI shell compilation and use

From: "Andrew J. Fish" <afish@apple.com>

To: issues@edk2.tianocore.org

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

Cedric,

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,
>=20
>=20
> 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.
>=20
>=20
> 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'
>=20
> - ifconfig: error message:
> IfConfig: Locate protocol error - 'Ip4Config protocol'
> IfConfig: Failed to retrieve all NICs' configure data, Not Found
>=20
>=20
> The EdkProtocolLib from EdkCompatibilityPkg is compiled but it seems that=
 the protocol can't be used.
>=20
>=20
> Is there a specific compilation for the shell in the EDK2 project to use =
these commands?
>=20
>=20
> Is there a command to execute on the shell before using these commands? (=
installing protocols or drivers for example)
>=20
>=20
> Must I add packages in my board package in the EDK2?
>=20
>=20
> Thanks
>=20
> Cedric
>=20
> ------------------------------------------------------
> https://edk2.tianocore.org/ds/viewMessage.do?dsForumId=3D138&dsMessageId=
=3D50631

------------------------------------------------------
https://edk2.tianocore.org/ds/viewMessage.do?dsForumId=3D138&dsMessageId=3D=
50651