From nobody Thu Apr 25 17:45:19 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) client-ip=78.46.105.101; envelope-from=seabios-bounces@seabios.org; helo=coreboot.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of seabios.org designates 78.46.105.101 as permitted sender) smtp.mailfrom=seabios-bounces@seabios.org; dmarc=fail(p=none dis=none) header.from=gmail.com Return-Path: Received: from coreboot.org (coreboot.org [78.46.105.101]) by mx.zohomail.com with SMTPS id 1673912434214419.2536083324404; Mon, 16 Jan 2023 15:40:34 -0800 (PST) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id 9ADCE22E93; Mon, 16 Jan 2023 23:40:29 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id DD36722E3F for ; Mon, 16 Jan 2023 23:40:13 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) for ; Mon, 16 Jan 2023 15:40:13 -0800 (PST) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.gmail.com with ESMTPSA id f12-20020a056e020c6c00b0030c0217dde6sm8797140ilj.0.2023.01.16.15.40.11 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 16 Jan 2023 15:40:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:from:content-language:subject:to :user-agent:mime-version:date:message-id:from:to:cc:subject:date :message-id:reply-to; bh=ADiA0xYLZF/pDIUW3e0fIuQnG4wMM5xcWnq3t5XyClA=; b=mSONdip1a6UXEX3wyo9yxUTQcvmQd93TlKwp/H//DBMNvfam0wGul19g0HaarXNbRL yR4i3OJnD4WXb6tg8o3PPe4vNhBO2GMNU+PL2O+vvObCHwp2y3uZpO5CfIgpx23lcY5c +E4fPK+io2EQRT9VtbxHdnGczi45ZakSRsyjyKLBlvnvxa+vZcGFQlmBIIyVPEgI5Bky kR1uyIUgSFhDXFqdRbznj3UMRmrAarXzQLs4ddiFIIYJN+/f0vBGEUDZxZJHgG8Tszeh 8gi21Dfn+rER7OMJ6EjuoVPMjbP/2pSu4+45Anw7ne0mLx3t6NvUDrdUidTwrDQl2ZSS V8SQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:from:content-language:subject:to :user-agent:mime-version:date:message-id:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=ADiA0xYLZF/pDIUW3e0fIuQnG4wMM5xcWnq3t5XyClA=; b=pkOyAy70eX+uSJaQGTCYgMVbno8bphIz7/e8cTP8rOnNr0NA5xUGK6KL5Z/me7RxtT AOBM4uLRAgkKxz/EK4PnoZPPuvgB5OMBSwXm3omtuKFrcDpyUBcZ7AFO47p6YlW1CUdP eXB4bA44ccXMQBVLPPlcIIL0zFTqlnu8JUrkn+Mbh2HRSE49lsJDEtsFwoBkVoS7cibm fDzQUBXFinqildqBVbC9zxUP+Gq09rUBxzwC7l9XZ/pRooBMbDKgMhkS7lPaX7KscsOQ TutGfmH8gpahhsiSPui+sY9/TxgYGSlh2sZo6WFhNnsLY6JZ6DV2psMmL6x+ITfNloH4 t+hA== X-Gm-Message-State: AFqh2krKTCAfs7azowucCQeWHal6t+pwCK7IMaVv9euJ1Sb8jV2L31sz FNfx+QzYW3vDd/cdlvK4RE5V/89ayKsG0Q== X-Google-Smtp-Source: AMrXdXsM/sAALd0bME2ZYWrlb5RncXQSxrHNIQaY2TFuHjRFKPNKvXh8xwRW5u5pmQ9sn2kKB7LvuA== X-Received: by 2002:a92:dc4a:0:b0:30e:ef4e:5b34 with SMTP id x10-20020a92dc4a000000b0030eef4e5b34mr6713348ilq.2.1673912412094; Mon, 16 Jan 2023 15:40:12 -0800 (PST) Message-ID: Date: Mon, 16 Jan 2023 18:40:56 -0500 MIME-Version: 1.0 To: seabios@seabios.org Content-Language: en-US From: Christopher Lentocha Message-ID-Hash: ZPQIEM7TKMGN24GP4DERJ4CPTHA227A4 X-Message-ID-Hash: ZPQIEM7TKMGN24GP4DERJ4CPTHA227A4 X-MailFrom: christopherericlentocha@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-seabios.seabios.org-0; header-match-seabios.seabios.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.6b1 Precedence: list Subject: [SeaBIOS] [PATCH] Fix Bay Trail Chromebook Bootup List-Id: SeaBIOS mailing list Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Transfer-Encoding: quoted-printable Authentication-Results: coreboot.org; auth=pass smtp.auth=mailman@coreboot.org smtp.mailfrom=seabios-bounces@seabios.org X-Spamd-Bar: / X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1673912435519100001 Content-Type: text/plain; charset="utf-8"; format="flowed" on MrChromebox's Custom Firmware while using the SeaBios payload with MrChromebox's SMM variable in coreboot. This is required even if we are booting off of a USB, since it will give MMC errors in Linux and Windows 10 won't see it. See comments and code in ./src/boot.c for more information. Signed-off-by: Christopher Lentocha --- src/boot.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/boot.c b/src/boot.c index 1effd80..8433f51 100644 --- a/src/boot.c +++ b/src/boot.c @@ -871,6 +871,21 @@ call_boot_entry(struct segoff_s bootsegip, u8 bootdrv) // Set the magic number in ax and the boot drive in dl. br.dl =3D bootdrv; br.ax =3D 0xaa55; + // Fix Bay Trail Chromebook Bootup + // on MrChromebox's Custom Firmware + // while using the SeaBios payload + // with MrChromebox's SMM variable in coreboot. + // This is required even if we are booting off of a USB, + // since it will give MMC errors in Linux and Windows 10 + // won't see it. + outb(0xcd, 0xb2); + // Don't Add the line above this comment to CBFS booting, + // because EDK2 as 2nd payload breaks, + // since its already being applied there too, + // and we should expect all CBFS payloads in ROM to do + // what we are doing here. + // The same bug is also in EDK2, so this line would need to be + // added in a similar way for EDK2 code. farcall16(&br); } --=20 2.35.1 _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org