On 2007/07/17 14:21, bdz wrote:
> Stuart Henderson wrote:
>> On 2007/07/17 13:00, bdz wrote:
>>   
>>> my friend has a huawei vodafone hsdpa modem with usb connector. i just 
>>> asked for it to see what openbsd 4.1-current sees from it. as i attached 
>>> it recognizeses it as a usb mass storage that contains a cd image:
>>>     
>>
>> developers will also need a "usbdevs -v", you might like to add one
>> to the thread on misc@ if you still have access to the device?


hmmm... I should have mentioned full dmesg as well, really.

Here is a diff to add the device to usbdevs, and attach the device
to ubsa(4). You may also need to disable umass (in boot -c) to get it
attaching to ubsa (but try without first).

If you do need to disable umass, umass will need a change to stop
attaching to this device (I don't imagine you'll need to access the
virtual CD containing the Windows driver from OpenBSD :-)

I couldn't work out if there's an existing umass_quirk available
to do this or not (but I guess this will happen on more devices now
Huawei has shown the way)

Index: ubsa.c
===================================================================
RCS file: /cvs/src/sys/dev/usb/ubsa.c,v
retrieving revision 1.30
diff -u -p -r1.30 ubsa.c
--- ubsa.c      14 Jun 2007 10:11:15 -0000      1.30
+++ ubsa.c      17 Jul 2007 12:41:14 -0000
@@ -222,6 +222,7 @@ const struct usb_devno ubsa_devs[] = {
        { USB_VENDOR_GOHUBS, USB_PRODUCT_GOHUBS_GOCOM232 },
        /* HUAWEI Mobile */
        { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E618 },
+       { USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E220 },
        /* Novatel Wireless U740 */
        { USB_VENDOR_NOVATEL, USB_PRODUCT_NOVATEL_MERLINU740 },
        /* Option Vodafone Mobile Connect 3G */
Index: usbdevs
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs,v
retrieving revision 1.282
diff -u -p -r1.282 usbdevs
--- usbdevs     22 Jun 2007 12:41:10 -0000      1.282
+++ usbdevs     17 Jul 2007 12:40:36 -0000
@@ -1285,6 +1285,7 @@ product HP2 C500          0x6002  PhotoSmart C500
 
 /* HUAWEI products */
 product HUAWEI E618            0x1001  HUAWEI Mobile E618
+product HUAWEI E220            0x1003  HUAWEI Mobile E220
 
 /* HUMAX products */
 product HUMAX PVRSMART         0x138c  PVR-SMART
Index: usbdevs.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs.h,v
retrieving revision 1.290
diff -u -p -r1.290 usbdevs.h
--- usbdevs.h   22 Jun 2007 12:43:15 -0000      1.290
+++ usbdevs.h   17 Jul 2007 12:41:27 -0000
@@ -1,4 +1,4 @@
-/*     $OpenBSD: usbdevs.h,v 1.290 2007/06/22 12:43:15 grange Exp $    */
+/*     $OpenBSD$       */
 
 /*
  * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
@@ -1292,6 +1292,7 @@
 
 /* HUAWEI products */
 #define        USB_PRODUCT_HUAWEI_E618 0x1001          /* HUAWEI Mobile E618 */
+#define        USB_PRODUCT_HUAWEI_E220 0x1003          /* HUAWEI Mobile E220 */
 
 /* HUMAX products */
 #define        USB_PRODUCT_HUMAX_PVRSMART      0x138c          /* PVR-SMART */
Index: usbdevs_data.h
===================================================================
RCS file: /cvs/src/sys/dev/usb/usbdevs_data.h,v
retrieving revision 1.287
diff -u -p -r1.287 usbdevs_data.h
--- usbdevs_data.h      22 Jun 2007 12:43:15 -0000      1.287
+++ usbdevs_data.h      17 Jul 2007 12:41:27 -0000
@@ -1,4 +1,4 @@
-/*     $OpenBSD: usbdevs_data.h,v 1.287 2007/06/22 12:43:15 grange Exp $       
*/
+/*     $OpenBSD$       */
 
 /*
  * THIS FILE IS AUTOMATICALLY GENERATED.  DO NOT EDIT.
@@ -1999,6 +1999,10 @@ const struct usb_known_product usb_known
        {
            USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E618,
            "HUAWEI Mobile E618",
+       },
+       {
+           USB_VENDOR_HUAWEI, USB_PRODUCT_HUAWEI_E220,
+           "HUAWEI Mobile E220",
        },
        {
            USB_VENDOR_HUMAX, USB_PRODUCT_HUMAX_PVRSMART,

Reply via email to