From nobody Fri Oct 08 02:13:42 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 54894179C906; Fri, 8 Oct 2021 02:13:51 +0000 (UTC) (envelope-from roboman7811@gmail.com) Received: from mail-qk1-x72c.google.com (mail-qk1-x72c.google.com [IPv6:2607:f8b0:4864:20::72c]) (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 4HQWvf2dqMz4lr7; Fri, 8 Oct 2021 02:13:50 +0000 (UTC) (envelope-from roboman7811@gmail.com) Received: by mail-qk1-x72c.google.com with SMTP id t63so3313556qkf.1; Thu, 07 Oct 2021 19:13:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=message-id:subject:from:to:date:user-agent:mime-version :content-transfer-encoding; bh=mfA5f6hd3jUdbW9YHbJt3JxbXgw7mVBgaxNyVQxotXQ=; b=n2d6QkZdtCF7Wt8G8LBPnPIQslPMtlwOf7jxWUU930AFL9Qfh8D2jkHydeMigvQS3Y JZcCh4oj2MFPEf+mbsBud0GAszv4wHp2HEsq/Mwy9poYsJI9fRwKlaVrGfLP6mJ0Z2Xp 3MuYH1a+yCuR5hnXf+6sqH+A6Bq23Oiq6PxGzJMl5Z3u82d10qzMUw4AMab9Dql3R061 Cg+qt2N6o9jaY376Z6DaTA0zmtEx34hIqx3+Lxvcz/niYUO60kg6BKlP61GgV+5ilzcF MsQ4VFZtFjGX7zN0kFZTSz2aK1zTes0Z2yZ3kEhrG0716+js52/mCEJ7C3I/AOmYcxJb RQGA== 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:user-agent :mime-version:content-transfer-encoding; bh=mfA5f6hd3jUdbW9YHbJt3JxbXgw7mVBgaxNyVQxotXQ=; b=tZFkmUj/Rp2gb3L2J0bDV/JuP/41VXKKKyMDxMpECAIEoNS32ebrw70HMdF43Enc2j B+NQMh7VFziTHQjxLtTMTrv0B2iXXLPPTCdzyHbSMvoedzdQo+w6Jzn4cve44grNSMjD sSil7g/h1FTd9eZUQ1lpDHMGfakF5IOSdinZOcKUCdb4HkJjVNAoK0Aekchx43dcjECc +5PDJBRPwwgZFvkGUdyQtNVJwoQ5aRW71Oq0IC7oEEY8VEudrzHMryadlnSiA6crsGAV jjopQ1pgo1vhdgMR5YAlB57ttvdWo3Q62jIIzrAWrUWP09ZmunQXfEAmjh3C68uAEZRR 6Y7g== X-Gm-Message-State: AOAM532fOzOKXFH/8a6sYjzlThoaXAkN53inBaNvtqLu5QMMqncsHKmy Z+1auhSJ17Q0DYgcfMMcOj37xEx5flsiIg== X-Google-Smtp-Source: ABdhPJz+hiKR6HVWLj+rzhLMXl+3eH9kBB5ZAWE3QZ9r2luhBkoEnetA7sIdS1n8Q0UlW+N7bVAOlw== X-Received: by 2002:a37:516:: with SMTP id 22mr743784qkf.139.1633659223695; Thu, 07 Oct 2021 19:13:43 -0700 (PDT) Received: from [192.168.5.21] ([74.215.23.187]) by smtp.gmail.com with ESMTPSA id v17sm1074260qkp.75.2021.10.07.19.13.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Oct 2021 19:13:43 -0700 (PDT) Message-ID: <2acaf75c0e54eea5cb5612a9c692b0b7b8aa9b4d.camel@gmail.com> Subject: Broken USB 3.0 port on Pine Rock64 SBC From: roboman To: freebsd-arm@freebsd.org, freebsd-usb@freebsd.org Date: Thu, 07 Oct 2021 22:13:42 -0400 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: 4HQWvf2dqMz4lr7 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=n2d6QkZd; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of roboman7811@gmail.com designates 2607:f8b0:4864:20::72c as permitted sender) smtp.mailfrom=roboman7811@gmail.com X-Spamd-Result: default: False [-3.98 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::72c:from]; NEURAL_HAM_SHORT(-0.98)[-0.985]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-ThisMailContainsUnwantedMimeParts: N 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. 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.