From nobody Mon Dec 15 01:52:05 2025 Delivered-To: importer@patchew.org Received-SPF: none (zoho.com: 80.81.252.135 is neither permitted nor denied by domain of seabios.org) client-ip=80.81.252.135; envelope-from=seabios-bounces@seabios.org; helo=mail.coreboot.org; Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 80.81.252.135 is neither permitted nor denied by domain of seabios.org) smtp.mailfrom=seabios-bounces@seabios.org Return-Path: Received: from mail.coreboot.org (mail.coreboot.org [80.81.252.135]) by mx.zohomail.com with SMTPS id 1505724481843405.17100070489437; Mon, 18 Sep 2017 01:48:01 -0700 (PDT) Received: from [127.0.0.1] (helo=ra.coreboot.org) by mail.coreboot.org with esmtp (Exim 4.86_2) (envelope-from ) id 1dtriV-0000Ud-7B; Mon, 18 Sep 2017 10:47:47 +0200 Received: from mx1.redhat.com ([209.132.183.28]) by mail.coreboot.org with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_2) (envelope-from ) id 1dtriE-0000R3-MM for seabios@seabios.org; Mon, 18 Sep 2017 10:47:44 +0200 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 08D29C047B68 for ; Mon, 18 Sep 2017 08:47:28 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-116-116.ams2.redhat.com [10.36.116.116]) by smtp.corp.redhat.com (Postfix) with ESMTP id B786660468; Mon, 18 Sep 2017 08:47:27 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 30803422A1; Mon, 18 Sep 2017 10:47:24 +0200 (CEST) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 08D29C047B68 Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx07.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=kraxel@redhat.com From: Gerd Hoffmann To: seabios@seabios.org Date: Mon, 18 Sep 2017 10:47:24 +0200 Message-Id: <20170918084724.1133-7-kraxel@redhat.com> In-Reply-To: <20170918084724.1133-1-kraxel@redhat.com> References: <20170918084724.1133-1-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.31]); Mon, 18 Sep 2017 08:47:28 +0000 (UTC) X-Spam-Score: -6.5 (------) Subject: [SeaBIOS] [PATCH v3 6/6] [hack] ignore sgabios, enable sercon instead X-BeenThere: seabios@seabios.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SeaBIOS mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Gerd Hoffmann MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: seabios-bounces@seabios.org Sender: "SeaBIOS" X-Duff: Orig. Duff, Duff Lite, Duff Dry, Duff Dark, Raspberry Duff, Lady Duff, Red Duff, Tartar Control Duff X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" 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 *sour= ces) file =3D romfile_findprefix(prefix, file); if (!file) break; + if (strcmp(file->name, "vgaroms/sgabios.bin") =3D=3D 0) { + dprintf(1, "sgabios.bin found -> ignoring, enabling sercon ins= tead.\n"); + dprintf(1, "hint: use '-machine graphics=3Dno' instead of '-de= vice sga'.\n"); + const_romfile_add_int("etc/sercon-port", PORT_SERIAL1); + continue; + } struct rom_header *rom =3D deploy_romfile(file); if (rom) { setRomSource(sources, rom, (u32)file); --=20 2.9.3 _______________________________________________ SeaBIOS mailing list SeaBIOS@seabios.org https://mail.coreboot.org/mailman/listinfo/seabios