From 96e393ecd4782e50e8beb8d14734065f9b4a523a Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Sat, 20 Apr 2019 16:41:52 +0800 Subject: [PATCH] Append kernel image to fu540.elf, but still not working on HfU --- kernel/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/Makefile b/kernel/Makefile index 63f52ff..af393e3 100644 --- a/kernel/Makefile +++ b/kernel/Makefile @@ -366,7 +366,8 @@ endif ifeq ($(board), u540) .PHONY: install: $(kernel_img) - @$(objcopy) -S -O binary --change-addresses -0x80000000 $< $(build_path)/bin + @$(objcopy) -S -O binary ../tools/opensbi/fu540.elf $(build_path)/bin + @dd if=$< of=$(build_path)/bin bs=131072 seek=16 @../tools/u540/mkimg.sh $(build_path)/bin $(build_path)/sd.img endif