From 6486a61213785a8d3bc1c9c892d82c301094c64b Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Wed, 8 Apr 2026 14:03:32 -0700 Subject: [PATCH 1/2] boot-qemu.py: Disable audio for m68k A user might not have permission or environment to open an audio device, resulting in: qemu-system-m68k: no default audio driver available Signed-off-by: Nathan Chancellor --- boot-qemu.py | 1 + 1 file changed, 1 insertion(+) diff --git a/boot-qemu.py b/boot-qemu.py index 7e91ba5..89b437e 100755 --- a/boot-qemu.py +++ b/boot-qemu.py @@ -523,6 +523,7 @@ def __init__(self): self._default_kernel_path = Path('vmlinux') self._initrd_arch = self._qemu_arch = 'm68k' self._qemu_args += [ + '-audio', 'none', '-cpu', 'm68040', '-M', 'q800', '-no-reboot', From 2752c87fbe7ab6b2d45472b7b790bafa48979aa5 Mon Sep 17 00:00:00 2001 From: Nathan Chancellor Date: Wed, 8 Apr 2026 14:51:57 -0700 Subject: [PATCH 2/2] boot-qemu.py: Set default m68k memory to 512m The default switch to 1G ends up causing panics on boot from memory allocation issues, at least with the default mac_defconfig. Given the real Mac machines this is modeled after had less memory than this and QEMU only allows up to 1G, it is likely some code path is not well tested. Signed-off-by: Nathan Chancellor --- boot-qemu.py | 1 + 1 file changed, 1 insertion(+) diff --git a/boot-qemu.py b/boot-qemu.py index 89b437e..814022d 100755 --- a/boot-qemu.py +++ b/boot-qemu.py @@ -528,6 +528,7 @@ def __init__(self): '-M', 'q800', '-no-reboot', ] # fmt: off + self.memory = '512m' class MIPSQEMURunner(QEMURunner):