From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) by mx.groups.io with SMTP id smtpd.web11.26.1675826049034752117 for ; Tue, 07 Feb 2023 19:14:09 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20210112 header.b=JhEqJ+fQ; spf=pass (domain: gmail.com, ip: 209.85.208.42, mailfrom: ritul.bits@gmail.com) Received: by mail-ed1-f42.google.com with SMTP id r3so9004090edq.13 for ; Tue, 07 Feb 2023 19:14:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=Sn4R8BPTCsq+5x7//HCVs59B3F7yGyyws6YGH/xzy44=; b=JhEqJ+fQFlLPwh3tNjLj6yv7GJ8eDip9FhadbpZTQUaNIHyHxskUG35irsdqW1euTc 0L99lhvcphroEDSkAcpBfzTuuxrCwp0DznCVnow1WomUHVtARaA87ajSA5mkz+E+fmN3 a3qsEmOOHN3ve5IGVw/9p4effG70dC8awHRbHsBaRN/Qa0Pt2YR7/8xc8NOF2PsaBGcx 7Q2yj4Ml8LHLol0FYxjhVcaSjp3qHqx2M+huCOqoOQi5va0E9mnP2NI9+TtkUOnQ6rpk /qkxGRAgEbzai3z65flit2cOKd3nVjs3IIdEkNHh92mfGcPnA9WX1oteSgTwEJyDbZUH n5Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Sn4R8BPTCsq+5x7//HCVs59B3F7yGyyws6YGH/xzy44=; b=3nL1QY6/GrzjXg1k8446WgJTupRAf1vPArxiwNIXcLdejaqXWrK5zyBd2nL9mLXZ2W /wfRUnYXq6uSRyjIik1GMeLIaKMVV9AAPTAPPJoMOgLjeoR0V2iUiezeBZw/j+rNXVox yem91eKbEoSz/JFBV/lTTvdLkJicyoBUfrOLKESZ3et6Woj56Roeymlw9otIXGI9IYYF l3sBM+4DLkHiBjxKTtEtHWUbKnsIIrznYAjtDDHSblC9KAck4ucNSqkb/oBCwlfglPQJ 6zqi24BkB/GaFKyXkoZ8rneaWgN4/gs2eIKRWSrlrMZctvjlRuBKEkq8mSYwaTX6e2hv 1TbA== X-Gm-Message-State: AO0yUKUWlm0l6wsYwvZRE/N71MeZoQlsT5p2VvDd32T6qKoebi9Qmdgf p68XUxjJKhQU3Rs9p9cYsxXhJ5QOh1Tn7acFhrk= X-Google-Smtp-Source: AK7set+3WVKvNdowmCmKyiI5EOIIMgYNGSAJaPQ2e76odLTvPPtmI99lGLi2Nbcjcr0dZ3VEB7RmnysZXm7KhmTDsfc= X-Received: by 2002:a50:8a83:0:b0:4aa:9903:ec5f with SMTP id j3-20020a508a83000000b004aa9903ec5fmr1586753edj.54.1675826047064; Tue, 07 Feb 2023 19:14:07 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: ritul guru Date: Wed, 8 Feb 2023 08:43:44 +0530 Message-ID: Subject: Re: [edk2-devel] regarding uefipayload build warning for pcd To: Sean Rhodes Cc: devel@edk2.groups.io Content-Type: multipart/alternative; boundary="0000000000003d9fb305f427a885" --0000000000003d9fb305f427a885 Content-Type: text/plain; charset="UTF-8" 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 - 0x0000000051DD1000 - 0x0000000000008000 SetUefiImageMemoryAttributes - 0x0000000051DD1000 - 0x0000000000001000 (0x0000000000004008) SetUefiImageMemoryAttributes - 0x0000000051DD2000 - 0x0000000000006000 (0x0000000000020008) SetUefiImageMemoryAttributes - 0x0000000051DD8000 - 0x0000000000001000 (0x0000000000004008) 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 >>>>> - 0x0000000051DD1000 - 0x0000000000008000 >>>>> SetUefiImageMemoryAttributes - 0x0000000051DD1000 - 0x0000000000001000 >>>>> (0x0000000000004008) >>>>> SetUefiImageMemoryAttributes - 0x0000000051DD2000 - 0x0000000000006000 >>>>> (0x0000000000020008) >>>>> SetUefiImageMemoryAttributes - 0x0000000051DD8000 - 0x0000000000001000 >>>>> (0x0000000000004008) >>>>> 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 = 0x00800000 >>>>>> >>>>>> 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 = 0x02200000, 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* >>>>>>> >>>>>> >>>>> >>>>> --0000000000003d9fb305f427a885 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Any idea why the below error come= s?

Loading= driver 378D7B65-8DA9-4773-B6E4-A47826A833E1
InstallProtocolInterface: 5= B1B31A1-9562-11D2-8E3F-00A0C969723B 51A3E1C0
Loading driver at 0x00051DD= 1000 EntryPoint=3D0x00051DD5670 PcRtc.efi
InstallProtocolInterface: BC62= 157E-3E33-4FEC-9920-2D3B36D750DF 51A3ED98
ProtectUefiImageCommon - 0x51A= 3E1C0
=C2=A0 - 0x0000000051DD1000 - 0x0000000000008000
SetUefiImageMe= moryAttributes - 0x0000000051DD1000 - 0x0000000000001000 (0x000000000000400= 8)
SetUefiImageMemoryAttributes - 0x0000000051DD2000 - 0x000000000000600= 0 (0x0000000000020008)
SetUefiImageMemoryAttributes - 0x0000000051DD8000= - 0x0000000000001000 (0x0000000000004008)
PROGRESS CODE: V03040002 I0

ASSERT_EFI_ERRO= R (Status =3D Device Error)
ASSERT [PcRtc] /home//src/p/corebo= ot/payloads/external/edk2/workspace/tianocore/PcAtChipsetPkg/PcatRealTimeCl= ockRuntimeDxe/PcRtcEntry.c(1)

=

anything to do with warning:

=
build time = warning:
Active Platform =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0=3D /home//src///coreboot/payloads/external/edk2/worksp= ace/tianocore/UefiPayloadPkg/UefiPayloadPkg.dsc
.build: : warning: The P= CD was not specified by any INF module in the platform for the given archit= ecture.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 PCD: [gPcAtChipsetPkgTokenSpaceGuid.= PcdRtcIndexRegister]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Platform: [UefiPayloadP= kg.dsc]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Arch: ['IA32']
build: : w= arning: The PCD was not specified by any INF module in the platform for the= given architecture.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 PCD: [gPcAtChipsetPkgTo= kenSpaceGuid.PcdRtcTargetRegister]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Platform:= [UefiPayloadPkg.dsc]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Arch: ['IA32']=
. done!



Thanks & Regards
Ritul Guru
+91-9916513186


On Wed, Feb 8= , 2023 at 3:40 AM Sean Rhodes <sean@starlabs.systems> wrote:
L36 is help text that says what you are trying to do, wont=C2=A0work

On Tue, 7 Feb 2023 at 20:51, ritul guru <ritul.bits@gmail.com> wrote:
fatal: repository 'payloads/external/edk2/worksp= ace/tianocore' does not exist
make[1]: *** [Makefile:123: /home/amd/= src/phx2/coreboot_phx2/coreboot/payloads/external/edk2/workspace/edk2] Erro= r 128
make: *** [payloads/external/Makefile.inc:158: build/UEFIPAYLOAD.f= d] Error 2



Thanks & Regards
Ritul Guru+91-9916513186
=

On Wed, Feb 8, 2023 at 2:19 AM ritul guru <ritul.bits@gmail.com> wrote:
I do not get debug logs from edk2 payload even tho= ugh debug payload is selected in menuconfig of coreboot.
and also updated FD_BASE, if not then getting GCD assert w= hile adding regions in phit table.

=
below path should be give at L36 for cu= stom edk2 repo?
payloads/external/edk2/w= orkspace/tianocore/
=C2=A0
Thanks & Regards
Ritul G= uru
+91-9916513186
=


On Wed, Feb 8, 2023 at 2:06 AM Sean Rhodes <sean@starlabs.syst= ems> wrote:
<= div dir=3D"ltr">
Why the edk2 changes? Just to fix this issue?

Have you seen L36 of=C2=A0payloads/ex= ternal/edk2/Kconfig




On Tue, Feb 7, 2023 at 10:09 PM ritul guru <ritul.bits@gmail.com> wrote:
UefiPayloadPkg/UefiPayloadPkg.fdf
=
DEFINE FD_BASE =C2=A0 =C2=A0 =C2=A0 =3D= 0x00800000

Is the above=C2=A0address correct in uefipaylaod?
As observing=C2=A0some regions are getting out of= limit of FD limit,

and when setting DEFINE FD_BASE =C2=A0 =C2=A0 =C2=A0 = =3D 0x02200000, then seeing assert in=C2=A0
[gPcAtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister].




Thanks & Regards
Ri= tul Guru
+91-9916513186
<= /div>


On Tue, Feb 7, 2023 at 8:29 PM ritul guru <ritul.bits@gmail.com> w= rote:
Hi,
I am building edk2 payload and getting below warning for PcdRtcIndexRegi= ster,
and if try to boot to then observi= ng that there is assert at:

ASSERT_EFI_ERROR (Status = =3D Device Error)

DXE_ASSERT!: /home/amd/src///coreboot/payloads/exte= rnal/tianocore/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEn= try.c (141): !EFI_ERROR (Status)





build time warning:
Acti= ve Platform =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D /home//src///coreboot/pay= loads/external/edk2/workspace/tianocore/UefiPayloadPkg/UefiPayloadPkg.dsc.build: : warning: The PCD was not specified by any INF module in the pla= tform for the given architecture.
=C2=A0 =C2=A0 =C2=A0 =C2=A0 PCD: [gPcA= tChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister]
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 Platform: [UefiPayloadPkg.dsc]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Arch: [&#= 39;IA32']
build: : warning: The PCD was not specified by any INF mod= ule in the platform for the given architecture.
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 PCD: [gPcAtChipsetPkgTokenSpaceGuid.PcdRtcTargetRegister]
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 Platform: [UefiPayloadPkg.dsc]
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 Arch: ['IA32']
. done!


Thanks & Regards
Ritul Guru
+91-9916513186

--0000000000003d9fb305f427a885--