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 47126C433F5 for ; Fri, 29 Oct 2021 14:58:18 +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 7B855610FD for ; Fri, 29 Oct 2021 14:58:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7B855610FD Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=konsulko.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 A5AF9835C3; Fri, 29 Oct 2021 16:58:14 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="YDIscqDh"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 98860835B9; Fri, 29 Oct 2021 16:58:12 +0200 (CEST) Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 66E98835C6 for ; Fri, 29 Oct 2021 16:58:07 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qk1-x72c.google.com with SMTP id bm16so9516733qkb.11 for ; Fri, 29 Oct 2021 07:58:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=xfDyQr5fu01n0TmpVDCs+UXRnmCIF4zVRGmzjxwpRIE=; b=YDIscqDhboyCw3wvi8lb0hWflMTYFnk734grG9+3lbci13IK7EQiS+OukcGa7XS51e dj3CA1oz1plZFNWfFDOU7EehB8CqSl6w6rFWlojnM4KQQjimFHASP3iiGDv9zdSwVStc bKPv6l8qfQWLhbJws22VniudR8tpwdHzZkAoQ= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=xfDyQr5fu01n0TmpVDCs+UXRnmCIF4zVRGmzjxwpRIE=; b=GgATsf+Ax2Ad6jnng0xlClLR+r7KHvCMfW8gUkJITrOCdHkrjjMLsFuDsDqfsImLBQ kzP9xC0TXYkSw7X5UEBBl4MJb7b2wSRjmKAnqk8T38te+xX8FlQjOwI5k5C0LV+jqPRs dL+ISbkoWkmxq7hePhlJ4s4ima6TvRHrXRW19Aq/zjAEuJ8bjXkwpJ/8CtNA0v106pNj 8tdeD3606OPPMr4lMvf1un66SCOIGBbUPH+xatsEFFUYVOagyYkAg6KUMVZQ6Rq0wgHb qRaWoc0toMtK9pkUIm5TOG4G5to4sZTC3epymaV5nu2dizCY5Pmp7ejZjaTAM4aGD59V BNIA== X-Gm-Message-State: AOAM5315q9TF6EG3HKSMaow/Q1WU9SNUk1MYqY5nDE3u4HKcNecs7nrx r9abGkqIST31gHTU7MF5oL4fww== X-Google-Smtp-Source: ABdhPJwKK+VP/KCOt0uSs1oo24pciNxMvD8MD1/e7e41ktjuv+n52vsk33/JA4JXz/L0gKIOC/ppGA== X-Received: by 2002:a37:668b:: with SMTP id a133mr9462206qkc.91.1635519486081; Fri, 29 Oct 2021 07:58:06 -0700 (PDT) Received: from bill-the-cat (2603-6081-7b01-cbda-cd13-3c38-2d32-68e0.res6.spectrum.com. [2603:6081:7b01:cbda:cd13:3c38:2d32:68e0]) by smtp.gmail.com with ESMTPSA id h125sm4049105qkc.29.2021.10.29.07.58.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Oct 2021 07:58:05 -0700 (PDT) Date: Fri, 29 Oct 2021 10:58:03 -0400 From: Tom Rini To: Icenowy Zheng Cc: Andre Przywara , 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: <20211029145803.GU8284@bill-the-cat> References: <20211025140658.2381988-1-andre.przywara@arm.com> <20211025182910.GF3577824@bill-the-cat> <20211029115340.4a282a25@slackpad.fritz.box> <20211029144101.GT8284@bill-the-cat> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="AEApRQ7IrnsbU9Wi" Content-Disposition: inline In-Reply-To: <20211029144101.GT8284@bill-the-cat> X-Clacks-Overhead: GNU Terry Pratchett 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 --AEApRQ7IrnsbU9Wi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Oct 29, 2021 at 10:41:01AM -0400, Tom Rini wrote: > On Fri, Oct 29, 2021 at 10:20:32PM +0800, Icenowy Zheng wrote: > > =E5=9C=A8 2021-10-29=E6=98=9F=E6=9C=9F=E4=BA=94=E7=9A=84 11:53 +0100=EF= =BC=8CAndre Przywara=E5=86=99=E9=81=93=EF=BC=9A > > > On Mon, 25 Oct 2021 14:29:10 -0400 > > > Tom Rini wrote: > > >=20 > > > Hi Tom, > > >=20 > > > > On Mon, Oct 25, 2021 at 03:06:58PM +0100, Andre Przywara wrote: > > > >=20 > > > > > Hi Tom, > > > > >=20 > > > > > 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. > > > > >=20 > > > > > Compile-tested for all 159 sunxi boards, boot-tested on Pine64- > > > > > LTS > > > > > and OrangePi Zero. > > > > >=20 > > > > > 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 > > > > >=20 > > > > > Thanks, > > > > > Andre > > > > >=20 > > > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D > > > > > The following changes since commit > > > > > 355d1e24f6143c4839be3c015c191421c4e9449c: > > > > >=20 > > > > > =C2=A0 Merge > > > > > https://source.denx.de/u-boot/custodians/u-boot-spi=C2=A0(2021-10= -23 > > > > > 10:49:28 -0400) > > > > >=20 > > > > > are available in the Git repository at: > > > > >=20 > > > > > =C2=A0 > > > > > https://source.denx.de/u-boot/custodians/u-boot-sunxi.git=C2=A0ma= ster > > > > >=20 > > > > > for you to fetch changes up to > > > > > c846fe43f0561311eb7261b34023a04646cdbd0d: > > > > >=20 > > > > > =C2=A0 mmc: sunxi: conditionally include MMC2 initialization code > > > > > (2021-10-25 14:54:57 +0100) > > > > > =C2=A0=20 > > > >=20 > > > > So first, up, this is now applied to u-boot/master. > > >=20 > > > Many thanks, and sorry for the late push! > > >=20 > > > > 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). > > >=20 > > > 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 > > > =C2=A0 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 > >=20 > > You can check whether your board is non-Plus or Plus 1G by the model of > > the Ethernet PHY (non-Plus has RTL8201) or not soldered FPC connectors. > > They do share a PCB design. Plus 2G is a dedicated PCB design as it > > needs to use 4x 512MB DRAM chips. >=20 > OK, mine has an RTL8211E and is 1G for sure now that I look harder at > it. >=20 > On a related note, this board will draw power via the UART, is there any > easy HW change I can do, to fix that? It's otherwise a lot harder to > put this in to my CI lab. >=20 > > > 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? > > >=20 > > > 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. > > >=20 > > > > 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? > > >=20 > > > 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. >=20 > Ah, so Armbian is a fails to boot (I can't even interrupt autoboot). > Given that I was previously sure I had the 512MB model (but, I was > wrong) I thought maybe this is just garbage now. But! Now that I'm > pretty sure this is being seen right, I'm going to grab a different > distribution and see what happens. For the record, the problem with Armbian is the ancient and slow SD card I used. Walking away for a minute or two and oh, hey, automatic login, after letting distro_boot just run. So, this board is in fact actually fine, aside from the power leakage thing. And that's not 100% reliable, so I might just see if I can live with it, in my lab, to start with if there's not an obvious HW mod to the board or UART adapter. --=20 Tom --AEApRQ7IrnsbU9Wi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEEGjx/cOCPqxcHgJu/FHw5/5Y0tywFAmF8C/cACgkQFHw5/5Y0 tyz2PgwAqdOIntl4phNS3DYm1nw06ZgcZBGJ1ABKM5a3Wv/Jchn3KoQyDAHDhu/x oN1fyrvj7YEoReyD6eIK6izwhbRm+gnZ3qOPelMdpz+2ks5FM8QJ3yEf4Ex62BsC l58y60oRGvZIZsZltteDq7Y5/Nlh23q+8BQgnUlcLtl/AQXy8CQvq9uFftBtvUyP hlRpM0C/qSZ/e+AhDfzyz/O5XKrbuMjHQcK/dDC7/bE3GbL+SlKyyXyA8mIohiOl rq5VAZLP2VcFKouWQsU3MGU2x4CMQAGGl+nTCk18G+8xqH3M8PQbbSJqJ1jcddVs hduwJh9z9W5sLginjeFjXT002LHEtav8qZb7F2DRnzQ5CyBR/0m6PnqaIVW+jLN7 1WjskRBIYC+hzdkqSvNv7tMAemWaMimQCSFmQ96syTHqZ1b++cIWPPupzg1ye7Lu aBv3qDslCwnDlapuGrsgyniilzNQ578dnC+x3kS4lz/dUrAWObzuf7DtiaQ0uLxk dsqYseCC =x3CU -----END PGP SIGNATURE----- --AEApRQ7IrnsbU9Wi--