tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: umodeswitch
On Fri, Apr 09, 2021 at 06:07:17PM +0200, Emmanuel Dreyfus wrote:
> port 10 addr 2: high speed, power 500 mA, config 1, Mobile
> Connect(0xab00), Mobile Connect(0x2001), rev 2.28(0x0228), serial
> 25052a63011b
I got it working by adding just this:
--- u3g.c.orig 2021-04-09 20:52:16.008519125 +0200
+++ u3g.c 2021-04-13 02:53:20.636012294 +0200
@@ -261,4 +262,5 @@
{ USB_VENDOR_DLINK, USB_PRODUCT_DLINK_DWM157 },
{ USB_VENDOR_DLINK, USB_PRODUCT_DLINK_DWM157E },
+ { USB_VENDOR_DLINK, USB_PRODUCT_DLINK_DWM222 },
};
Of course thatr does not help with mode switch. Here is drvctl -ntl output:
(...)
usb1
uhub1
umass1
scsibus1
sd1
cd0
And usbdevs -dvf /dev/usb1
(...)
port 10 addr 2: high speed, power 500 mA, config 1, Mobile Connect(0xab00), Mobile Connect(0x2001), rev 2.28(0x0228), serial 25052a63011b
umass1
Here is modeswitch without the umodeswitch driver:
# eject /dev/cd0d
And now usbdevs -dvf /dev/usb1 says
port 10 addr 3: high speed, power 500 mA, config 1, Mobile Connect(0x7e35), Mobile Connect(0x2001), rev 2.28(0x0228), serial 0123456789ABCDEF
And drvctl -ntl
(...)
usb1
uhub1
u3g0
ucom0
u3g1
ucom1
u3g2
ucom2
u3g3
ucom3
u3g4
ucom4
umass1
scsibus1
sd1
And the modem works. I understand umodeswitch ejects sd1 while it should
eject cd0. But I have no clus about how to fix that.
--
Emmanuel Dreyfus
manu%netbsd.org@localhost
Home |
Main Index |
Thread Index |
Old Index