From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <9front-bounces@9front.inri.net> X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from 9front.inri.net (9front.inri.net [168.235.81.73]) by inbox.vuxu.org (Postfix) with ESMTP id 9B68924C40 for ; Wed, 3 Apr 2024 01:38:38 +0200 (CEST) Received: from oneiri.one ([170.39.227.229]) by 9front; Tue Apr 2 19:36:13 -0400 2024 Message-ID: <4F339E0AE120EC68D85D8965D67D9A90@oneiri.one> From: Aidan K. Wiggins Date: Tue, 02 Apr 2024 16:36:03 -0700 To: lists@ecloud.org, 9front@9front.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-anwqycyatenqzwvuwsvyndnatg" List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: CMS strategy out-scaling-oriented control Subject: Re: [9front] question about nusb/ether Reply-To: 9front@9front.org Precedence: bulk This is a multi-part message in MIME format. --upas-anwqycyatenqzwvuwsvyndnatg Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Thanks Jens & Shawn, Shawn, It looks like the first (three) Realtek cards might support operation under the class of CDC USB devices, which is the assumed interface if no '-t type' is passed to nusb/ether. It might be of some interest in seeing if running nusb/ether with '-t url' to see if the driver for the 8150 works with it.. no promises. I suspect that the 8152 (your third card listed), will be supported under url, we just would need to add that to nusbrc if it works. Jens, you also seem to be using an 8153 based card. What we might try in the meantime, is giving those devices which do support CDC their own case in nusbrc to just use CDC, in place of a dedicated driver. I'm guessing the CDC case further down does not get matched for these cards. It is probably best to just enumerate them for now, please see if adding this does anything on attach for you: diff fcb6d6ec65fb82c3b6b936dd148df72b9955994b uncommitted --- a/sys/src/9/boot/nusbrc +++ b/sys/src/9/boot/nusbrc @@ -25,6 +25,8 @@ nusb/ether -t aue $etherargs $id case 0bda8150 nusb/ether -t url $etherargs $id + case 0bda8153 # support by cdc for now. + nusb/ether $etherargs $id case 18d14ee3 0bb40003 10046344 nusb/ether -t rndis $etherargs $id case 12092301 # keyboardio model 01 (IAD) --upas-anwqycyatenqzwvuwsvyndnatg Content-Type: message/rfc822 Content-Disposition: inline Received: from 9front.inri.net ([168.235.81.73]) by oneiri; Tue Apr 2 14:04:02 -0700 2024 Received: from poodle.tulip.relay.mailchannels.net ([23.83.218.249]) by 9front; Tue Apr 2 17:02:06 -0400 2024 X-Sender-Id: dreamhost|x-authsender|lists@ecloud.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id D8A5E362CAB for <9front@9front.org>; Tue, 2 Apr 2024 21:02:02 +0000 (UTC) Received: from pdx1-sub0-mail-a308.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 4BDAE361E30 for <9front@9front.org>; Tue, 2 Apr 2024 21:02:01 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1712091721; a=rsa-sha256; cv=none; b=oXqXf+WovdumzQIuN1BnmZnIluqkwxCvulPOLbusBOdbuwxpLuoxj56O88s32hYSGg5S5F /pbag1vPojvjCIAzySN1a6z1zKPBz/CQPCLGxpjPJSQT1Tn2z6VNJxvBWqrmyzLNwjSz2G nIILlTQudRdW+PjxlAfpKI1XiGThEbqfOeubf0hrIdLaA5uwH+qhmXxZjDccYM+MKPMuLv zQptEEOB7fTpuNF+Rpl8dQ/X0oBWkcLoUA35fDZVmB8zcFip/my9+w070FfDG8lIJrBDyR suKca0EdnJ7ntwlJ1tUKmkeDLHuy9rqHuwNdTkXxCmyXWxyYMR5fM84c52fHIg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1712091721; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ePFyeUa1NSrtsB6G9JFr6w49G+yjvPM0vNL5Z/r3dr0=; b=KiemCahpwfMMQuLreC68uDivJ9nPX37TjzobpfjkdBqdIt54PYvroMl+whp4KWoZ8gj+IN mLJqvyAJ4qPTlm6kR/M9ER6WVzxMOzws/KQyHz+YolF8pS8O3M2uWbhwmUqNE4gAgqiClh /SzovCEKNhx2zmhEKZ9mOrw/M/zetosOvk92aUJBem1z7sIkdpqpAX8qJNUHRG+f+veNnj dV0KyUEKqPCyID4CVr7AKTDBxQKcy6SRxZTrBTc+e52J6GvzMVDUE+CcNBbC16fUYD4SWc weHYarywTpWAV4vhATaKS1RKW/9QDCOn11S98f50wYDO7fz4vchNdgevVFNoXA== ARC-Authentication-Results: i=1; rspamd-6457dc597-q8sk7; auth=pass smtp.auth=dreamhost smtp.mailfrom=lists@ecloud.org X-Sender-Id: dreamhost|x-authsender|lists@ecloud.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|lists@ecloud.org X-MailChannels-Auth-Id: dreamhost X-Irritate-Madly: 6d0f8e7951f8ba9b_1712091721533_1706217434 X-MC-Loop-Signature: 1712091721533:3187637502 X-MC-Ingress-Time: 1712091721533 Received: from pdx1-sub0-mail-a308.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.112.72.244 (trex/6.9.2); Tue, 02 Apr 2024 21:02:01 +0000 Received: from zen (ti0007a400-2850.bb.online.no [85.164.90.44]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: lists@ecloud.org) by pdx1-sub0-mail-a308.dreamhost.com (Postfix) with ESMTPSA id 4V8L0m47b3z7M for <9front@9front.org>; Tue, 2 Apr 2024 14:02:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ecloud.org; s=dreamhost; t=1712091721; bh=ePFyeUa1NSrtsB6G9JFr6w49G+yjvPM0vNL5Z/r3dr0=; h=Date:From:To:Subject:Content-Type; b=EzY2mzd+Mr041hDimCseurEY1Znw8uZXSzpXldfBIELgBCE9N9DLm/pP3RYfEfy+L TFJcjqcMKyCP/6W+7elmmda2iEZbwKGCcubCshH6HdRtCn4d3gU4ZI9XlUB2g60gav ShgeXOqBGVUPT5727/smz7JWQ8PbSBje/Y7+nDaFR7WDkRIkHDZfvOBCOt4owDRr/W d+6mK5Rve5kyf1rhfNA/TE+97FBQW/X25uEhlIIk4S/ufsKfh8cg+GcA0ZCZS4zmj3 xDpbxfyA+UqVUqO5HINY/j23LCHVxsn/GpOp3+k7XyerFp54b7Fgfs+RvGa5rmFuTc 68x04odUDOd9A== Date: Tue, 2 Apr 2024 23:01:56 +0200 From: Shawn Rutledge To: 9front@9front.org Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: secure non-blocking DOM CSS GPU-aware control Subject: Re: [9front] question about nusb/ether Reply-To: 9front@9front.org Precedence: bulk On Sun, Mar 31, 2024 at 11:09:53PM -0700, Aidan K. Wiggins wrote: > Great to hear! > > Would you mind additionally providing the output of usbtree so that we could (if necessary) add it to one of cases in /sys/src/9/boot/nusbrc to be recognized on attach? > I noticed this conversation after also finding a couple of devices that were not recognized, and also found that they work after invoking nusb/ether manually. The first one is a few years old, probably not available anymore: ep2.0: roothub csp 0x000009 ports 6 xhci port1: ep15.0: hub csp 0x030009 ports 4 vid 0x0bda did 0x0401 Realtek 'USB3.0 Hub' c1e7b xhci port1: ep16.0: 255 csp 0x00ffff vid 0x0bda did 0x8153 Realtek 'USB 10/100/1000 LAN' 62613 xhci The second is from https://www.aliexpress.us/item/3256803908379311.html (I got the USB 3 version, not type C): ep2.0: roothub csp 0x000009 ports 6 xhci port1: ep12.0: hub csp 0x030009 ports 4 vid 0x05e3 did 0x0626 GenesysLogic 'USB3.1 Hub' e8001 xhci port3: ep13.0: 255 csp 0x00ffff vid 0x0bda did 0x8153 Realtek 'USB 10/100/1000 LAN' 700ba xhci Another is one I had tried a few weeks ago on the type C port. In the meantime, the type C port on this laptop is no longer working at all, AFAICT (not even in Linux); but I just found that if I connect this Cable Matters adapter to the other USB port via a USB 3-to-type-C adapter, ethernet is working: https://www.amazon.fr/Cable-Matters-Adaptateur-Multiport-Ethernet/dp/B07C8LKKLT ep1.0: roothub csp 0x000009 ports 12 xhci port1: ep3.0: hub csp 0x010009 ports 4 vid 0x1a40 did 0x0101 none 79c19 xhci port2: ep4.0: 17 csp 0x000011 vid 0x2109 did 0x0101 'Cable Matters Inc.' 'USB-C to Multiport Adapter with Charging ' 2f44e xhci port3: ep5.0: 255 csp 0x00ffff vid 0x0bda did 0x8152 CMI 'USB 10/100 LAN' 720e0 xhci Around the same time when I tried the Cable Matters device, I had also tried this one, which was not working then, but seems to work now, without needing to run nusb/ether manually (probably after updating 9front, probably after patch 08a080e8c2c775eda149d3e830bd4fad2c35f249): https://satechi.net/products/slim-multi-port-adapter-with-ethernet port1: ep9.0: hub csp 0x020009 ports 5 vid 0x2109 did 0x2817 'VIA Labs, Inc. ' 'USB2.0 Hub ' 6a60c xhci port2: ep10.0: storage csp 0x500608 vid 0x2537 did 0x1081 Norelsys NS1081 3e485 xhci port3: ep12.0: 255 csp 0x00ffff vid 0x0b95 did 0x1790 ASIX AX88179A 9c562 xhci port5: ep13.0: 254 csp 0x0000fe vid 0x2109 did 0x8817 'VIA Labs, Inc. ' 'USB Billboard Device ' effb8 xhci --upas-anwqycyatenqzwvuwsvyndnatg--