From owner-freebsd-usb@FreeBSD.ORG Fri Oct 17 13:07:24 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 27F46127 for ; Fri, 17 Oct 2014 13:07:24 +0000 (UTC) Received: from smtp-1-out.integrity.hu (smtp-1-out.integrity.hu [212.52.165.211]) by mx1.freebsd.org (Postfix) with ESMTP id 9BBDD3F9 for ; Fri, 17 Oct 2014 13:07:23 +0000 (UTC) Received: from webmail.integrity.hu (mail-fe-1.integrity.hu [10.1.64.120]) by mail-smtp.integrity.hu (Postfix) with ESMTPA id 284BD41CB5; Fri, 17 Oct 2014 15:07:14 +0200 (CEST) Received: from qN18Ul0H/5IdNxkPZN3AiJl3ZiUwl0Ng by webmail.integrity.hu with HTTP (HTTP/1.1 POST); Fri, 17 Oct 2014 15:07:14 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 17 Oct 2014 15:07:14 +0200 From: gabor@zahemszky.hu To: Hans Petter Selasky Subject: Re: u3g and Vodafone k3772 (not k3772z) In-Reply-To: <5441007B.9090203@selasky.org> References: <543F662E.2010801@bitfrost.no> <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> <5441007B.9090203@selasky.org> Message-ID: X-Sender: gabor@zahemszky.hu User-Agent: Roundcube Webmail/0.8.4 Cc: freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Oct 2014 13:07:24 -0000 >>>> 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: at usbus0 >>>> cdce0: >>> 0/0, rev >>>> 1.10/1.01, addr 2> on usbus0 >>>> cdce0: faking MAC address >>>> umass0: >>> 0/0, >>>> rev 1.10/1.01, addr 2> on usbus0 >>>> umass0: SCSI over Bulk-Only; quirks = 0x0000 >>>> ue0: 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: 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: 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 >> iProduct = 0x0002 >> iSerialNumber = 0x0000 >> 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: at usbus0 ugen0.2: at usbus0 (disconnected) ugen0.2: at usbus0 u3g0: 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: 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 >