From owner-freebsd-usb@freebsd.org Wed Nov 11 08:35:11 2015 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EE068A1FD59 for ; Wed, 11 Nov 2015 08:35:11 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id D88F2137D for ; Wed, 11 Nov 2015 08:35:11 +0000 (UTC) (envelope-from hps@selasky.org) Received: by mailman.ysv.freebsd.org (Postfix) id D5CD2A1FD52; Wed, 11 Nov 2015 08:35:11 +0000 (UTC) Delivered-To: usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D566FA1FD4D for ; Wed, 11 Nov 2015 08:35:11 +0000 (UTC) (envelope-from hps@selasky.org) 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 44297137C; Wed, 11 Nov 2015 08:35:11 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (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 A50381FE022; Wed, 11 Nov 2015 09:35:09 +0100 (CET) Subject: Re: usb modem "Can't setup transfer" To: Alfred Perlstein , usb@freebsd.org References: <5642B7E4.505@freebsd.org> From: Hans Petter Selasky Message-ID: <5642FE24.4050408@selasky.org> Date: Wed, 11 Nov 2015 09:36:52 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <5642B7E4.505@freebsd.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Nov 2015 08:35:12 -0000 On 11/11/15 04:37, Alfred Perlstein wrote: > Hello, > > A friend gave me a usb modem recently. The model is: > Multi-Tech Systems - Multi-Modem USB - MT5634ZBA > > The Linux driver info is here: > ftp://ftp.multitech.com/usb/usb-linux2.txt > > When I plug this device into FreeBSD I get a ugen0 device. > > So I tried hacking into the driver itself: > > diff --git a/sys/dev/usb/serial/umodem.c b/sys/dev/usb/serial/umodem.c > index c1e8812..9886294 100644 > --- a/sys/dev/usb/serial/umodem.c > +++ b/sys/dev/usb/serial/umodem.c > @@ -136,6 +136,7 @@ static const STRUCT_USB_HOST_ID umodem_host_devs[] = { > {USB_VPI(USB_VENDOR_KYOCERA, USB_PRODUCT_KYOCERA_AHK3001V, 1)}, > {USB_VPI(USB_VENDOR_SIERRA, USB_PRODUCT_SIERRA_MC5720, 1)}, > {USB_VPI(USB_VENDOR_CURITEL, USB_PRODUCT_CURITEL_PC5740, 1)}, > + {USB_VP(0x06e0, 0xf107)}, > }; > > /* > > > Now I get the following: > > Nov 10 19:19:54 spigot kernel: ugen3.3: at > usbus3 > Nov 10 19:19:54 spigot kernel: umodem0: on > usbus3 > Nov 10 19:19:54 spigot kernel: umodem0: data interface 1, has CM over > data, has no break > Nov 10 19:19:54 spigot kernel: umodem0: Can't setup transfer > Nov 10 19:19:54 spigot kernel: device_attach: umodem0 attach returned 6 > > I read the Linux driver and it seems pretty similar, although it does > look like they have a ton more quirks and edge cases the handle. The > file in Linux I'm looking at is: linux/drivers/usb/class/cdc-acm.c (this > seems to make the most sense given the instructions given at > ftp://ftp.multitech.com/usb/usb-linux2.txt). > > I tried turning on sysctl hw.usb.debug=10 however after doing so it > didn't seem to want to probe anymore. > > Any ideas? > > I can ship this modem to someone if they are interested and have a good > idea how to fix. Hi, Can you send the configuration descriptor dump: usbconfig -d X.Y dump_device_desc dump_curr_config_desc Maybe the modem fits into the U3G driver. --HPS