From nobody Fri Oct 8 05:03:01 2021 X-Original-To: freebsd-usb@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id F032917E4238; Fri, 8 Oct 2021 05:03:04 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HQbfw6WFbz3DxS; Fri, 8 Oct 2021 05:03:04 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from [192.168.0.88] (unknown [195.64.148.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: avg/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4E7FB2F73D; Fri, 8 Oct 2021 05:03:04 +0000 (UTC) (envelope-from avg@FreeBSD.org) To: roboman , freebsd-arm@freebsd.org, freebsd-usb@freebsd.org References: <2acaf75c0e54eea5cb5612a9c692b0b7b8aa9b4d.camel@gmail.com> From: Andriy Gapon Subject: Re: Broken USB 3.0 port on Pine Rock64 SBC Message-ID: Date: Fri, 8 Oct 2021 08:03:01 +0300 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.14.0 List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 In-Reply-To: <2acaf75c0e54eea5cb5612a9c692b0b7b8aa9b4d.camel@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-ThisMailContainsUnwantedMimeParts: N On 08/10/2021 05:13, roboman wrote: > > Goal: Turn a Rock64 SBC into a NFS server. > * {root} installed on microSD > * NFS share an external USB 3.0 drive. > > Works on Linux - Armbian & DietPi > > On FreeBSD, I tried: > 13-RELEASE > 14-CURRENT > > In both cases (release/current), the single USB 3.0 port on the Rock64 > doesn't appear to recognize any drive. The single 3.0 USB port appears > disabled. If I plug the external hard drive into either one of the two > USB 2 ports - the drive is recognized and shows in dmesg. If I plug > into the single USB 3 port, no messages displayed in dmesg. Kernel > doesn't recognize anything from UHCI / XHCI on the USB 3.0 port. > > Hoping this is potentially a quick fix such as a tuneable in > /boot/loader.conf. I think that you need rk3328-dwc3 overlay. Try putting fdt_overlays="rk3328-dwc3" in your loader.conf. > kldstat > > Id Refs Address Size Name > 1 11 0xffff000000000000 1209308 kernel > 2 1 0xffff00000120a000 25808 umodem.ko > 3 2 0xffff000001230000 28698 ucom.ko > 4 1 0xffff0000cb000000 22000 dwwdt.ko > 5 1 0xffff0000cb022000 22000 mac_ntpd.ko > > usbconfig > > ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL > (12Mbps) pwr=SAVE (0mA) > ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=SAVE (0mA) > ugen1.1: at usbus1, cfg=0 md=HOST spd=HIGH > (480Mbps) pwr=SAVE (0mA) > > > Drive works fine in either of the two USB 2.0 slots. When plugged into > the USB 3 slot, nothing happens. dmesg shows no activity as if I never > plugged it in. > > dmesg | tail -10 > > uhub0: 1 port with 1 removable, self powered > uhub2: 1 port with 1 removable, self powered > uhub1: 1 port with 1 removable, self powered > dwwdt0: mem 0xff1a0000-0xff1a00ff > irq 20 on ofwbus0 > dwwdt0: cannot find clock > device_attach: dwwdt0 attach returned 6 > lo0: link state changed to UP > dwc0: link state changed to DOWN > dwc0: link state changed to UP > Security policy loaded: MAC/ntpd (mac_ntpd) > > ^^^ plug it in, run dmesg again..... no change. > > Then I plug it into either one of the two USB 2.0 ports, and it > works... dmesg shows: > > ugen1.2: at usbus1 > umass0 on uhub2 > umass0: on > usbus1 > umass0: SCSI over Bulk-Only; quirks = 0x8100 > umass0:0:0: Attached to scbus0 > da0 at umass-sim0 bus 0 scbus0 target 0 lun 0 > da0: Fixed Direct Access SPC-4 SCSI > device > da0: Serial Number NA8FVENP > da0: 40.000MB/s transfers > da0: 2861588MB (5860533167 512 byte sectors) > da0: quirks=0x2 > > Hardware is Rock64 single board computer. Device has one USB 3.0 port > and two USB 2.0. :seems: like the single USB 3.0 port is registered as > USB 1.0. > > > -- Andriy Gapon