Skip to contentSkip to conversation

ppc/amigaone: Allow running without firmware image

PATCH Superseded BALATON Zoltan 1 participant 1 message Nov 25, 2023

v1 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ppc/amigaone: Allow running without firmware image

The machine uses a modified U-Boot under GPL license but the sources of it are lost with only a binary available so it cannot be included in QEMU. Allow running without the firmware image by specifying -bios none which can be used when calling a boot loader directly which does not need the firmware and thus simplifying booting guests.

---
Please merge for 8.2 as ir allows booting AmigaOS simpler without having to download separate firmware.

 hw/ppc/amigaone.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
hw/ppc/amigaone.c +1 -1
index 992a55e632..f3d702814a 100644
@@ -105,7 +105,7 @@ static void amigaone_init(MachineState *machine)
             exit(1);
         }
         g_free(filename);
-    } else if (!qtest_enabled()) {
+    } else if (!qtest_enabled() && strcmp(fwname, "none") != 0) {
         error_report("Could not find firmware '%s'", fwname);
         exit(1);
     }
Signature · 1 line
2.30.9