On Sun, Feb 02, 2025 at 10:11:37AM -0800, Joseph Olatt wrote: > On Fri, Jan 31, 2025 at 09:50:24PM +0100, MIZSEI Zolt??n wrote: > > Hi, > > > > it comes up in ifconfig: > > > > cdce0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500 > > lladdr MA:CA:DD:RE:SS > > index 27 priority 0 llprio 3 > > > > I assume, it would "just work" TM (c), but it switches to the mass storage > > rally quick, so I can't test my theory. > > > > I can eject the cd using "doas eject cd0", however it stucks in cd mode > > after this command, so while it really stops the switching back-and-forth > > it doesn't makes the hw usable :( > > > > -- ext > > > > On Fri, 31 Jan 2025 20:36:46 -0000 (UTC) > > Stuart Henderson <stu.li...@spacehopper.org> wrote: > > > > > On 2025-01-31, MIZSEI Zolt??n <zmiz...@extrowerk.com> wrote: > > > > Hi, > > > > > > > > i have got a cheap USB ethernet adapter for my ARM SBC running OpenBSD > > > > snapshot. If i connect it, it shows up as cdce, but then it > > > > automatically detaches and comes up as a usb storage device (it holds > > > > the the windows driver ). It does this repeatedly. Can I force somehow > > > > OpenBSD to ignore the mass storage device? DMESG below: > > > > > > > > uhub2 at uhub1 port 1 configuration 1 interface 0 "Terminus Technology > > > > USB2.0 HUB" rev 2.00/1.00 addr 2 > > > > cdce0 at uhub2 port 1 configuration 2 interface 0 "wch.cn USB 10/100 > > > > LAN" rev 2.00/7.34 addr 3 > > > > cdce0: address MA:CA:DD:RE:SS > > > > cdce0 detached > > > > umass0 at uhub2 port 1 configuration 1 interface 0 "wch.cn WCH > > > > UDISK_V1.1" rev 2.00/0.31 addr 3 > > > > umass0: using SCSI over Bulk-Only > > > > scsibus4 at umass0: 2 targets, initiator 0 > > > > cd0 at scsibus4 targ 1 lun 0: <Flash, USB Special Disk, \\205`\\023> > > > > removable > > > > > > > > it repeats this in ~ every 30 sec. > > > > > > Does it stop doing it if you use eject(1) on the cd device? (I don't > > > remember the exact syntax but try "eject cd0"). > > > > > > You might need something else to actually make the ethernet work though - > > > cdce is a generic ethernet class device and may or may not do something > > > useful with your adapter. > > > > > > > > > -- > > > Please keep replies on the mailing list. > > > > > > > > > -- > > MIZSEI Zolt??n <zmiz...@extrowerk.com> > > See if the following article applies/helps in your case: > > > https://docs.netgate.com/pfsense/en/latest/cellular/hardware.html#mode-switching > >
The following *may* help as well: https://www.draisberghof.de/usb_modeswitch/ https://www.baeldung.com/linux/usb-modems-communication I'm suspecting your problem *may* have something to do with USB mode switching. The source for it is at: https://www.draisberghof.de/usb_modeswitch/#download