[edk2-devel] EDK2 environment setup

Navdeeppal.Singh at dell.com Navdeeppal.Singh at dell.com
Mon May 4 05:17:57 UTC 2020


Hi,
Any suggestions.

Regards,
Navdeep

From: Singh, Navdeeppal
Sent: Thursday, April 30, 2020 10:39 AM
To: 'Leif Lindholm'; 'devel at edk2.groups.io'; 'guomin.jiang at intel.com'
Cc: 'spbrogan at outlook.com'; 'sean.brogan at microsoft.com'; 'Bret.Barkelew at microsoft.com'; 'jim.slaughter at sage-micro.com'
Subject: RE: [edk2-devel] EDK2 environment setup


Hi,

After launching Winhost.exe. Emulator exits after displaying "Sec Has Started".

I have not built any platform pkgs yet. This is just after building Emulator Pkg .

To boot to Shell what shall I do. How can I achive this.

Is there a document I can refer to.

[cid:image001.jpg at 01D62201.0F368030]



Regards,

Navdeep

-----Original Message-----
From: Singh, Navdeeppal
Sent: Tuesday, April 28, 2020 3:23 PM
To: 'Leif Lindholm'; devel at edk2.groups.io<mailto:devel at edk2.groups.io>; guomin.jiang at intel.com<mailto:guomin.jiang at intel.com>
Cc: spbrogan at outlook.com<mailto:spbrogan at outlook.com>; sean.brogan at microsoft.com<mailto:sean.brogan at microsoft.com>; Bret.Barkelew at microsoft.com<mailto:Bret.Barkelew at microsoft.com>; jim.slaughter at sage-micro.com<mailto:jim.slaughter at sage-micro.com>
Subject: RE: [edk2-devel] EDK2 environment setup



Thank you.

Able to build Emulator pkg after adding VS2019 build options.

Regards,

Navdeep



-----Original Message-----

From: Leif Lindholm <leif at nuviainc.com<mailto:leif at nuviainc.com>>

Sent: Tuesday, April 28, 2020 3:18 PM

To: devel at edk2.groups.io<mailto:devel at edk2.groups.io>; guomin.jiang at intel.com<mailto:guomin.jiang at intel.com>

Cc: Singh, Navdeeppal; spbrogan at outlook.com<mailto:spbrogan at outlook.com>; sean.brogan at microsoft.com<mailto:sean.brogan at microsoft.com>; Bret.Barkelew at microsoft.com<mailto:Bret.Barkelew at microsoft.com>; jim.slaughter at sage-micro.com<mailto:jim.slaughter at sage-micro.com>

Subject: Re: [edk2-devel] EDK2 environment setup





[EXTERNAL EMAIL]



My bad, was checking on a different computer than I thought where the

edk2 checkout wasn't up to date. Still, gives me a way to close out the stackoverflow question, so thanks :)



/

    Leif



On Tue, Apr 28, 2020 at 09:35:22 +0000, Guomin Jiang wrote:

> It is known issue and can refer https://bugzilla.tianocore.org/show_bug.cgi?id=2637 for detail.

>

> It have been fixed in newest repository, you can update to the newest repository and try again.

>

> From: devel at edk2.groups.io<mailto:devel at edk2.groups.io> <devel at edk2.groups.io<mailto:devel at edk2.groups.io>> On Behalf Of

> Navdeeppal.Singh at dell.com<mailto:Navdeeppal.Singh at dell.com>

> Sent: Tuesday, April 28, 2020 5:15 PM

> To: spbrogan at outlook.com<mailto:spbrogan at outlook.com>; devel at edk2.groups.io<mailto:devel at edk2.groups.io>;

> sean.brogan at microsoft.com<mailto:sean.brogan at microsoft.com>; Bret.Barkelew at microsoft.com<mailto:Bret.Barkelew at microsoft.com>;

> jim.slaughter at sage-micro.com<mailto:jim.slaughter at sage-micro.com>

> Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup

>

>

> Hi,

>

> Yes I am using edksetup.bat.

>

> I was able to fix VFR compiler after making path changes.

>

> And I was able to build MdeModulePkg Successfully.

>

> But while building Emulator Pkg. I see the following Linker Error. Do I need to build some other module before building Emulator Pkg.

>

>

>

> [cid:image001.jpg at 01D61D83.5E9F0750]

>

>

>

> Regards,

>

> Navdeep

>

> -----Original Message-----

> From: Sean Brogan <spbrogan at outlook.com<mailto:spbrogan at outlook.com<mailto:spbrogan at outlook.com%3cmailto:spbrogan at outlook.com>>>

> Sent: Tuesday, April 28, 2020 2:28 AM

> To: devel at edk2.groups.io<mailto:devel at edk2.groups.io<mailto:devel at edk2.groups.io%3cmailto:devel at edk2.groups.io>>; Singh,

> Navdeeppal;

> sean.brogan at microsoft.com<mailto:sean.brogan at microsoft.com<mailto:sean.brogan at microsoft.com%3cmailto:sean.brogan at microsoft.com>>;

> Bret.Barkelew at microsoft.com<mailto:Bret.Barkelew at microsoft.com<mailto:Bret.Barkelew at microsoft.com%3cmailto:Bret.Barkelew at microsoft.com>>;

> jim.slaughter at sage-micro.com<mailto:jim.slaughter at sage-micro.com<mailto:jim.slaughter at sage-micro.com%3cmailto:jim.slaughter at sage-micro.com>>

> Subject: Re: [EXTERNAL] [edk2-devel] EDK2 environment setup

>

>

>

>

>

> [EXTERNAL EMAIL]

>

>

>

> Are you using edksetup.bat?  I would have expected this code to set the path for you.

>

> https://github.com/tianocore/edk2/blob/master/BaseTools/toolsetup.bat#<https://github.com/tianocore/edk2/blob/master/BaseTools/toolsetup.bat>

> L134

>

>   So without more logs i don't know.

>

>

>

>

>

>

>

> If you want to use "stuart" (my preferred method) I have a commit here for EmulatorPkg which has a platformbuild.py and readme.md that describes the process.  This should be committed to edk2 master this week to enable Platform CI for every PR.

>

>

>

> Here is the readme and details.

>

> https://github.com/spbrogan/edk2/tree/PlatformAndCoreCIForOvmfArmVirtE

> mulatorPackages_v10/EmulatorPkg/PlatformCI

>

>

>

> Here is the commit you should cherry-pick if you want to try it.

>

>

>

> https://github.com/spbrogan/edk2/commit/8bdb9075b52a9d1c196b068729eefd

> 76f068d0a2

>

>

>

>

>

>

>

> Thanks

>

> Sean

>

>

>

>

>

>

>

> On 4/27/2020 1:26 AM, Navdeeppal.Singh at dell.com<mailto:Navdeeppal.Singh at dell.com<mailto:Navdeeppal.Singh at dell.com%3cmailto:Navdeeppal.Singh at dell.com>> wrote:

>

> > Hi,

>

> >

>

> > Thanks for your help.

>

> >

>

> > I am to build base tools and able to generate bin files.

>

> >

>

> > "Build" command is generated.

>

> >

>

> > Later, I am trying to build "EmulatorPkg".

>

> >

>

> > And running into VfrCompile error.

>

> >

>

> > 'VfrCompile' is not recognized as an internal or external command,

>

> >

>

> > operable program or batch file.

>

> >

>

> > NMAKE : fatal error U1077: '"VfrCompile' : return code '0x1'

>

> >

>

> > Stop.

>

> >

>

> > 'VfrCompile' is not recognized as an internal or external command,

>

> >

>

> > operable program or batch file.

>

> >

>

> > I can see VfrCompile.exe generated in "BaseTools".

>

> >

>

> > Attached build log for "Emulator Pkg".

>

> >

>

> > I tried checking the Env Paths .

>

> >

>

> > Regards,

>

> >

>

> > Navdeep

>

> >

>

> > *From:* Sean Brogan

> > <sean.brogan at microsoft.com<mailto:sean.brogan at microsoft.com<mailto:sean.brogan at microsoft.com%3cmailto:sean.brogan at microsoft.com>>>

>

> > *Sent:* Friday, April 24, 2020 12:33 AM

>

> > *To:* devel at edk2.groups.io<mailto:devel at edk2.groups.io<mailto:devel at edk2.groups.io%3cmailto:devel at edk2.groups.io>>; Singh,

> > Navdeeppal; Bret Barkelew;

>

> > jim.slaughter at sage-micro.com<mailto:jim.slaughter at sage-micro.com<mailto:jim.slaughter at sage-micro.com%3cmailto:jim.slaughter at sage-micro.com>>

>

> > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup

>

> >

>

> > [EXTERNAL EMAIL]

>

> >

>

> > Navdeep,

>

> >

>

> > Yes since the 202002 stable tag there have been submodules

> > introduced

>

> > to the basetools.  If you look closely you will see in the CI

> > process

>

> > this required a change where stuart_setup is run before calling

>

> > edk2toolsbuild.py.

>

> >

>

> > https://github.com/tianocore/edk2/commit/e1fbff3ded87704fb0086f9b5fb

> > 36

>

> > 8080eb4db51#diff-6973939bf9ad6f6a3082d99ce3b32ff1

>

> >

>

> > If you are using "stuart" to build then that is the suggested path

> > as

>

> > stuar_setup will init your submodules listed in the

> > RequiredSubmodules

>

> > (https://github.com/tianocore/edk2/blob/master/.pytool/CISettings.py#L136).

>

> > Given that the edk2 project and ecosystem has numerous ways to setup

>

> > your environment and build, you can also just make sure your

> > workspace

>

> > is complete prior to running Edk2ToolsBuild.py.  In this case you

> > only

>

> > need to run "git submodule update --init"

>

> >

>

> > I just did this and it works fine with VS2019.

>

> >

>

> > Jim,

>

> >

>

> > Just as fyi as I know there are lots of reasons for toolchain selection.

>

> >

>

> > I believe the Visual studio build tools are available free of charge

>

> > (not the IDE but the compilers).   Directions here.

>

> > https://microsoft.github.io/mu/CodeDevelopment/prerequisites/#visual

> > -s

>

> > tudio-2019-preferred

>

> >

>

> > Thanks

>

> >

>

> > Sean

>

> >

>

> > *From:* devel at edk2.groups.io<mailto:devel at edk2.groups.io<mailto:devel at edk2.groups.io%3cmailto:devel at edk2.groups.io>>

> > <mailto:devel at edk2.groups.io>

>

> > <devel at edk2.groups.io

> > <mailto:devel at edk2.groups.io<mailto:devel at edk2.groups.io%20%3cmailto

> > :devel at edk2.groups.io>>> *On Behalf Of

>

> > *Navdeeppal.Singh via groups.io

>

> > *Sent:* Thursday, April 23, 2020 9:14 AM

>

> > *To:* Bret Barkelew <Bret.Barkelew at microsoft.com

>

> > <mailto:Bret.Barkelew at microsoft.com>>;

> > devel at edk2.groups.io<mailto:devel at edk2.groups.io<mailto:devel at edk2.groups.io%3cmailto:devel at edk2.groups.io>>

>

> > <mailto:devel at edk2.groups.io>

>

> > *Subject:* Re: [EXTERNAL] [edk2-devel] EDK2 environment setup

>

> >

>

> > Hi Bret,

>

> >

>

> > Yes PIP requirements are up to date.

>

> >

>

> > On further digging through the logging file BASETOOLS_BUILD.txt.

>

> >

>

> > INFO - subprocess not exit successfully

>

> >

>

> > INFO - Error while execute command 'nmake all' in direcotry

>

> > C:\edk2\BaseTools\Source\C\BrotliCompress

>

> >

>

> > Regards,

>

> >

>

> > Navdeep

>

> >

>

> > *From:* Bret Barkelew <Bret.Barkelew at microsoft.com

>

> > <mailto:Bret.Barkelew at microsoft.com>>

>

> > *Sent:* Thursday, April 23, 2020 9:37 PM

>

> > *To:* devel at edk2.groups.io<mailto:devel at edk2.groups.io<mailto:devel at edk2.groups.io%3cmailto:devel at edk2.groups.io>>

> > <mailto:devel at edk2.groups.io>; Singh,

>

> > Navdeeppal

>

> > *Subject:* RE: [EXTERNAL] [edk2-devel] EDK2 environment setup

>

> >

>

> > [EXTERNAL EMAIL]

>

> >

>

> > Have you installed the up-to-date Python requirements? "pip install

>

> > -upgrade -r pip-requirements.txt"?

>

> >

>

> > That's the first thing I would check. Otherwise, happy to look at

> > the

>

> > problem with you.

>

> >

>

> > - Bret

>

> >

>

> > *From: *NAVDEEPPAL_SINGH via groups.io

>

> > <mailto:NAVDEEPPAL_SINGH=DELL.COM at groups.io>

>

> > *Sent: *Thursday, April 23, 2020 6:05 AM

>

> > *To: *devel at edk2.groups.io<mailto:*devel at edk2.groups.io<mailto:*devel at edk2.groups.io%3cmailto:*devel at edk2.groups.io>>

> > <mailto:devel at edk2.groups.io>

>

> > *Subject: *[EXTERNAL] [edk2-devel] EDK2 environment setup

>

> >

>

> > I am trying to setup EDK2 environment setup from Tianocore/EDK2.

>

> > While doing the Base Tool setup. After running

>

> > BaseTool/EDK2ToolsBuild.py -t VS2019 Getting following error :-

>

> > c:\edk2\BaseTools>python Edk2ToolsBuild.py  -t VS2019 SECTION - Init

>

> > SDE SECTION - Loading Plugins SECTION - Start Invocable Tool

> > Traceback

>

> > (most recent call last):

>

> >    File "Edk2ToolsBuild.py", line 177, in <module>

>

> >      main()

>

> >    File "Edk2ToolsBuild.py", line 173, in main

>

> >      Edk2ToolsBuild().Invoke()

>

> >    File "C:\Program

>

> > Files\Python38\lib\site-packages\edk2toolext\base_abstract_invocable

> > .p

>

> > y", line 141, in Invoke

>

> >      retcode = self.Go()

>

> >    File "Edk2ToolsBuild.py", line 139, in Go

>

> >      raise Exception("Failed to build.")

>

> > Exception: Failed to build.

>

> >

>

> > set EDK_TOOLS_PATH=C:\edk2\BaseTools

>

> > set EDK_TOOLS_BIN=C:\edk2\BaseTools\Bin\Win32

>

> > Can some one help

>

> >

>

>

> 

>





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#58564): https://edk2.groups.io/g/devel/message/58564
Mute This Topic: https://groups.io/mt/73323736/1813853
Group Owner: devel+owner at edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [edk2-devel-archive at redhat.com]
-=-=-=-=-=-=-=-=-=-=-=-

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20200504/85c4aacf/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 66559 bytes
Desc: image001.jpg
URL: <http://listman.redhat.com/archives/edk2-devel-archive/attachments/20200504/85c4aacf/attachment.jpg>


More information about the edk2-devel-archive mailing list