From nobody Wed Apr 24 05:36:13 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 1676258921201635.7380554485478; Sun, 12 Feb 2023 19:28:41 -0800 (PST) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTPA id CB60920965; Mon, 13 Feb 2023 03:28:36 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by coreboot.org (Postfix) with ESMTP id 17FB820936 for ; Mon, 13 Feb 2023 03:28:23 +0000 (UTC) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) for ; Sun, 12 Feb 2023 19:28:22 -0800 (PST) Received: from authenticated-user (PRIMARY_HOSTNAME [PUBLIC_IP]) by smtp.gmail.com with ESMTPSA id m23-20020a056870889700b00150835847c2sm4391811oam.16.2023.02.12.19.28.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Feb 2023 19:28:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=HNCsd84yZGsoEna0dlQmkshoLcq92fuYw2TAI1pL1gA=; b=Ri5+2K8KFtzSi6AefV0/OwSt4HMHJcK5NgY1b7RQaVmX5Qq/PqQKOLgSR+9MAwe4E4 m2boECaseDF0MBEyfdQVlgD5hw/hpAY7NCNsEL9qQQ7mC9UT6l501oiP9I2cNGFgRpLg ZadlQAmvwncj7L/CwovHNBXYvyMWZncVfC5NEg4ydlU2V9cE9cBkyjeXebMh6zyb1ozK bY3GcPKDOgJu+Uket7FsAJDBdMjufLJIyUrkUJtyg9Ab+1K8JpVE5JaNS+QDAedy0wx/ ucWIzGpCAwpB5a3dv8Yskd7TpjMelSrs3KIIRQ700IOkD1tpLAgGsoUZk8Zi3ClUqz1D HeBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=HNCsd84yZGsoEna0dlQmkshoLcq92fuYw2TAI1pL1gA=; b=fJVOxfRT00IBCih0IjzCwq7lNEuEiOMD7J0FiBpZ8hsbyeGGcTwWRFFc9unYnDqIfR uGoVEYuQRzSqpoHVkIyeXTOK4hchHjp3YnVnKS6MHXfm3AoLs7H8uUm/hloi9IcyyUxy mYJO1r7QZcIUSxeyz4yLHC7NisQJg96zfIIFCx4k42qgAoQ9PsbHJZLaSMgSyy9iLbAc jTpSY12eecZwxg8zUct2WP330blFdRCj3X5/TQt2467ZagfBnl4G697qjIQVcNfG4g1R 0BY/xK5X7g5+PqNWCaH/ftEuJwIEh3wEsD2Un23ILVqtQvbfSCN7xdU8xqibCkpHv1uB calQ== X-Gm-Message-State: AO0yUKVGC2+Tqco48N1KUmcimxUxiaRSU4wTwlcgIMDUC+H7fpvgLhOv QmmDsW8NyvvYTAb5DDtyHLPNAOtU2AkodA== X-Google-Smtp-Source: AK7set/HJSg/QKq39DyDVShbg6eTl82l31iPVACMESoJAD2/DdZiCfWCpde9G43QhHsnSHQdzY2frg== X-Received: by 2002:a05:6870:b684:b0:16e:591:3b94 with SMTP id cy4-20020a056870b68400b0016e05913b94mr1311553oab.15.1676258901297; Sun, 12 Feb 2023 19:28:21 -0800 (PST) Message-ID: Date: Sun, 12 Feb 2023 22:28:19 -0500 MIME-Version: 1.0 Content-Language: en-US From: christopherericlentocha@gmail.com To: seabios@seabios.org, christopherericlentocha@gmail.com References: In-Reply-To: Message-ID-Hash: 2OJFKAQZD733ZFJ6PYDW2NDINMIWCSKV X-Message-ID-Hash: 2OJFKAQZD733ZFJ6PYDW2NDINMIWCSKV 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] Re: [PATCH] Fix Bay Trail Chromebook Bootup on MrChromebox's Cus... 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: 1676258923219100001 Content-Type: text/plain; charset="utf-8"; format="flowed" tom 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 and 11 won't see it, though I didn't test 11, It would most likely do it since all Linux versions I tried did the same. Signed-off-by: Christopher Lentocha --- src/boot.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/boot.c b/src/boot.c index 1effd80..0844268 100644 --- a/src/boot.c +++ b/src/boot.c @@ -871,6 +871,18 @@ 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 + // and 11 won't see it, though I didn't test 11, It would most + // likely do it since all Linux versions I tried did the same. + 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 > > 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=20 > 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); > } > _______________________________________________ SeaBIOS mailing list -- seabios@seabios.org To unsubscribe send an email to seabios-leave@seabios.org