From owner-freebsd-stable@FreeBSD.ORG Tue Sep 23 12:38:58 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 04263DFC for ; Tue, 23 Sep 2014 12:38:58 +0000 (UTC) Received: from man.dat.pl (dat.pl [80.51.155.34]) by mx1.freebsd.org (Postfix) with ESMTP id B8A6574C for ; Tue, 23 Sep 2014 12:38:57 +0000 (UTC) Received: from man.dat.pl (localhost [127.0.0.1]) by man.dat.pl (Postfix) with ESMTP id 66B96D16A4C; Tue, 23 Sep 2014 14:38:49 +0200 (CEST) X-Virus-Scanned: amavisd-new at dat.pl Received: from man.dat.pl ([127.0.0.1]) by man.dat.pl (man.dat.pl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id DlClTnvMJH2i; Tue, 23 Sep 2014 14:38:48 +0200 (CEST) Message-ID: <542169D6.8090904@dat.pl> Date: Tue, 23 Sep 2014 14:38:46 +0200 From: Maciej Milewski MIME-Version: 1.0 To: freebsd-stable@freebsd.org Subject: Re: FreeBSD with Huawei 3g modem. References: <54215969.1070303@pean.org> In-Reply-To: <54215969.1070303@pean.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Cc: peter@pean.org 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 12:38:58 -0000 On 23.09.2014 13:28, Peter Ankerst=E5l 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 =3D 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 devic= e > da0: Serial Number FFFFFFFFFFFFFFFF > da0: 40.000MB/s transfers > da0: Attempt to query device size failed: NOT READY, Medium not present= > da0: quirks=3D0x2 > > usbconfig gives this: > > # usbconfig -u 0 -a 4 dump_device_desc > ugen0.4: at usbus0, cfg=3D1 md=3DHOST spd=3DHIGH= > (480Mbps) pwr=3DON (500mA) > > bLength =3D 0x0012 > bDescriptorType =3D 0x0001 > bcdUSB =3D 0x0200 > bDeviceClass =3D 0x0000 > bDeviceSubClass =3D 0x0000 > bDeviceProtocol =3D 0x00ff > bMaxPacketSize0 =3D 0x0040 > idVendor =3D 0x12d1 > idProduct =3D 0x157d > bcdDevice =3D 0x0102 > iManufacturer =3D 0x0001 > iProduct =3D 0x0002 > iSerialNumber =3D 0x0003 > bNumConfigurations =3D 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. --=20 Pozdrawiam, Maciej Milewski