Xiang Wang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32395
Change subject: payloads/external/opensbi: fix to boot for fu540 ......................................................................
payloads/external/opensbi: fix to boot for fu540
1. Fix link address to prevent conflict with coreboot 2. Correct source fdt alignment to prevent copy errors
Change-Id: I3477dd8fd44026753c061f34c060700bbcda4f4b Signed-off-by: Xiang Wang wxjstz@126.com --- M payloads/external/opensbi/firmware/fw_base.S M payloads/external/opensbi/platform/sifive/fu540/config.mk 2 files changed, 5 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/32395/1
diff --git a/payloads/external/opensbi/firmware/fw_base.S b/payloads/external/opensbi/firmware/fw_base.S index 3bf7c6a..ffd9878 100644 --- a/payloads/external/opensbi/firmware/fw_base.S +++ b/payloads/external/opensbi/firmware/fw_base.S @@ -113,7 +113,7 @@ */ beqz a1, _fdt_reloc_done /* Mask values in a3 and a4 */ - li a3, ~0xf + li a3, ~(__SIZEOF_POINTER__ - 1) li a4, 0xff /* t1 = destination FDT start address */ add s0, a0, zero diff --git a/payloads/external/opensbi/platform/sifive/fu540/config.mk b/payloads/external/opensbi/platform/sifive/fu540/config.mk index 352c156..18a2c37 100644 --- a/payloads/external/opensbi/platform/sifive/fu540/config.mk +++ b/payloads/external/opensbi/platform/sifive/fu540/config.mk @@ -19,13 +19,13 @@ PLATFORM_SYS_CLINT=y
# Blobs to build -FW_TEXT_START=0x80000000 +FW_TEXT_START=0x82000000 FW_JUMP=y -FW_JUMP_ADDR=0x80200000 -FW_JUMP_FDT_ADDR=0x82200000 +FW_JUMP_ADDR=0x82200000 +FW_JUMP_FDT_ADDR=0x84200000 FW_PAYLOAD=y FW_PAYLOAD_OFFSET=0x200000 -FW_PAYLOAD_FDT_ADDR=0x82200000 +FW_PAYLOAD_FDT_ADDR=0x84200000
# External Libraries to include PLATFORM_INCLUDE_LIBFDT=y
Xiang Wang has abandoned this change. ( https://review.coreboot.org/c/coreboot/+/32395 )
Change subject: payloads/external/opensbi: fix to boot for fu540 ......................................................................
Abandoned