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, <ritul.bits@gmail.com> 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 & Regards
Ritul Guru
+91-9916513186


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 = 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 & Regards
Ritul Guru
+91-9916513186