From owner-freebsd-current@FreeBSD.ORG Fri Jan 10 11:01:56 2014 Return-Path: Delivered-To: freebsd-current@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 F27C7DA for ; Fri, 10 Jan 2014 11:01:55 +0000 (UTC) Received: from mail-ie0-f169.google.com (mail-ie0-f169.google.com [209.85.223.169]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BDC951067 for ; Fri, 10 Jan 2014 11:01:55 +0000 (UTC) Received: by mail-ie0-f169.google.com with SMTP id e14so5014454iej.28 for ; Fri, 10 Jan 2014 03:01:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type; bh=Bgx5bjA5d6DuODy6QhsOKtDPpx7Jk8RP0dwGY8/o0OI=; b=WFkIj5Lw9be9kcc6O//zJ+dHE4vfcq2ey35ixa2V/UxgcjSmL1CB7Mpl7/9OwmjS2b kPELAd9Z1gBHgaZhgAsoGI+omB/jeaf7JpJYsuO3ZO74EuSS8+ZhMTynMZuvkNngyiq9 6QVJEa+QuaMa5ALwT5Dh3i65hGgRH/R9sRftlItsrCKZ7z6yH8lm4/8pRbFABKnLLOal EJXA+Z/T9t++EHM2h8RedIJFzocGLngLTT0LJKT5oNFeH7o42nmy7OPjqdSkn67bvPay n0PZ8Y6tNh2dX+TNotsOyfthEpoXrp3W1T6CzFMxJovjsYu5rV/RC+BIwvdO1zvXFxoi HESg== X-Gm-Message-State: ALoCoQnP2Ug9V7Jjkeg7uLYLeuWAnvO+3Kyz1ylyR7sFjtYLVdKdEkorsffW/bcsXL77kG05nZ8fOxLpVzcGHz1WWBFiVoEzI7NGwjHe5nYR5iOvHMCloEw= X-Received: by 10.50.227.139 with SMTP id sa11mr2460848igc.46.1389351268825; Fri, 10 Jan 2014 02:54:28 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.128.200 with HTTP; Fri, 10 Jan 2014 02:54:13 -0800 (PST) In-Reply-To: <52CF9C29.7080306@bitfrost.no> References: <52CF9C29.7080306@bitfrost.no> From: "Lundberg, Johannes" Date: Fri, 10 Jan 2014 19:54:13 +0900 Message-ID: Subject: Re: Move 3G modem from u3g to uhso? To: Hans Petter Selasky Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.17 Cc: FreeBSD Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Jan 2014 11:01:56 -0000 Ah I see. Of course usb.conf is generated automatically :) I guess it is generated at make buildkernel and the new one can be found in obj folder? Here is the patch: Index: sys/dev/usb/net/uhso.c =================================================================== --- sys/dev/usb/net/uhso.c (revision 260369) +++ sys/dev/usb/net/uhso.c (working copy) @@ -281,6 +281,8 @@ UHSO_DEV(OPTION, ICON505, UHSO_AUTO_IFACE), /* Option iCON 452 */ UHSO_DEV(OPTION, ICON505, UHSO_AUTO_IFACE), + /* Option GTM661W */ + UHSO_DEV(OPTION, GTM661W, UHSO_AUTO_IFACE), #undef UHSO_DEV }; Index: sys/dev/usb/serial/u3g.c =================================================================== --- sys/dev/usb/serial/u3g.c (revision 260369) +++ sys/dev/usb/serial/u3g.c (working copy) @@ -388,7 +388,6 @@ U3G_DEV(OPTION, GTMAXHSUPA, 0), U3G_DEV(OPTION, GTMAXHSUPAE, 0), U3G_DEV(OPTION, VODAFONEMC3G, 0), - U3G_DEV(OPTION, GTM661W, 0), U3G_DEV(QISDA, H20_1, 0), U3G_DEV(QISDA, H20_2, 0), U3G_DEV(QISDA, H21_1, 0), Thank you! -- Johannes Lundberg On Fri, Jan 10, 2014 at 4:07 PM, Hans Petter Selasky wrote: > On 01/10/14 06:06, Lundberg, Johannes wrote: > > Hi > > > > I have been using "Globetrotter HSUPA Modem Option N.V." usb modem for a > > while with the uhso driver and now I installed 11-CURRENT and see that it > > has been added to devd and u3g is loaded automatically. Since this device > > has support for it wouldn't it be better to use uhso driver so we get the > > uhso0 network interface? > > > > The device in question is > > > > nomatch 32 { > > match "bus" "uhub[0-9]+"; > > match "mode" "host"; > > match "vendor" "0x0af0"; > > match "product" "0x9000"; > > action "kldload -n u3g"; > > }; > > > > which I changed to > > > > nomatch 32 { > > match "bus" "uhub[0-9]+"; > > match "mode" "host"; > > match "vendor" "0x0af0"; > > match "product" "0x9000"; > > action "kldload -n uhso"; > > }; > > > > But this also requires adding the device in sys/dev/usb/net/uhso.c > > > > /* Option GTM661W */ > > UHSO_DEV(OPTION, GTM661W, UHSO_AUTO_IFACE), > > Hi, > > When you remove the device entry from the u3g.c driver, the usb.conf > file will be updated later. Can you submit a complete patch for this? > > --HPS > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- 秘密保持について:この電子メールは、名宛人に送信したものであり、秘匿特権の対象となる情報を含んでいます。 もし、名宛人以外の方が受信された場合、このメールの破棄、およびこのメールに関する一切の開示、 複写、配布、その他の利用、または記載内容に基づくいかなる行動もされないようお願い申し上げます。 --- CONFIDENTIALITY NOTE: The information in this email is confidential and intended solely for the addressee. Disclosure, copying, distribution or any other action of use of this email by person other than intended recipient, is prohibited. If you are not the intended recipient and have received this email in error, please destroy the original message.