Date: Fri, 17 Oct 2014 15:07:14 +0200 From: gabor@zahemszky.hu To: Hans Petter Selasky <hps@selasky.org> Cc: freebsd-usb@freebsd.org Subject: Re: u3g and Vodafone k3772 (not k3772z) Message-ID: <cb3b66f667589b60bd3c56319d784eac@zahemszky.hu> In-Reply-To: <5441007B.9090203@selasky.org> References: <c5c1344ad4a64cd91e769a0e0fd750aa@zahemszky.hu> <543F662E.2010801@bitfrost.no> <b02117a6904277a0a674ef618f8b98b0@zahemszky.hu> <543F757F.3080008@selasky.org> <32bbfea82744ca84ffa31c27917f3013@zahemszky.hu> <543F7F5F.5070102@selasky.org> <09454923d8518e4f1e2e7aab64e499ba@zahemszky.hu> <543F88B6.904@selasky.org> <9bb5ca363a4e17e9f41b50b748316cdf@zahemszky.hu> <5440E455.8030003@selasky.org> <e8fcff2367f06943de45e558766dba36@zahemszky.hu> <5441007B.9090203@selasky.org>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>> OK. I've upgraded to 11-CURRENT, patched in the ID-s. >>>> Kldloaded the u3g module (and cannot load the usb_quirk module) >>>> Here is the demsg output after plugging in the stick: >>>> >>>> ugen0.2: <Vodafone Huawei> at usbus0 >>>> cdce0: <Vodafone Huawei Vodafone Mobile Broadband Huawei, class >>>> 0/0, rev >>>> 1.10/1.01, addr 2> on usbus0 >>>> cdce0: faking MAC address >>>> umass0: <Vodafone Huawei Vodafone Mobile Broadband Huawei, class >>>> 0/0, >>>> rev 1.10/1.01, addr 2> on usbus0 >>>> umass0: SCSI over Bulk-Only; quirks = 0x0000 >>>> ue0: <USB Ethernet> on cdce0 >>>> ue0: Ethernet address: 2a:35:81:05:00:00 >>>> umass0:2:0: Attached to scbus2 >>>> cd1 at umass-sim0 bus 0 scbus2 target 0 lun 0 >>>> cd1: <Vodafone CD ROM (Huawei) 2.31> Removable CD-ROM SCSI-2 >>>> device >>>> cd1: 1.000MB/s transfers >>>> cd1: cd present [65536 x 2048 byte records] >>>> cd1: quirks=0x10<10YTE_ONLY> >>>> >>>> Thanks, >>>> >>>> Gabor < Gabor at Zahemszky dot HU > >>>> >>>> >>> >>> Hi, >>> >>> Can you show the output from "usbconfig -d X.Y dump_device_desc"? >>> >>> We need to add the non-autoinstall disk ID to u3g aswell. >>> >>> Thank you! >> >> Hi! >> >> The original ID is: 12d1:1526 >> The switched ID is: 12d1:14cf >> >> The dump: >> >> # usbconfig -d 0.2 dump_device_desc >> ugen0.2: <Vodafone Mobile Broadband Huawei Vodafone Huawei> at >> usbus0, >> cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (500mA) >> >> bLength = 0x0012 >> bDescriptorType = 0x0001 >> bcdUSB = 0x0110 >> bDEviceClass = 0x0000 >> bDeviceSubClass = 0x0000 >> bDeviceProtocol = 0x00 >> bMaxPacketSize0 = 0x0040 >> idVendor = 0x12d1 >> idProduct = 0x14cf >> bcdDevice = 0x0102 >> iManufacturer = 0x0003 <Vodafone (Huawei)> >> iProduct = 0x0002 <Vodafone Mobile broadband (Huawei)> >> iSerialNumber = 0x0000 <no string> >> bNumConfigurations = 0x0001 >> >> ==== >> >> I have another question. Both ucom and u3g modules loaded, but I >> cannot >> find /dev/ttyU* or /dev/cuaU* devices. What's missing? >> >> Bye, >> >> Gabor < Gabor at Zahemszky dot HU > >> > > Can you test the attached patch. Revert the previous ones. > > cd sys/dev/usb/ > cat u3g.diff | patch > > compile new kernel and reboot. > > --HPS Hi! OK, updated. Now: dmesg: === ugen0.2: <Vodafone huawei> at usbus0 ugen0.2: <Vodafone huawei> at usbus0 (disconnected) ugen0.2: <Vodafone huawei> at usbus0 u3g0: <Vodafone Huawei Vodafone Mobile Broadband Huawei, class 0/0, rev 1.10/1.02, addr2> on usbus0 u3g0: Found 3 ports. umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:2:0: Attached to scbus0 cd1 at umass-sim0 bus 0 scbus2 target 0 lun 0 cd1: <Vodafone CD ROM (Huawei) 2.31> Removable CD-ROM SCSI-2 device cd1: 1.000MB/s transfers cd1: cd present [65536 x 2048 byte records] cd1: quirks=0x10<10YTE_ONLY> === So, I've lost the cdc0 and ue0 devices, but got the u3g0 device. And we have three /dev/ttyU* and /dev/cucU* devices (and the .init and .lock devices to all of them). And of course, I can connect to the device: # cu -s 115200 -l /dev/cuaU0.0 Connected atz OK ati Manufacturer: Vodafone (Huawei) Model: K3772 Revision: 21.157.40.00.11 IMEI: xxx +GCAP: +CGSM,+DS,+ES OK Thanks, Gabor < Gabor at Zahemszky dot HU >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?cb3b66f667589b60bd3c56319d784eac>
