From nobody Fri May 3 08:43:30 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+58408+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58408+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1588236479; cv=none; d=zohomail.com; s=zohoarc; b=QuoJKR+XM52BjdEoHKBPZs6lnZ7sPhZ3U5tqfOS7kZ3K46I7725xvdtKi7aSO41OEVdNBc17X5xIF87eCWuoGVsBrV2tnwEuZA7rnXWirYHhO4jSFnlyHNMaZEPxKLA7JNScw0kNDlY3JGK3mR7UxlnHEUrcnRP2X0x0JcU9eiE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588236479; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=bktkxd+h6kGZIyu9525ZzAO/GpiFUPHEU4MdKLq0B6c=; b=dZu5sLvPJJQPxU779o6yudLCbtOQ/czspw9nlthW6onqnwi6PpR/AarFfsDDhVZXSOQit0egzKMY8clW/k6Afz021lWgLfPjl0GWRVpO33FjOLKANm4oJY1npJoYMSExKmyDk0HIdcksqn2+Mrnq5i0aFSA4t58rwBUlpKPfyFM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58408+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1588236479861327.7299430934504; Thu, 30 Apr 2020 01:47:59 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id C5zBYY1788612x3PjwG3SLjR; Thu, 30 Apr 2020 01:47:59 -0700 X-Received: from mail-qk1-f194.google.com (mail-qk1-f194.google.com [209.85.222.194]) by mx.groups.io with SMTP id smtpd.web10.3387.1588236478963391756 for ; Thu, 30 Apr 2020 01:47:59 -0700 X-Received: by mail-qk1-f194.google.com with SMTP id k81so2191993qke.5 for ; Thu, 30 Apr 2020 01:47:58 -0700 (PDT) X-Gm-Message-State: H7vqShdH2GJjBJTkgv5UDFZux1787277AA= X-Google-Smtp-Source: APiQypLjoXkxNM4HTVTjuvHFJGUqSQNeZF6FcL7owxyabMTfrdHYSpbwO53R5v5ItCZ/+YuUHBesgA== X-Received: by 2002:a37:4a83:: with SMTP id x125mr1371221qka.380.1588236477750; Thu, 30 Apr 2020 01:47:57 -0700 (PDT) X-Received: from localhost.localdomain (c-98-214-99-181.hsd1.il.comcast.net. [98.214.99.181]) by smtp.gmail.com with ESMTPSA id f130sm1419553qke.22.2020.04.30.01.47.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 01:47:57 -0700 (PDT) From: "Andrei Warkentin" To: devel@edk2.groups.io Cc: ard.biesheuvel@arm.com, leif@nuviainc.com, pete@akeo.ie, philmd@redhat.com Subject: [edk2-devel] [edk2-platforms][PATCH 1/4] RPi3/RPi4: document 3A+ support. Date: Thu, 30 Apr 2020 01:47:43 -0700 Message-Id: <20200430084746.51455-2-andrey.warkentin@gmail.com> In-Reply-To: <20200430084746.51455-1-andrey.warkentin@gmail.com> References: <20200430084746.51455-1-andrey.warkentin@gmail.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: <27952.devel.edk2.groups.io> Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,andrey.warkentin@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1588236479; bh=YZPCnLGn6i5StX523RyIwsdtW93ehbxTEyQTc0xDeOM=; h=Cc:Date:From:Reply-To:Subject:To; b=mIQ0FFjkk5QeeFEDXQ+9MjmSXboQavDe5Ly05atsejvZPFrFT9Q39R0rmJTFkyXwGec a64rM5UmBBBLKyR/SOKEeBC8rEmTEas+fbbC3Png8ngn4TtPzL5lTHm7ptMl02PHxSQRC 43ZrW1Hn5bTajLe0rwkexd9iYF/wEYK/dOw= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" The RPi3 target also supports the 3A+, so let's document it. (The 3A+ lacks the ethernet port and has less RAM) Clarify RPi3 is for BCM2837-based variants, while RPi4 is for the BCM2711-based variants. Signed-off-by: Andrei Warkentin --- Platform/RaspberryPi/RPi3/Readme.md | 23 ++++++++++++++------ Platform/RaspberryPi/RPi4/Readme.md | 15 ++++++++++--- 2 files changed, 28 insertions(+), 10 deletions(-) diff --git a/Platform/RaspberryPi/RPi3/Readme.md b/Platform/RaspberryPi/RPi= 3/Readme.md index 05f498ee..d63d6767 100644 --- a/Platform/RaspberryPi/RPi3/Readme.md +++ b/Platform/RaspberryPi/RPi3/Readme.md @@ -1,19 +1,28 @@ -Raspberry Pi Platform -=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D +Raspberry Pi 3 Platform +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 # Summary =20 -This is a port of 64-bit Tiano Core UEFI firmware for the Raspberry Pi 3/3= B+ platforms, -based on [Ard Bisheuvel's 64-bit](http://www.workofard.com/2017/02/uefi-on= -the-pi/) +This is a port of 64-bit Tiano Core UEFI firmware for the Raspberry Pi 3B = (and related) +platforms, based on [Ard Bisheuvel's 64-bit](http://www.workofard.com/2017= /02/uefi-on-the-pi/) and [Microsoft's 32-bit](https://github.com/ms-iot/RPi-UEFI/tree/ms-iot/Pi= 3BoardPkg) implementations, as maintained by [Andrei Warkentin](https://github.com/an= dreiw/RaspberryPiPkg). =20 -This is meant as a generally useful 64-bit ATF + UEFI implementation for t= he Raspberry -Pi 3/3B+ which should be good enough for most kind of UEFI development, as= well as for -running consummer Operating Systems in such as Linux or Windows. +This is meant as a generally useful 64-bit ATF + UEFI implementation for R= aspberry Pi +variants based on the BCM2837 SoC, which should be good enough for most ki= nd of UEFI development, +as well as for running consummer Operating Systems in such as Linux, Windo= ws or the BSDs. =20 Raspberry Pi is a trademark of the [Raspberry Pi Foundation](http://www.ra= spberrypi.org). =20 +# Hardware Supported + +The RPi3 target supports Pi revisions based on the BCM2837 SoC: +- Raspberry Pi 3A+ +- Raspberry Pi 3B +- Raspberry Pi 3B+ + +Please see the RPi4 target for BCM2711-based variants, such as the Raspber= ry Pi 4B. + # Status =20 This firmware, that has been validated to compile against the current diff --git a/Platform/RaspberryPi/RPi4/Readme.md b/Platform/RaspberryPi/RPi= 4/Readme.md index fa9b3146..1f4ed001 100644 --- a/Platform/RaspberryPi/RPi4/Readme.md +++ b/Platform/RaspberryPi/RPi4/Readme.md @@ -3,14 +3,23 @@ Raspberry Pi 4 Platform =20 # Summary =20 -This is a port of 64-bit Tiano Core UEFI firmware for the Raspberry Pi 4 p= latforms. +This is a port of 64-bit Tiano Core UEFI firmware for the Raspberry Pi 4B = platform. =20 This is intended to be useful 64-bit [TF-A](https://www.trustedfirmware.or= g/) + -UEFI implementation for the Raspberry Pi 4 which should be good enough for= most -kind of UEFI development, as well as for running consummer Operating Syste= ms. +UEFI implementation for the Raspberry Pi variants based on the BCM2711 SoC, +which should be good enough for most kind of UEFI development, as well run= ning consumer +Operating Systems. =20 Raspberry Pi is a trademark of the [Raspberry Pi Foundation](https://www.r= aspberrypi.org). =20 +# Hardware Supported + +The RPi4 target supports Pi revisions based on the BCM2711 SoC: +- Raspberry Pi 4B + +Please see the RPi3 target for the BCM2837-based variants, such as the Ras= pberry +Pi 3B. + # Status =20 This firmware is still in development stage, meaning that it comes with the --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#58408): https://edk2.groups.io/g/devel/message/58408 Mute This Topic: https://groups.io/mt/73371475/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Fri May 3 08:43:30 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+58409+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58409+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1588236480; cv=none; d=zohomail.com; s=zohoarc; b=LUW7Ea4YAl18n/QNnyu6tuKJZXdkpeT2P54aTC9bJu3WoxWek++WQK3wStW0oz1CnosrJW6FptARzDYRRKaLH/YtXIllVH80nBGS44QHucLgvW7RF6SaqQP/WH/iSUxLvwqjUfNC1BurgKpuG2La5vCX1vQ7pqjuQzlixDhcVWg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588236480; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=QzNfm1TIEw6uMMVkYeVqej9mF6ZKOrHB+q1QEzSGq1M=; b=HvdfLZLV5O2tM1Ik0UV48oeAsIXRV/sPcDnvi9w9YrDEdfQDXUD3h8Jrx6fHFXqH/xR+t7fsYC1od/cz1v28L8rQlhAPXpfbgNf2hd/UGBLf5ugiL+kKTNE0XHlXx20xyTuJZ/NhyzTsvzjld6JFu4EQsqPhNZl8vkH9AoQvj4Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58409+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1588236480766650.5552648347257; Thu, 30 Apr 2020 01:48:00 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id em5DYY1788612xSu8wYxboX9; Thu, 30 Apr 2020 01:48:00 -0700 X-Received: from mail-qk1-f171.google.com (mail-qk1-f171.google.com [209.85.222.171]) by mx.groups.io with SMTP id smtpd.web12.3308.1588236479832748605 for ; Thu, 30 Apr 2020 01:48:00 -0700 X-Received: by mail-qk1-f171.google.com with SMTP id s9so2192500qkm.6 for ; Thu, 30 Apr 2020 01:47:59 -0700 (PDT) X-Gm-Message-State: 8Cshq2qNBW1GNwDKwEoO1BTMx1787277AA= X-Google-Smtp-Source: APiQypLQ36oR3eAMYV6wCArfhakjSyebaDs8N7ptNJGdFUoQPb+dOCed433PD6YJ8SMyfPMZ5Leb4g== X-Received: by 2002:a37:c4b:: with SMTP id 72mr2538044qkm.2.1588236478866; Thu, 30 Apr 2020 01:47:58 -0700 (PDT) X-Received: from localhost.localdomain (c-98-214-99-181.hsd1.il.comcast.net. [98.214.99.181]) by smtp.gmail.com with ESMTPSA id f130sm1419553qke.22.2020.04.30.01.47.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 01:47:58 -0700 (PDT) From: "Andrei Warkentin" To: devel@edk2.groups.io Cc: ard.biesheuvel@arm.com, leif@nuviainc.com, pete@akeo.ie, philmd@redhat.com Subject: [edk2-devel] [edk2-platforms][PATCH 2/4] RPi3: add support for the v1.2 Pi 2B. Date: Thu, 30 Apr 2020 01:47:44 -0700 Message-Id: <20200430084746.51455-3-andrey.warkentin@gmail.com> In-Reply-To: <20200430084746.51455-1-andrey.warkentin@gmail.com> References: <20200430084746.51455-1-andrey.warkentin@gmail.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: <27952.devel.edk2.groups.io> Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,andrey.warkentin@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1588236480; bh=HYZXBm9AdSDZqlodkTgFylzozbzzzl+Ux9WR65EaYAY=; h=Cc:Date:From:Reply-To:Subject:To; b=RXEX7uWo4/2KFqYKNqxJ5Y1/GyJOCfNy6bAnwZHAUAPcMxlYbo6dL7Ve5/ADsEyoDEg rk0T3kCApZXrkb7nDTv3WV5cs1JPbWgSg+nbjIggs3EnRLhuUxpy9k9/+HI55ZLnmQ491 H/RVIVg0lSMeJ+vMNXBHrdvaT1pdjarv5oU= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" v1.2 (not older) actually uses the same BCM2837 SoC as Pi 3, and is thus a 64-bit device that this firmware easily supports as a minor variant of the Pi 3. The difference from Pi 3 is choice of UART (PL011), no WiFi, no BT and slower clock due to thermal problems caused by older board design. Signed-off-by: Andrei Warkentin --- Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c | 4 ++-- Platform/RaspberryPi/RPi3/Readme.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c b/Platform/= RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c index 1091e680..c90c2530 100644 --- a/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c +++ b/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c @@ -322,9 +322,9 @@ ApplyVariables ( ASSERT_EFI_ERROR (Status); } =20 - if (mModelFamily =3D=3D 3) { + if (mModelFamily =3D=3D 3 || mModelFamily =3D=3D 2) { /* - * Pi 3: either Arasan or SdHost goes to SD card. + * Pi 2B v1.2 / Pi 3: either Arasan or SdHost goes to SD card. * * Switching two groups around, so disable both first. * diff --git a/Platform/RaspberryPi/RPi3/Readme.md b/Platform/RaspberryPi/RPi= 3/Readme.md index d63d6767..3484c92c 100644 --- a/Platform/RaspberryPi/RPi3/Readme.md +++ b/Platform/RaspberryPi/RPi3/Readme.md @@ -17,6 +17,7 @@ Raspberry Pi is a trademark of the [Raspberry Pi Foundati= on](http://www.raspberr # Hardware Supported =20 The RPi3 target supports Pi revisions based on the BCM2837 SoC: +- Raspberry Pi 2B v1.2 (older versions are *not* compatible) - Raspberry Pi 3A+ - Raspberry Pi 3B - Raspberry Pi 3B+ --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#58409): https://edk2.groups.io/g/devel/message/58409 Mute This Topic: https://groups.io/mt/73371476/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Fri May 3 08:43:30 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+58410+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58410+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1588236481; cv=none; d=zohomail.com; s=zohoarc; b=i5Nb6BpBsezIeATRBXLDf1meeSQpYYIR2SFswqEljt7Obj51uhAYf2GHw0jHS2kuKxpKOYM39se93e+luefNn8QMhh4UjPLq8xAqXCOzfttugr4haWXq0C+NhL/WCogmEVUmlWnLcaSBHwR0TOk0e2ZuuDFz2YGDTRqtsVfrxa8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588236481; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=bQIQ3DxW53ZWE22r/8SL0qt6khnlhBvTC5ROZxhScqs=; b=AW981HKU8aL6r19cn8XMSRk+w+RuhLJIoKqPI8OGXMhBAqxGYMOqy2BUX7xZDu73jOelVW+X8RjK383mmLVTs8X0I4NM+6KhLxp+N6VO9JqZg0puEcN/Ala+kAxvpwxJot+pCh6AP13/jHL37HX61Bc3gPSk/24gICn+e5glAE4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58410+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1588236481885832.2255477605405; Thu, 30 Apr 2020 01:48:01 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id t6cSYY1788612xnRaPuUeHP8; Thu, 30 Apr 2020 01:48:01 -0700 X-Received: from mail-qk1-f194.google.com (mail-qk1-f194.google.com [209.85.222.194]) by mx.groups.io with SMTP id smtpd.web10.3388.1588236481045832531 for ; Thu, 30 Apr 2020 01:48:01 -0700 X-Received: by mail-qk1-f194.google.com with SMTP id l78so4901243qke.7 for ; Thu, 30 Apr 2020 01:48:00 -0700 (PDT) X-Gm-Message-State: BmBY3nAnnyYmu3FbOWuIJ4qQx1787277AA= X-Google-Smtp-Source: APiQypK2vy32OFJV79iCOKJfq3wVj+TYueketFbfUxIfKUHXtlIm3/94TBnYUqWpxFUdVBO402++hg== X-Received: by 2002:a37:bc81:: with SMTP id m123mr2427626qkf.287.1588236479956; Thu, 30 Apr 2020 01:47:59 -0700 (PDT) X-Received: from localhost.localdomain (c-98-214-99-181.hsd1.il.comcast.net. [98.214.99.181]) by smtp.gmail.com with ESMTPSA id f130sm1419553qke.22.2020.04.30.01.47.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 01:47:59 -0700 (PDT) From: "Andrei Warkentin" To: devel@edk2.groups.io Cc: ard.biesheuvel@arm.com, leif@nuviainc.com, pete@akeo.ie, philmd@redhat.com Subject: [edk2-devel] [edk2-platforms][PATCH 3/4] RPi3: add support for Compute Module 3. Date: Thu, 30 Apr 2020 01:47:45 -0700 Message-Id: <20200430084746.51455-4-andrey.warkentin@gmail.com> In-Reply-To: <20200430084746.51455-1-andrey.warkentin@gmail.com> References: <20200430084746.51455-1-andrey.warkentin@gmail.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: <27952.devel.edk2.groups.io> Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,andrey.warkentin@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1588236481; bh=dj/Ity0HMr5NGAepzm/q5y7i0d/2WwzIONnaWLsu7bY=; h=Cc:Date:From:Reply-To:Subject:To; b=eAcpHt1G+7eIp53AgSpRoeCVm4cjzj+e38VbEESVDcDo1qvPsjB8Utq1mEOUVCi3m4K mv+7aPrCE2dalrFMPvMnuvOe67rDOtftbDLVdoGENbcxU0gAqqSFQAixlvHa/t/jJm6Nx uA1vyY1PlOOdXbD2Fmk6JeIBoCdLDKzag1M= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Mostly strings and documentation, but also fixes a dumb bug I introduced when I added SD block write validation back in RaspberryPiPkg (which broke eMMC support, even though I could have tested it with a discrete eMMC media on regular Pies) Signed-off-by: Andrei Warkentin --- Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxeHii.uni | 8 ++++---- Platform/RaspberryPi/Drivers/MmcDxe/MmcBlockIo.c | 1 + Platform/RaspberryPi/RPi3/Readme.md | 19 ++++++++++++-= ------ 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxeHii.uni b/Plat= form/RaspberryPi/Drivers/ConfigDxe/ConfigDxeHii.uni index 26d803f7..07660072 100644 --- a/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxeHii.uni +++ b/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxeHii.uni @@ -53,8 +53,8 @@ #string STR_MMC_FORM_TITLE #language en-US "SD/MMC Configuration" #string STR_MMC_FORM_SUBTITLE #language en-US "Note: UEFI only, OS may = override settings." =20 -#string STR_MMC_SD_PROMPT #language en-US "uSD Routing" -#string STR_MMC_SD_HELP #language en-US "Choose host controller t= o drive uSD slot" +#string STR_MMC_SD_PROMPT #language en-US "uSD/eMMC Routing" +#string STR_MMC_SD_HELP #language en-US "Choose host controller t= o drive local flash storage" #string STR_MMC_SD_EMMC2 #language en-US "eMMC2 SDHCI" #string STR_MMC_SD_SDHOST #language en-US "Broadcom SDHOST" #string STR_MMC_SD_ARASAN #language en-US "Arasan SDHCI" @@ -65,12 +65,12 @@ #string STR_MMC_DISMULTI_Y #language en-US "Single-block transfers" =20 #string STR_MMC_FORCE1BIT_PROMPT #language en-US "uSD Max Bus Width" -#string STR_MMC_FORCE1BIT_HELP #language en-US "Tweak for bad media" +#string STR_MMC_FORCE1BIT_HELP #language en-US "Tweak for bad media (N/A= for eMMC)" #string STR_MMC_FORCE1BIT_Y #language en-US "1 Bit Mode" #string STR_MMC_FORCE1BIT_N #language en-US "4 Bit Mode" =20 #string STR_MMC_FORCEDS_PROMPT #language en-US "uSD Force Default Speed" -#string STR_MMC_FORCEDS_HELP #language en-US "Tweak for bad media" +#string STR_MMC_FORCEDS_HELP #language en-US "Tweak for bad media (N/A= for eMMC)" #string STR_MMC_FORCEDS_Y #language en-US "Force Default Speed" #string STR_MMC_FORCEDS_N #language en-US "Allow High Speed" =20 diff --git a/Platform/RaspberryPi/Drivers/MmcDxe/MmcBlockIo.c b/Platform/Ra= spberryPi/Drivers/MmcDxe/MmcBlockIo.c index 29a9fd7d..8a2f7f42 100644 --- a/Platform/RaspberryPi/Drivers/MmcDxe/MmcBlockIo.c +++ b/Platform/RaspberryPi/Drivers/MmcDxe/MmcBlockIo.c @@ -47,6 +47,7 @@ ValidateWrittenBlockCount ( /* * Not on MMC. */ + *TransferredBlocks =3D Count; return EFI_SUCCESS; } =20 diff --git a/Platform/RaspberryPi/RPi3/Readme.md b/Platform/RaspberryPi/RPi= 3/Readme.md index 3484c92c..b756013b 100644 --- a/Platform/RaspberryPi/RPi3/Readme.md +++ b/Platform/RaspberryPi/RPi3/Readme.md @@ -21,6 +21,10 @@ The RPi3 target supports Pi revisions based on the BCM28= 37 SoC: - Raspberry Pi 3A+ - Raspberry Pi 3B - Raspberry Pi 3B+ +- Raspberry Pi CM3 + +Note: a CM3L, lacking eMMC and thus similar to the 3B, will probably work = as well, but just +has not been tested. =20 Please see the RPi4 target for BCM2711-based variants, such as the Raspber= ry Pi 4B. =20 @@ -148,20 +152,21 @@ This should allow you to set whatever date/time you w= ant using the Shell date an time commands. While in UEFI or HLOS, the time will tick forward. `RtcEpochSeconds` is not updated on reboots. =20 -## uSD +## uSD (and eMMC for CM3) =20 -UEFI supports both the Arasan SDHCI and the Broadcom SDHost controllers to= access the uSD slot. -You can use either. The other controller gets routed to the SDIO card. The= choice made will +UEFI supports both the Arasan SDHCI and the Broadcom SDHost controllers to= access the flash +media (eMMC on CM3, and uSD slot on everything else). You can use either. = The other controller +gets routed to the SDIO WiFi card (N/A to models without WiFi). The choice= made will impact ACPI OSes booted (e.g. Windows 10). Arasan, being an SDIO controlle= r, is usually used -with the WiFi adapter where available. SDHost cannot be used with SDIO. In= UEFI setup screen: +with the WiFi adapter (where available). SDHost cannot be used with SDIO. = In UEFI setup screen: - go to `Device Manager` - go to `Raspberry Pi Configuration` -- go to `Chipset` -- configure `Boot uSD Routing` +- go to `SD/MMC Configuration` +- configure `uSD/eMMC Routing` =20 Known issues: - Arasan HS/4bit support is missing. -- No 8 bit mode support for (e)MMC (irrelevant for the Pi 3). +- No 8 bit mode support for (e)MMC (slow UEFI file I/O on CM3). - Hacky (e)MMC support (no HS). - No card removal/replacement detection, tons of timeouts and slow down du= ring boot without an uSD card present. =20 --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#58410): https://edk2.groups.io/g/devel/message/58410 Mute This Topic: https://groups.io/mt/73371477/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- From nobody Fri May 3 08:43:30 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+58411+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58411+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1588236483; cv=none; d=zohomail.com; s=zohoarc; b=UQYrE7+ZrFBxN1Bs1Nmj0Tq/ZouyEo0Ek7Q9xfrvYKps7s6rMMwdBuqbY+8qcV0Hwlt2BDnqnDVziES25ZSSPp2yRIyS8WPS0xIPQA7ulgBCvVTFbwttJDfra10ew3LJ+nuns0/MJFYB0OMBkvZKGhw/WGFDXL2xRtNi5wsMx9k= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588236483; h=Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:Message-ID:Reply-To:References:Sender:Subject:To; bh=sT0ioB9JaRy2zfOS3GijqdWJQHY9/UcOZoe1mnOUr0A=; b=FJ4FhlpVk6LOw2F/sLpQVdEN5kuxECF9HZag9P3TiG8FdxKu0w3W56KbBqE5Ff/PpHrZIbTyp6GDpjcLP+MKuhq3qSRZDRD16kdtpveeh5vZSGKBdufv7Ya+NX5KvVX257JW24vQNp/XDvFJtwnSfqfFNXiRMc9mtUhDO6gZnOg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+58411+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1588236483090598.9438976683384; Thu, 30 Apr 2020 01:48:03 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id YZlBYY1788612xi9NwEwNOZa; Thu, 30 Apr 2020 01:48:02 -0700 X-Received: from mail-qk1-f193.google.com (mail-qk1-f193.google.com [209.85.222.193]) by mx.groups.io with SMTP id smtpd.web11.3403.1588236482157842938 for ; Thu, 30 Apr 2020 01:48:02 -0700 X-Received: by mail-qk1-f193.google.com with SMTP id s63so4910727qke.4 for ; Thu, 30 Apr 2020 01:48:02 -0700 (PDT) X-Gm-Message-State: Ask2hXxKErO9Q4L9XoxtOBvDx1787277AA= X-Google-Smtp-Source: APiQypJC+8T7bwidrATGBAGvfYvT5F4xRDw2RGk7568LY9cpzAl17+EQeR6eWPQ5ttnbD+Z+vvpDTQ== X-Received: by 2002:a37:b185:: with SMTP id a127mr2374039qkf.87.1588236481142; Thu, 30 Apr 2020 01:48:01 -0700 (PDT) X-Received: from localhost.localdomain (c-98-214-99-181.hsd1.il.comcast.net. [98.214.99.181]) by smtp.gmail.com with ESMTPSA id f130sm1419553qke.22.2020.04.30.01.48.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Apr 2020 01:48:00 -0700 (PDT) From: "Andrei Warkentin" To: devel@edk2.groups.io Cc: ard.biesheuvel@arm.com, leif@nuviainc.com, pete@akeo.ie, philmd@redhat.com Subject: [edk2-devel] [edk2-platforms][PATCH 4/4] RPi3/RPi4: touch up readme's a bit. Date: Thu, 30 Apr 2020 01:47:46 -0700 Message-Id: <20200430084746.51455-5-andrey.warkentin@gmail.com> In-Reply-To: <20200430084746.51455-1-andrey.warkentin@gmail.com> References: <20200430084746.51455-1-andrey.warkentin@gmail.com> Precedence: Bulk List-Unsubscribe: Sender: devel@edk2.groups.io List-Id: <27952.devel.edk2.groups.io> Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,andrey.warkentin@gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1588236482; bh=BGzr+zed+GtHKpo+3/sYBWkIk+T1ZKctUX3cGwD345k=; h=Cc:Date:From:Reply-To:Subject:To; b=fdntcqBFKJRXQiDjzIV7VMdxeXO8hRYyPSuXEyc5jTRLMYa0vau1YY5xN7md1xz/vp/ eF5WQdWBBnKNSnlYptT7kzkRvlhXqqViE6W29Q97MjGDbVWptK9InYb32nwt+BztT/Qxb 4AjbeaHQoncotUg9he/SgHbpfww67WyARE4= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Just cleanups to areas I know have gotten a bit stale. Signed-off-by: Andrei Warkentin --- Platform/RaspberryPi/RPi3/Readme.md | 6 ++++-- Platform/RaspberryPi/RPi4/Readme.md | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/Platform/RaspberryPi/RPi3/Readme.md b/Platform/RaspberryPi/RPi= 3/Readme.md index b756013b..55c6265d 100644 --- a/Platform/RaspberryPi/RPi3/Readme.md +++ b/Platform/RaspberryPi/RPi3/Readme.md @@ -173,7 +173,7 @@ Known issues: ## USB =20 - USB1 BBB mass storage devices untested (USB2 and USB3 devices are fine). -- USB1 CBI mass storage devices don't work (e.g. HP FD-05PUB floppy). +- Some USB1 CBI (e.g. UFI floppy) mass storage devices may not work. =20 ## ACPI =20 @@ -187,4 +187,6 @@ install a kernel that relies on Device Tree rather than= ACPI. ## Missing Functionality =20 - Network booting via onboard NIC. -- Ability to switch UART use to PL011. +- SPCR hardcodes UART type to miniUART, and thus will not expose correct + (PL011) UART on CM3 and Pi2B or if DT overlays to switch UART are used + on Pi 3B/3B+/3A+. diff --git a/Platform/RaspberryPi/RPi4/Readme.md b/Platform/RaspberryPi/RPi= 4/Readme.md index 1f4ed001..c1ecfc99 100644 --- a/Platform/RaspberryPi/RPi4/Readme.md +++ b/Platform/RaspberryPi/RPi4/Readme.md @@ -121,3 +121,23 @@ An `RtcEpochSeconds` NVRAM variable is used to store t= he boot time. This should allow you to set whatever date/time you want using the Shell d= ate and time commands. While in UEFI or HLOS, the time will tick forward. `RtcEpochSeconds` is not updated on reboots. + +## USB + +This UEFI supports both the USB3 xHCI ports (front ports), and the Pi 3-st= yle +DesignWare USB2 controller via the Type-C port (host only). + +The following only apply to the Type-C port: +- USB1 BBB mass storage devices untested (USB2 and USB3 devices are fine). +- Some USB1 CBI (e.g. UFI floppy) mass storage devices may not work. + +## ACPI + +OS support for ACPI description of Pi-specific devices is still in develop= ment. Not +all functionality may be available. + +## Missing Functionality + +- Network booting via onboard NIC. +- SPCR hardcodes type to PL011, and thus will not expose correct + (miniUART) UART if DT overlays to switch UART are used on Pi 4B. \ No newline at end of file --=20 2.17.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#58411): https://edk2.groups.io/g/devel/message/58411 Mute This Topic: https://groups.io/mt/73371478/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-