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


On Wed, Feb 8, 2023 at 12:31 AM ritul guru <ritul.bits@gmail.com> wrote:
building it inside coreboot only.

Thanks & Regards
Ritul Guru
+91-9916513186


On Wed, Feb 8, 2023 at 12:00 AM Sean Rhodes <sean@starlabs.systems> 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, <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