From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) by mx.groups.io with SMTP id smtpd.web10.4026.1675807820062515745 for ; Tue, 07 Feb 2023 14:10:20 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@starlabs-systems.20210112.gappssmtp.com header.s=20210112 header.b=e++erJjM; spf=pass (domain: starlabs.systems, ip: 209.85.218.45, mailfrom: sean@starlabs.systems) Received: by mail-ej1-f45.google.com with SMTP id qw12so46531993ejc.2 for ; Tue, 07 Feb 2023 14:10:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=starlabs-systems.20210112.gappssmtp.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=6WpcYW2veP8vruy9BrKzJfuvV686GUzWiq7lzOanG+E=; b=e++erJjM6kddJ8YBKb/4jvGI4P9gJ3Wskx/KQnc+p3fc+7EDyZ+uMYwxjNJ+1J/ph9 XllhgYh/y2Cxzqod4cNm5yK1+x5gtAqa43mL4fXROxZe2E04o0do4lRMi14NSaEiLlOY sHoK4s99zaTr2dqUAz3CegOB7EnT/KeC1kPZwoZDQUDxuRN2sRx8OBZPI4EhGRWGP3tr 1QrOdmcOLBbXw3Tdnne4KcZEnYMMQL1pKKqGFAVeRFB1zEC/zxaIMNG7djSDaIIXxYci dH69TfqhoVYgKjgsTe316frXjQh3VZIfKtbdxyguGlw/jmjJ37jWNbrA3h1DRUxlphsf NqWg== 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=6WpcYW2veP8vruy9BrKzJfuvV686GUzWiq7lzOanG+E=; b=5H2rGKq3mpGshQs3HAhwcZ9gTMW2cCkN5wLwBaiuDGgoqa+sJ5OdWHLjJVCBr8oif+ Kedll6nNKw7Ndn8wYE5oeoSKBQ5u5mh0xKfvPHOcF+W0NP3ZplBfCMJC8dY9nClfCMyi nJ15rGyiviXgGJfukOejJp0EmRsxmRPo+NMFKQOQzvCFAwPRQ0BZ8E+YxZ8qGnrqqP3a xKkzzFh7fwbzLX0KQeojdffhWrKuUmfrnijUnUBoSduIaRg04Qf7QxhShDW68Djcxr/U Vn88VqNXdET3GBBjdgazpvZ3v4ssfN6A5W72cwkwDxsB3tpaGY6EkyV1PeuDtpQUO7ey sHeA== X-Gm-Message-State: AO0yUKUDj4+SvRAmq/fS6C2FLjA0guW443A9FNCv0yH9KRsEWLD1/OPI 7e2JRkFZeb1ngvOqqV0wKUpvrWkOvcezLNsz/FGP X-Google-Smtp-Source: AK7set+cSHT809Yt0ncwRR17XAhLjOwR91U+t7UjikWv9zvJZITfQM1KYD5QGhAavBvt2qizAa8fZzwMcFl1QslPPeo= X-Received: by 2002:a17:906:81c5:b0:877:ec5e:87ce with SMTP id e5-20020a17090681c500b00877ec5e87cemr1259752ejx.262.1675807817992; Tue, 07 Feb 2023 14:10:17 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: "Sean Rhodes" Date: Tue, 7 Feb 2023 22:10:06 +0000 Message-ID: Subject: Re: [edk2-devel] regarding uefipayload build warning for pcd To: ritul guru Cc: devel@edk2.groups.io Content-Type: multipart/alternative; boundary="000000000000b4276c05f423696f" --000000000000b4276c05f423696f Content-Type: text/plain; charset="UTF-8" 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* >>>>>> >>>>> >>>> >>>> --000000000000b4276c05f423696f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
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/workspace/ti= anocore' does not exist
make[1]: *** [Makefile:123: /home/amd/src/ph= x2/coreboot_phx2/coreboot/payloads/external/edk2/workspace/edk2] Error 128<= br>make: *** [payloads/external/Makefile.inc:158: build/UEFIPAYLOAD.fd] Err= or 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 though d= ebug 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 e= dk2 repo?
payloads/external/edk2/workspa= ce/tianocore/
=C2=A0
Thanks & Regards
Ritul Guru+91-9916513186
=

On Wed, Feb 8, 2023 at 2:06 AM Sean Rhodes <sean@starlabs.systems>= ; wrote:
Why the edk2 changes? Just to fix this issue?

Have you seen L36 of=C2=A0payloads/external= /edk2/Kconfig

On Tue, 7 Feb 2023 at 20:30, ritul guru <ritul.bits@gmail.com> = wrote:


Loading driver 378D7B65-8DA9-47= 73-B6E4-A47826A833E1
InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-0= 0A0C969723B 51A3E1C0
Loading driver at 0x00051DD1000 EntryPoint=3D0x0005= 1DD5670 PcRtc.efi
InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B= 36D750DF 51A3ED98
ProtectUefiImageCommon - 0x51A3E1C0
=C2=A0 - 0x0000= 000051DD1000 - 0x0000000000008000
SetUefiImageMemoryAttributes - 0x00000= 00051DD1000 - 0x0000000000001000 (0x0000000000004008)
SetUefiImageMemory= Attributes - 0x0000000051DD2000 - 0x0000000000006000 (0x0000000000020008)SetUefiImageMemoryAttributes - 0x0000000051DD8000 - 0x0000000000001000 (0= x0000000000004008)
PROGRESS CODE: V03040002 I0

ASSERT_EFI_ERROR (= Status =3D Device Error)
ASSERT [PcRtc] /home//src/p/coreboot/payload= s/external/edk2/workspace/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntime= Dxe/PcRtcEntry.c(1)

getting = above assert after changed to FD_BASE to below value,=C2=A0
This error is coming while booting to coreboot with edk= 2 payload:

UefiPayloadPkg/UefiPayloadPkg.fdf
DEFINE FD_BASE =C2=A0 =C2=A0 =C2=A0 =3D 0x02182000

need to cha= nge FD_BASE, as it was going outside Available memory.
any hint would be appreciated.


Thanks & Regards
Ritul Guru
+91-
9916513186


On Tu= e, Feb 7, 2023 at 10:09 PM ritul guru <ritul.bits@gmail.com> wrote:
UefiPayloadPkg/UefiPayloadPkg.fdf
<= div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif;font-si= ze:small;color:rgb(0,0,153)">DEFINE FD_BASE =C2=A0 =C2=A0 =C2=A0 =3D 0x0080= 0000

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 0x02= 200000, then seeing assert in=C2=A0
[gPc= AtChipsetPkgTokenSpaceGuid.PcdRtcIndexRegister].




=
Thanks & Regards
Ritul Gu= ru
+91-9916513186
<= /div>

On Tue, Feb 7, 2023 at 8:29 PM ritul guru <ritul.bits@gmail.com> 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 =3D Devi= ce Error)

DXE_ASSERT!: /home/amd/src///coreboot/payloads/external/tia= nocore/tianocore/PcAtChipsetPkg/PcatRealTimeClockRuntimeDxe/PcRtcEntry.c (1= 41): !EFI_ERROR (Status)


=



build time warning:
Active Platfor= m =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=3D /home//src///coreboot/payloads/exte= rnal/edk2/workspace/tianocore/UefiPayloadPkg/UefiPayloadPkg.dsc
.build: = : warning: 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: [gPcAtChipsetPk= gTokenSpaceGuid.PcdRtcIndexRegister]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Platfor= m: [UefiPayloadPkg.dsc]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Arch: ['IA32'= ;]
build: : warning: 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: [g= PcAtChipsetPkgTokenSpaceGuid.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-<= /font>9916513186

--000000000000b4276c05f423696f--