Browse Source

WIP: add disk mode to emulate.sh

reform2-upstreaming
mntmn 3 months ago
parent
commit
be7937959a
Signed by: mntmn GPG Key ID: 376511EB67AD7BAF
1 changed files with 10 additions and 3 deletions
  1. +10
    -3
      reform2-imx8mq/emulate.sh

+ 10
- 3
reform2-imx8mq/emulate.sh View File

@@ -1,5 +1,13 @@
#!/bin/bash

DISK=""
if [ -e /dev/loop0p1 ]
then
DISK="-drive if=none,file=/dev/loop0p1,id=rfs -device virtio-blk-device,drive=rfs"
else
echo "Hint: mount the disk image with: udisksctl loop-setup -f ./reform-system.img"
fi

qemu-system-aarch64 \
-machine virt \
-cpu cortex-a53 \
@@ -11,8 +19,7 @@ qemu-system-aarch64 \
-nic user,model=virtio-net-pci \
-display gtk,gl=on \
-device usb-ehci -device usb-kbd -device usb-tablet -usb \
-serial stdio
-serial stdio \
$DISK

# optional: rootfs mounted from .img
#-drive if=none,file=/dev/loop0p1,id=rfs -device virtio-blk-device,drive=rfs \


Loading…
Cancel
Save