Re: [edk2] :Build error

2018-07-31 Thread Jose Trujillo
Here is the file attached Liming...


‐‐‐ Original Message ‐‐‐
On July 31, 2018 3:52 PM, Gao, Liming  wrote:

> Could you attach 
> /home/bios_dev//4.8.1/edk2/Build/CorebootPayloadPkgX64/RELEASE_CBSDK/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib/DEBUG/AutoGen.h?
>
> I don't understand why report error in AutoGen.h.
>
> Thanks
> Liming
>
> > -Original Message-
> > From: Jose Trujillo [mailto:ce.au...@protonmail.com]
> > Sent: Tuesday, July 31, 2018 4:52 PM
> > To: Gao, Liming liming@intel.com
> > Subject: RE: [edk2] :Build error
> > CBSDK
> > Coreboot Toolkit.
> > The definition is added to Conf/tools_def.txt
> > "# CBSDK is spun off from the GCC5 template"
> > Thank you
> > Jose Trujillo
> > ‐‐‐ Original Message ‐‐‐
> > On July 31, 2018 9:27 AM, Gao, Liming liming@intel.com wrote:
> >
> > > Which tool chain is used? What is CBSDK?
> > >
> > > > -Original Message-
> > > > From: edk2-devel [mailto:edk2-devel-boun...@lists.01.org] On Behalf Of
> > > > Jose Trujillo
> > >
> > > > Sent: Monday, July 30, 2018 9:26 PM
> > > > To: edk2-devel@lists.01.org
> > > > Subject: [edk2] :Build error
> > > > Dear Tianocore developers:
> > > > I am getting the following error during the making of the latest EDK2.
> > > > vUDK2017 also fail with the same errors reported.
> > > > I tried to find on the internet the fix but I couldn't so far.
> > > > I will appreciate any advice on the issue.
> > > > --beginning of the error 
> > > > dump--
> >
> > > > In file included from
> >
> > /home/bios_dev//4.8.1/edk2/Build/CorebootPayloadPkgX64/RELEASE_
> > CBSDK/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/
> >
> > > > DxeCpuExceptionHandlerLib/DEBUG/AutoGen.h:18:0,
> > > > from :0:
> >
> > /home/bios_dev//4.8.1/edk2/MdePkg/Include/Library/PcdLib.h:103:45:
> > error: ‘_PCD_VALUE_PcdCpuKnownGoodStackSize’
> >
> > > > undeclared here (not in a function); did you mean
> > > > ‘_PCD_SIZE_PcdCpuKnownGoodStackSize’?
> > >
> > > > #define FixedPcdGet32(TokenName) PCD_VALUE##TokenName
> > > > ^
> >
> > /home/bios_dev//4.8.1/edk2/UefiCpuPkg/Library/CpuExceptionHandler
> > Lib/CpuExceptionCommon.h:58:3: note: in expansion of
> >
> > > > macro ‘FixedPcdGet32’
> > > > FixedPcdGet32 (PcdCpuKnownGoodStackSize)
> > > > ^
> >
> > /home/bios_dev//4.8.1/edk2/UefiCpuPkg/Library/CpuExceptionHandler
> > Lib/DxeException.c:30:39: note: in expansion of macro
> >
> > > > ‘CPU_KNOWN_GOOD_STACK_SIZE’
> > > > CPU_KNOWN_GOOD_STACK_SIZE];
> > > > ^
> >
> > /home/bios_dev//4.8.1/edk2/UefiCpuPkg/Library/CpuExceptionHandler
> > Lib/DxeException.c: In function
> >
> > > > ‘InitializeCpuExceptionHandlersEx’:
> >
> > /home/bios_dev//4.8.1/edk2/MdePkg/Include/Library/PcdLib.h:148:54:
> > error: ‘_PCD_VALUE_PcdCpuStackSwitchExceptionList’
> >
> > > > undeclared (first use in this function); did you mean
> > > > ‘_PCD_SIZE_PcdCpuStackSwitchExceptionList’?
> > >
> > > > #define FixedPcdGetPtr(TokenName) ((VOID
> > > > *)PCD_VALUE##TokenName)
> > >
> > > > ^
> >
> > /home/bios_dev//4.8.1/edk2/UefiCpuPkg/Library/CpuExceptionHandler
> > Lib/CpuExceptionCommon.h:55:3: note: in expansion of
> >
> > > > macro ‘FixedPcdGetPtr’
> > > > FixedPcdGetPtr (PcdCpuStackSwitchExceptionList)
> > > > ^~
> >
> > /home/bios_dev//4.8.1/edk2/UefiCpuPkg/Library/CpuExceptionHandler
> > Lib/DxeException.c:275:45: note: in expansion of macro
> >
> > > > ‘CPU_STACK_SWITCH_EXCEPTION_LIST’
> > > > EssData.X64.StackSwitchExceptions =
> > > > CPU_STACK_SWITCH_EXCEPTION_LIST;
> > >
> > > > ^~~
> >
> > /home/bios_dev//4.8.1/edk2/MdePkg/Include/Library/PcdLib.h:148:54:
> > note: each undeclared identifier is reported only once for
> >
> > > > each function it appears in
> > > > #define FixedPcdGetPtr(TokenName) ((VOID
> > > > *)PCD_VALUE##TokenName)
> > >
> > > > ^
> >
> > /home/bios_dev//4.8.1/edk2/UefiCpuPkg/Library/CpuExceptionHandler
> 

[edk2] :Build error

2018-07-30 Thread Jose Trujillo
Dear Tianocore developers:

I am getting the following error during the making of the latest EDK2.
vUDK2017 also fail with the same errors reported.
I tried to find on the internet the fix but I couldn't so far.
I will appreciate any advice on the issue.

--beginning of the error 
dump---
In file included from 
/home/bios_dev//4.8.1/edk2/Build/CorebootPayloadPkgX64/RELEASE_CBSDK/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib/DEBUG/AutoGen.h:18:0,
 from :0:
/home/bios_dev//4.8.1/edk2/MdePkg/Include/Library/PcdLib.h:103:45: error: 
‘_PCD_VALUE_PcdCpuKnownGoodStackSize’ undeclared here (not in a function); did 
you mean ‘_PCD_SIZE_PcdCpuKnownGoodStackSize’?
#define FixedPcdGet32(TokenName)_PCD_VALUE_##TokenName
 ^
/home/bios_dev//4.8.1/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.h:58:3:
 note: in expansion of macro ‘FixedPcdGet32’
   FixedPcdGet32 (PcdCpuKnownGoodStackSize)
   ^
/home/bios_dev//4.8.1/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c:30:39:
 note: in expansion of macro ‘CPU_KNOWN_GOOD_STACK_SIZE’
   CPU_KNOWN_GOOD_STACK_SIZE];
   ^
/home/bios_dev//4.8.1/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c:
 In function ‘InitializeCpuExceptionHandlersEx’:
/home/bios_dev//4.8.1/edk2/MdePkg/Include/Library/PcdLib.h:148:54: error: 
‘_PCD_VALUE_PcdCpuStackSwitchExceptionList’ undeclared (first use in this 
function); did you mean ‘_PCD_SIZE_PcdCpuStackSwitchExceptionList’?
#define FixedPcdGetPtr(TokenName)   ((VOID *)_PCD_VALUE_##TokenName)
  ^
/home/bios_dev//4.8.1/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.h:55:3:
 note: in expansion of macro ‘FixedPcdGetPtr’
   FixedPcdGetPtr (PcdCpuStackSwitchExceptionList)
   ^~
/home/bios_dev//4.8.1/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c:275:45:
 note: in expansion of macro ‘CPU_STACK_SWITCH_EXCEPTION_LIST’
 EssData.X64.StackSwitchExceptions = CPU_STACK_SWITCH_EXCEPTION_LIST;
 ^~~
/home/bios_dev//4.8.1/edk2/MdePkg/Include/Library/PcdLib.h:148:54: note: 
each undeclared identifier is reported only once for each function it appears in
#define FixedPcdGetPtr(TokenName)   ((VOID *)_PCD_VALUE_##TokenName)
  ^
/home/bios_dev//4.8.1/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/CpuExceptionCommon.h:55:3:
 note: in expansion of macro ‘FixedPcdGetPtr’
   FixedPcdGetPtr (PcdCpuStackSwitchExceptionList)
   ^~
/home/bios_dev//4.8.1/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeException.c:275:45:
 note: in expansion of macro ‘CPU_STACK_SWITCH_EXCEPTION_LIST’
 EssData.X64.StackSwitchExceptions = CPU_STACK_SWITCH_EXCEPTION_LIST;
 ^~~
make: *** [GNUmakefile:410: 
/home/bios_dev//4.8.1/edk2/Build/CorebootPayloadPkgX64/RELEASE_CBSDK/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib/OUTPUT/DxeException.obj]
 Error 1

build.py...
: error 7000: Failed to execute command
make tbuild 
[/home/bios_dev//4.8.1/edk2/Build/CorebootPayloadPkgX64/RELEASE_CBSDK/X64/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib]

build.py...
: error F002: Failed to build module
/home/bios_dev//4.8.1/edk2/UefiCpuPkg/Library/CpuExceptionHandlerLib/DxeCpuExceptionHandlerLib.inf
 [X64, CBSDK, RELEASE]
-End
Thank you in advance,
Jose Trujillo.
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


Re: [edk2] CorebootPayloadPkg: How to make boot/ACPI settings persistent?

2018-07-18 Thread Jose Trujillo
Thank you Philipp

I will follow your advise and check this information.


‐‐‐ Original Message ‐‐‐

On July 18, 2018 4:29 PM, Philipp Deppenwiese  wrote:

> Hey Jose,
> 
> There is a commit in the coreboot gerrit:
> 
> https://review.coreboot.org/#/c/coreboot/+/25182/
> 
> Introducing SMM vars for UEFI firmware. Not sure how far it got.
> 
> Try to ping patrickg on freenode #coreboot channel
> 
> BR, Philipp
> 
> On 18.07.2018 13:21, Jose Trujillo wrote:
> 
> > Dear EDK2 developers:
> > 
> > I am running coreboot in a Intel Baytrail I E3845 board.
> > 
> > I already built and integrated Tianocore as a payload of coreboot and is 
> > running great.
> > 
> > But I still would like to know how to save the boot settings and ACPI 
> > parameters into non volatile memory.
> > 
> > Actually if I want to boot from a multiboot HDD I need to manually with the 
> > option "boot from file"
> > 
> > and boots fine the latest Fedora/Ubuntu and W7/W10.
> > 
> > But I have S3, S4 (ACPI) issues when using Tianocore.
> > 
> > And I would like to get some advise from you in how to save Tianocore data 
> > into NVS.
> > 
> > Thank you in advance.
> > 
> > Jose Trujillo.
> > 
> > edk2-devel mailing list
> > 
> > edk2-devel@lists.01.org
> > 
> > https://lists.01.org/mailman/listinfo/edk2-devel


___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel


[edk2] CorebootPayloadPkg: How to make boot/ACPI settings persistent?

2018-07-18 Thread Jose Trujillo
Dear EDK2 developers:

I am running coreboot in a Intel Baytrail I E3845 board.
I already built and integrated Tianocore as a payload of coreboot and is 
running great.

But I still would like to know how to save the boot settings and ACPI 
parameters into non volatile memory.

Actually if I want to boot from a multiboot HDD I need to manually with the 
option "boot from file"
and boots fine the latest Fedora/Ubuntu and W7/W10.

But I have S3, S4 (ACPI) issues when using Tianocore.

And I would like to get some advise from you in how to save Tianocore data into 
NVS.

Thank you in advance.
Jose Trujillo.
___
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel