Re: [edk2-devel] edk2 MdeModulePkg build error
Thanks, How to install vfr compiler in ubuntu? *Thanks & RegardsRitul Guru+91-9916513186* On Thu, Mar 30, 2023 at 6:42 PM Nickle Wang wrote: > You probably need to update VFR compiler. REST_STYLE token was introduced > in below commit long time ago. > > > > > https://github.com/tianocore/edk2/commit/1b840718f72711d442ecd7b7e54256a31df8bd20 > > > > Regards, > > Nickle > > > > *From:* devel@edk2.groups.io * On Behalf Of *ritul > guru via groups.io > *Sent:* Thursday, March 30, 2023 4:40 AM > *To:* edk2-devel-groups-io > *Subject:* [edk2-devel] edk2 MdeModulePkg build error > > > > *External email: Use caution opening links or attachments* > > > > Hi, > > getting below error while building MdeModulePkg, help is appreciated. > > > > build cmd: > > build -p "MdeModulePkg/MdeModulePkg.dsc" -b DEBUG -t GCC5 > > > > > > MdeModulePkg/Include > -I/home/a/src/opensource/edk2/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/include > /home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/Disk/CdExpressPei/CdExpressPei/DEBUG/AutoGen.c > VfrCompile... > /home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/Vfr.i(164): > WARNING: default > : default value re-defined with different value > > VfrCompile... > /home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/Vfr.i(238): > ERROR 12288: REST_STYLE > : unexpected token > > VfrCompile... > /home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/Vfr.i(246): > ERROR 12288: REST_STYLE > : unexpected token > > VfrCompile: ERROR 0003: Error parsing > compile error in file > /home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/Vfr.i > make: *** [GNUmakefile:461: > /home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/DEBUG/Vfr.c] > Error 2 > > > build.py... > : error 7000: Failed to execute command > make tbuild > [/home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe] > > > > > > *Thanks & Regards Ritul Guru +91-9916513186* > > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#102203): https://edk2.groups.io/g/devel/message/102203 Mute This Topic: https://groups.io/mt/97949968/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] edk2 MdeModulePkg build error
Hi, getting below error while building MdeModulePkg, help is appreciated. build cmd: build -p "MdeModulePkg/MdeModulePkg.dsc" -b DEBUG -t GCC5 MdeModulePkg/Include -I/home/a/src/opensource/edk2/MdeModulePkg/Library/BrotliCustomDecompressLib/brotli/c/include /home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/Disk/CdExpressPei/CdExpressPei/DEBUG/AutoGen.c VfrCompile... /home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/Vfr.i(164): WARNING: default : default value re-defined with different value VfrCompile... /home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/Vfr.i(238): ERROR 12288: REST_STYLE : unexpected token VfrCompile... /home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/Vfr.i(246): ERROR 12288: REST_STYLE : unexpected token VfrCompile: ERROR 0003: Error parsing compile error in file /home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/OUTPUT/Vfr.i make: *** [GNUmakefile:461: /home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe/DEBUG/Vfr.c] Error 2 build.py... : error 7000: Failed to execute command make tbuild [/home/a/src/opensource/edk2/Build/MdeModule/DEBUG_GCC5/IA32/MdeModulePkg/Universal/DriverSampleDxe/DriverSampleDxe] *Thanks & RegardsRitul Guru+91-9916513186* -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#102177): https://edk2.groups.io/g/devel/message/102177 Mute This Topic: https://groups.io/mt/97949968/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] regarding Android bootloader uefi pkg
Hi, I am looking for uefi android boot pkg, though do not find it in edk2 source code, any idea from where it can be cloned? *Thanks & RegardsRitul Guru+91-9916513186* -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#100447): https://edk2.groups.io/g/devel/message/100447 Mute This Topic: https://groups.io/mt/97171816/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] how to enable postcode when edk2 payload is executing
Hi, I Want to print the edk2 payload postcode in logs, how can that be enabled? *Thanks & RegardsRitul Guru+91-9916513186* -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#100117): https://edk2.groups.io/g/devel/message/100117 Mute This Topic: https://groups.io/mt/96939494/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] regarding uefipayload build warning for pcd
Any idea, what is the cause of below error? any workaround can be tried for this? Loading driver 378D7B65-8DA9-4773-B6E4-A47826A833E1 InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 51A3E1C0 Loading driver at 0x00051DD1000 EntryPoint=0x00051DD5670 PcRtc.efi InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 51A3ED98 ProtectUefiImageCommon - 0x51A3E1C0 - 0x51DD1000 - 0x8000 SetUefiImageMemoryAttributes - 0x51DD1000 - 0x1000 (0x4008) SetUefiImageMemoryAttributes - 0x51DD2000 - 0x6000 (0x00020008) SetUefiImageMemoryAttributes - 0x51DD8000 - 0x1000 (0x4008) PROGRESS CODE: V03040002 I0 ASSERT_EFI_ERROR (Status = Device Error) *ASSERT [PcRtc] /home//src/p/coreboot/payloads/external/edk2/workspace/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c(1)* *Thanks & RegardsRitul Guru+91-9916513186* On Wed, Feb 8, 2023 at 8:43 AM ritul guru wrote: > Any idea why the below error comes? > > Loading driver 378D7B65-8DA9-4773-B6E4-A47826A833E1 > InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 51A3E1C0 > Loading driver at 0x00051DD1000 EntryPoint=0x00051DD5670 PcRtc.efi > InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 51A3ED98 > ProtectUefiImageCommon - 0x51A3E1C0 > - 0x51DD1000 - 0x8000 > SetUefiImageMemoryAttributes - 0x51DD1000 - 0x1000 > (0x4008) > SetUefiImageMemoryAttributes - 0x51DD2000 - 0x6000 > (0x00020008) > SetUefiImageMemoryAttributes - 0x51DD8000 - 0x1000 > (0x4008) > PROGRESS CODE: V03040002 I0 > > ASSERT_EFI_ERROR (Status = Device Error) > *ASSERT [PcRtc] > /home//src/p/coreboot/payloads/external/edk2/workspace/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c(1)* > > > *anything to do with warning:* > > build time warning: > Active Platform = > /home//src///coreboot/payloads/external/edk2/workspace/tianocore/UefiPayloadPkg/UefiPayloadPkg.dsc > .build: : warning: The PCD was not specified by any INF module in the > platform for the given architecture. > PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister] > Platform: [UefiPayloadPkg.dsc] > Arch: ['IA32'] > build: : warning: The PCD was not specified by any INF module in the > platform for the given architecture. > PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister] > Platform: [UefiPayloadPkg.dsc] > Arch: ['IA32'] > . done! > > > > > > *Thanks & RegardsRitul Guru+91-9916513186* > > > On Wed, Feb 8, 2023 at 3:40 AM Sean Rhodes wrote: > >> L36 is help text that says what you are trying to do, wont work >> >> On Tue, 7 Feb 2023 at 20:51, ritul guru wrote: >> >>> fatal: repository 'payloads/external/edk2/workspace/tianocore' does not >>> exist >>> make[1]: *** [Makefile:123: >>> /home/amd/src/phx2/coreboot_phx2/coreboot/payloads/external/edk2/workspace/edk2] >>> Error 128 >>> make: *** [payloads/external/Makefile.inc:158: build/UEFIPAYLOAD.fd] >>> Error 2 >>> >>> >>> >>> >>> >>> *Thanks & RegardsRitul Guru+91-9916513186* >>> >>> >>> On Wed, Feb 8, 2023 at 2:19 AM ritul guru wrote: >>> >>>> I do not get debug logs from edk2 payload even though debug payload is >>>> selected in menuconfig of coreboot. >>>> and also updated FD_BASE, if not then getting GCD assert while adding >>>> regions in phit table. >>>> >>>> below path should be give at L36 for custom edk2 repo? >>>> payloads/external/edk2/workspace/tianocore/ >>>> >>>> >>>> >>>> *Thanks & RegardsRitul Guru+91-9916513186* >>>> >>>> >>>> On Wed, Feb 8, 2023 at 2:06 AM Sean Rhodes >>>> wrote: >>>> >>>>> Why the edk2 changes? Just to fix this issue? >>>>> >>>>> Have you seen L36 of payloads/external/edk2/Kconfig >>>>> >>>>> On Tue, 7 Feb 2023 at 20:30, ritul guru wrote: >>>>> >>>>>> >>>>>> >>>>>> Loading driver 378D7B65-8DA9-4773-B6E4-A47826A833E1 >>>>>> InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B >>>>>> 51A3E1C0 >>>>>> Loading driver at 0x00051DD1000 EntryPoint=0x00051DD5670 PcRtc.efi >>>>>> InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2
Re: [edk2-devel] regarding uefipayload build warning for pcd
Any idea why the below error comes? Loading driver 378D7B65-8DA9-4773-B6E4-A47826A833E1 InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 51A3E1C0 Loading driver at 0x00051DD1000 EntryPoint=0x00051DD5670 PcRtc.efi InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 51A3ED98 ProtectUefiImageCommon - 0x51A3E1C0 - 0x51DD1000 - 0x8000 SetUefiImageMemoryAttributes - 0x51DD1000 - 0x1000 (0x4008) SetUefiImageMemoryAttributes - 0x51DD2000 - 0x6000 (0x00020008) SetUefiImageMemoryAttributes - 0x51DD8000 - 0x1000 (0x4008) PROGRESS CODE: V03040002 I0 ASSERT_EFI_ERROR (Status = Device Error) *ASSERT [PcRtc] /home//src/p/coreboot/payloads/external/edk2/workspace/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c(1)* *anything to do with warning:* build time warning: Active Platform = /home//src///coreboot/payloads/external/edk2/workspace/tianocore/UefiPayloadPkg/UefiPayloadPkg.dsc .build: : warning: The PCD was not specified by any INF module in the platform for the given architecture. PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister] Platform: [UefiPayloadPkg.dsc] Arch: ['IA32'] build: : warning: The PCD was not specified by any INF module in the platform for the given architecture. PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister] Platform: [UefiPayloadPkg.dsc] Arch: ['IA32'] . done! *Thanks & RegardsRitul Guru+91-9916513186* On Wed, Feb 8, 2023 at 3:40 AM Sean Rhodes wrote: > L36 is help text that says what you are trying to do, wont work > > On Tue, 7 Feb 2023 at 20:51, ritul guru wrote: > >> fatal: repository 'payloads/external/edk2/workspace/tianocore' does not >> exist >> make[1]: *** [Makefile:123: >> /home/amd/src/phx2/coreboot_phx2/coreboot/payloads/external/edk2/workspace/edk2] >> Error 128 >> make: *** [payloads/external/Makefile.inc:158: build/UEFIPAYLOAD.fd] >> Error 2 >> >> >> >> >> >> *Thanks & RegardsRitul Guru+91-9916513186* >> >> >> On Wed, Feb 8, 2023 at 2:19 AM ritul guru wrote: >> >>> I do not get debug logs from edk2 payload even though debug payload is >>> selected in menuconfig of coreboot. >>> and also updated FD_BASE, if not then getting GCD assert while adding >>> regions in phit table. >>> >>> below path should be give at L36 for custom edk2 repo? >>> payloads/external/edk2/workspace/tianocore/ >>> >>> >>> >>> *Thanks & RegardsRitul Guru+91-9916513186* >>> >>> >>> On Wed, Feb 8, 2023 at 2:06 AM Sean Rhodes >>> wrote: >>> >>>> Why the edk2 changes? Just to fix this issue? >>>> >>>> Have you seen L36 of payloads/external/edk2/Kconfig >>>> >>>> On Tue, 7 Feb 2023 at 20:30, ritul guru wrote: >>>> >>>>> >>>>> >>>>> Loading driver 378D7B65-8DA9-4773-B6E4-A47826A833E1 >>>>> InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 51A3E1C0 >>>>> Loading driver at 0x00051DD1000 EntryPoint=0x00051DD5670 PcRtc.efi >>>>> InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 51A3ED98 >>>>> ProtectUefiImageCommon - 0x51A3E1C0 >>>>> - 0x51DD1000 - 0x8000 >>>>> SetUefiImageMemoryAttributes - 0x51DD1000 - 0x1000 >>>>> (0x4008) >>>>> SetUefiImageMemoryAttributes - 0x51DD2000 - 0x6000 >>>>> (0x00020008) >>>>> SetUefiImageMemoryAttributes - 0x51DD8000 - 0x1000 >>>>> (0x4008) >>>>> PROGRESS CODE: V03040002 I0 >>>>> >>>>> ASSERT_EFI_ERROR (Status = Device Error) >>>>> >>>>> *ASSERT [PcRtc] >>>>> /home//src/p/coreboot/payloads/external/edk2/workspace/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c(1)* >>>>> getting above assert after changed to FD_BASE to below value, >>>>> This error is coming while booting to coreboot with edk2 payload: >>>>> >>>>> UefiPayloadPkg/UefiPayloadPkg.fdf >>>>> DEFINE FD_BASE = 0x02182000 >>>>> >>>>> need to change FD_BASE, as it was going outside Available memory. >>>>> any hint would be appreciated. >>>>> >>>>> >>>>> >>>>> >>>>> *Thanks &
Re: [edk2-devel] regarding uefipayload build warning for pcd
fatal: repository 'payloads/external/edk2/workspace/tianocore' does not exist make[1]: *** [Makefile:123: /home/amd/src/phx2/coreboot_phx2/coreboot/payloads/external/edk2/workspace/edk2] Error 128 make: *** [payloads/external/Makefile.inc:158: build/UEFIPAYLOAD.fd] Error 2 *Thanks & RegardsRitul Guru+91-9916513186* On Wed, Feb 8, 2023 at 2:19 AM ritul guru wrote: > I do not get debug logs from edk2 payload even though debug payload is > selected in menuconfig of coreboot. > and also updated FD_BASE, if not then getting GCD assert while adding > regions in phit table. > > below path should be give at L36 for custom edk2 repo? > payloads/external/edk2/workspace/tianocore/ > > > > *Thanks & RegardsRitul Guru+91-9916513186* > > > On Wed, Feb 8, 2023 at 2:06 AM Sean Rhodes wrote: > >> Why the edk2 changes? Just to fix this issue? >> >> Have you seen L36 of payloads/external/edk2/Kconfig >> >> On Tue, 7 Feb 2023 at 20:30, ritul guru wrote: >> >>> >>> >>> Loading driver 378D7B65-8DA9-4773-B6E4-A47826A833E1 >>> InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 51A3E1C0 >>> Loading driver at 0x00051DD1000 EntryPoint=0x00051DD5670 PcRtc.efi >>> InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 51A3ED98 >>> ProtectUefiImageCommon - 0x51A3E1C0 >>> - 0x51DD1000 - 0x8000 >>> SetUefiImageMemoryAttributes - 0x51DD1000 - 0x1000 >>> (0x4008) >>> SetUefiImageMemoryAttributes - 0x51DD2000 - 0x6000 >>> (0x00020008) >>> SetUefiImageMemoryAttributes - 0x51DD8000 - 0x1000 >>> (0x4008) >>> PROGRESS CODE: V03040002 I0 >>> >>> ASSERT_EFI_ERROR (Status = Device Error) >>> >>> *ASSERT [PcRtc] >>> /home//src/p/coreboot/payloads/external/edk2/workspace/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c(1)* >>> getting above assert after changed to FD_BASE to below value, >>> This error is coming while booting to coreboot with edk2 payload: >>> >>> UefiPayloadPkg/UefiPayloadPkg.fdf >>> DEFINE FD_BASE = 0x02182000 >>> >>> need to change FD_BASE, as it was going outside Available memory. >>> any hint would be appreciated. >>> >>> >>> >>> >>> *Thanks & RegardsRitul Guru+91-9916513186* >>> >>> >>> On Tue, Feb 7, 2023 at 10:09 PM ritul guru wrote: >>> >>>> UefiPayloadPkg/UefiPayloadPkg.fdf >>>> DEFINE FD_BASE = 0x0080 >>>> >>>> Is the above address correct in uefipaylaod? >>>> As observing some regions are getting out of limit of FD limit, >>>> >>>> and when setting DEFINE FD_BASE = 0x0220, then seeing assert >>>> in >>>> [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister]. >>>> >>>> >>>> >>>> >>>> >>>> >>>> *Thanks & RegardsRitul Guru+91-9916513186* >>>> >>>> >>>> On Tue, Feb 7, 2023 at 8:29 PM ritul guru wrote: >>>> >>>>> Hi, >>>>> I am building edk2 payload and getting below warning for >>>>> PcdRtcIndexRegister, >>>>> and if try to boot to then observing that there is assert at: >>>>> >>>>> ASSERT_EFI_ERROR (Status = Device Error) >>>>> >>>>> DXE_ASSERT!: >>>>> /home/amd/src///coreboot/payloads/external/tianocore/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c >>>>> (141): !EFI_ERROR (Status) >>>>> >>>>> >>>>> >>>>> >>>>> build time warning: >>>>> Active Platform = >>>>> /home//src///coreboot/payloads/external/edk2/workspace/tianocore/UefiPayloadPkg/UefiPayloadPkg.dsc >>>>> .build: : warning: The PCD was not specified by any INF module in the >>>>> platform for the given architecture. >>>>> PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister] >>>>> Platform: [UefiPayloadPkg.dsc] >>>>> Arch: ['IA32'] >>>>> build: : warning: The PCD was not specified by any INF module in the >>>>> platform for the given architecture. >>>>> PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister] >>>>> Platform: [UefiPayloadPkg.dsc] >>>>> Arch: ['IA32'] >>>>> . done! >>>>> >>>>> >>>>> >>>>> >>>>> *Thanks & RegardsRitul Guru+91-9916513186* >>>>> >>>> >>> >>> -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99777): https://edk2.groups.io/g/devel/message/99777 Mute This Topic: https://groups.io/mt/96810837/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] regarding uefipayload build warning for pcd
I do not get debug logs from edk2 payload even though debug payload is selected in menuconfig of coreboot. and also updated FD_BASE, if not then getting GCD assert while adding regions in phit table. below path should be give at L36 for custom edk2 repo? payloads/external/edk2/workspace/tianocore/ *Thanks & RegardsRitul Guru+91-9916513186* On Wed, Feb 8, 2023 at 2:06 AM Sean Rhodes wrote: > Why the edk2 changes? Just to fix this issue? > > Have you seen L36 of payloads/external/edk2/Kconfig > > On Tue, 7 Feb 2023 at 20:30, ritul guru wrote: > >> >> >> Loading driver 378D7B65-8DA9-4773-B6E4-A47826A833E1 >> InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 51A3E1C0 >> Loading driver at 0x00051DD1000 EntryPoint=0x00051DD5670 PcRtc.efi >> InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 51A3ED98 >> ProtectUefiImageCommon - 0x51A3E1C0 >> - 0x51DD1000 - 0x8000 >> SetUefiImageMemoryAttributes - 0x51DD1000 - 0x1000 >> (0x4008) >> SetUefiImageMemoryAttributes - 0x51DD2000 - 0x6000 >> (0x00020008) >> SetUefiImageMemoryAttributes - 0x51DD8000 - 0x1000 >> (0x4008) >> PROGRESS CODE: V03040002 I0 >> >> ASSERT_EFI_ERROR (Status = Device Error) >> >> *ASSERT [PcRtc] >> /home//src/p/coreboot/payloads/external/edk2/workspace/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c(1)* >> getting above assert after changed to FD_BASE to below value, >> This error is coming while booting to coreboot with edk2 payload: >> >> UefiPayloadPkg/UefiPayloadPkg.fdf >> DEFINE FD_BASE = 0x02182000 >> >> need to change FD_BASE, as it was going outside Available memory. >> any hint would be appreciated. >> >> >> >> >> *Thanks & RegardsRitul Guru+91-9916513186* >> >> >> On Tue, Feb 7, 2023 at 10:09 PM ritul guru wrote: >> >>> UefiPayloadPkg/UefiPayloadPkg.fdf >>> DEFINE FD_BASE = 0x0080 >>> >>> Is the above address correct in uefipaylaod? >>> As observing some regions are getting out of limit of FD limit, >>> >>> and when setting DEFINE FD_BASE = 0x0220, then seeing assert >>> in >>> [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister]. >>> >>> >>> >>> >>> >>> >>> *Thanks & RegardsRitul Guru+91-9916513186* >>> >>> >>> On Tue, Feb 7, 2023 at 8:29 PM ritul guru wrote: >>> >>>> Hi, >>>> I am building edk2 payload and getting below warning for >>>> PcdRtcIndexRegister, >>>> and if try to boot to then observing that there is assert at: >>>> >>>> ASSERT_EFI_ERROR (Status = Device Error) >>>> >>>> DXE_ASSERT!: >>>> /home/amd/src///coreboot/payloads/external/tianocore/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c >>>> (141): !EFI_ERROR (Status) >>>> >>>> >>>> >>>> >>>> build time warning: >>>> Active Platform = >>>> /home//src///coreboot/payloads/external/edk2/workspace/tianocore/UefiPayloadPkg/UefiPayloadPkg.dsc >>>> .build: : warning: The PCD was not specified by any INF module in the >>>> platform for the given architecture. >>>> PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister] >>>> Platform: [UefiPayloadPkg.dsc] >>>> Arch: ['IA32'] >>>> build: : warning: The PCD was not specified by any INF module in the >>>> platform for the given architecture. >>>> PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister] >>>> Platform: [UefiPayloadPkg.dsc] >>>> Arch: ['IA32'] >>>> . done! >>>> >>>> >>>> >>>> >>>> *Thanks & RegardsRitul Guru+91-9916513186* >>>> >>> >> >> -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99776): https://edk2.groups.io/g/devel/message/99776 Mute This Topic: https://groups.io/mt/96810837/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] regarding uefipayload build warning for pcd
building it inside coreboot only. *Thanks & RegardsRitul Guru+91-9916513186* On Wed, Feb 8, 2023 at 12:00 AM Sean Rhodes wrote: > Hi Ritul > > It might be easier to build it inside coreboot; that'll use coreboots tool > chain and Kconfig so everything will just work. > > I.e. CONFIG_PAYLOAD_EDK2=y > > Sean > > On Tue, 7 Feb 2023, 18:24 ritul guru, wrote: > >> UefiPayloadPkg/UefiPayloadPkg.fdf >> DEFINE FD_BASE = 0x0080 >> >> Is the above address correct in uefipaylaod? >> As observing some regions are getting out of limit of FD limit, >> >> and when setting DEFINE FD_BASE = 0x0220, then seeing assert in >> [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister]. >> >> >> >> >> >> >> *Thanks & RegardsRitul Guru+91-9916513186* >> >> >> On Tue, Feb 7, 2023 at 8:29 PM ritul guru wrote: >> >>> Hi, >>> I am building edk2 payload and getting below warning for >>> PcdRtcIndexRegister, >>> and if try to boot to then observing that there is assert at: >>> >>> ASSERT_EFI_ERROR (Status = Device Error) >>> >>> DXE_ASSERT!: >>> /home/amd/src///coreboot/payloads/external/tianocore/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c >>> (141): !EFI_ERROR (Status) >>> >>> >>> >>> >>> build time warning: >>> Active Platform = >>> /home//src///coreboot/payloads/external/edk2/workspace/tianocore/UefiPayloadPkg/UefiPayloadPkg.dsc >>> .build: : warning: The PCD was not specified by any INF module in the >>> platform for the given architecture. >>> PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister] >>> Platform: [UefiPayloadPkg.dsc] >>> Arch: ['IA32'] >>> build: : warning: The PCD was not specified by any INF module in the >>> platform for the given architecture. >>> PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister] >>> Platform: [UefiPayloadPkg.dsc] >>> Arch: ['IA32'] >>> . done! >>> >>> >>> >>> >>> *Thanks & RegardsRitul Guru+91-9916513186* >>> >> >> >> -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99768): https://edk2.groups.io/g/devel/message/99768 Mute This Topic: https://groups.io/mt/96810837/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] regarding uefipayload build warning for pcd
CONFIG_PAYLOAD_EDK2=y # CONFIG_PAYLOAD_LINUX is not set CONFIG_PAYLOAD_FILE="build/UEFIPAYLOAD.fd" CONFIG_PAYLOAD_OPTIONS="" CONFIG_EDK2_UEFIPAYLOAD=y # CONFIG_EDK2_REPO_MRCHROMEBOX is not set CONFIG_EDK2_REPO_OFFICIAL=y # CONFIG_EDK2_REPO_CUSTOM is not set CONFIG_EDK2_REPOSITORY="https://github.com/tianocore/edk2"; CONFIG_EDK2_TAG_OR_REV="origin/master" CONFIG_EDK2_DEBUG=y # CONFIG_EDK2_RELEASE is not set CONFIG_EDK2_VERBOSE_BUILD=y # CONFIG_EDK2_ABOVE_4G_MEMORY is not set CONFIG_EDK2_BOOT_MANAGER_ESCAPE=y *Thanks & RegardsRitul Guru+91-9916513186* On Wed, Feb 8, 2023 at 12:31 AM ritul guru wrote: > building it inside coreboot only. > > > > *Thanks & RegardsRitul Guru+91-9916513186* > > > On Wed, Feb 8, 2023 at 12:00 AM Sean Rhodes wrote: > >> Hi Ritul >> >> It might be easier to build it inside coreboot; that'll use coreboots >> tool chain and Kconfig so everything will just work. >> >> I.e. CONFIG_PAYLOAD_EDK2=y >> >> Sean >> >> On Tue, 7 Feb 2023, 18:24 ritul guru, wrote: >> >>> UefiPayloadPkg/UefiPayloadPkg.fdf >>> DEFINE FD_BASE = 0x0080 >>> >>> Is the above address correct in uefipaylaod? >>> As observing some regions are getting out of limit of FD limit, >>> >>> and when setting DEFINE FD_BASE = 0x0220, then seeing assert >>> in >>> [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister]. >>> >>> >>> >>> >>> >>> >>> *Thanks & RegardsRitul Guru+91-9916513186* >>> >>> >>> On Tue, Feb 7, 2023 at 8:29 PM ritul guru wrote: >>> >>>> Hi, >>>> I am building edk2 payload and getting below warning for >>>> PcdRtcIndexRegister, >>>> and if try to boot to then observing that there is assert at: >>>> >>>> ASSERT_EFI_ERROR (Status = Device Error) >>>> >>>> DXE_ASSERT!: >>>> /home/amd/src///coreboot/payloads/external/tianocore/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c >>>> (141): !EFI_ERROR (Status) >>>> >>>> >>>> >>>> >>>> build time warning: >>>> Active Platform = >>>> /home//src///coreboot/payloads/external/edk2/workspace/tianocore/UefiPayloadPkg/UefiPayloadPkg.dsc >>>> .build: : warning: The PCD was not specified by any INF module in the >>>> platform for the given architecture. >>>> PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister] >>>> Platform: [UefiPayloadPkg.dsc] >>>> Arch: ['IA32'] >>>> build: : warning: The PCD was not specified by any INF module in the >>>> platform for the given architecture. >>>> PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister] >>>> Platform: [UefiPayloadPkg.dsc] >>>> Arch: ['IA32'] >>>> . done! >>>> >>>> >>>> >>>> >>>> *Thanks & RegardsRitul Guru+91-9916513186* >>>> >>> >>> >>> -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99769): https://edk2.groups.io/g/devel/message/99769 Mute This Topic: https://groups.io/mt/96810837/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] regarding uefipayload build warning for pcd
Loading driver 378D7B65-8DA9-4773-B6E4-A47826A833E1 InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 51A3E1C0 Loading driver at 0x00051DD1000 EntryPoint=0x00051DD5670 PcRtc.efi InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 51A3ED98 ProtectUefiImageCommon - 0x51A3E1C0 - 0x51DD1000 - 0x8000 SetUefiImageMemoryAttributes - 0x51DD1000 - 0x1000 (0x4008) SetUefiImageMemoryAttributes - 0x51DD2000 - 0x6000 (0x00020008) SetUefiImageMemoryAttributes - 0x51DD8000 - 0x1000 (0x4008) PROGRESS CODE: V03040002 I0 ASSERT_EFI_ERROR (Status = Device Error) *ASSERT [PcRtc] /home//src/p/coreboot/payloads/external/edk2/workspace/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c(1)* getting above assert after changed to FD_BASE to below value, This error is coming while booting to coreboot with edk2 payload: UefiPayloadPkg/UefiPayloadPkg.fdf DEFINE FD_BASE = 0x02182000 need to change FD_BASE, as it was going outside Available memory. any hint would be appreciated. *Thanks & RegardsRitul Guru+91-9916513186* On Tue, Feb 7, 2023 at 10:09 PM ritul guru wrote: > UefiPayloadPkg/UefiPayloadPkg.fdf > DEFINE FD_BASE = 0x0080 > > Is the above address correct in uefipaylaod? > As observing some regions are getting out of limit of FD limit, > > and when setting DEFINE FD_BASE = 0x0220, then seeing assert in > [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister]. > > > > > > > *Thanks & RegardsRitul Guru+91-9916513186* > > > On Tue, Feb 7, 2023 at 8:29 PM ritul guru wrote: > >> Hi, >> I am building edk2 payload and getting below warning for >> PcdRtcIndexRegister, >> and if try to boot to then observing that there is assert at: >> >> ASSERT_EFI_ERROR (Status = Device Error) >> >> DXE_ASSERT!: >> /home/amd/src///coreboot/payloads/external/tianocore/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c >> (141): !EFI_ERROR (Status) >> >> >> >> >> build time warning: >> Active Platform = >> /home//src///coreboot/payloads/external/edk2/workspace/tianocore/UefiPayloadPkg/UefiPayloadPkg.dsc >> .build: : warning: The PCD was not specified by any INF module in the >> platform for the given architecture. >> PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister] >> Platform: [UefiPayloadPkg.dsc] >> Arch: ['IA32'] >> build: : warning: The PCD was not specified by any INF module in the >> platform for the given architecture. >> PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister] >> Platform: [UefiPayloadPkg.dsc] >> Arch: ['IA32'] >> . done! >> >> >> >> >> *Thanks & RegardsRitul Guru+91-9916513186* >> > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99767): https://edk2.groups.io/g/devel/message/99767 Mute This Topic: https://groups.io/mt/96810837/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] regarding uefipayload build warning for pcd
UefiPayloadPkg/UefiPayloadPkg.fdf DEFINE FD_BASE = 0x0080 Is the above address correct in uefipaylaod? As observing some regions are getting out of limit of FD limit, and when setting DEFINE FD_BASE = 0x0220, then seeing assert in [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister]. *Thanks & RegardsRitul Guru+91-9916513186* On Tue, Feb 7, 2023 at 8:29 PM ritul guru wrote: > Hi, > I am building edk2 payload and getting below warning for > PcdRtcIndexRegister, > and if try to boot to then observing that there is assert at: > > ASSERT_EFI_ERROR (Status = Device Error) > > DXE_ASSERT!: > /home/amd/src///coreboot/payloads/external/tianocore/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c > (141): !EFI_ERROR (Status) > > > > > build time warning: > Active Platform = > /home//src///coreboot/payloads/external/edk2/workspace/tianocore/UefiPayloadPkg/UefiPayloadPkg.dsc > .build: : warning: The PCD was not specified by any INF module in the > platform for the given architecture. > PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister] > Platform: [UefiPayloadPkg.dsc] > Arch: ['IA32'] > build: : warning: The PCD was not specified by any INF module in the > platform for the given architecture. > PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister] > Platform: [UefiPayloadPkg.dsc] > Arch: ['IA32'] > . done! > > > > > *Thanks & RegardsRitul Guru+91-9916513186* > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99759): https://edk2.groups.io/g/devel/message/99759 Mute This Topic: https://groups.io/mt/96810837/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] regarding uefipayload build warning for pcd
Hi, I am building edk2 payload and getting below warning for PcdRtcIndexRegister, and if try to boot to then observing that there is assert at: ASSERT_EFI_ERROR (Status = Device Error) DXE_ASSERT!: /home/amd/src///coreboot/payloads/external/tianocore/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c (141): !EFI_ERROR (Status) build time warning: Active Platform = /home//src///coreboot/payloads/external/edk2/workspace/tianocore/UefiPayloadPkg/UefiPayloadPkg.dsc .build: : warning: The PCD was not specified by any INF module in the platform for the given architecture. PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister] Platform: [UefiPayloadPkg.dsc] Arch: ['IA32'] build: : warning: The PCD was not specified by any INF module in the platform for the given architecture. PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister] Platform: [UefiPayloadPkg.dsc] Arch: ['IA32'] . done! *Thanks & RegardsRitul Guru+91-9916513186* -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99753): https://edk2.groups.io/g/devel/message/99753 Mute This Topic: https://groups.io/mt/96810837/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] regarding calling UEFI runtime services (mainly SetVariable) from linux or android OS which is running on xen+tianocore UEFI
ohh, it should retains value on VM reboot. // // Allocate storage for NV variables early on so it will be // at a consistent address. Since VM memory is preserved // across reboots, this allows the NV variable storage to survive // a VM reboot. // *Thanks & RegardsRitul Guru+91-9916513186* On Mon, Feb 6, 2023 at 11:55 PM ritul guru wrote: > Thanks, > so as it is memory, does it mean if anything written in variable store, > and VM reboot happens then variable store will be flushed? > > > > *Thanks & RegardsRitul Guru+91-9916513186* > > > On Mon, Feb 6, 2023 at 11:47 PM Andrew (EFI) Fish wrote: > >> >> >> On Feb 6, 2023, at 8:06 AM, ritul guru wrote: >> >> Hi, >> >> I have been using xen hypervisor and tianocore uefi BIOS on xen to boot >> to ubuntu OS on virtualized disk. >> and want to set a UEFI variable with UEFI runtime service SetVariable() >> to a value and the same wants to read from UEFI bootloader either >> grubx64.efi or botmgfw.efi, >> So, Is it possible to use runtime services to do such an operation for OS >> running on VM when booted with OVMF/tianocore BIOS on VM guest? >> If so, where does this variable gets stored? is it in some virtualized >> disk as there is no virtualized SPIROM available to VM. >> >> >> >> I don’t know the Xen specifics, but the firmware maps in a Flash Device >> (FD) here: >> >> [image: edk2.png] >> >> edk2/OvmfXen.fdf at master · tianocore/edk2 >> <https://github.com/tianocore/edk2/blob/master/OvmfPkg/OvmfXen.fdf> >> github.com >> <https://github.com/tianocore/edk2/blob/master/OvmfPkg/OvmfXen.fdf> >> <https://github.com/tianocore/edk2/blob/master/OvmfPkg/OvmfXen.fdf> >> >> Oh looks like it uses an emulated variable store that is just memory. See >> ReserveEmuVariableNvStore(). >> >> [image: edk2.png] >> >> edk2/Platform.c at master · tianocore/edk2 >> <https://github.com/tianocore/edk2/blob/master/OvmfPkg/XenPlatformPei/Platform.c#L365> >> github.com >> <https://github.com/tianocore/edk2/blob/master/OvmfPkg/XenPlatformPei/Platform.c#L365> >> >> <https://github.com/tianocore/edk2/blob/master/OvmfPkg/XenPlatformPei/Platform.c#L365> >> >> Thanks, >> >> Andrew Fish >> >> >> https://wiki.osdev.org/Using_UEFI_Runtime_Services_in_your_Kernel >> >> >> >> *Thanks & RegardsRitul Guru+91-9916513186* >> >> >> >> -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99696): https://edk2.groups.io/g/devel/message/99696 Mute This Topic: https://groups.io/mt/96789290/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] regarding build uefipayload in debug mode in linux
is it right? llvm path also need to set? *Thanks & RegardsRitul Guru+91-9916513186* On Mon, Feb 6, 2023 at 10:21 PM ritul guru wrote: > PATH=$PATH:/usr/bin/clang > > yes, set it as above. > > > > *Thanks & RegardsRitul Guru+91-9916513186* > > > On Mon, Feb 6, 2023 at 8:43 PM Guo, Gua wrote: > >> Do you set clang bin path ? >> >> >> >> *From:* ritul guru >> *Sent:* Monday, February 6, 2023 11:12 PM >> *To:* Guo, Gua >> *Cc:* devel@edk2.groups.io; Mike Maslenkin >> *Subject:* Re: [edk2-devel] regarding build uefipayload in debug mode in >> linux >> >> >> >> getting below error: >> >> >> >> build -p UefiPayloadPkg/UefiPayloadPkg.dsc -b DEBUG -a IA32 -a X64 -m >> UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf -t CLANGDWARF -y >> /home/a/src/opensource/edk2/Build/UefiPayloadPkgX64/UefiUniversalPayloadEntry.txt >> -D UNIVERSAL_PAYLOAD=TRUE -D CPU_TIMER_LIB_ENABLE=FALSE >> Build environment: >> Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29 >> Build start time: 20:37:47, Feb.06 2023 >> >> WORKSPACE= /home/a/src/opensource/edk2 >> EDK_TOOLS_PATH = /home/a/src/opensource/edk2/BaseTools >> CONF_PATH= /home/a/src/opensource/edk2/Conf >> PYTHON_COMMAND = /usr/bin/python3.8 >> >> >> Processing meta-data . >> Architecture(s) = IA32 X64 >> Build target = DEBUG >> Toolchain= CLANGDWARF >> >> Active Platform = >> /home/a/src/opensource/edk2/UefiPayloadPkg/UefiPayloadPkg.dsc >> Active Module= >> /home/a/src/opensource/edk2/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf >> .build: : warning: The PCD was not specified by any INF module in the >> platform for the given architecture. >> PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister] >> Platform: [UefiPayloadPkg.dsc] >> Arch: ['IA32'] >> build: : warning: The PCD was not specified by any INF module in the >> platform for the given architecture. >> PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister] >> Platform: [UefiPayloadPkg.dsc] >> Arch: ['IA32'] >> done! >> Generating code . done! >> Generating makefile . done! >> Building ... >> /home/a/src/opensource/edk2/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf >> [IA32] >> "clang" -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall >> -Werror -Wno-array-bounds -include AutoGen.h -fno-common >> -ffunction-sections -fdata-sections >> -DSTRING_ARRAY_NAME=BaseUefiCpuLibStrings -Wno-parentheses-equality >> -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare >> -Wno-empty-body -Wno-unused-const-variable -Wno-varargs >> -Wno-unknown-warning-option -Wno-unused-but-set-variable >> -Wno-unused-const-variable -Wno-unaligned-access -fno-stack-protector >> -mms-bitfields -Wno-address -Wno-shift-negative-value -Wno-unknown-pragmas >> -Wno-incompatible-library-redeclaration -fno-asynchronous-unwind-tables >> -mno-sse -mno-mmx -msoft-float -mno-implicit-float >> -ftrap-function=undefined_behavior_has_been_optimized_away_by_clang >> -funsigned-char -fno-ms-extensions -Wno-null-dereference -m32 -Oz -flto >> -march=i586 -target i686-pc-linux-gnu -g -malign-double -D >> DISABLE_NEW_DEPRECATED_INTERFACES -c -o >> /home/a/src/opensource/edk2/Build/UefiPayloadPkgX64/DEBUG_CLANGDWARF/IA32/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib/OUTPUT/./BaseUefiCpuLib.obj >> -I/home/a/src/opensource/edk2/UefiCpuPkg/Library/BaseUefiCpuLib/Ia32 >> -I/home/a/src/opensource/edk2/UefiCpuPkg/Library/BaseUefiCpuLib >> -I/home/a/src/opensource/edk2/Build/UefiPayloadPkgX64/DEBUG_CLANGDWARF/IA32/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib/DEBUG >> -I/home/a/src/opensource/edk2/MdePkg >> -I/home/a/src/opensource/edk2/MdePkg/Include >> -I/home/a/src/opensource/edk2/MdePkg/Test/UnitTest/Include >> -I/home/a/src/opensource/edk2/MdePkg/Include/Ia32 >> -I/home/a/src/opensource/edk2/UefiCpuPkg >> -I/home/a/src/opensource/edk2/UefiCpuPkg/Include >> /home/a/src/opensource/edk2/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.c >> /bin/sh: 1: clang: not found >> make: *** [GNUmakefile:344: >> /home/a/src/opensource/edk2/Build/UefiPayloadPkgX64/DEBUG_CLANGDWARF/IA32/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib/OUTPUT/BaseUefiCpuLib.obj] >> Error 127 >> >> >> build.py... >> : error 7000: Failed to execute command >> make tbuild >> [/home/a/src/opensource/edk2/Build/UefiPayloadPkgX64/DEBUG_CLANGDWARF/IA32/Uefi
[edk2-devel] regarding calling UEFI runtime services (mainly SetVariable) from linux or android OS which is running on xen+tianocore UEFI
Hi, I have been using xen hypervisor and tianocore uefi BIOS on xen to boot to ubuntu OS on virtualized disk. and want to set a UEFI variable with UEFI runtime service SetVariable() to a value and the same wants to read from UEFI bootloader either grubx64.efi or botmgfw.efi, So, Is it possible to use runtime services to do such an operation for OS running on VM when booted with OVMF/tianocore BIOS on VM guest? If so, where does this variable gets stored? is it in some virtualized disk as there is no virtualized SPIROM available to VM. https://wiki.osdev.org/Using_UEFI_Runtime_Services_in_your_Kernel *Thanks & RegardsRitul Guru+91-9916513186* -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99692): https://edk2.groups.io/g/devel/message/99692 Mute This Topic: https://groups.io/mt/96789290/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] regarding build uefipayload in debug mode in linux
PATH=$PATH:/usr/bin/clang yes, set it as above. *Thanks & RegardsRitul Guru+91-9916513186* On Mon, Feb 6, 2023 at 8:43 PM Guo, Gua wrote: > Do you set clang bin path ? > > > > *From:* ritul guru > *Sent:* Monday, February 6, 2023 11:12 PM > *To:* Guo, Gua > *Cc:* devel@edk2.groups.io; Mike Maslenkin > *Subject:* Re: [edk2-devel] regarding build uefipayload in debug mode in > linux > > > > getting below error: > > > > build -p UefiPayloadPkg/UefiPayloadPkg.dsc -b DEBUG -a IA32 -a X64 -m > UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf -t CLANGDWARF -y > /home/a/src/opensource/edk2/Build/UefiPayloadPkgX64/UefiUniversalPayloadEntry.txt > -D UNIVERSAL_PAYLOAD=TRUE -D CPU_TIMER_LIB_ENABLE=FALSE > Build environment: > Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29 > Build start time: 20:37:47, Feb.06 2023 > > WORKSPACE= /home/a/src/opensource/edk2 > EDK_TOOLS_PATH = /home/a/src/opensource/edk2/BaseTools > CONF_PATH= /home/a/src/opensource/edk2/Conf > PYTHON_COMMAND = /usr/bin/python3.8 > > > Processing meta-data . > Architecture(s) = IA32 X64 > Build target = DEBUG > Toolchain= CLANGDWARF > > Active Platform = > /home/a/src/opensource/edk2/UefiPayloadPkg/UefiPayloadPkg.dsc > Active Module= > /home/a/src/opensource/edk2/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf > .build: : warning: The PCD was not specified by any INF module in the > platform for the given architecture. > PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister] > Platform: [UefiPayloadPkg.dsc] > Arch: ['IA32'] > build: : warning: The PCD was not specified by any INF module in the > platform for the given architecture. > PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister] > Platform: [UefiPayloadPkg.dsc] > Arch: ['IA32'] > done! > Generating code . done! > Generating makefile . done! > Building ... > /home/a/src/opensource/edk2/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf > [IA32] > "clang" -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall > -Werror -Wno-array-bounds -include AutoGen.h -fno-common > -ffunction-sections -fdata-sections > -DSTRING_ARRAY_NAME=BaseUefiCpuLibStrings -Wno-parentheses-equality > -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare > -Wno-empty-body -Wno-unused-const-variable -Wno-varargs > -Wno-unknown-warning-option -Wno-unused-but-set-variable > -Wno-unused-const-variable -Wno-unaligned-access -fno-stack-protector > -mms-bitfields -Wno-address -Wno-shift-negative-value -Wno-unknown-pragmas > -Wno-incompatible-library-redeclaration -fno-asynchronous-unwind-tables > -mno-sse -mno-mmx -msoft-float -mno-implicit-float > -ftrap-function=undefined_behavior_has_been_optimized_away_by_clang > -funsigned-char -fno-ms-extensions -Wno-null-dereference -m32 -Oz -flto > -march=i586 -target i686-pc-linux-gnu -g -malign-double -D > DISABLE_NEW_DEPRECATED_INTERFACES -c -o > /home/a/src/opensource/edk2/Build/UefiPayloadPkgX64/DEBUG_CLANGDWARF/IA32/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib/OUTPUT/./BaseUefiCpuLib.obj > -I/home/a/src/opensource/edk2/UefiCpuPkg/Library/BaseUefiCpuLib/Ia32 > -I/home/a/src/opensource/edk2/UefiCpuPkg/Library/BaseUefiCpuLib > -I/home/a/src/opensource/edk2/Build/UefiPayloadPkgX64/DEBUG_CLANGDWARF/IA32/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib/DEBUG > -I/home/a/src/opensource/edk2/MdePkg > -I/home/a/src/opensource/edk2/MdePkg/Include > -I/home/a/src/opensource/edk2/MdePkg/Test/UnitTest/Include > -I/home/a/src/opensource/edk2/MdePkg/Include/Ia32 > -I/home/a/src/opensource/edk2/UefiCpuPkg > -I/home/a/src/opensource/edk2/UefiCpuPkg/Include > /home/a/src/opensource/edk2/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.c > /bin/sh: 1: clang: not found > make: *** [GNUmakefile:344: > /home/a/src/opensource/edk2/Build/UefiPayloadPkgX64/DEBUG_CLANGDWARF/IA32/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib/OUTPUT/BaseUefiCpuLib.obj] > Error 127 > > > build.py... > : error 7000: Failed to execute command > make tbuild > [/home/a/src/opensource/edk2/Build/UefiPayloadPkgX64/DEBUG_CLANGDWARF/IA32/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib] > > > build.py... > : error F002: Failed to build module > /home/a/src/opensource/edk2/UefiCpuPkg/Library/BaseUefiCpuLib/BaseUefiCpuLib.inf > [IA32, CLANGDWARF, DEBUG] > > - Failed - > Build end time: 20:37:54, Feb.06 2023 > Build total time: 00:00:07 > > - Failed - error happened when run command: build -p > UefiPayloadPkg/UefiPayloadPkg.dsc -b DEBUG -a IA32 -a X64 -m > UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf -t CLANGDWARF -y > /home/a/src/ope
Re: [edk2-devel] regarding build uefipayload in debug mode in linux
"clang" -o /home/amd/src/opensource/edk2/Build/UefiPayloadPkgX64/DEBUG_CLANGDWARF/X64/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry/DEBUG/UniversalPayloadEntry.dll -nostdlib -Wl,-q,--gc-sections -z max-page-size=0x40 -Wl,--entry,_ModuleEntryPoint -u _ModuleEntryPoint -Wl,-Map,/home/amd/src/opensource/edk2/Build/UefiPayloadPkgX64/DEBUG_CLANGDWARF/X64/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry/DEBUG/UniversalPayloadEntry.map,--whole-archive -flto -Wl,-O3 -Wl,-melf_x86_64 -Wl,--oformat,elf64-x86-64 -Wl,-pie -mcmodel=small -Wl,--apply-dynamic-relocs -Wl,--start-group,@/home/amd/src/opensource/edk2/Build/UefiPayloadPkgX64/DEBUG_CLANGDWARF/X64/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry/OUTPUT/static_library_files.lst,--end-group -g -Os -fshort-wchar -fno-builtin -fno-strict-aliasing -Wall -Werror -Wno-array-bounds -include AutoGen.h -fno-common -ffunction-sections -fdata-sections -DSTRING_ARRAY_NAME=UniversalPayloadEntryStrings -Wno-parentheses-equality -Wno-tautological-compare -Wno-tautological-constant-out-of-range-compare -Wno-empty-body -Wno-unused-const-variable -Wno-varargs -Wno-unknown-warning-option -Wno-unused-but-set-variable -Wno-unused-const-variable -Wno-unaligned-access -fno-stack-protector -mms-bitfields -Wno-address -Wno-shift-negative-value -Wno-unknown-pragmas -Wno-incompatible-library-redeclaration -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -msoft-float -mno-implicit-float -ftrap-function=undefined_behavior_has_been_optimized_away_by_clang -funsigned-char -fno-ms-extensions -Wno-null-dereference -m64 "-DEFIAPI=__attribute__((ms_abi))" -mno-red-zone -mcmodel=small -fpie -Oz -flto -target x86_64-pc-linux-gnu -g -D DISABLE_NEW_DEPRECATED_INTERFACES -Wl,--defsym=PECOFF_HEADER_SIZE=0x228 -Wl,--script=/home/amd/src/opensource/edk2/BaseTools/Scripts/ClangBase.lds -O3 -fuse-ld=lld clang: error: invalid linker name in argument '-fuse-ld=lld' make: *** [GNUmakefile:368: /home/amd/src/opensource/edk2/Build/UefiPayloadPkgX64/DEBUG_CLANGDWARF/X64/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry/DEBUG/UniversalPayloadEntry.dll] Error 1 build.py... : error 7000: Failed to execute command make tbuild [/home/amd/src/opensource/edk2/Build/UefiPayloadPkgX64/DEBUG_CLANGDWARF/X64/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry] build.py... : error F002: Failed to build module /home/amd/src/opensource/edk2/UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf [X64, CLANGDWARF, DEBUG] - Failed - Build end time: 22:16:30, Feb.06 2023 Build total time: 00:00:21 - Failed - error happened when run command: build -p UefiPayloadPkg/UefiPayloadPkg.dsc -b DEBUG -a X64 -m UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf -t CLANGDWARF -y /home/amd/src/opensource/edk2/Build/UefiPayloadPkgX64/UefiUniversalPayloadEntry.txt -D UNIVERSAL_PAYLOAD=TRUE -D CPU_TIMER_LIB_ENABLE=FALSE Traceback (most recent call last): File "UefiPayloadPkg/UniversalPayloadBuild.py", line 172, in main() File "UefiPayloadPkg/UniversalPayloadBuild.py", line 168, in main BuildUniversalPayload(args, MacroList) File "UefiPayloadPkg/UniversalPayloadBuild.py", line 108, in BuildUniversalPayload RunCommand(BuildModule) File "UefiPayloadPkg/UniversalPayloadBuild.py", line 51, in RunCommand raise Exception("ERROR: when run command: %s"%cmd) Exception: ERROR: when run command: build -p UefiPayloadPkg/UefiPayloadPkg.dsc -b DEBUG -a X64 -m UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf -t CLANGDWARF -y /home/amd/src/opensource/edk2/Build/UefiPayloadPkgX64/UefiUniversalPayloadEntry.txt -D UNIVERSAL_PAYLOAD=TRUE -D CPU_TIMER_LIB_ENABLE=FALSE getting above error. *Thanks & RegardsRitul Guru+91-9916513186* On Mon, Feb 6, 2023 at 11:22 PM ritul guru wrote: > is it right? llvm path also need to set? > > > > *Thanks & RegardsRitul Guru+91-9916513186* > > > On Mon, Feb 6, 2023 at 10:21 PM ritul guru wrote: > >> PATH=$PATH:/usr/bin/clang >> >> yes, set it as above. >> >> >> >> *Thanks & RegardsRitul Guru+91-9916513186* >> >> >> On Mon, Feb 6, 2023 at 8:43 PM Guo, Gua wrote: >> >>> Do you set clang bin path ? >>> >>> >>> >>> *From:* ritul guru >>> *Sent:* Monday, February 6, 2023 11:12 PM >>> *To:* Guo, Gua >>> *Cc:* devel@edk2.groups.io; Mike Maslenkin >>> *Subject:* Re: [edk2-devel] regarding build uefipayload in debug mode >>> in linux >>> >>> >>> >>> getting below error: >>> >>> >>> >>> build -p UefiPayloadPkg/UefiPayloadPkg.dsc -b DEBUG -a IA32 -a X64 -m >>> UefiPayloadPkg/UefiPayloadEntry/UniversalPayloadEntry.inf -t CLANGDWARF -y >>> /home/a/src/opensource/edk2/Build/UefiPayloadPkgX64/UefiUn
Re: [edk2-devel] regarding build uefipayload in debug mode in linux
ERSAL_PAYLOAD=TRUE -D CPU_TIMER_LIB_ENABLE=FALSE *Thanks & RegardsRitul Guru+91-9916513186* On Mon, Feb 6, 2023 at 8:23 PM ritul guru wrote: > thanks, > > ./cbfstool coreboot.rom remove -r COREBOOT -n fallback/payload > > ./cbfstool coreboot.rom add-payload -r COREBOOT -n fallback/payload -f > ShimLayer.elf > > ./cbfstool coreboot.rom remove -r COREBOOT -n img/UniversalPayload > > ./cbfstool coreboot.rom add-flat-binary -r COREBOOT -n > img/UniversalPayload -f UniversalPayload.elf -l 0x20 -e 0x100 -c lzma > > > with above commands, we can inject shim.elf and uefipayload.elf into > coreboot image, and should be able to boot from this payload? > > > > *Thanks & RegardsRitul Guru+91-9916513186* > > > On Mon, Feb 6, 2023 at 7:56 PM Guo, Gua wrote: > >> I think you can run “. edksetup.sh” in your local and WORKSPACE will be >> setup automatically. >> >> >> >> *From:* ritul guru >> *Sent:* Monday, February 6, 2023 10:22 PM >> *To:* Guo, Gua >> *Cc:* devel@edk2.groups.io; Mike Maslenkin >> *Subject:* Re: [edk2-devel] regarding build uefipayload in debug mode in >> linux >> >> >> >> workspace needs to be set to any value? >> >> >> >> 0 $ bash UefiPayloadPkg/UniversalPayloadBuild.sh -t GCC5 -a IA32 -a X64 >> -D CPU_TIMER_LIB_ENABLE=FALSE >> python_exe= >> Traceback (most recent call last): >> File "UefiPayloadPkg/UniversalPayloadBuild.py", line 172, in >> main() >> File "UefiPayloadPkg/UniversalPayloadBuild.py", line 168, in main >> BuildUniversalPayload(args, MacroList) >> File "UefiPayloadPkg/UniversalPayloadBuild.py", line 58, in >> BuildUniversalPayload >> BuildDir = os.path.join(os.environ['WORKSPACE'], >> os.path.normpath("Build/UefiPayloadPkgX64")) >> File "/usr/lib/python3.8/os.py", line 675, in __getitem__ >> raise KeyError(key) from None >> KeyError: 'WORKSPACE' >> >> >> >> >> >> >> >> *Thanks & Regards Ritul Guru +91-9916513186* >> >> >> >> >> >> On Mon, Feb 6, 2023 at 5:17 PM Guo, Gua wrote: >> >> UniversalPayload.sh have Clang tool chain dependency. >> >> >> >> I assume your machine is ubuntu-20.10, please download it. And set use >> export PATH=$PATH: to prevent the issue. >> >> >> >> >> https://github.com/llvm/llvm-project/releases/download/llvmorg-11.1.0/clang+llvm-11.1.0-x86_64-linux-gnu-ubuntu-20.10.tar.xz >> >> >> >> Thanks, >> >> Gua >> >> >> >> *From:* ritul guru >> *Sent:* Monday, February 6, 2023 7:37 PM >> *To:* Guo, Gua >> *Cc:* devel@edk2.groups.io; Mike Maslenkin >> *Subject:* Re: [edk2-devel] regarding build uefipayload in debug mode in >> linux >> >> >> >> Thanks, >> >> >> >> 17:05 $ ./UefiPayloadPkg/UniversalPayloadBuild.sh -t GCC5 -a IA32 -a X64 >> -D CPU_TIMER_LIB_ENABLE=FALSE >> python_exe=/usr/bin/python3.8 >> "llvm-objcopy" --version >> /bin/sh: 1: llvm-objcopy: not found >> - Failed - error happened when run command: "llvm-objcopy" --version >> - Failed - Please check if LLVM is installed or if CLANG_BIN is set >> correctly >> ✘-1 ~/src/opensource/edk2 [master ↓·22|✚ 1] >> >> >> >> >> >> I am seeing above errors, is clang required for UniversalPayloadBuild.sh >> compilation? >> >> >> >> >> >> >> >> >> >> *Thanks & Regards Ritul Guru +91-9916513186* >> >> >> >> >> >> On Mon, Feb 6, 2023 at 6:23 AM Guo, Gua wrote: >> >> I just quickly check your command, look like it incorrect UefiPayload >> >> >> >> For Uefi Payload >> >>- build -p "UefiPayloadPkg/UefiPayloadPkg.dsc" -b DEBUG -t GCC5 -a >>IA32 -a X64 -D BOOTLOADER=COREBOOT >> >> >> >> For Uefi Universal Payload >> >>- *Coreboot * >> >> git clone https://github.com/StarLabsLtd/coreboot.git Coreboot >> >> cd Coreboot >> >> git submodule update --init >> >> make iasl >> >> make crossgcc >> >> make defconfig KBUILD_DEFCONFIG=config.starlabs_qemu >> >> make >> >> >> >>- *Edk2* >> >> git clone https://github.com/tianocore/edk2.git Edk2 >> >> cd Edk2 >> >> git submodule update --init >> >
Re: [edk2-devel] regarding build uefipayload in debug mode in linux
workspace needs to be set to any value? 0 $ bash UefiPayloadPkg/UniversalPayloadBuild.sh -t GCC5 -a IA32 -a X64 -D CPU_TIMER_LIB_ENABLE=FALSE python_exe= Traceback (most recent call last): File "UefiPayloadPkg/UniversalPayloadBuild.py", line 172, in main() File "UefiPayloadPkg/UniversalPayloadBuild.py", line 168, in main BuildUniversalPayload(args, MacroList) File "UefiPayloadPkg/UniversalPayloadBuild.py", line 58, in BuildUniversalPayload BuildDir = os.path.join(os.environ['WORKSPACE'], os.path.normpath("Build/UefiPayloadPkgX64")) File "/usr/lib/python3.8/os.py", line 675, in __getitem__ raise KeyError(key) from None KeyError: 'WORKSPACE' *Thanks & RegardsRitul Guru+91-9916513186* On Mon, Feb 6, 2023 at 5:17 PM Guo, Gua wrote: > UniversalPayload.sh have Clang tool chain dependency. > > > > I assume your machine is ubuntu-20.10, please download it. And set use > export PATH=$PATH: to prevent the issue. > > > > > https://github.com/llvm/llvm-project/releases/download/llvmorg-11.1.0/clang+llvm-11.1.0-x86_64-linux-gnu-ubuntu-20.10.tar.xz > > > > Thanks, > > Gua > > > > *From:* ritul guru > *Sent:* Monday, February 6, 2023 7:37 PM > *To:* Guo, Gua > *Cc:* devel@edk2.groups.io; Mike Maslenkin > *Subject:* Re: [edk2-devel] regarding build uefipayload in debug mode in > linux > > > > Thanks, > > > > 17:05 $ ./UefiPayloadPkg/UniversalPayloadBuild.sh -t GCC5 -a IA32 -a X64 > -D CPU_TIMER_LIB_ENABLE=FALSE > python_exe=/usr/bin/python3.8 > "llvm-objcopy" --version > /bin/sh: 1: llvm-objcopy: not found > - Failed - error happened when run command: "llvm-objcopy" --version > - Failed - Please check if LLVM is installed or if CLANG_BIN is set > correctly > ✘-1 ~/src/opensource/edk2 [master ↓·22|✚ 1] > > > > > > I am seeing above errors, is clang required for UniversalPayloadBuild.sh > compilation? > > > > > > > > > > *Thanks & Regards Ritul Guru +91-9916513186* > > > > > > On Mon, Feb 6, 2023 at 6:23 AM Guo, Gua wrote: > > I just quickly check your command, look like it incorrect UefiPayload > > > > For Uefi Payload > >- build -p "UefiPayloadPkg/UefiPayloadPkg.dsc" -b DEBUG -t GCC5 -a >IA32 -a X64 -D BOOTLOADER=COREBOOT > > > > For Uefi Universal Payload > >- *Coreboot * > > git clone https://github.com/StarLabsLtd/coreboot.git Coreboot > > cd Coreboot > > git submodule update --init > > make iasl > > make crossgcc > > make defconfig KBUILD_DEFCONFIG=config.starlabs_qemu > > make > > > >- *Edk2* > > git clone https://github.com/tianocore/edk2.git Edk2 > > cd Edk2 > > git submodule update --init > > source ./edksetup.sh > > make -C ./BaseTools > > bash UefiPayloadPkg/UniversalPayloadBuild.sh -t GCC5 -a IA32 -D > CPU_TIMER_LIB_ENABLE=FALSE > > > >- *ShimLayer* > > git clone > https://github.com/UniversalScalableFirmware/upl.coreboot.shimlayer > ShimLayer > > cd ShimLayer > > bash CorebootShimBuild.sh > > > >- *Test Procedure* > > >1. Copy "ShimLayer/Build/ShimLayer.elf" and >"Edk2/Build/UefiPayloadPkgX64/UniversalPayload.elf" to “Coreboot/build”. > > 2.cd Coreboot/build > > 3. Do the following commands. > > ./cbfstool coreboot.rom remove -r COREBOOT -n fallback/payload > > ./cbfstool coreboot.rom add-payload -r COREBOOT -n fallback/payload -f > ShimLayer.elf > > ./cbfstool coreboot.rom remove -r COREBOOT -n img/UniversalPayload > > ./cbfstool coreboot.rom add-flat-binary -r COREBOOT -n > img/UniversalPayload -f UniversalPayload.elf -l 0x20 -e 0x100 -c lzma > > qemu-system-x86_64 -bios coreboot.rom -serial stdio -M q35 > > > > Thanks, > > Gua > > *From:* devel@edk2.groups.io *On Behalf Of *ritul > guru > *Sent:* Friday, February 3, 2023 11:08 PM > *To:* Mike Maslenkin > *Cc:* devel@edk2.groups.io > *Subject:* Re: [edk2-devel] regarding build uefipayload in debug mode in > linux > > > > Thanks, > > > > build -p "UefiPayloadPkg/UefiPayloadPkg.dsc" *-b DEBUG* -t GCC5 -a IA32 > -a X64 -D COREBOOT > > > > I used above cmd, added DEBUG option by seeing NO debug messages coming > from uefipayload. > > any idea how to enable debug messages coming from uefipayload built with > above cmd? > > > > > > > > > > > > *Thanks & Regards Ritul Guru +91-9916513186* > > > > > > On Fri, Feb 3, 2023 at 4:46 AM Mike Maslenkin > wrote: >
Re: [edk2-devel] regarding build uefipayload in debug mode in linux
thanks, ./cbfstool coreboot.rom remove -r COREBOOT -n fallback/payload ./cbfstool coreboot.rom add-payload -r COREBOOT -n fallback/payload -f ShimLayer.elf ./cbfstool coreboot.rom remove -r COREBOOT -n img/UniversalPayload ./cbfstool coreboot.rom add-flat-binary -r COREBOOT -n img/UniversalPayload -f UniversalPayload.elf -l 0x20 -e 0x100 -c lzma with above commands, we can inject shim.elf and uefipayload.elf into coreboot image, and should be able to boot from this payload? *Thanks & RegardsRitul Guru+91-9916513186* On Mon, Feb 6, 2023 at 7:56 PM Guo, Gua wrote: > I think you can run “. edksetup.sh” in your local and WORKSPACE will be > setup automatically. > > > > *From:* ritul guru > *Sent:* Monday, February 6, 2023 10:22 PM > *To:* Guo, Gua > *Cc:* devel@edk2.groups.io; Mike Maslenkin > *Subject:* Re: [edk2-devel] regarding build uefipayload in debug mode in > linux > > > > workspace needs to be set to any value? > > > > 0 $ bash UefiPayloadPkg/UniversalPayloadBuild.sh -t GCC5 -a IA32 -a X64 -D > CPU_TIMER_LIB_ENABLE=FALSE > python_exe= > Traceback (most recent call last): > File "UefiPayloadPkg/UniversalPayloadBuild.py", line 172, in > main() > File "UefiPayloadPkg/UniversalPayloadBuild.py", line 168, in main > BuildUniversalPayload(args, MacroList) > File "UefiPayloadPkg/UniversalPayloadBuild.py", line 58, in > BuildUniversalPayload > BuildDir = os.path.join(os.environ['WORKSPACE'], > os.path.normpath("Build/UefiPayloadPkgX64")) > File "/usr/lib/python3.8/os.py", line 675, in __getitem__ > raise KeyError(key) from None > KeyError: 'WORKSPACE' > > > > > > > > *Thanks & Regards Ritul Guru +91-9916513186* > > > > > > On Mon, Feb 6, 2023 at 5:17 PM Guo, Gua wrote: > > UniversalPayload.sh have Clang tool chain dependency. > > > > I assume your machine is ubuntu-20.10, please download it. And set use > export PATH=$PATH: to prevent the issue. > > > > > https://github.com/llvm/llvm-project/releases/download/llvmorg-11.1.0/clang+llvm-11.1.0-x86_64-linux-gnu-ubuntu-20.10.tar.xz > > > > Thanks, > > Gua > > > > *From:* ritul guru > *Sent:* Monday, February 6, 2023 7:37 PM > *To:* Guo, Gua > *Cc:* devel@edk2.groups.io; Mike Maslenkin > *Subject:* Re: [edk2-devel] regarding build uefipayload in debug mode in > linux > > > > Thanks, > > > > 17:05 $ ./UefiPayloadPkg/UniversalPayloadBuild.sh -t GCC5 -a IA32 -a X64 > -D CPU_TIMER_LIB_ENABLE=FALSE > python_exe=/usr/bin/python3.8 > "llvm-objcopy" --version > /bin/sh: 1: llvm-objcopy: not found > - Failed - error happened when run command: "llvm-objcopy" --version > - Failed - Please check if LLVM is installed or if CLANG_BIN is set > correctly > ✘-1 ~/src/opensource/edk2 [master ↓·22|✚ 1] > > > > > > I am seeing above errors, is clang required for UniversalPayloadBuild.sh > compilation? > > > > > > > > > > *Thanks & Regards Ritul Guru +91-9916513186* > > > > > > On Mon, Feb 6, 2023 at 6:23 AM Guo, Gua wrote: > > I just quickly check your command, look like it incorrect UefiPayload > > > > For Uefi Payload > >- build -p "UefiPayloadPkg/UefiPayloadPkg.dsc" -b DEBUG -t GCC5 -a >IA32 -a X64 -D BOOTLOADER=COREBOOT > > > > For Uefi Universal Payload > >- *Coreboot * > > git clone https://github.com/StarLabsLtd/coreboot.git Coreboot > > cd Coreboot > > git submodule update --init > > make iasl > > make crossgcc > > make defconfig KBUILD_DEFCONFIG=config.starlabs_qemu > > make > > > >- *Edk2* > > git clone https://github.com/tianocore/edk2.git Edk2 > > cd Edk2 > > git submodule update --init > > source ./edksetup.sh > > make -C ./BaseTools > > bash UefiPayloadPkg/UniversalPayloadBuild.sh -t GCC5 -a IA32 -D > CPU_TIMER_LIB_ENABLE=FALSE > > > >- *ShimLayer* > > git clone > https://github.com/UniversalScalableFirmware/upl.coreboot.shimlayer > ShimLayer > > cd ShimLayer > > bash CorebootShimBuild.sh > > > >- *Test Procedure* > > >1. Copy "ShimLayer/Build/ShimLayer.elf" and >"Edk2/Build/UefiPayloadPkgX64/UniversalPayload.elf" to “Coreboot/build”. > > 2.cd Coreboot/build > > 3.Do the following commands. > > ./cbfstool coreboot.rom remove -r COREBOOT -n fallback/payload > > ./cbfstool coreboot.rom add-payload -r COREBOOT -n fallback/payload -f > ShimLayer.elf > > ./cbfstool coreboot.rom remove -
Re: [edk2-devel] regarding build uefipayload in debug mode in linux
Thanks, 17:05 $ ./UefiPayloadPkg/UniversalPayloadBuild.sh -t GCC5 -a IA32 -a X64 -D CPU_TIMER_LIB_ENABLE=FALSE python_exe=/usr/bin/python3.8 "llvm-objcopy" --version /bin/sh: 1: llvm-objcopy: not found - Failed - error happened when run command: "llvm-objcopy" --version - Failed - Please check if LLVM is installed or if CLANG_BIN is set correctly ✘-1 ~/src/opensource/edk2 [master ↓·22|✚ 1] I am seeing above errors, is clang required for UniversalPayloadBuild.sh compilation? *Thanks & RegardsRitul Guru+91-9916513186* On Mon, Feb 6, 2023 at 6:23 AM Guo, Gua wrote: > I just quickly check your command, look like it incorrect UefiPayload > > > > For Uefi Payload > >- build -p "UefiPayloadPkg/UefiPayloadPkg.dsc" -b DEBUG -t GCC5 -a >IA32 -a X64 -D BOOTLOADER=COREBOOT > > > > For Uefi Universal Payload > >- *Coreboot * > > git clone https://github.com/StarLabsLtd/coreboot.git Coreboot > > cd Coreboot > > git submodule update --init > > make iasl > > make crossgcc > > make defconfig KBUILD_DEFCONFIG=config.starlabs_qemu > > make > > > >- *Edk2* > > git clone https://github.com/tianocore/edk2.git Edk2 > > cd Edk2 > > git submodule update --init > > source ./edksetup.sh > > make -C ./BaseTools > > bash UefiPayloadPkg/UniversalPayloadBuild.sh -t GCC5 -a IA32 -D > CPU_TIMER_LIB_ENABLE=FALSE > > > >- *ShimLayer* > > git clone > https://github.com/UniversalScalableFirmware/upl.coreboot.shimlayer > ShimLayer > > cd ShimLayer > > bash CorebootShimBuild.sh > > > >- *Test Procedure* > > >1. Copy "ShimLayer/Build/ShimLayer.elf" and >"Edk2/Build/UefiPayloadPkgX64/UniversalPayload.elf" to “Coreboot/build”. > > 2.cd Coreboot/build > > 3.Do the following commands. > > ./cbfstool coreboot.rom remove -r COREBOOT -n fallback/payload > > ./cbfstool coreboot.rom add-payload -r COREBOOT -n fallback/payload -f > ShimLayer.elf > > ./cbfstool coreboot.rom remove -r COREBOOT -n img/UniversalPayload > > ./cbfstool coreboot.rom add-flat-binary -r COREBOOT -n > img/UniversalPayload -f UniversalPayload.elf -l 0x20 -e 0x100 -c lzma > > qemu-system-x86_64 -bios coreboot.rom -serial stdio -M q35 > > > > Thanks, > > Gua > > *From:* devel@edk2.groups.io * On Behalf Of *ritul > guru > *Sent:* Friday, February 3, 2023 11:08 PM > *To:* Mike Maslenkin > *Cc:* devel@edk2.groups.io > *Subject:* Re: [edk2-devel] regarding build uefipayload in debug mode in > linux > > > > Thanks, > > > > build -p "UefiPayloadPkg/UefiPayloadPkg.dsc" *-b DEBUG* -t GCC5 -a IA32 > -a X64 -D COREBOOT > > > > I used above cmd, added DEBUG option by seeing NO debug messages coming > from uefipayload. > > any idea how to enable debug messages coming from uefipayload built with > above cmd? > > > > > > > > > > > > *Thanks & Regards Ritul Guru +91-9916513186* > > > > > > On Fri, Feb 3, 2023 at 4:46 AM Mike Maslenkin > wrote: > > Hi Ritul Guru. > > There is a misprint in path to dsc file. > The path should be "UefiPayloadPkg/UefiPayloadPkg.dsc" > But there is another issue with your command line exists. > The instructions you are referred to [1] contain a sentence: > "NOTE: Pure 32bit UEFI payload support could be added if required > later.", i.e. it won't build. > So, you need to build either pure X64 or X64 build with IA32 entry. > > The command line for the latter is: > "build -p UefiPayloadPkg/UefiPayloadPkg.dsc -t GCC5 -a IA32 -a X64" > > *[1] > https://github.com/tianocore/edk2/blob/master/UefiPayloadPkg/BuildAndIntegrationInstructions.txt#L55 > > Regards, > Mike. > > > > On Fri, Feb 3, 2023 at 1:37 AM ritul guru wrote: > > > > > > Hi, > > I was following below link to build UEfiPayload for coreboot to boot > from, > > > > > https://github.com/tianocore/edk2/blob/master/UefiPayloadPkg/BuildAndIntegrationInstructions.txt > > > > but getting below error, > > would appreciate help, thanks. > > > > > > ~/src/opensource/edk2 [master| ] > > 03:04 $ build -p UefiPayloadPkg\UefiPayloadPkg.dsc -t GCC5 -a IA32 > > Build environment: > Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29 > > Build start time: 03:04:57, Feb.03 2023 > > > > WORKSPACE= /home//src/opensource/edk2 > > EDK_TOOLS_PATH = /home//src/opensource/edk2/BaseTools > > CONF_PATH= /home//src/opensource/edk2/Conf > > PYTHON_COMMAND = /usr/bin/py
Re: [edk2-devel] regarding build uefipayload in debug mode in linux
Thanks, build -p "UefiPayloadPkg/UefiPayloadPkg.dsc" *-b DEBUG* -t GCC5 -a IA32 -a X64 -D COREBOOT I used above cmd, added DEBUG option by seeing NO debug messages coming from uefipayload. any idea how to enable debug messages coming from uefipayload built with above cmd? *Thanks & RegardsRitul Guru+91-9916513186* On Fri, Feb 3, 2023 at 4:46 AM Mike Maslenkin wrote: > Hi Ritul Guru. > > There is a misprint in path to dsc file. > The path should be "UefiPayloadPkg/UefiPayloadPkg.dsc" > But there is another issue with your command line exists. > The instructions you are referred to [1] contain a sentence: > "NOTE: Pure 32bit UEFI payload support could be added if required > later.", i.e. it won't build. > So, you need to build either pure X64 or X64 build with IA32 entry. > > The command line for the latter is: > "build -p UefiPayloadPkg/UefiPayloadPkg.dsc -t GCC5 -a IA32 -a X64" > > *[1] > https://github.com/tianocore/edk2/blob/master/UefiPayloadPkg/BuildAndIntegrationInstructions.txt#L55 > > Regards, > Mike. > > > > On Fri, Feb 3, 2023 at 1:37 AM ritul guru wrote: > > > > > > Hi, > > I was following below link to build UEfiPayload for coreboot to boot > from, > > > > > https://github.com/tianocore/edk2/blob/master/UefiPayloadPkg/BuildAndIntegrationInstructions.txt > > > > but getting below error, > > would appreciate help, thanks. > > > > > > ~/src/opensource/edk2 [master| ] > > 03:04 $ build -p UefiPayloadPkg\UefiPayloadPkg.dsc -t GCC5 -a IA32 > > Build environment: > Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29 > > Build start time: 03:04:57, Feb.03 2023 > > > > WORKSPACE= /home//src/opensource/edk2 > > EDK_TOOLS_PATH = /home//src/opensource/edk2/BaseTools > > CONF_PATH= /home//src/opensource/edk2/Conf > > PYTHON_COMMAND = /usr/bin/python3.8 > > > > > > build.py... > > : error C0DE: Unknown fatal error when processing > [/home//src/opensource/edk2/UefiPayloadPkgUefiPayloadPkg.dsc] > > > > (Please send email to devel@edk2.groups.io for help, attaching > following call stack trace!) > > > > (Python 3.8.10 on linux) Traceback (most recent call last): > > File > "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", > line 2692, in Main > > MyBuild = Build(Target, Workspace, Option,LogQ) > > File > "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", > line 815, in __init__ > > self.InitPreBuild() > > File > "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", > line 1015, in InitPreBuild > > self.LoadConfiguration() > > File > "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", > line 971, in LoadConfiguration > > self.GetToolChainAndFamilyFromDsc (self.PlatformFile) > > File > "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", > line 905, in GetToolChainAndFamilyFromDsc > > dscobj = self.BuildDatabase[File, BuildArch] > > File > "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", > line 104, in __getitem__ > > BuildObject = self.CreateBuildObject(FilePath, Arch, Target, > Toolchain) > > File > "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", > line 120, in CreateBuildObject > > MetaFileStorage(self.WorkspaceDb, FilePath, FileType) > > File > "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/MetaFileTable.py", > line 426, in __new__ > > reval = Class._FILE_TABLE_[FileType](*Args) > > File > "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/MetaFileTable.py", > line 303, in __init__ > > MetaFileTable.__init__(self, Cursor, MetaFile, MODEL_FILE_DSC, > Temporary, FromItem) > > File > "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/MetaFileTable.py", > line 39, in __init__ > > MetaFile.TimeStamp, > > File > "/home//src/opensource/edk2/BaseTools/Source/Python/Common/Misc.py", line > 1539, in TimeStamp > > return os.stat(self.Path)[8] > > File > "/home//src/opensource/edk2/BaseTools/Source/Python/Common/LongFilePathOs.py", > line 51, in stat > > return os.stat(LongFilePath(path)) > > FileNotFoundError: [Errno 2] No such file or directory: > '/home//src/opensource/edk2/UefiPayloadPkgUefiPayloadPkg.dsc' > > > > > > > > > > > > Thanks & Regards > > Ritul Guru > > +91-9916513186 > > > -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99614): https://edk2.groups.io/g/devel/message/99614 Mute This Topic: https://groups.io/mt/96711480/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] regarding build uefipayload in debug mode in linux
Hi, I was following below link to build UEfiPayload for coreboot to boot from, https://github.com/tianocore/edk2/blob/master/UefiPayloadPkg/BuildAndIntegrationInstructions.txt but getting below error, would appreciate help, thanks. ~/src/opensource/edk2 [master| ] 03:04 $ build -p UefiPayloadPkg\UefiPayloadPkg.dsc -t GCC5 -a IA32 Build environment: Linux-5.10.102.1-microsoft-standard-WSL2-x86_64-with-glibc2.29 Build start time: 03:04:57, Feb.03 2023 WORKSPACE= /home//src/opensource/edk2 EDK_TOOLS_PATH = /home//src/opensource/edk2/BaseTools CONF_PATH= /home//src/opensource/edk2/Conf PYTHON_COMMAND = /usr/bin/python3.8 build.py... : error C0DE: Unknown fatal error when processing [/home//src/opensource/edk2/UefiPayloadPkgUefiPayloadPkg.dsc] (Please send email to devel@edk2.groups.io for help, attaching following call stack trace!) (Python 3.8.10 on linux) Traceback (most recent call last): File "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 2692, in Main MyBuild = Build(Target, Workspace, Option,LogQ) File "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 815, in __init__ self.InitPreBuild() File "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 1015, in InitPreBuild self.LoadConfiguration() File "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 971, in LoadConfiguration self.GetToolChainAndFamilyFromDsc (self.PlatformFile) File "/home//src/opensource/edk2/BaseTools/BinWrappers/PosixLike/../../Source/Python/build/build.py", line 905, in GetToolChainAndFamilyFromDsc dscobj = self.BuildDatabase[File, BuildArch] File "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", line 104, in __getitem__ BuildObject = self.CreateBuildObject(FilePath, Arch, Target, Toolchain) File "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/WorkspaceDatabase.py", line 120, in CreateBuildObject MetaFileStorage(self.WorkspaceDb, FilePath, FileType) File "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/MetaFileTable.py", line 426, in __new__ reval = Class._FILE_TABLE_[FileType](*Args) File "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/MetaFileTable.py", line 303, in __init__ MetaFileTable.__init__(self, Cursor, MetaFile, MODEL_FILE_DSC, Temporary, FromItem) File "/home//src/opensource/edk2/BaseTools/Source/Python/Workspace/MetaFileTable.py", line 39, in __init__ MetaFile.TimeStamp, File "/home//src/opensource/edk2/BaseTools/Source/Python/Common/Misc.py", line 1539, in TimeStamp return os.stat(self.Path)[8] File "/home//src/opensource/edk2/BaseTools/Source/Python/Common/LongFilePathOs.py", line 51, in stat return os.stat(LongFilePath(path)) FileNotFoundError: [Errno 2] No such file or directory: '/home//src/opensource/edk2/UefiPayloadPkgUefiPayloadPkg.dsc' *Thanks & RegardsRitul Guru+91-9916513186* -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#99505): https://edk2.groups.io/g/devel/message/99505 Mute This Topic: https://groups.io/mt/96711480/21656 Group Owner: devel+ow...@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-