[SeaBIOS] [PATCH v3 6/6] [hack] ignore sgabios, enable sercon instead
Gerd Hoffmann
kraxel at redhat.com
Mon Sep 18 10:47:24 CEST 2017
Temporary, for testing convinience.
---
src/optionroms.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/optionroms.c b/src/optionroms.c
index 092393a56c..f6b566a88f 100644
--- a/src/optionroms.c
+++ b/src/optionroms.c
@@ -12,6 +12,7 @@
#include "hw/pcidevice.h" // foreachpci
#include "hw/pci_ids.h" // PCI_CLASS_DISPLAY_VGA
#include "hw/pci_regs.h" // PCI_ROM_ADDRESS
+#include "hw/serialio.h" // PORT_SERIAL1
#include "malloc.h" // rom_confirm
#include "output.h" // dprintf
#include "romfile.h" // romfile_loadint
@@ -193,6 +194,12 @@ run_file_roms(const char *prefix, int isvga, u64 *sources)
file = romfile_findprefix(prefix, file);
if (!file)
break;
+ if (strcmp(file->name, "vgaroms/sgabios.bin") == 0) {
+ dprintf(1, "sgabios.bin found -> ignoring, enabling sercon instead.\n");
+ dprintf(1, "hint: use '-machine graphics=no' instead of '-device sga'.\n");
+ const_romfile_add_int("etc/sercon-port", PORT_SERIAL1);
+ continue;
+ }
struct rom_header *rom = deploy_romfile(file);
if (rom) {
setRomSource(sources, rom, (u32)file);
--
2.9.3
More information about the SeaBIOS
mailing list