From owner-freebsd-mobile@FreeBSD.ORG Sun May 4 14:37:45 2008 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B3CC8106566C for ; Sun, 4 May 2008 14:37:45 +0000 (UTC) (envelope-from matthias.apitz@oclc.org) Received: from hunter.Sisis.de (hunter.sisis.de [193.31.11.194]) by mx1.freebsd.org (Postfix) with ESMTP id 1C00B8FC1D for ; Sun, 4 May 2008 14:37:44 +0000 (UTC) (envelope-from matthias.apitz@oclc.org) Received: (from mail@localhost) by hunter.Sisis.de (8.8.8/8.8.8) id QAA26195; Sun, 4 May 2008 16:30:12 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) Received: from ip-77-25-9-89.web.vodafone.de(77.25.9.89) by hunter.Sisis.de via smap (V2.1) id xma026141; Sun, 4 May 08 16:29:43 +0200 Received: (from guru@localhost) by rebelion.Sisis.de (8.14.2/8.13.8/Submit) id m44Eb64D002794; Sun, 4 May 2008 16:37:06 +0200 (CEST) (envelope-from matthias.apitz@oclc.org) X-Authentication-Warning: rebelion.Sisis.de: guru set sender to matthias.apitz@oclc.org using -f Date: Sun, 4 May 2008 16:37:05 +0200 From: Matthias Apitz To: Volker Message-ID: <20080504143704.GA2571@rebelion.Sisis.de> References: <20080503064135.GA2355@rebelion.Sisis.de> <481C6A3D.6030007@vwsoft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <481C6A3D.6030007@vwsoft.com> User-Agent: Mutt/1.4.2.3i X-Operating-System: FreeBSD 7.0-RELEASE (i386) Cc: freebsd-mobile@freebsd.org Subject: Re: nozomi driver (was: Vodafone Mobile Connect HSDPA/UMTS/EDGE datacard supported?) X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthias Apitz List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 May 2008 14:37:45 -0000 El día Saturday, May 03, 2008 a las 03:35:57PM +0200, Volker escribió: > Matthias, > > no real life of a working driver, but a preliminary piece of code, which > may get your device working can be found here: > > http://bsd.vwsoft.com/3g/nozomi/ > > Please grab the Makefile and nozomi.c file. > > Big fat warning: This code currently can't make it into the fBSD source > tree, as it contains portions of GPL'd code. > > At least you should get your device in a working state with that code. > The host interface of that card is totally different to that of other > cards so you won't have any luck with any other drive from the base system. > > Please report back to me if you find any issues (as I'm not using 3G > cards very often these days anymore). > > HTH > > Volker Hi Volker, Thanks for the piece of software. I run into a small problem compiling the code nozomi.c because the function bus_setup_intr() awaits one more argument as it was called in nozomi.c; I checked the man page of bus_setup_intr() and other divers how they call it and came up with this small patch: *** nozomi.c 2008-05-04 16:14:15.406582000 +0200 --- nozomi.c.orig 2007-04-18 00:47:50.000000000 +0200 *************** *** 1204,1210 **** nozomi_tty_init(sc); /* setup interrupt and interrupt handler */ ! if(bus_setup_intr(dev, sc->intr_res, INTR_TYPE_TTY , NULL, nozomi_interrupt_handler, sc, &sc->intr_cookie)) { printf("unable to register interrupt handler\n"); goto fail; } --- 1204,1210 ---- nozomi_tty_init(sc); /* setup interrupt and interrupt handler */ ! if(bus_setup_intr(dev, sc->intr_res, INTR_TYPE_TTY , nozomi_interrupt_handler, sc, &sc->intr_cookie)) { printf("unable to register interrupt handler\n"); goto fail; } With this change the driver compiles fine and loads fine with 'kldload ./nozomi.ko' On card insert it says: May 4 16:19:54 rebelion kernel: nozomi0: