Archived
26 lines
625 B
Bash
Executable File
26 lines
625 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Standalone direct terminal runner for opencoreRS
|
|
set -e
|
|
|
|
# Ensure image is up to date
|
|
make -s hdd
|
|
|
|
echo "Starting opencoreRS in interactive terminal mode (press Ctrl+C to exit)..."
|
|
stty raw -echo < /dev/tty 2>/dev/null || true
|
|
trap 'stty sane < /dev/tty 2>/dev/null || true' EXIT INT TERM
|
|
|
|
qemu-system-x86_64 \
|
|
-machine pc \
|
|
-m 256M \
|
|
-smp 2 \
|
|
-netdev user,id=net0 \
|
|
-device e1000,netdev=net0 \
|
|
-device ahci,id=ahci0 \
|
|
-drive file=opencoreRS.hdd,format=raw \
|
|
-serial stdio \
|
|
-display none \
|
|
-no-reboot \
|
|
-no-shutdown
|
|
|
|
stty sane < /dev/tty 2>/dev/null || true
|