Closed fengyuanyu1 closed 10 months ago
- build optee project
- modify the source code in
/linux - in
/build, make -f qemu_v8.mk linux - in
/build, make -f qemu_v8.mk run-only.
That's mostly good except that the linux kernel is now post-processed to produce uImage (to be loaded by U-Boot). So the "make linux" target does not do enough. Please try the following patch:
diff --git a/qemu_v8.mk b/qemu_v8.mk
index 92702e0..324f8cf 100644
--- a/qemu_v8.mk
+++ b/qemu_v8.mk
@@ -394,6 +394,8 @@ $(KERNEL_UIMAGE): u-boot linux | $(BINARIES_PATH)
-n "Linux kernel" \
-d $(BINARIES_PATH)/linux.bin $(KERNEL_UIMAGE)
+uImage: $(KERNEL_UIMAGE)
+
$(ROOTFS_UGZ): u-boot buildroot | $(BINARIES_PATH)
ln -sf $(ROOT)/out-br/images/rootfs.cpio.gz $(BINARIES_PATH)
$(MKIMAGE_PATH)/mkimage -A arm64 \
...and do the following sequence instead:
@jforissier Thanks for your quick reply. It works.
Hello, optee team, According to the guideline, I build the Linux with optee in QEMU successfully. I want to add some functions in the linux kernel using optee. But I find that my modification in optee project doesn't work. My pipeline is as following:
One of my modification is:
And this modification can be complied successfully. But I cant find the HACK message in the boot log. I try to recompile the whole project, the Linux, change the compile flag. But it is useless.