soc/amd/common: load post-memory AGESA as rmodule
Now that the AGESA binary is split into two sections load the post-memory AGESA binary into ram. It needs to be an rmdoule so that it can be relocated into ram. agesawrapper_amdinitenv() entry CBFS: 'VBOOT' located CBFS at [10000:cfd40) CBFS: Locating 'AGESA_POST_MEM' CBFS: Found @ offset 875c0 size 11c5e Decompressing stage AGESA_POST_MEM @ 0xc757ffc0 (183452 bytes) Loading module at c7580000 with entry c7580000. filesize: 0x2bafc memsize: 0x2bb0d Processing 1112 relocs. Offset value of 0xc7780000 AGESA call 00020001 using c75818fe AGESA call 00020003 using c75818fe Fch OEM config in INIT ENV Done agesawrapper_amdinitenv() returned AGESA_SUCCESS BUG=b:68141063,b:70714803 TEST=Booted kahlee. Change-Id: Ic0454e0d6909cb34ae8be2f4f221152532754d61 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: https://review.coreboot.org/22976 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
committed by
Martin Roth
parent
922619512d
commit
931ed7faa9
@ -124,6 +124,17 @@ ramstage-libs += $(agesa_output_path)/libagesa.a
|
||||
#######################################################################
|
||||
|
||||
ifeq ($(CONFIG_AGESA_SPLIT_MEMORY_FILES), y)
|
||||
|
||||
# convert input elf to rmodule
|
||||
AGESA_POST_MEM_INPUT_ELF = $(call strip_quotes,$(CONFIG_AGESA_POST_MEMORY_BINARY_PI_FILE))
|
||||
AGESA_POST_MEM_ELF = $(objcbfs)/$(patsubst %.elf,%.debug,$(notdir $(AGESA_POST_MEM_INPUT_ELF)))
|
||||
AGESA_POST_MEM_ELF_RMOD = $(AGESA_POST_MEM_ELF).rmod
|
||||
|
||||
$(AGESA_POST_MEM_ELF): $(AGESA_POST_MEM_INPUT_ELF)
|
||||
cp $< $@
|
||||
|
||||
$(AGESA_POST_MEM_ELF_RMOD): $(AGESA_POST_MEM_ELF)
|
||||
|
||||
cbfs-files-$(CONFIG_CPU_AMD_AGESA_BINARY_PI) += $(CONFIG_AGESA_PRE_MEMORY_CBFS_NAME)
|
||||
$(CONFIG_AGESA_PRE_MEMORY_CBFS_NAME)-file := $(CONFIG_AGESA_PRE_MEMORY_BINARY_PI_FILE)
|
||||
$(CONFIG_AGESA_PRE_MEMORY_CBFS_NAME)-type := stage
|
||||
@ -133,12 +144,9 @@ $(CONFIG_AGESA_PRE_MEMORY_CBFS_NAME)-options := --xip
|
||||
$(CONFIG_AGESA_PRE_MEMORY_CBFS_NAME)-align := 4096
|
||||
|
||||
cbfs-files-$(CONFIG_CPU_AMD_AGESA_BINARY_PI) += $(CONFIG_AGESA_POST_MEMORY_CBFS_NAME)
|
||||
$(CONFIG_AGESA_POST_MEMORY_CBFS_NAME)-file := $(CONFIG_AGESA_POST_MEMORY_BINARY_PI_FILE)
|
||||
$(CONFIG_AGESA_POST_MEMORY_CBFS_NAME)-file := $(AGESA_POST_MEM_ELF_RMOD)
|
||||
$(CONFIG_AGESA_POST_MEMORY_CBFS_NAME)-type := stage
|
||||
$(CONFIG_AGESA_POST_MEMORY_CBFS_NAME)-options := --xip
|
||||
# 4KiB alignment to handle any interior alignment. Current AGESA only has
|
||||
# 64 byte alignment.
|
||||
$(CONFIG_AGESA_POST_MEMORY_CBFS_NAME)-align := 4096
|
||||
$(CONFIG_AGESA_POST_MEMORY_CBFS_NAME)-compression := $(CBFS_COMPRESS_FLAG)
|
||||
else
|
||||
|
||||
cbfs-files-$(CONFIG_CPU_AMD_AGESA_BINARY_PI) += $(CONFIG_AGESA_CBFS_NAME)
|
||||
|
Reference in New Issue
Block a user