From owner-svn-src-head@freebsd.org Sun Sep 17 20:30:23 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 80090E0307A for ; Sun, 17 Sep 2017 20:30:23 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: from asp.reflexion.net (outbound-mail-210-66.reflexion.net [208.70.210.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2ECB56CC5B for ; Sun, 17 Sep 2017 20:30:23 +0000 (UTC) (envelope-from markmi@dsl-only.net) Received: (qmail 2790 invoked from network); 17 Sep 2017 20:30:22 -0000 Received: from unknown (HELO mail-cs-02.app.dca.reflexion.local) (10.81.19.2) by 0 (rfx-qmail) with SMTP; 17 Sep 2017 20:30:22 -0000 Received: by mail-cs-02.app.dca.reflexion.local (Reflexion email security v8.40.3) with SMTP; Sun, 17 Sep 2017 16:30:22 -0400 (EDT) Received: (qmail 15150 invoked from network); 17 Sep 2017 20:30:21 -0000 Received: from unknown (HELO iron2.pdx.net) (69.64.224.71) by 0 (rfx-qmail) with (AES256-SHA encrypted) SMTP; 17 Sep 2017 20:30:21 -0000 Received: from [192.168.1.109] (c-67-170-167-181.hsd1.or.comcast.net [67.170.167.181]) by iron2.pdx.net (Postfix) with ESMTPSA id 1E343EC85D5; Sun, 17 Sep 2017 13:30:21 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: svn commit: r323641 - head/sys/arm/allwinner (BananapiM3 [an A83T] and USB: BPI-M3 historically had usb nodes listed in ofwdump -a) From: Mark Millard In-Reply-To: <20170917212858.58fda5174908940ff1ffcc49@bidouilliste.com> Date: Sun, 17 Sep 2017 13:30:20 -0700 Cc: Warner Losh Content-Transfer-Encoding: quoted-printable Message-Id: <8D50DB46-D6BD-4F93-9F4A-FA1E405901AA@dsl-only.net> References: <20170917212858.58fda5174908940ff1ffcc49@bidouilliste.com> To: Emmanuel Vadot , svn-src-head@freebsd.org, freebsd-arm X-Mailer: Apple Mail (2.3273) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Sep 2017 20:30:23 -0000 On 2017-Sep-17, at 12:28 PM, Emmanuel Vadot = wrote: > On Sun, 17 Sep 2017 11:50:49 -0700 > Mark Millard wrote: >=20 >>> Author: manu >>> Date: Sat Sep 16 15:58:20 2017 >>> New Revision: 323641 >>> URL:=20 >>> https://svnweb.freebsd.org/changeset/base/323641 >>>=20 >>>=20 >>> Log: >>> Allwinner usb phy: Rework resource allocation >>>=20 >>> . . . >>>=20 >>> While here remove A83T code as upstream and FreeBSD dts don't have >>> nodes for USB. >>>=20 >>> . . . >>>=20 >>> EHCI is still buggy on Pine64 (hang the board) so do not enable it = for now. >>>=20 >>> Tested On: Bananapi (A20), BananapiM2 (A31S), OrangePi One (H3) = Pine64 (A64) >>=20 >> I have a BPI-M3 (A83T based) that has not been updated >> since head -r317015M. It has the root file system on a >> USB SSD for how I normally boot it. The ubldr and >> ubldr.bin go back to 2016-Oct-24 or before (file >> system date). >>=20 >> sysutils/u-boot-sinovoip-bpi-m3/files/ has not >> been updated since then. Nor has the distinfo >> or pkg-descr files. The Makefile has had only >> one change since then: >>=20 >> Revision 430454 - (view) (download) (annotate) - [select for diffs]=20= >> Modified Tue Jan 3 11:01:05 2017 UTC (8 months, 1 week ago) by mat=20 >> File length: 1369 byte(s)=20 >> Diff to previous 419007 >> Cleanup BROKEN/IGNORE for 10.3- >>=20 >> Sponsored by: Absolight >=20 > I don't have the board so if you want to update u-boot for it please > provide a patch. Unfortunately while I can readily look around and identify things that mention "usb", "ehci", "ohci", and "phy" in ofwdump output and in *.dt* files I've no clue about u-boot, *.dt* 's, and the like --and very little clue about the kernel. It would be more of a from-scratch research project, much like finding that "dts ish" before "sev" would, for example, again allow the Pine64+ 2GB to boot from a modern non-debug kernel. That was a lot of exploration to find a single instruction to add. When I started I had no clue it would end up as something like that. [Sometimes when I explore like that someone with the proper background picks out what the core issue is and how to fix before I get as far as a likely suboptimal solution that points in a very specific direction. Other times I get there first.] So if an BPI-M3 u-boot update waits for me it is likely to be a significant wait. Someone with more background likely would work better. Hopefully I'd be able to test trial updates since I have a board. For now it looks like I'll need to set up a non-USB configuration to progress to modern head. >>=20 >> The BPI-M3 has usb nodes show in ofwdump. . . >>=20 >=20 > Yeah I miss-read the DTS because 4 of them are used for one board ... > I don't want to update the dts in sys/boot/fdt/dts/arm and I will > remove them soon. Upstream DTS don't have usb in it but it will be = easy > to add it. You could send a patch to linux-arm if you want but note > that upstream DTS now uses clkng binding (i.e. not all clocks are > under /clocks node) so it will require a driver on our side. >=20 > And please no need to send a 1km long email. =3D=3D=3D Mark Millard markmi at dsl-only.net