From nobody Fri Oct 08 10:31:38 2021 X-Original-To: freebsd-arm@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 A2C1717ECD7E; Fri, 8 Oct 2021 10:31:42 +0000 (UTC) (envelope-from roboman7811@gmail.com) Received: from mail-qv1-xf2e.google.com (mail-qv1-xf2e.google.com [IPv6:2607:f8b0:4864:20::f2e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4HQky641k0z3Pgt; Fri, 8 Oct 2021 10:31:42 +0000 (UTC) (envelope-from roboman7811@gmail.com) Received: by mail-qv1-xf2e.google.com with SMTP id o13so6038290qvm.4; Fri, 08 Oct 2021 03:31:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=UNKhwB4DuCA+6KT8/dZa1idjKsxQofFY59SriU9G/es=; b=kj2yowxneGAFh41v3WRjkuRS15K+Djmpim5fz8nK/UtzjU1PYvNXU6ywpBwahNAwAj syPzfIPH7d9HTdbBEJ8f0A7WZUIcUsAOptGQ0/oakY7n2PGeawFOkheQkTnd0Uw2yzx7 D7LEsAnmGY/1592JFjS1yHEPSfBxqb8e6kRDIkEhKIbbTeiiY/xhM/uNAZNrFfa1/k6/ LLbfVphk7XEJnQAIcu2KHeBnTQvR8KLuLdawWfEUyQCNJUrpjAL3E2kEalocdq2JY/lr TZH7cHPnBc4ZLc7TaUB2hOezqDO7Phv6VP+yPKL5+n0zDow/je+zoSqDHOkq3LHlQDJV W07w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=UNKhwB4DuCA+6KT8/dZa1idjKsxQofFY59SriU9G/es=; b=Xms7VXHO0Asbod0hCyIu6nrETBQ4mEp6JeS3gZXU9NoOeIvIxayyPfeFWqgCwjtzRd Dgm+PJuFaP/fOJS/KDBdhGMXUm79aCCMytIVQtj44hcw8bvY8M8VdS5ENqzfSakXxfGK 8+0FOeV6PbG46/GxMlb2Q0qk7L4AzUhd1I4VAGV6P9frDxUw7DxTeWZrxaiUpbWIFfeC r3rZP7idF6Lx9aRac5D5NV8SJq71r8NU3jvmoZW+d/Wzcwdj2Gx2DQxrcoMSY0KTGtDs i4Xy/4CaXxuRyCNwEw21jfgNolZwqSw2Lxuo0Y9Ra94NlZs4/w0Dj+ruz5hdV9RQt1Z2 /lEg== X-Gm-Message-State: AOAM5310v6aVIYuwCzpnJy4djV53lkOK/dgkDfA0vfynWeaU7cwUuml+ u4PFYnuO//NQay1q42g4i1kFvsnaSQiBXg== X-Google-Smtp-Source: ABdhPJz0bQILe+XPiHe1EzCs5XCFLcjyVGrdMQrY9hvVxEDPRaOyVw3GHe3JSxQoAEUXjGUUOP8jqw== X-Received: by 2002:ad4:5b8e:: with SMTP id 14mr9313562qvp.44.1633689101476; Fri, 08 Oct 2021 03:31:41 -0700 (PDT) Received: from [192.168.5.21] ([74.215.23.187]) by smtp.gmail.com with ESMTPSA id 101sm1748154qta.17.2021.10.08.03.31.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Oct 2021 03:31:40 -0700 (PDT) Message-ID: Subject: Re: Broken USB 3.0 port on Pine Rock64 SBC From: roboman To: Andriy Gapon , freebsd-arm@freebsd.org, freebsd-usb@freebsd.org Date: Fri, 08 Oct 2021 06:31:38 -0400 In-Reply-To: References: <2acaf75c0e54eea5cb5612a9c692b0b7b8aa9b4d.camel@gmail.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5-1.1 List-Id: Porting FreeBSD to ARM processors List-Archive: https://lists.freebsd.org/archives/freebsd-arm List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4HQky641k0z3Pgt X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-ThisMailContainsUnwantedMimeParts: N Thank-you very much. That was it. loader.conf needed fdt_overlays="rk3328-dwc3". Once added, everything started working as expected. Looks like we should add that detail as a post-install instruction to https://wiki.freebsd.org/arm/RockChip or include it in the prebuilt .img for Rock64. thanks again Jeff On Fri, 2021-10-08 at 08:03 +0300, Andriy Gapon wrote: > 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. > > > > > > > >