From owner-freebsd-usb@FreeBSD.ORG Thu Oct 16 08:47:43 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 BDF83C44 for ; Thu, 16 Oct 2014 08:47:43 +0000 (UTC) Received: from smtp-2-out.integrity.hu (smtp-2-out.integrity.hu [212.52.165.212]) by mx1.freebsd.org (Postfix) with ESMTP id 78DBDEF9 for ; Thu, 16 Oct 2014 08:47:43 +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 1D45841AAB; Thu, 16 Oct 2014 10:47:39 +0200 (CEST) Received: from pO4TArU+Wgq8d9rpn5H1VUmYb/H9lkiT by webmail.integrity.hu with HTTP (HTTP/1.1 POST); Thu, 16 Oct 2014 10:47:39 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 16 Oct 2014 10:47:39 +0200 From: gabor@zahemszky.hu To: Hans Petter Selasky Subject: Re: u3g and Vodafone k3772 (not k3772z) In-Reply-To: <543F7F5F.5070102@selasky.org> References: <543F662E.2010801@bitfrost.no> <543F757F.3080008@selasky.org> <32bbfea82744ca84ffa31c27917f3013@zahemszky.hu> <543F7F5F.5070102@selasky.org> Message-ID: <09454923d8518e4f1e2e7aab64e499ba@zahemszky.hu> 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: Thu, 16 Oct 2014 08:47:43 -0000 >> 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? Hi, actually I can only try it in a VirtualBOX VM. This machine has 10.1-RC2. But I had two problems: - something wrong is with the usb_quirk module: # kldunload usb_quirk kldunload: can't find file usb_quirk # kldload usb_quirk kldload: can't load usb_quirk: module already loaded or in kernel # kldstat -v | fgrep quirk # ( generates nothing ) - By the way, neither man usb_quirks, nor usbconfig dump_quirk_names hasn't got that UQ_MSC_EJECT_HUAWEISCSI2 name. And it's missing from the C-header file /sys/dev/usb/quirk/usb_quirk.h, too. (Only EJECT_HUAWEI and EJECT_HUAWEISCSI exists.) At the evening, I'll try this command on a real machine, with 10.0-p9, but I didn't remember other HUAWEI quirks, that the two above. (And my last question: are there any more detailed documentation about usbconfig, than the manual? Actually I don't know what the different commands do, eg. maybe with the add_dev_quirk_vplh, or do_request subcommands, I can create new quirks.) Thanks, Gabor < Gabor at Zahemszky dot HU >