From owner-freebsd-usb@FreeBSD.ORG Thu Oct 16 08:18:40 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 86D92E50 for ; Thu, 16 Oct 2014 08:18:40 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3D8B3BCF for ; Thu, 16 Oct 2014 08:18:39 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 496F41FE022; Thu, 16 Oct 2014 10:18:37 +0200 (CEST) Message-ID: <543F7F5F.5070102@selasky.org> Date: Thu, 16 Oct 2014 10:18:39 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: gabor@zahemszky.hu, freebsd-usb@freebsd.org Subject: Re: u3g and Vodafone k3772 (not k3772z) References: <543F662E.2010801@bitfrost.no> <543F757F.3080008@selasky.org> <32bbfea82744ca84ffa31c27917f3013@zahemszky.hu> In-Reply-To: <32bbfea82744ca84ffa31c27917f3013@zahemszky.hu> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit 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: Thu, 16 Oct 2014 08:18:40 -0000 On 10/16/14 09:50, gabor@zahemszky.hu wrote: > 2014-10-16 09:36 időpontban Hans Petter Selasky ezt írta: >> On 10/16/14 08:48, gabor@zahemszky.hu wrote: >>>>> I tried to switch it to USB-modem mode, but none of the usb_quirks >>>>> worked. And with EJECT_HUAWEI, I got an error, too. >>>>> >>>>> # usbconfig -d ugen4.3 add_quirk UQ_MSC_EJECT_HUAWEI >>>>> Adding quirk 'UQ_MSC_EJECT_HUAWEI' failed, continuing. >>>>> # >>>> >>>> Did you load the u3g and usb_quirk modules first? >>> >>> >>> Yes. My method was: >>> >>> - first I plugged in the stick. >>> - Found, that nothing know about it. >>> - Pulled out >>> # kldload u3g >>> - plugged it second time >>> - nothing >>> - pulled out >>> # kldload usb_quirk >>> # man usb_quirk >>> - plugged the stick >>> - tried all of the u3g quirks, found in the manual and in the usbconfig >>> dump_quirk_names list >>> with the command: >>> >>> usbconfig -d useg4.3 add_quirk UQ_MSC_EJECT_* >>> >>> one after the other. Actually I've just found, that there is a >>> remove_quirk subcommand, too. >>> Maybe I need to remove a quirk if it's not the correct one? >>> >>>>> Under Linux, with usb_modeswitch, I could switch it to modem, with the >>>>> >>>>> >>>>> MessageContent="55534243123456780000000000000011062000000100000000000000000000" >>>>> >>>>> >>>>> >>>>> string, and after it, it will be Vendor=12d1 ProdID=14cf. There are >>>>> some >>>>> interesting information about this modem in this forum thread: >>>>> >>>>> >>>>> >>>>> http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=4&t=1114 >>>>> >>>>> Is it possible, to use this modem under FreeBSD? And if yes, how? >>>>> >>>> >>>> Modeswitch is available under FreeBSD too. Check the ports >>> >>> >>> Hm, I didn't know about it, At the evening, I'll try it. >>> >>> >>>> collection. Although we prefer putting the quirks into the kernel. >>> >>> Isn't it a good idea to make it possible to add new quirks from >>> userspace? >> >> Not always, because then the dummy CD-ROMs will enumerate first. >> >> --HPS > > > Hi, I think you misunderstood my comment. I think that we need some trick: > > - to tell the u3g driver to use a new quirk (UQ_MSC_NEW) ; that the > hardware > with VendorID X and ProductID Y *will* need to switch with the next > message: > ABC - where X and Y are known IDs, ABC is a known message, but ABC is not a > defined quirk in the usb_quirk driver. > > So I can tell the system, that the unknown K3772 modem - VendorID=12d1 and > ProductID=12d1 - needs that message (borrowed from usb_modeswitch database) > "55534243123456780000000000000011062000000100000000000000000000" > Hi, This quirk already exists. Can you try: kldunload usb_quirk kldload usb_quirk usbconfig -d X.Y add_quirk UQ_MSC_EJECT_HUAWEISCSI2 Then re-plug your device? --HPS