Hello all.
I'm playing with an umsm(4) device from Longcheer (as USB ID says). After
adding corresponding lines to usbdevs and umsm.c it still doesn't get
ucom(4) attached.
I tried all 4 umass quirks, DEV_UMASS[1234]. Steps were the following:
1. Build kernel.
2. Make sure modem is attached.
3. Reboot.
4. Boot new kernel in single user mode.
5. Look at the "umsm0 at" message.
6. Remove modem from slot and see "umsm0 detached" message.
7. Put it in another USB port and see "umsm0 at" message.
8. Realize I'm out of luck and use another quirk.
9. Go to (1).
Once (when using DEV_UMASS3) it showed the following on booting:
<...>
mtrr: Pentium Pro MTRR support
umsm0 at uhub0 port 1 configuration 1 interface 0 "USB Modem USB Modem" rev
2.00/0.00 addr 2
umsm0 detached
ugen0 at uhub4 port 1 "STMicroelectronics Biometric Coprocessor" rev 1.00/0.01
addr 2
vscsi0 at root
scsibus1 at vscsi0: 256 targets
softraid0 at root
root on sd0a swap on sd0b dump on sd0b
umsm0 at uhub0 port 1 configuration 1 interface 0 "USB Modem Modem
Configuration" rev 2.00/0.00 addr 2
ucom0 at umsm0
umsm1 at uhub0 port 1 configuration 1 interface 1 "USB Modem Modem
Configuration" rev 2.00/0.00 addr 2
ucom1 at umsm1
umsm2 at uhub0 port 1 configuration 1 interface 2 "USB Modem Modem
Configuration" rev 2.00/0.00 addr 2
ucom2 at umsm2
umass0 at uhub0 port 1 configuration 1 interface 3 "USB Modem Modem
Configuration" rev 2.00/0.00 addr 2
umass0: using SCSI over Bulk-Only
scsibus2 at umass0: 2 targets, initiator 0
sd1 at scsibus2 targ 1 lun 0: <USBModem, Disk, 2.31> SCSI2 0/direct removable
sd1: drive offline
< Here I detached the modem trying to repeat results >
ucom0 detached
umsm0 detached
ucom1 detached
umsm1 detached
ucom2 detached
umsm2 detached
sd1 detached
scsibus2 detached
umass0 detached
< Here I plugged the modem back in, with usual result now. Then repeat >
umsm0 at uhub0 port 1 configuration 1 interface 0 "USB Modem USB Modem" rev
2.00/0.00 addr 2
umsm0 detached
umsm0 at uhub0 port 2 configuration 1 interface 0 "USB Modem USB Modem" rev
2.00/0.00 addr 2
After reboot it was quiet again.
Could anyone give me a clue(stick) how to debug and fix that behavior?
The patches to usbdevs and umsm.c are at the end of letter.
"usbdevs -v" always show 0xf000 product ID; sorry, I forgot to run it
when three umsms and ucoms were attached. :(
The USB_PRODUCT_LONGCHEER_U12 code was taken from MS Windows Device
Manager (the modem runs fine there).
I'll try to buy another one but dunno how to send it to interested
person - I live in Moscow, Russia now.
--
Best wishes,
Vadim Zhukov
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
Index: umsm.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/umsm.c,v
retrieving revision 1.58
diff -u -p -r1.58 umsm.c
--- umsm.c 22 Feb 2010 23:36:42 -0000 1.58
+++ umsm.c 28 Feb 2010 00:53:10 -0000
@@ -136,6 +136,8 @@ static const struct umsm_type umsm_devs[
{{ USB_VENDOR_LONGCHEER, USB_PRODUCT_LONGCHEER_D21LCMASS }, DEV_UMASS3},
{{ USB_VENDOR_LONGCHEER, USB_PRODUCT_LONGCHEER_D21LC }, 0},
+ {{ USB_VENDOR_LONGCHEER, USB_PRODUCT_LONGCHEER_U12MASS }, DEV_UMASS3},
+ {{ USB_VENDOR_LONGCHEER, USB_PRODUCT_LONGCHEER_U12 }, 0},
{{ USB_VENDOR_KYOCERA2, USB_PRODUCT_KYOCERA2_KPC650 }, 0},
Index: usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.478
diff -u -p -r1.478 usbdevs
--- usbdevs 25 Feb 2010 17:44:21 -0000 1.478
+++ usbdevs 28 Feb 2010 00:53:11 -0000
@@ -2173,6 +2173,8 @@ product LOGITECH QUICKCAMPRO2 0xd001 Qui
/* Longcheer products */
product LONGCHEER D21LCMASS 0x9401 Emobile D21LC Mass only mode
product LONGCHEER D21LC 0x9404 Emobile D21LC
+product LONGCHEER U12 0x9603 Modem mode
+product LONGCHEER U12MASS 0xf000 Storage mode
/* Longshine products */
product ABOCOM LCS8138TX 0x401a LCS-8138TX