From owner-freebsd-arm@freebsd.org Mon Jul 8 06:45:20 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 362E815D5E92 for ; Mon, 8 Jul 2019 06:45:20 +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 A95A08EC12 for ; Mon, 8 Jul 2019 06:45:17 +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 08:45:15 +0200 id 00F4066E.5D22E67B.00007799 Date: Mon, 8 Jul 2019 08:45:15 +0200 From: Milan Obuch To: Hans Petter Selasky Cc: freebsd-arm@freebsd.org Subject: Re: Pine64 and USB bug Message-ID: <20190708084515.313798e2@zeta.dino.sk> In-Reply-To: References: <20190707220812.78f98dd9@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: A95A08EC12 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.17 / 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.58)[-0.575,0]; IP_SCORE(-2.28)[ip: (-7.06), ipnet: 84.245.64.0/18(-3.53), asn: 16160(-0.89), 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 06:45:20 -0000 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