From owner-freebsd-stable@FreeBSD.ORG Tue Sep 23 13:00:40 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 4146A82A for ; Tue, 23 Sep 2014 13:00:40 +0000 (UTC) Received: from mailhost.netlab.sk (mailhost.netlab.sk [84.245.65.10]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B07DBA56 for ; Tue, 23 Sep 2014 13:00:39 +0000 (UTC) Received: from zeta.dino.sk (fw1.dino.sk [84.245.95.252]) (AUTH: LOGIN milan) by mailhost.netlab.sk with ESMTPA; Tue, 23 Sep 2014 15:00:32 +0200 id 00DD601C.54216EF0.000110AE Date: Tue, 23 Sep 2014 15:00:29 +0200 From: Milan Obuch To: Peter =?ISO-8859-1?Q?Ankerst=E5l?= Subject: Re: FreeBSD with Huawei 3g modem. Message-ID: <20140923150029.5ca8f80b@zeta.dino.sk> In-Reply-To: <54216B81.6030306@pean.org> References: <54215969.1070303@pean.org> <542169D6.8090904@dat.pl> <54216B81.6030306@pean.org> X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.22; i386-portbld-freebsd10.0) MIME-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit Cc: freebsd-stable@freebsd.org, Maciej Milewski X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Sep 2014 13:00:40 -0000 On Tue, 23 Sep 2014 14:45:53 +0200 Peter Ankerstål wrote: > On 09/23/2014 02:38 PM, Maciej Milewski wrote: > > On 23.09.2014 13:28, Peter Ankerstål wrote: > >> Hi! > >> > >> Im trying to get a Huawei E3531 to work in FreeBSD. But Im not > >> really sure where to start. I found this: > >> http://technotation.com/2012/08/15/freebsd-and-mobile-broadband/ > >> but havent had any luck cut and pasting here. > >> > >> System: > >> # uname -srm > >> FreeBSD 10.0-RELEASE amd64 > >> > >> When I connect it dmesg says: > >> usb_alloc_device: Found possible auto-install disk (trying next > >> config) ugen0.4: at usbus0 > >> umass0: on > >> usbus0 > >> umass0: SCSI over Bulk-Only; quirks = 0x0000 > >> umass0:5:0:-1: Attached to scbus5 > >> da0 at umass-sim0 bus 0 scbus5 target 0 lun 0 > >> da0: Removable Direct Access SCSI-2 > >> device da0: Serial Number FFFFFFFFFFFFFFFF > >> da0: 40.000MB/s transfers > >> da0: Attempt to query device size failed: NOT READY, Medium not > >> present da0: quirks=0x2 > >> > >> usbconfig gives this: > >> > >> # usbconfig -u 0 -a 4 dump_device_desc > >> ugen0.4: at usbus0, cfg=1 md=HOST spd=HIGH > >> (480Mbps) pwr=ON (500mA) > >> > >> bLength = 0x0012 > >> bDescriptorType = 0x0001 > >> bcdUSB = 0x0200 > >> bDeviceClass = 0x0000 > >> bDeviceSubClass = 0x0000 > >> bDeviceProtocol = 0x00ff > >> bMaxPacketSize0 = 0x0040 > >> idVendor = 0x12d1 > >> idProduct = 0x157d > >> bcdDevice = 0x0102 > >> iManufacturer = 0x0001 > >> iProduct = 0x0002 > >> iSerialNumber = 0x0003 > >> bNumConfigurations = 0x0002 > >> > >> > > Peter, > > cut and paste is the last step(for copying ppp script ;P ) > > Before that you need to setup your system to recognize that modem. > > First check if the idProduct is listed in your usbdevs. If not you > > need to add it similar way like are other. > > For example E3131 is added like that: > > root@backup:/usr/src/sys/dev/usb # grep -Hr E3131 * > > serial/u3g.c: U3G_DEV(HUAWEI, E3131, 0), > > serial/u3g.c: U3G_DEV(HUAWEI, E3131_INIT, U3GINIT_HUAWEISCSI), > > usbdevs:product HUAWEI E3131_INIT 0x14fe 3G modem initial > > usbdevs:product HUAWEI E3131 0x1506 3G modem > > > > Then recompile and install kernel and try if that helps. I'm not > > sure if compiling u3g module is enough that's why I suggested whole > > kernel recompiling. > > > Yes, this is exactly what I have done, except that I dont know the > "INIT" one. > > And no, I did not recompile the kernel, just u3g. > Hi, I found this page: https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch/+bug/1308895 There is something which makes me thinking it is somehow similar to my E3272, which works after mode switch (with port usb_modeswitch, see recent thread on freebsd-current mailing list titled 'Huawei E3272 tester needed') with if_cdce.ko module. It is a wild guess, but maybe it works. Regards, Milan