From 411a8b7a6656ee62c3dee5c11285143ed6315215 Mon Sep 17 00:00:00 2001 From: Xiang Wang Date: Wed, 23 Jan 2019 11:45:06 +0800 Subject: src/mb/sifive/hifive-unleashed: replace fdt in maskrom The fdt in the maskrom cannot be used to start linux. The correct fdt is dumped by replacing the bbl of the original firmware and used in coreboot. Correct the mac address in fdt by reading otp Change-Id: Ic29f0e590311360b85fafd12ebc36cd189fbbc38 Signed-off-by: Xiang Wang Reviewed-on: https://review.coreboot.org/c/31047 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Rudolph Reviewed-by: Philipp Hug --- src/mainboard/sifive/hifive-unleashed/Makefile.inc | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'src/mainboard/sifive/hifive-unleashed/Makefile.inc') diff --git a/src/mainboard/sifive/hifive-unleashed/Makefile.inc b/src/mainboard/sifive/hifive-unleashed/Makefile.inc index 27ddcbad87..263297eb74 100644 --- a/src/mainboard/sifive/hifive-unleashed/Makefile.inc +++ b/src/mainboard/sifive/hifive-unleashed/Makefile.inc @@ -11,8 +11,20 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. -romstage-y += romstage.c - bootblock-y += memlayout.ld + romstage-y += memlayout.ld +romstage-y += romstage.c + ramstage-y += memlayout.ld +ramstage-y += fixup_fdt.c + + +DTB=build/hifive-unleashed.dtb +DTS=src/mainboard/sifive/hifive-unleashed/hifive-unleashed.dts +$(DTB): $(DTS) + dtc -I dts -O dtb -o $(DTB) $(DTS) + +cbfs-files-y += fallback/DTB +fallback/DTB-file := $(DTB) +fallback/DTB-type := raw -- cgit v1.2.3