From owner-freebsd-arm@freebsd.org Mon Jul 8 07:27:08 2019 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4639A15D6BA9 for ; Mon, 8 Jul 2019 07:27:08 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9E03A90264 for ; Mon, 8 Jul 2019 07:27:06 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Mon, 08 Jul 2019 09:27:04 +0200 id 00F40685.5D22F048.00007B95 Date: Mon, 8 Jul 2019 09:27:04 +0200 From: Milan Obuch To: Hans Petter Selasky Cc: freebsd-arm@freebsd.org Subject: Re: Pine64 and USB bug Message-ID: <20190708092704.7235ae6b@zeta.dino.sk> In-Reply-To: <20190708084515.313798e2@zeta.dino.sk> References: <20190707220812.78f98dd9@zeta.dino.sk> <20190708084515.313798e2@zeta.dino.sk> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; i386-portbld-freebsd11.2) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 9E03A90264 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of freebsd-arm@dino.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=freebsd-arm@dino.sk X-Spamd-Result: default: False [-5.47 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[dino.sk]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MX_GOOD(-0.01)[cached: mail.dino.sk]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[72.65.245.84.list.dnswl.org : 127.0.10.0]; NEURAL_HAM_SHORT(-0.81)[-0.813,0]; IP_SCORE(-2.35)[ip: (-7.20), ipnet: 84.245.64.0/18(-3.60), asn: 16160(-1.02), country: SK(0.07)]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:16160, ipnet:84.245.64.0/18, country:SK]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 08 Jul 2019 07:27:08 -0000 On Mon, 8 Jul 2019 08:45:15 +0200 Milan Obuch wrote: > On Sun, 7 Jul 2019 22:32:27 +0200 > Hans Petter Selasky wrote: > > > On 2019-07-07 22:08, Milan Obuch wrote: > > > Any hint, anybody? This was FreeBSD 13.0-CURRENT r349025 GENERIC, > > > snapshot downloaded fromftp.freebsd.org. > > > > Did you check that the data-GPIO-pins are correctly configured when > > you boot? > > > > Is the bootloader able to access this port? > > > > --HPS > > Well, for the loader part - no. In uboot, 'usb tree' command gives > > USB device tree: > 1 Hub (480 Mb/s, 0mA) > u-boot EHCI Host Controller > > 1 Hub (480 Mb/s, 0mA) > u-boot EHCI Host Controller > > which means only controllers itself are detected. Just for record, in > this image, U-Boot 2019.04 is used, i. e. newest released version. > Also, running 'usb start' command changes nothing, so in uboot, no USB > device is usable, on either port. Keyboard does not work, either - > this could change in soon to be expected 2019.07 version, but it is > not important for me. > > Next step is EFI - no idea here. I do not know how to check whether > USB is working. > > FreeBSD's loader does not see USB devices either - I think it just > uses what it gets from earlier stages. > > So first moment, when USB looks usable, is after kernel is loaded... > just only one of the ports is working. > > I checked schematics available, power lines seem to be enabled > unconditionally, so maybe there is something in DTB, but I did not > investigate deeper, yet - I used snapshot from ftp.freebsd.org, > FreeBSD-13.0-CURRENT-arm64-aarch64-PINE64-LTS-20190614-r349025.img.xz > - I think if anybody else tried it, the result should be the same (no > local modification, at least in loader-kernel part). > > Regards, > Milan > Also, just to be sure, I checked newest snapshot version - FreeBSD-13.0-CURRENT-arm64-aarch64-PINE64-LTS-20190705-r349753.img.xz - and no change in this area. Regards, Milan