From owner-freebsd-usb@FreeBSD.ORG Tue Feb 22 02:54:12 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 44E16106564A; Tue, 22 Feb 2011 02:54:12 +0000 (UTC) (envelope-from jamesbrandongooch@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id A10078FC0C; Tue, 22 Feb 2011 02:54:11 +0000 (UTC) Received: by wyb32 with SMTP id 32so2489487wyb.13 for ; Mon, 21 Feb 2011 18:54:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=IbtD8RbAYMOjpfThi+slrnGY0JQISWPktv5TXmElGiE=; b=mKPqRTC3CykT7MiFUbQbKBkaaTZptLAd7kUTrghlFjAzFqaSAsv+JvPUSaOBcRkUji RTWZzJBAukropkIBaw7oSpwWz0oMF0mZXHvQYt+cUKv/r1TvOb55lrhZQdf8NY/GcESZ 0dv+g15mw0oRdT1nnwnfmSPrdNGwDk9u3qzQU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=kFm+4oUGEH8H2/1T2XEjlkjoFP/gOhH8OCGMXqoS/p1fTJ71ZJ/IoPIYm2VfS4b3FP DK46E9NxNqUTpgsvDGA2FOt0DbHxmr8UcCUJfKz9tmsc1wWppx2aUUyprACXBHbV52Ys z1T14ztp4WOQUMr90FBnnU1Ot6ZeXEU8q6Oqk= MIME-Version: 1.0 Received: by 10.216.56.65 with SMTP id l43mr2648319wec.113.1298343250587; Mon, 21 Feb 2011 18:54:10 -0800 (PST) Received: by 10.216.244.130 with HTTP; Mon, 21 Feb 2011 18:54:10 -0800 (PST) In-Reply-To: <20110221215504.Y13400@maildrop.int.zabbadoz.net> References: <4D62A120.8040604@shapeshifter.se> <4D62B4E1.6070700@shapeshifter.se> <20110221215504.Y13400@maildrop.int.zabbadoz.net> Date: Mon, 21 Feb 2011 20:54:10 -0600 Message-ID: From: Brandon Gooch To: "Bjoern A. Zeeb" Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-usb@freebsd.org Subject: Re: New uhso(4) device: Globetrotter HSUPA Modem Option N.V. X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Feb 2011 02:54:12 -0000 On Mon, Feb 21, 2011 at 3:57 PM, Bjoern A. Zeeb wrote: > On Mon, 21 Feb 2011, Brandon Gooch wrote: > >> On Mon, Feb 21, 2011 at 1:28 PM, Brandon Gooch >> wrote: >>>> >>>> Yeah, I got that message. =A0Not connecting and not getting an serial >>>> console is a bit different. =A0From the output above it looks like >>>> random garbage on the serial port. >>>> >>>> Try connecting to all different serial ports (without uhsoctl running) >>>> with minicom or cu and try typing AT. (The diagnostic port >>>> doesn't work, so skip that one). >>> >>> I just encountered a panic when the driver attaches after plugging in >>> the device. >>> >>> The panic stems from uhso_attach(), and seems due to my kernel having >>> the VIMAGE option compiled in -- it doesn't panic on my non-VIMAGE >>> kernel (which I need to rebuild to continue helping debug). >>> >>> I'm trying to get a textdump ATM... >> >> Looks like I exceeded the VNET if_indexlim in /usr/src/sys/net/if.c on >> line 190: >> >> static VNET_DEFINE(int, if_indexlim) =3D 8; >> >> Maybe I'll bump it up and give it another go... >> >> Bjoern, is there any reason I shouldn't be able to increase the number >> from 8 to say, 16? > > I am lacking context reading about serial ports and network > interfaces. I apologize for just "blurting" this out at you, my bad. I get a little anxious sometimes :{ > If you create a network interface from USB you are currently running > into the problem that CURVNETs are not properly setup. =A0The indexlim, > should just increase itself up to 64k if needed - see if_grow() in > if.c. ...and of course, I sound like a dork again for making absurd assertions about code I know nothing about LOL :) It totally slipped my mind that all of the bits are not yet in the tree to allow adding interfaces after the kernel is already running -- patience, patience... -Brandon