From nobody Sat May 10 07:47:09 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 1505372942823188.19964012531455; Thu, 14 Sep 2017 00:09:02 -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 1dsOGW-0007LK-Mj; Thu, 14 Sep 2017 09:08:48 +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 1dsOGI-0007Hr-Uv for seabios@seabios.org; Thu, 14 Sep 2017 09:08:47 +0200 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 3E5BA5AFED for ; Thu, 14 Sep 2017 07:08:32 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-117-51.ams2.redhat.com [10.36.117.51]) by smtp.corp.redhat.com (Postfix) with ESMTP id AA95A66FF9; Thu, 14 Sep 2017 07:08:29 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 553233F110; Thu, 14 Sep 2017 09:08:22 +0200 (CEST) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 3E5BA5AFED Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=kraxel@redhat.com From: Gerd Hoffmann To: seabios@seabios.org Date: Thu, 14 Sep 2017 09:08:22 +0200 Message-Id: <20170914070822.28533-7-kraxel@redhat.com> In-Reply-To: <20170914070822.28533-1-kraxel@redhat.com> References: <20170914070822.28533-1-kraxel@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Thu, 14 Sep 2017 07:08:32 +0000 (UTC) X-Spam-Score: -8.0 (--------) Subject: [SeaBIOS] [PATCH v2 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 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/optionroms.c b/src/optionroms.c index 432e8cb02a..6b959e51f5 100644 --- a/src/optionroms.c +++ b/src/optionroms.c @@ -24,6 +24,7 @@ #include "tcgbios.h" // tpm_* =20 static int EnforceChecksum, S3ResumeVga, RunPCIroms; +static int sgabios; =20 =20 /**************************************************************** @@ -194,6 +195,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"); + sgabios++; + continue; + } struct rom_header *rom =3D deploy_romfile(file); if (rom) { setRomSource(sources, rom, (u32)file); @@ -435,6 +442,8 @@ vgarom_setup(void) run_file_roms("vgaroms/", 1, NULL); rom_reserve(0); =20 + if (sgabios) + iobase =3D PORT_SERIAL1; ret =3D romfile_loadint("etc/sercon-enable", 0); if (ret) iobase =3D PORT_SERIAL1; --=20 2.9.3 _______________________________________________ SeaBIOS mailing list SeaBIOS@seabios.org https://mail.coreboot.org/mailman/listinfo/seabios