public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* A problem to build KabyLake
@ 2020-07-22  5:12 Canh Kha
  2020-07-22 10:47 ` [edk2-devel] " Guomin Jiang
  0 siblings, 1 reply; 8+ messages in thread
From: Canh Kha @ 2020-07-22  5:12 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 2908 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 3385 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [edk2-devel] A problem to build KabyLake
  2020-07-22  5:12 A problem to build KabyLake Canh Kha
@ 2020-07-22 10:47 ` Guomin Jiang
  2020-07-22 15:32   ` Canh Kha
  0 siblings, 1 reply; 8+ messages in thread
From: Guomin Jiang @ 2020-07-22 10:47 UTC (permalink / raw)
  To: devel@edk2.groups.io, canhkha26@gmail.com

[-- Attachment #1: Type: text/plain, Size: 3512 bytes --]

 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 <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<mailto: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


[-- Attachment #2: Type: text/html, Size: 7378 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [edk2-devel] A problem to build KabyLake
  2020-07-22 10:47 ` [edk2-devel] " Guomin Jiang
@ 2020-07-22 15:32   ` Canh Kha
  2020-07-22 23:44     ` Nate DeSimone
  0 siblings, 1 reply; 8+ messages in thread
From: Canh Kha @ 2020-07-22 15:32 UTC (permalink / raw)
  To: Jiang, Guomin; +Cc: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 4213 bytes --]

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 <guomin.jiang@intel.com>
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 <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
>
> 
>

[-- Attachment #2: Type: text/html, Size: 6596 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [edk2-devel] A problem to build KabyLake
  2020-07-22 15:32   ` Canh Kha
@ 2020-07-22 23:44     ` Nate DeSimone
  2020-07-23  0:23       ` Canh Kha
  0 siblings, 1 reply; 8+ messages in thread
From: Nate DeSimone @ 2020-07-22 23:44 UTC (permalink / raw)
  To: devel@edk2.groups.io, canhkha26@gmail.com, Jiang, Guomin

[-- Attachment #1: Type: text/plain, Size: 4648 bytes --]

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 <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

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 <guomin.jiang@intel.com<mailto:guomin.jiang@intel.com>> 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<mailto:devel@edk2.groups.io> <devel@edk2.groups.io<mailto:devel@edk2.groups.io>> On Behalf Of Canh Kha
Sent: Wednesday, July 22, 2020 1:13 PM
To: devel@edk2.groups.io<mailto: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<mailto: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


[-- Attachment #2: Type: text/html, Size: 11527 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [edk2-devel] A problem to build KabyLake
  2020-07-22 23:44     ` Nate DeSimone
@ 2020-07-23  0:23       ` Canh Kha
  2020-07-23  1:18         ` Nate DeSimone
  0 siblings, 1 reply; 8+ messages in thread
From: Canh Kha @ 2020-07-23  0:23 UTC (permalink / raw)
  To: Desimone, Nathaniel L; +Cc: devel@edk2.groups.io, Jiang, Guomin

[-- Attachment #1: Type: text/plain, Size: 7187 bytes --]

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 <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
>
>
>
> 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 <guomin.jiang@intel.com>
> 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 <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
>
> 
>

[-- Attachment #2: Type: text/html, Size: 11425 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [edk2-devel] A problem to build KabyLake
  2020-07-23  0:23       ` Canh Kha
@ 2020-07-23  1:18         ` Nate DeSimone
  2020-07-23  4:11           ` Canh Kha
  0 siblings, 1 reply; 8+ messages in thread
From: Nate DeSimone @ 2020-07-23  1:18 UTC (permalink / raw)
  To: Canh Kha; +Cc: devel@edk2.groups.io, Jiang, Guomin

[-- Attachment #1: Type: text/plain, Size: 7932 bytes --]

Hi Canh,

Yes, the Intel Amberlake FSP has been automatically included in the FD file. The final FD file is found at C:\minnow\Build\KabylakeOpenBoardPkg\KabylakeRvp3\RELEASE_VS2015\FV\KABYLAKERVP3.fd

In FITC, you would use KABYLAKERVP3.fd as your BIOS image when stitching the full IFWI (Integrated Firmware Image).

Thanks,
Nate

From: Canh Kha <canhkha26@gmail.com>
Date: Wednesday, July 22, 2020 at 5:24 PM
To: "Desimone, Nathaniel L" <nathaniel.l.desimone@intel.com>
Cc: "devel@edk2.groups.io" <devel@edk2.groups.io>, "Jiang, Guomin" <guomin.jiang@intel.com>
Subject: Re: [edk2-devel] A problem to build KabyLake

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<mailto: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<mailto:devel@edk2.groups.io> <devel@edk2.groups.io<mailto:devel@edk2.groups.io>> On Behalf Of Canh Kha
Sent: Wednesday, July 22, 2020 8:32 AM
To: Jiang, Guomin <guomin.jiang@intel.com<mailto:guomin.jiang@intel.com>>
Cc: devel@edk2.groups.io<mailto: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 <guomin.jiang@intel.com<mailto:guomin.jiang@intel.com>> 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<mailto:devel@edk2.groups.io> <devel@edk2.groups.io<mailto:devel@edk2.groups.io>> On Behalf Of Canh Kha
Sent: Wednesday, July 22, 2020 1:13 PM
To: devel@edk2.groups.io<mailto: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<mailto: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


[-- Attachment #2: Type: text/html, Size: 18006 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [edk2-devel] A problem to build KabyLake
  2020-07-23  1:18         ` Nate DeSimone
@ 2020-07-23  4:11           ` Canh Kha
  2020-08-12  4:33             ` Canh Kha
  0 siblings, 1 reply; 8+ messages in thread
From: Canh Kha @ 2020-07-23  4:11 UTC (permalink / raw)
  To: Desimone, Nathaniel L; +Cc: devel@edk2.groups.io, Jiang, Guomin

[-- Attachment #1: Type: text/plain, Size: 8156 bytes --]

Thank you, Nate.
 Canh

On Wed, Jul 22, 2020 at 8:18 PM Desimone, Nathaniel L <
nathaniel.l.desimone@intel.com> wrote:

> Hi Canh,
>
>
>
> Yes, the Intel Amberlake FSP has been automatically included in the FD
> file. The final FD file is found at
> C:\minnow\Build\KabylakeOpenBoardPkg\KabylakeRvp3\RELEASE_VS2015\FV\KABYLAKERVP3.fd
>
>
>
> In FITC, you would use KABYLAKERVP3.fd as your BIOS image when stitching
> the full IFWI (Integrated Firmware Image).
>
>
>
> Thanks,
>
> Nate
>
>
>
> *From: *Canh Kha <canhkha26@gmail.com>
> *Date: *Wednesday, July 22, 2020 at 5:24 PM
> *To: *"Desimone, Nathaniel L" <nathaniel.l.desimone@intel.com>
> *Cc: *"devel@edk2.groups.io" <devel@edk2.groups.io>, "Jiang, Guomin" <
> guomin.jiang@intel.com>
> *Subject: *Re: [edk2-devel] A problem to build KabyLake
>
>
>
> 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 <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
>
>
>
> 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 <guomin.jiang@intel.com>
> 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 <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
>
> 
>
>

[-- Attachment #2: Type: text/html, Size: 14459 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [edk2-devel] A problem to build KabyLake
  2020-07-23  4:11           ` Canh Kha
@ 2020-08-12  4:33             ` Canh Kha
  0 siblings, 0 replies; 8+ messages in thread
From: Canh Kha @ 2020-08-12  4:33 UTC (permalink / raw)
  To: Desimone, Nathaniel L; +Cc: devel@edk2.groups.io, Jiang, Guomin

[-- Attachment #1: Type: text/plain, Size: 8755 bytes --]

Hi Nate,
In this webpage  https://github.com/intel/FSP/wiki
The link to coreboot.git is broken
http://review.coreboot.org/coreboot.git

How can I integrate Amberlake FSP with coreboot? Is there a guide?
Thanks,
Canh

On Wed, Jul 22, 2020 at 11:11 PM Canh Kha <canhkha26@gmail.com> wrote:

> Thank you, Nate.
>  Canh
>
> On Wed, Jul 22, 2020 at 8:18 PM Desimone, Nathaniel L <
> nathaniel.l.desimone@intel.com> wrote:
>
>> Hi Canh,
>>
>>
>>
>> Yes, the Intel Amberlake FSP has been automatically included in the FD
>> file. The final FD file is found at
>> C:\minnow\Build\KabylakeOpenBoardPkg\KabylakeRvp3\RELEASE_VS2015\FV\KABYLAKERVP3.fd
>>
>>
>>
>> In FITC, you would use KABYLAKERVP3.fd as your BIOS image when stitching
>> the full IFWI (Integrated Firmware Image).
>>
>>
>>
>> Thanks,
>>
>> Nate
>>
>>
>>
>> *From: *Canh Kha <canhkha26@gmail.com>
>> *Date: *Wednesday, July 22, 2020 at 5:24 PM
>> *To: *"Desimone, Nathaniel L" <nathaniel.l.desimone@intel.com>
>> *Cc: *"devel@edk2.groups.io" <devel@edk2.groups.io>, "Jiang, Guomin" <
>> guomin.jiang@intel.com>
>> *Subject: *Re: [edk2-devel] A problem to build KabyLake
>>
>>
>>
>> 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 <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
>>
>>
>>
>> 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 <guomin.jiang@intel.com>
>> 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 <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
>>
>> 
>>
>>

[-- Attachment #2: Type: text/html, Size: 15416 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2020-08-12  4:34 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-22  5:12 A problem to build KabyLake Canh Kha
2020-07-22 10:47 ` [edk2-devel] " Guomin Jiang
2020-07-22 15:32   ` Canh Kha
2020-07-22 23:44     ` Nate DeSimone
2020-07-23  0:23       ` Canh Kha
2020-07-23  1:18         ` Nate DeSimone
2020-07-23  4:11           ` Canh Kha
2020-08-12  4:33             ` Canh Kha

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox