Files
mop3/aux/qemu_amd64_debug.sh
kamkow1 b2e4a3802d
All checks were successful
Build ISO image / build-and-deploy (push) Successful in 3m55s
Build documentation / build-and-deploy (push) Successful in 3m13s
Log QEMU XHCI events
2026-03-23 23:03:42 +01:00

39 lines
718 B
Bash
Executable File

#!/bin/sh
set -x
POSITIONAL_ARGS=()
QEMU_EXTRA=""
while [[ $# -gt 0 ]]; do
case $1 in
--test-usb-stick-xhci)
QEMU_EXTRA="-drive if=none,id=usbstick,format=raw,file=$2 \
-usb \
-device qemu-xhci,id=xhci \
-device usb-storage,bus=xhci.0,drive=usbstick \
-trace usb_xhci_* -D qemu-xhci-log.txt"
shift
shift
;;
--test-pci-ide)
QEMU_EXTRA="-hda $2"
shift
shift
;;
-*|--*)
echo "Unknown option $1"
exit 1
;;
*)
POSITIONAL_ARGS+=("$1")
shift
;;
esac
done
set -- "${POSITIONAL_ARGS[@]}"
qemu-system-x86_64 -M pc -m 4G -serial stdio -cdrom mop3.iso -smp 1 -boot d -s -S $QEMU_EXTRA $@