Stuart Henderson wrote:
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,




it does not matter if umass(4) is enabled or disabled i got that msg from ubsa(4):
ubsa0 at uhub2 port 2
ubsa0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2
ubsa0: Could not find interrupt in


full dmesg below:

OpenBSD 4.1-current (GENERIC) #2: Tue Jul 17 15:52:05 GMT 2007
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel(R) Pentium(R) M processor 1.73GHz ("GenuineIntel" 686-class) 1.73 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF,EST,TM2
real mem  = 1073049600 (1023MB)
avail mem = 1029951488 (982MB)
mainbus0 at root
bios0 at mainbus0: AT/286+ BIOS, date 10/13/05, BIOS32 rev. 0 @ 0xf0010, SMBIOS rev. 2.3 @ 0xf9550 (36 entries)
bios0: ASUSTeK Computer Inc. M6V
pcibios0 at bios0: rev 2.1 @ 0xf0000/0x10000
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xf4750/272 (15 entries)
pcibios0: PCI Interrupt Router at 000:31:0 ("Intel 82801FB LPC" rev 0x00)
pcibios0: PCI bus #3 is the last bus
bios0: ROM list: 0xc0000/0x10000
acpi0 at mainbus0: rev 0
acpi0: tables DSDT FACP APIC MCFG OEMB SSDT
acpitimer at acpi0 not configured
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 1 (P0P1)
acpiprt2 at acpi0: bus 2 (P0P2)
acpiprt3 at acpi0: bus 0 (P0P4)
acpiprt4 at acpi0: bus 0 (P0P5)
acpiprt5 at acpi0: bus 0 (P0P6)
acpiprt6 at acpi0: bus 0 (P0P7)
acpiec0 at acpi0: EC0_
acpicpu at acpi0 not configured
acpitz at acpi0 not configured
acpiac at acpi0 not configured
acpibat0 at acpi0: BAT0: not present
acpibat1 at acpi0: BAT1: not present
acpibtn at acpi0 not configured
acpibtn at acpi0 not configured
cpu0 at mainbus0
cpu0: unknown Enhanced SpeedStep CPU, msr 0x06120d2606000d26
cpu0: using only highest and lowest power states
cpu0: Enhanced SpeedStep 1733 MHz (1308 mV): speeds: 1733, 800 MHz
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "Intel 82915GM/PM/GMS Host" rev 0x03
ppb0 at pci0 dev 1 function 0 "Intel 82915PM/GM PCIE" rev 0x03
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "ATI Radeon Mobility X600" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
azalia0 at pci0 dev 27 function 0 "Intel 82801FB HD Audio" rev 0x04: irq 5
azalia0: host: High Definition Audio rev. 1.0
azalia0: codec: Realtek ALC880 (rev. 5.0), HDA version 0.9
azalia0: codec: 0x14f1/0x2bfa (rev. 0.0), HDA version 0.9
azalia0: codec[1]: No support for modem function groups
azalia0: codec[1]: No audio function groups
audio0 at azalia0
uhci0 at pci0 dev 29 function 0 "Intel 82801FB USB" rev 0x04: irq 4
uhci1 at pci0 dev 29 function 1 "Intel 82801FB USB" rev 0x04: irq 5
uhci2 at pci0 dev 29 function 2 "Intel 82801FB USB" rev 0x04: irq 6
uhci3 at pci0 dev 29 function 3 "Intel 82801FB USB" rev 0x04: irq 5
ehci0 at pci0 dev 29 function 7 "Intel 82801FB USB" rev 0x04: irq 4
usb0 at ehci0: USB revision 2.0
uhub0 at usb0: Intel EHCI root hub, rev 2.00/1.00, addr 1
ppb1 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xd4
pci2 at ppb1 bus 2
skc0 at pci2 dev 0 function 0 "Marvell Yukon 88E8001/8003/8010" rev 0x13, Yukon Lite (0x9): irq 6
sk0 at skc0 port A: address 00:13:d4:9f:c5:ba
eephy0 at sk0 phy 0: Marvell 88E1011 Gigabit PHY, rev. 5
cbb0 at pci2 dev 1 function 0 "Ricoh 5C476 CardBus" rev 0xb3: irq 5
"Ricoh 5C552 Firewire" rev 0x08 at pci2 dev 1 function 1 not configured
sdhc0 at pci2 dev 1 function 2 "Ricoh 5C822 SD/MMC" rev 0x17: irq 6
sdmmc0 at sdhc0
"Ricoh 5C592 Memory Stick" rev 0x08 at pci2 dev 1 function 3 not configured
"Ricoh 5C852 xD" rev 0x03 at pci2 dev 1 function 4 not configured
iwi0 at pci2 dev 2 function 0 "Intel PRO/Wireless 2915ABG" rev 0x05: irq 5, address 00:12:f0:7d:60:b6
cardslot0 at cbb0 slot 0 flags 0
cardbus0 at cardslot0: bus 3 device 0 cacheline 0x0, lattimer 0x40
pcmcia0 at cardslot0
ichpcib0 at pci0 dev 31 function 0 "Intel 82801FBM LPC" rev 0x04: PM disabled pciide0 at pci0 dev 31 function 1 "Intel 82801FB IDE" rev 0x04: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
wd0 at pciide0 channel 0 drive 0: <HTS541060G9AT00>
wd0: 16-sector PIO, LBA48, 57231MB, 117210240 sectors
atapiscsi0 at pciide0 channel 0 drive 1
scsibus0 at atapiscsi0: 2 targets
cd0 at scsibus0 targ 0 lun 0: <TSSTcorp, CD/DVDW TS-L532A, TC51> SCSI0 5/cdrom removable
wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5
cd0(pciide0:0:1): using PIO mode 4, Ultra-DMA mode 2
pciide0: channel 1 disabled (no drives)
usb1 at uhci0: USB revision 1.0
uhub1 at usb1: Intel UHCI root hub, rev 1.00/1.00, addr 1
usb2 at uhci1: USB revision 1.0
uhub2 at usb2: Intel UHCI root hub, rev 1.00/1.00, addr 1
usb3 at uhci2: USB revision 1.0
uhub3 at usb3: Intel UHCI root hub, rev 1.00/1.00, addr 1
usb4 at uhci3: USB revision 1.0
uhub4 at usb4: Intel UHCI root hub, rev 1.00/1.00, addr 1
isa0 at ichpcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pmsi0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pmsi0 mux 0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
biomask ef75 netmask ef75 ttymask fff7
pctr: 686-class user-level performance counters enabled
mtrr: Pentium Pro MTRR support
uhidev0 at uhub1 port 1 configuration 1 interface 0
uhidev0: vendor 0x04d9 product 0x1400, rev 1.10/1.42, addr 2, iclass 3/1
ukbd0 at uhidev0: 8 modifier keys, 6 key codes
wskbd1 at ukbd0 mux 1
wskbd1: connecting to wsdisplay0
uhidev1 at uhub1 port 1 configuration 1 interface 1
uhidev1: vendor 0x04d9 product 0x1400, rev 1.10/1.42, addr 2, iclass 3/1
uhidev1: 3 report ids
ums0 at uhidev1 reportid 1: 5 buttons and Z dir.
wsmouse1 at ums0 mux 0
uhid0 at uhidev1 reportid 2: input=3, output=0, feature=0
uhid1 at uhidev1 reportid 3: input=1, output=0, feature=0
uhidev2 at uhub1 port 2 configuration 1 interface 0
uhidev2: Logitech Optical USB Mouse, rev 2.00/3.40, addr 3, iclass 3/1
ums1 at uhidev2: 3 buttons and Z dir.
wsmouse2 at ums1 mux 0
dkcsum: wd0 matches BIOS drive 0x80
root on wd0a swap on wd0b dump on wd0b
ubsa0 at uhub2 port 2
ubsa0: HUAWEI Technologies HUAWEI Mobile, rev 1.10/0.00, addr 2
ubsa0: Could not find interrupt in

Reply via email to