liminix-fork/run-qemu.sh
2022-09-20 23:04:08 +01:00

8 lines
329 B
Bash
Executable file

#!/usr/bin/env nix-shell
#! nix-shell -i bash -p qemu
qemu-system-mips \
-M malta -m 256 \
-append "earlyprintk=serial,ttyS0 console=ttyS0,38400n8 panic=10 oops=panic init=/bin/init loglevel=8 root=/dev/vda" \
-drive file=$2,format=raw,readonly,if=virtio \
-kernel $1 -nographic -display none -serial mon:stdio