gitlab.arm.com will be in the maintainance mode on Wednesday June 29th 01:00 - 10:00 (UTC+1). Repositories is read only during the maintainance.

Commit 65f7cd49 authored by Grant Likely's avatar Grant Likely
Browse files

Create default qemu targets for fip and semihosting



With this patch, by default both semihosting and nor_flash images will
be built and can be conveniently run with either 'make qemu-fip' or
'make qemu-semihosting'.
Signed-off-by: Grant Likely's avatarGrant Likely <grant.likely@arm.com>
parent 6958eee5
......@@ -14,13 +14,29 @@ tweakconfig:
u-boot/all u-boot/u-boot.bin: tweakconfig
endif
$(FLASH_IMAGE): tfa/all
all: $(FLASH_IMAGE)
$(FLASH_IMAGE): tfa/all tfa/fip
dd if=/dev/zero of=$(FLASH_IMAGE) count=$$((64*1024*1024>>9))
dd if=$(TFA_OUTPUT)/$(TFA_PLAT)/release/bl1.bin of=$(FLASH_IMAGE) bs=4096 conv=notrunc
dd if=$(TFA_OUTPUT)/$(TFA_PLAT)/release/fip.bin of=$(FLASH_IMAGE) bs=4096 seek=64 conv=notrunc
qemu: $(FLASH_IMAGE)
all: semihosting
semihosting: tfa/all
mkdir -p output
cp $(TFA_OUTPUT)/$(TFA_PLAT)/release/*.bin output
cp $(OPTEE_OUTPUT)/arm-plat-vexpress/core/tee-header_v2.bin output/bl32.bin
cp $(OPTEE_OUTPUT)/arm-plat-vexpress/core/tee-pager_v2.bin output/bl32_extra1.bin
cp $(OPTEE_OUTPUT)/arm-plat-vexpress/core/tee-pageable_v2.bin output/bl32_extra2.bin
cp $(UBOOT_OUTPUT)/u-boot.bin output/bl33.bin
qemu-fip:
qemu-system-aarch64 -nographic -machine virt,secure=on -cpu cortex-a57 \
-no-acpi -smp 2 -m 1024 -bios $(FLASH_IMAGE) -d unimp \
-monitor null -serial stdio -serial tcp::5000,server,nowait
qemu-semihosting:
cd output && qemu-system-aarch64 -nographic -machine virt,secure=on -cpu cortex-a57 \
-no-acpi -smp 2 -m 1024 -bios bl1.bin -d unimp \
-monitor null -serial stdio -serial tcp::5000,server,nowait \
-semihosting-config enable,target=native
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment