From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-vs1-f42.google.com (mail-vs1-f42.google.com [209.85.217.42]) by mx.groups.io with SMTP id smtpd.web12.2378.1595463838808955517 for ; Wed, 22 Jul 2020 17:23:59 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=iK78dDx2; spf=pass (domain: gmail.com, ip: 209.85.217.42, mailfrom: canhkha26@gmail.com) Received: by mail-vs1-f42.google.com with SMTP id a17so2166215vsq.6 for ; Wed, 22 Jul 2020 17:23:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=rXHW6lomdtRZkGZfbZ0tNb7w+6JUn0psGr4Jc3qL/W4=; b=iK78dDx2lEFOluRArtHOGNQ4V9tBnY+QCwpWuU7mVVvm5TnQvJG/5/0CUbJ/nBmRib wr/SJKtN1FDGAPigVlSoSlF9R77U4fZ0p8tB3cpknLcjZNPB6+Y2HybW36FwQ1fCJ2cD xIUoybve/GZ6Q3WBGI896N4HXuErtLDWWIEjhJnpDQC52FxAVQzs0X6F2o4cAOAL0erW belBv8lUq3O5HYVQM4iVvC78P43rMc5aDHM9nvq+FIQS/dr0QAxVHAWsTSzFpozCF0ID X38Kal7twcA5wLyplHKPPUiwMwNnQQj9gzvqiZfS7ivL6yABjpJl4YIqFQWbALMC0IM7 yqYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=rXHW6lomdtRZkGZfbZ0tNb7w+6JUn0psGr4Jc3qL/W4=; b=j3pIkvpcKp5B33j3xfoCWWs68z4IErxFFvIyJgCc3Tdf+4m1pR+jz9qgmdastAYu73 mMUfye8+QPlmrzDeqPJ6o1iZW5VttzVKbcNTpPEQxlRWIqDfgIXtyYpS9fNl3+8kC01C 1TAJgwxJ5UqUGmVvtPTkl4qadCFfC5jczf+8lYLaSoHkEdqTzUeEqTc3MtmrwsO5WRIr 1Hxj5uEk+R8LKpIt+9zOm49W95aiCV/1JD0g2/HWVsB7xZhX8G6L5h6EYR1VOF9hHXN2 KZe006qyWLOYF0LQFSIxRojQrd8OA/pK3wV3JUzZRbVBTfmx7fBw0iT+p/4vZqlAhBOq 4Cew== X-Gm-Message-State: AOAM530RT/kEc79ze4Ymvxs3qd44PNbzz8WQudDeDE/oWYtRmCWL/8sB d9RCQ9e3wzVn0BTbDxSq2ZEPDTcGZw6JfV8QXp0= X-Google-Smtp-Source: ABdhPJwDlgxLR1Vjypr0I6AaEDMmfV+2LmsRNS73Et8Rm1jNNTgexfeolPUvgtTqSKQOsnX2rRYa3eGXvGpJJbF0YQY= X-Received: by 2002:a67:c208:: with SMTP id i8mr2204614vsj.167.1595463837862; Wed, 22 Jul 2020 17:23:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Canh Kha Date: Wed, 22 Jul 2020 19:23:45 -0500 Message-ID: Subject: Re: [edk2-devel] A problem to build KabyLake To: "Desimone, Nathaniel L" Cc: "devel@edk2.groups.io" , "Jiang, Guomin" Content-Type: multipart/alternative; boundary="0000000000004ecdcf05ab10dfac" --0000000000004ecdcf05ab10dfac Content-Type: text/plain; charset="UTF-8" Hi Nate, Yes, I built it successfully with this command >py -3.8 build_bios.py -p KabylakeRvp3 -r post_build_ex Done Fd file can be found at C:\minnow\Build\KabylakeOpenBoardPkg\KabylakeRvp3\RELEASE_VS2015\FV\KABYLAKERVP3.fd >>From the build.log, I saw ... Generating FVMICROCODE FV Generate Region at Offset 0x590000 Region Size = 0x60000 Region File Name = c:\minnow\FSP\AmberLakeFspBinPkg/Fsp_Rebased_S.fd Generate Region at Offset 0x5F0000 Region Size = 0xBC000 Region File Name = c:\minnow\FSP\AmberLakeFspBinPkg/Fsp_Rebased_M.fd Generate Region at Offset 0x6AC000 Region Size = 0x14000 Region File Name = c:\minnow\FSP\AmberLakeFspBinPkg/Fsp_Rebased_T.fd Generate Region at Offset 0x6C0000 Region Size = 0x10000 Region Name = FV Generating FVADVANCEDPREMEMORY FV Generate Region at Offset 0x6D0000 Region Size = 0x130000 Region Name = FV Generating FVPREMEMORY FV GUID cross reference file can be found at c:\minnow\Build\KabylakeOpenBoardPkg\KabylakeRvp3\RELEASE_VS2015\FV\Guid.xref FV Space Information FVMICROCODE [59%Full] 655360 total, 387168 used, 268192 free FVPREMEMORY [6%Full] 1245184 total, 83200 used, 1161984 free FVPOSTMEMORYUNCOMPACT [52%Full] 65536 total, 34672 used, 30864 free FVPOSTMEMORY [%Full] 1572864 total, 11240 used, 1561624 free FVUEFIBOOTUNCOMPACT [98%Full] 2162688 total, 2121744 used, 40944 free FVUEFIBOOT [31%Full] 1966080 total, 619040 used, 1347040 free FVOSBOOTUNCOMPACT [83%Full] 393216 total, 329712 used, 63504 free FVLATESILICON [94%Full] 131072 total, 124336 used, 6736 free FVOSBOOT [24%Full] 589824 total, 141608 used, 448216 free FVSECURITYPREMEMORY [12%Full] 65536 total, 8152 used, 57384 free FVSECURITYPOSTMEMORY [%Full] 65536 total, 120 used, 65416 free FVSECURITYLATE [61%Full] 65536 total, 39992 used, 25544 free FVSECURITY [17%Full] 458752 total, 82008 used, 376744 free FVADVANCEDPREMEMORY [%Full] 65536 total, 120 used, 65416 free FVADVANCEDUNCOMPACT [100%Full] 120 total, 120 used, 0 free FVADVANCED [%Full] 327680 total, 272 used, 327408 free Build report can be found at C:\minnow\BuildReport.log - Done - Build end time: 19:06:19, Jul.22 2020 Build total time: 00:02:32 Does that mean this fd file has the Intel Amberlake FSP? When using Intel FITC to form a full image, I will need to pick this fd file, right? Thanks, Canh On Wed, Jul 22, 2020 at 6:44 PM Desimone, Nathaniel L < nathaniel.l.desimone@intel.com> wrote: > Hi Canh, > > > > To build KabyLake please use edk2-platforms/Platform/Intel/build_bios.py > > > > Debug Build: build_bios.py -p KabylakeRvp3 -d > > Release Build: build_bios.py -p KabylakeRvp3 -r > > > > Thanks, > > Nate > > > > *From:* devel@edk2.groups.io *On Behalf Of *Canh > Kha > *Sent:* Wednesday, July 22, 2020 8:32 AM > *To:* Jiang, Guomin > *Cc:* devel@edk2.groups.io > *Subject:* Re: [edk2-devel] A problem to build KabyLake > > > > Hi Guomin, > > > > Yes, I also have the same file as you do > > >dir > C:\minnow\edk2-platforms\Features\Intel\AdvancedFeaturePkg\Include\PreMemory.fdf > Volume in drive C is OS > Volume Serial Number is CCF3-B399 > > Directory of > C:\minnow\edk2-platforms\Features\Intel\AdvancedFeaturePkg\Include > > 07/11/2020 03:26 PM 1,779 PreMemory.fdf > 1 File(s) 1,779 bytes > > > > But for some reason, the script seems looking for it from > a different directory. > > Thank you, > > Canh > > > > On Wed, Jul 22, 2020 at 5:47 AM Jiang, Guomin > wrote: > > It confuse me that near line 60, column 0: !include > LogoFeaturePkg/Include/PreMemory.fdf. > > > > In my local machine, the PreMemory.fdf should be > AdvancedFeaturePkg/Include/PreMemory.fdf, > > > > I can also find this file in directory > edk2-platforms\Features\Intel\AdvancedFeaturePkg\Include. > > > > Please confirm it. > > > > Thanks. > > Guomin > > *From:* devel@edk2.groups.io *On Behalf Of *Canh > Kha > *Sent:* Wednesday, July 22, 2020 1:13 PM > *To:* devel@edk2.groups.io > *Subject:* [edk2-devel] A problem to build KabyLake > > > > Hi, > > When I ran this build command > > build -a IA32 -a X64 -n 5 -t VS2015x86 -b DEBUG -p > KabylakeOpenBoardPkg\KabylakeRvp3\OpenBoardPkg.dsc > > I received the following message > > > build.py... > : error C0DE: Unknown fatal error when processing > [c:\minnow\edk2-platforms\Platform\Intel\KabylakeOpenBoardPkg\KabylakeRvp3\OpenBoardPkg.dsc] > > (Please send email to devel@edk2.groups.io for help, attaching following > call stack trace!) > > (Python 3.8.3 on win32) Traceback (most recent call last): > File "C:\minnow\edk2\BaseTools\Source\Python\build\build.py", line 2636, > in Main > MyBuild.Launch() > File "C:\minnow\edk2\BaseTools\Source\Python\build\build.py", line 2431, > in Launch > self._MultiThreadBuildPlatform() > File "C:\minnow\edk2\BaseTools\Source\Python\build\build.py", line 2238, > in _MultiThreadBuildPlatform > Wa, self.BuildModules = self.PerformAutoGen(BuildTarget,ToolChain) > File "C:\minnow\edk2\BaseTools\Source\Python\build\build.py", line 2088, > in PerformAutoGen > Wa = WorkspaceAutoGen( > File > "C:\minnow\edk2\BaseTools\Source\Python\AutoGen\WorkspaceAutoGen.py", line > 43, in __init__ > self._InitWorker(Workspace, MetaFile, Target, Toolchain, Arch, *args, > **kwargs) > File > "C:\minnow\edk2\BaseTools\Source\Python\AutoGen\WorkspaceAutoGen.py", line > 112, in _InitWorker > self.ProcessModuleFromPdf() > File > "C:\minnow\edk2\BaseTools\Source\Python\AutoGen\WorkspaceAutoGen.py", line > 188, in ProcessModuleFromPdf > if self.FdfProfile: > File "C:\minnow\edk2\BaseTools\Source\Python\Common\caching.py", line > 28, in __get__ > Value = obj.__dict__[self._function.__name__] = self._function(obj) > File > "C:\minnow\edk2\BaseTools\Source\Python\AutoGen\WorkspaceAutoGen.py", line > 164, in FdfProfile > Fdf.ParseFile() > File "C:\minnow\edk2\BaseTools\Source\Python\GenFds\FdfParser.py", line > 1312, in ParseFile > self.Preprocess() > File "C:\minnow\edk2\BaseTools\Source\Python\GenFds\FdfParser.py", line > 1291, in Preprocess > self.PreprocessIncludeFile() > File "C:\minnow\edk2\BaseTools\Source\Python\GenFds\FdfParser.py", line > 624, in PreprocessIncludeFile > raise Warning("The include file does not exist under below > directories: \n%s\n%s\n%s\n"%(os.path.dirname(self.FileName), PlatformDir, > GlobalData.gWorkspace), > GenFds.FdfParser.Warning: The include file does not exist under below > directories: > c:\minnow\edk2-platforms\Platform\Intel\KabylakeOpenBoardPkg\KabylakeRvp3 > c:\minnow\edk2-platforms\Platform\Intel\KabylakeOpenBoardPkg\KabylakeRvp3 > c:\minnow > near line 60, column 0: !include LogoFeaturePkg/Include/PreMemory.fdf > > > > - Failed - > Build end time: 00:01:19, Jul.22 2020 > Build total time: 00:00:00 > > > > This is my PACKAGES_PATH > > > C:\minnow\edk2;C:\minnow\edk2-platforms\Silicon\Intel;C:\minnow\edk2-platforms\Platform\Intel;;C:\minnow\edk2-platforms\Features\Intel;C:\minnow\edk2-non-osi\Silicon\Intel;C:\minnow\FSP > > Could you help to give me some suggestions to try? > > Thanks, > > Canh > > > --0000000000004ecdcf05ab10dfac Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi Nate,
Yes, I built it successfully with this comman= d
>py -3.8 build_bios.py -p KabylakeRvp3 -r

=
post_build_ex
Done
Fd file can be found at C:\minnow\Build= \KabylakeOpenBoardPkg\KabylakeRvp3\RELEASE_VS2015\FV\KABYLAKERVP3.fd

From the build.log, I saw
...
Ge= nerating FVMICROCODE FV

Generate Region at Offset 0x590000
=C2=A0= =C2=A0Region Size =3D 0x60000
=C2=A0 =C2=A0Region File Name =3D c:\minn= ow\FSP\AmberLakeFspBinPkg/Fsp_Rebased_S.fd

Generate Region at Offset= 0x5F0000
=C2=A0 =C2=A0Region Size =3D 0xBC000
=C2=A0 =C2=A0Region Fi= le Name =3D c:\minnow\FSP\AmberLakeFspBinPkg/Fsp_Rebased_M.fd

Genera= te Region at Offset 0x6AC000
=C2=A0 =C2=A0Region Size =3D 0x14000
=C2= = =A0 =C2=A0Region File Name =3D c:\minnow\FSP\AmberLakeFspBinPkg/Fsp_Rebase= d_T.fd

Generate Region at Offset 0x6C0000
=C2=A0 =C2=A0Region Siz= e =3D 0x10000
=C2=A0 =C2=A0Region Name =3D FV

Generating FVADVANC= EDPREMEMORY FV

Generate Region at Offset 0x6D0000
=C2=A0 =C2=A0Re= gion Size =3D 0x130000
=C2=A0 =C2=A0Region Name =3D FV

Generating= FVPREMEMORY FV

GUID cross reference file can be found at c:\minnow\= Build\KabylakeOpenBoardPkg\KabylakeRvp3\RELEASE_VS2015\FV\Guid.xref

= FV Space Information
FVMICROCODE [59%Full] 655360 total, 387168 used, 26= 8192 free
FVPREMEMORY [6%Full] 1245184 total, 83200 used, 1161984 freeFVPOSTMEMORYUNCOMPACT [52%Full] 65536 total, 34672 used, 30864 free
FV= POSTMEMORY [%Full] 1572864 total, 11240 used, 1561624 free
FVUEFIBOOTUNC= OMPACT [98%Full] 2162688 total, 2121744 used, 40944 free
FVUEFIBOOT [31%= Full] 1966080 total, 619040 used, 1347040 free
FVOSBOOTUNCOMPACT [83%Ful= l] 393216 total, 329712 used, 63504 free
FVLATESILICON [94%Full] 131072 = total, 124336 used, 6736 free
FVOSBOOT [24%Full] 589824 total, 141608 us= ed, 448216 free
FVSECURITYPREMEMORY [12%Full] 65536 total, 8152 used, 57= 384 free
FVSECURITYPOSTMEMORY [%Full] 65536 total, 120 used, 65416 free<= br>FVSECURITYLATE [61%Full] 65536 total, 39992 used, 25544 free
FVSECURI= TY [17%Full] 458752 total, 82008 used, 376744 free
FVADVANCEDPREMEMORY [= %Full] 65536 total, 120 used, 65416 free
FVADVANCEDUNCOMPACT [100%Full] = 120 total, 120 used, 0 free
FVADVANCED [%Full] 327680 total, 272 used, 3= 27408 free
Build report can be found at C:\minnow\BuildReport.log
- Done -
Build end time: 19:06:19, Jul.22 2020
Build total time: 00:= 02:32

Does that mean this fd file has the Inte= l Amberlake FSP?
When using Intel FITC to form a full image, I wi= ll need to pick this fd file, right?
Thanks,
Canh
=


On Wed, Jul 22, 2020 at 6:44 PM Desimone, Nathaniel L <= nathaniel.l.desimone@inte= l.com> wrote:

Hi Canh,

=C2=A0

To build KabyLake please use edk2-platforms/Platfor= m/Intel/build_bios.py

=C2=A0

Debug Build: build_bios.py -p KabylakeRvp3 -d

Release Build: build_bios.py -p KabylakeRvp3 -r<= /u>

=C2=A0

Thanks,

Nate

=C2=A0

From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Canh Kha
Sent: Wednesday, July 22, 2020 8:32 AM
To: Jiang, Guomin <guomin.jiang@intel.com>
Cc: devel= @edk2.groups.io
Subject: Re: [edk2-devel] A problem to build KabyLake=

=C2=A0

Hi=C2=A0Guomin,

=C2=A0

Yes, I also have the same file as you do<= /u>

>dir C:\minnow\edk2-platforms\Features\Intel\Adv= ancedFeaturePkg\Include\PreMemory.fdf
=C2=A0Volume in drive C is OS
=C2=A0Volume Serial Number is CCF3-B399

=C2=A0Directory of C:\minnow\edk2-platforms\Features\Intel\AdvancedFeature= Pkg\Include

07/11/2020 =C2=A003:26 PM =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 1,779 = PreMemory.fdf
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A01 File(s) =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A01,779 bytes

=C2=A0

But for some reason, the script seems looking for i= t from a=C2=A0different=C2=A0directory.

Thank you,

Canh

=C2=A0

On Wed, Jul 22, 2020 at 5:47 AM Jiang, Guomin <<= a href=3D"mailto:guomin.jiang@intel.com" target=3D"_blank">guomin.jiang@int= el.com> wrote:

=C2=A0It confuse me that near line 60, column 0: = =C2=A0 !include LogoFeaturePkg/Include/PreMemory.fdf.

=C2=A0

In my local machine, the PreMemory.fdf should be Ad= vancedFeaturePkg/Include/PreMemory.fdf,

=C2=A0

I can also find this file in directory edk2-platfor= ms\Features\Intel\AdvancedFeaturePkg\Include.

=C2=A0

Please confirm it.

=C2=A0

Thanks.

Guomin

From: devel@edk2.group= s.io <deve= l@edk2.groups.io> On Behalf Of Canh Kha
Sent: Wednesday, July 22, 2020 1:13 PM
To: devel= @edk2.groups.io
Subject: [edk2-devel] A problem to build KabyLake

=C2=A0

Hi,

When I ran this build command

build -a IA32 -a X64 -n 5 -t VS2015x86 -b DEBUG -p = KabylakeOpenBoardPkg\KabylakeRvp3\OpenBoardPkg.dsc

I received the following message


build.py...
=C2=A0: error C0DE: Unknown fatal error when processing [c:\minnow\edk2-pl= atforms\Platform\Intel\KabylakeOpenBoardPkg\KabylakeRvp3\OpenBoardPkg.dsc]<= br>
(Please send email to devel@edk2.groups.io for help, attaching following call stack tra= ce!)

(Python 3.8.3 on win32) Traceback (most recent call last):
=C2=A0 File "C:\minnow\edk2\BaseTools\Source\Python\build\build.py&qu= ot;, line 2636, in Main
=C2=A0 =C2=A0 MyBuild.Launch()
=C2=A0 File "C:\minnow\edk2\BaseTools\Source\Python\build\build.py&qu= ot;, line 2431, in Launch
=C2=A0 =C2=A0 self._MultiThreadBuildPlatform()
=C2=A0 File "C:\minnow\edk2\BaseTools\Source\Python\build\build.py&qu= ot;, line 2238, in _MultiThreadBuildPlatform
=C2=A0 =C2=A0 Wa, self.BuildModules =3D self.PerformAutoGen(BuildTarget,To= olChain)
=C2=A0 File "C:\minnow\edk2\BaseTools\Source\Python\build\build.py&qu= ot;, line 2088, in PerformAutoGen
=C2=A0 =C2=A0 Wa =3D WorkspaceAutoGen(
=C2=A0 File "C:\minnow\edk2\BaseTools\Source\Python\AutoGen\Workspace= AutoGen.py", line 43, in __init__
=C2=A0 =C2=A0 self._InitWorker(Workspace, MetaFile, Target, Toolchain, Arc= h, *args, **kwargs)
=C2=A0 File "C:\minnow\edk2\BaseTools\Source\Python\AutoGen\Workspace= AutoGen.py", line 112, in _InitWorker
=C2=A0 =C2=A0 self.ProcessModuleFromPdf()
=C2=A0 File "C:\minnow\edk2\BaseTools\Source\Python\AutoGen\Workspace= AutoGen.py", line 188, in ProcessModuleFromPdf
=C2=A0 =C2=A0 if self.FdfProfile:
=C2=A0 File "C:\minnow\edk2\BaseTools\Source\Python\Common\caching.py= ", line 28, in __get__
=C2=A0 =C2=A0 Value =3D obj.__dict__[self._function.__name__] =3D self._fu= nction(obj)
=C2=A0 File "C:\minnow\edk2\BaseTools\Source\Python\AutoGen\Workspace= AutoGen.py", line 164, in FdfProfile
=C2=A0 =C2=A0 Fdf.ParseFile()
=C2=A0 File "C:\minnow\edk2\BaseTools\Source\Python\GenFds\FdfParser.= py", line 1312, in ParseFile
=C2=A0 =C2=A0 self.Preprocess()
=C2=A0 File "C:\minnow\edk2\BaseTools\Source\Python\GenFds\FdfParser.= py", line 1291, in Preprocess
=C2=A0 =C2=A0 self.PreprocessIncludeFile()
=C2=A0 File "C:\minnow\edk2\BaseTools\Source\Python\GenFds\FdfParser.= py", line 624, in PreprocessIncludeFile
=C2=A0 =C2=A0 raise Warning("The include file does not exist under be= low directories: \n%s\n%s\n%s\n"%(os.path.dirname(self.FileName), Plat= formDir, GlobalData.gWorkspace),
GenFds.FdfParser.Warning: The include file does not exist under below dire= ctories:
c:\minnow\edk2-platforms\Platform\Intel\KabylakeOpenBoardPkg\KabylakeRvp3<= br> c:\minnow\edk2-platforms\Platform\Intel\KabylakeOpenBoardPkg\KabylakeRvp3<= br> c:\minnow
=C2=A0near line 60, column 0: =C2=A0 !include LogoFeaturePkg/Include/PreMe= mory.fdf



- Failed -
Build end time: 00:01:19, Jul.22 2020
Build total time: 00:00:00

=C2=A0

This is my PACKAGES_PATH

C:\minnow\edk2;C:\minnow\edk2-platforms\Silicon\Int= el;C:\minnow\edk2-platforms\Platform\Intel;;C:\minnow\edk2-platforms\Featur= es\Intel;C:\minnow\edk2-non-osi\Silicon\Intel;C:\minnow\FSP

Could you help to give me some suggestions to=C2=A0= try?

Thanks,

Canh

--0000000000004ecdcf05ab10dfac--