Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DFDDCC433F5 for ; Fri, 29 Oct 2021 10:55:26 +0000 (UTC) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 1DD58610C7 for ; Fri, 29 Oct 2021 10:55:25 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 1DD58610C7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id DE48F835B0; Fri, 29 Oct 2021 12:55:22 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 0988A835BF; Fri, 29 Oct 2021 12:55:21 +0200 (CEST) Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id 158C58356D for ; Fri, 29 Oct 2021 12:55:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=andre.przywara@arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 547051FB; Fri, 29 Oct 2021 03:55:15 -0700 (PDT) Received: from slackpad.fritz.box (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 58DB63F5A1; Fri, 29 Oct 2021 03:55:14 -0700 (PDT) Date: Fri, 29 Oct 2021 11:53:40 +0100 From: Andre Przywara To: Tom Rini Cc: Jagan Teki , u-boot@lists.denx.de, Samuel Holland , Icenowy Zheng Subject: Re: Pull request: u-boot-sunxi/master for 2021.10 - 2nd part Message-ID: <20211029115340.4a282a25@slackpad.fritz.box> In-Reply-To: <20211025182910.GF3577824@bill-the-cat> References: <20211025140658.2381988-1-andre.przywara@arm.com> <20211025182910.GF3577824@bill-the-cat> Organization: Arm Ltd. X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.31; x86_64-slackware-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean On Mon, 25 Oct 2021 14:29:10 -0400 Tom Rini wrote: Hi Tom, > On Mon, Oct 25, 2021 at 03:06:58PM +0100, Andre Przywara wrote: > > > Hi Tom, > > > > please pull the second sunxi PR for the 2021.10 merge window. > > I decided to merge most of Samuel's rework and some smaller patches that > > pave the way for more DM transitions and for accommodating the RISC-V SoC > > in the future. Merging them now gives us the opportunity to get some wider > > testing, since those subtle changes tend to break things. > > > > Compile-tested for all 159 sunxi boards, boot-tested on Pine64-LTS > > and OrangePi Zero. > > > > Summary: > > - Add and enable watchdog driver > > - Prepare for SYSRESET driven AXP poweroff > > - Prepare for SoCs without MMC2 > > - Some fixes for extending SPL (SPL-DM for RISC-V) > > - Some preparations for proper VBUS management > > - Fix secure monitor move > > > > Thanks, > > Andre > > > > ================================================ > > The following changes since commit 355d1e24f6143c4839be3c015c191421c4e9449c: > > > > Merge https://source.denx.de/u-boot/custodians/u-boot-spi (2021-10-23 10:49:28 -0400) > > > > are available in the Git repository at: > > > > https://source.denx.de/u-boot/custodians/u-boot-sunxi.git master > > > > for you to fetch changes up to c846fe43f0561311eb7261b34023a04646cdbd0d: > > > > mmc: sunxi: conditionally include MMC2 initialization code (2021-10-25 14:54:57 +0100) > > > > So first, up, this is now applied to u-boot/master. Many thanks, and sorry for the late push! > Next, I dug out my original Kickstarted Pine A64 board (as it's the only > sunxi platform I have), and I see it's detected with 1GB memory and as > Pine64+ which seems wrong, with the pine64_plus_defconfig (which is what > I thought handled all of the A64 platforms). For the naming: There are three SKUs for the original Pine A64 board: - Pine A64: 512 MB with 100Mbit Ethernet PHY, lacking display and camera connectors (rare, mostly to meet the original 15 USD price tag) - Pine A64+ 1GB: 1GB DRAM with 1Gbit Ethernet PHY, with all connectors - Pine A64+ 2GB: 2GB DRAM with 1Gbit Ethernet PHY, with all connectors Also note that for those first boards from Pine64 the name of the company (Pine64) is sometimes uses for the boards as well ("Pine64 board"), even though this should be "Pine A64 board from Pine64". That is somewhat reflected in the defconfig name. In hindsight the defconfig should have been named more "pine-a64_defconfig", but I guess this is too late now? I see a lot of inconsistencies in naming, especially regarding capitalisation and dashes vs. underscores, check configs/[bB]anana* for instance, but probably renaming causes more harm than good? So I guess you have the middle one (the most common among the first wave), so that all seems correct? We differentiate between the non-plus and plus version at runtime, by the amount of DRAM detected, so that's pretty reliable. The 1GB and 2GB are otherwise the same, so same DT. The actual non-plus versions are somewhat rare, I guess most people just added the 4(!) bucks to get more RAM and Gigabit Ethernet. > I've not booted this up in > forever, and Armbian (the first binary I grabbed) does this as well with > v2020.10 (and I'm using the same TF-A rev of 87311b4) so maybe the > answer is I should just e-waste this board and pick up something else? Not sure exactly why? Is there anything that's broken, apart from the presumed misnaming? I would be happy to hear about any issues you have, in my experience those "outsider" inputs are very useful (I am far too familiar with all those tiny quirks). When U-Boot starts, UEFI boot should work out of the box, just pop a generic arm64 Debian/SuSE/Fedora/Ubuntu EFI installer USB stick in, should work even with HDMI and USB keyboard. Cheers, Andre