From c767ee65438061849b990c1e47760cd4224002aa Mon Sep 17 00:00:00 2001
From: mntmn <lukas@mntmn.com>
Date: Tue, 24 Nov 2020 02:05:45 +0100
Subject: [PATCH] WIP: add qemu emulation script for reform kernel

---
 reform2-imx8mq/emulate.sh | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100755 reform2-imx8mq/emulate.sh

diff --git a/reform2-imx8mq/emulate.sh b/reform2-imx8mq/emulate.sh
new file mode 100755
index 0000000..6e2bd71
--- /dev/null
+++ b/reform2-imx8mq/emulate.sh
@@ -0,0 +1,18 @@
+#!/bin/bash
+
+qemu-system-aarch64 \
+  -machine virt \
+  -cpu cortex-a53 \
+  -smp 4 \
+  -kernel ./linux/arch/arm64/boot/Image \
+  -device virtio-gpu-pci,virgl=on \
+  -append "console=ttyAMA0 root=/dev/vda rw" \
+  -m 4096 \
+  -nic user,model=virtio-net-pci \
+  -display gtk,gl=on \
+  -device usb-ehci -device usb-kbd -device usb-tablet -usb \
+  -serial stdio
+
+# optional: rootfs mounted from .img
+#-drive if=none,file=/dev/loop0p1,id=rfs -device virtio-blk-device,drive=rfs \
+
-- 
GitLab