summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build-common/packages/qemu14
1 files changed, 14 insertions, 0 deletions
diff --git a/build-common/packages/qemu b/build-common/packages/qemu
index 5861fdd..91f8c1a 100644
--- a/build-common/packages/qemu
+++ b/build-common/packages/qemu
@@ -49,6 +49,20 @@ qemu_halted: qemu-system-arm
# -sd vexpress-1G.img \
ARMGDB?=arm-none-eabi-gdb \
+qemu-system-aarch64:
+ echo $(QEMU_GDBSERVER_PORT) > $(QEMU_GDBSERVER_PORT_FILE)
+ $@ \
+ -kernel $(LINUX_BUILD)/arch/arm64/boot/Image \
+ -M virt \
+ -cpu cortex-a57 \
+ -machine type=virt \
+ -smp $(QEMU_CORES) \
+ -m 1024 \
+ -append 'root=/dev/nfs nfsroot=$(QEMU_NFSROOT) rw ip=dhcp mem=1024M raid=noautodetect rootwait console=ttyAMA0,38400n8 devtmpfs.mount=0' \
+ -nographic \
+ $(QEMU_HALT) \
+ -gdb tcp::$(QEMU_GDBSERVER_PORT)
+
qemu-gdb:
# Link the Kernel VMLinux locally for python lx-symbols
ln -f -s $(LINUX_BUILD)/vmlinux