From owner-freebsd-usb@freebsd.org Sun Oct 1 17:09:33 2017 Return-Path: Delivered-To: freebsd-usb@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7ECCBE29B13 for ; Sun, 1 Oct 2017 17:09:33 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-ua0-x241.google.com (mail-ua0-x241.google.com [IPv6:2607:f8b0:400c:c08::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 33F026732A; Sun, 1 Oct 2017 17:09:33 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: by mail-ua0-x241.google.com with SMTP id l40so1159885uah.5; Sun, 01 Oct 2017 10:09:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=7MGcPrQRSO0q0j4qXXK+/RQFivDogNiCbRhQ9RG3N54=; b=vFW7D/cjn5GFutVjQsiLQBVWSRQxtLWqW14jbtlMzujQTFatWluo1pIqLUEF4vabtp b6nyXMHNfrkcaI6w+qvleg5Gjx6vqORvTlUMveus9r2oL33tXYUh8VXQQcdYoFp90ED7 FFiIb0z+8elIEFCV9t7NlSGGTsHj0HD6yjA4BBOJQe7RUXoSfHEO/FMHqXvQ9FFggYYg WNYWuaowW4qXb4fp715CnS9+kTa0IuCn+pa/opbdwLNgy2/jghC7zENCdgVa2bDME5Ae Cnjgup/ZmGmfGVpLDmQR5i6ptKiw7D/0P1k1T7idQ0wQbrqh308/maqYZsW1e2RxI/Uy hgxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=7MGcPrQRSO0q0j4qXXK+/RQFivDogNiCbRhQ9RG3N54=; b=KwxJqPrrgT5Aone1NVR1+5RBmf/A9PODAL0OODJ40EV4G1rs4PDt7JG7Q7r+NF3CQR YrfxJEWUo73kjWaZehHIRQ8oKR+WT/CqS+kuTbtCupHBmuIhhn2RiXr10M/9jfRkIrDi UIkXr2ZsuMQZ5a5Pbbz14PxuUdIN8nNum+PvO72Fob8Yl/WEJEXlZbUowRAX+nZKYWe1 6XZr4l0AQWUPvVzXjJPgHTnPuh/IflJ9Q3HlewVK/O+8sUm0NXb0fgH7oVRr7ZM505PG uf06nJa1Jm8BTGyY7YLFvkI7DG/Fj46tGe03RUyOUJRo+RtfQtd5EDcUOLI4Aagdh5Gs ajnA== X-Gm-Message-State: AHPjjUhxx8Rn5NhtkF5bA3pfBAWZ26cmm+h8JtvUE8XWjpvB5Ou0fZwN wEXcrTrqocwWPFsr4wYXLQkIq98NgO/Y6NvhzbxJxvGV X-Google-Smtp-Source: AOwi7QBP+2vSCW9WgkjUMZfgd2gUegLNL+F8p/QrUVx656BcfWu1cKrIDzNGi1mYzY2RZqx2v4oT97EMluHsFzKrhjs= X-Received: by 10.176.6.195 with SMTP id g61mr8769901uag.161.1506877771948; Sun, 01 Oct 2017 10:09:31 -0700 (PDT) MIME-Version: 1.0 Sender: tomek.cedro@gmail.com Received: by 10.159.53.237 with HTTP; Sun, 1 Oct 2017 10:09:11 -0700 (PDT) In-Reply-To: <1506876055.22078.24.camel@freebsd.org> References: <1506465459.73082.168.camel@freebsd.org> <165556bc-c011-bebd-feee-5bbd4cb5943e@selasky.org> <1506876055.22078.24.camel@freebsd.org> From: Tomasz CEDRO Date: Sun, 1 Oct 2017 19:09:11 +0200 X-Google-Sender-Auth: V_nKxVFwpmlj2rin_ny44mQYeS8 Message-ID: Subject: Re: USB/U3G: Added support for Panasonic CF-F9 GOBI 3G modem to U3G module To: Ian Lepore Cc: Hans Petter Selasky , "freebsd-usb@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 Oct 2017 17:09:33 -0000 On Sun, Oct 1, 2017 at 6:40 PM, Ian Lepore wrote: > On Sun, 2017-10-01 at 18:33 +0200, Tomasz CEDRO wrote: >> On Wed, Sep 27, 2017 at 8:32 AM, Hans Petter Selasky > > wrote: >> > >> > On 09/27/17 00:37, Ian Lepore wrote: >> > > >> > > >> > > On Wed, 2017-09-27 at 00:30 +0200, Hans Petter Selasky wrote: >> > > > >> > > > >> > > > On 09/27/17 00:11, Tomasz CEDRO wrote: >> > > > > >> > > > > >> > > > > >> > > > > https://github.com/freebsd/freebsd/pull/115 >> > > > > >> > > > > :-) >> > > > > >> > > > The devd.conf rule should match more than just vendor and >> > > > product: >> > > > >> > > > >> > > > +# Load GOBI 2000/3000 U3G QDL modem firmware on attach / boot. >> > > > +# Note: This requires additional "gobi_loader" utility to be >> > > > installed, >> > > > +# as well as valid QDL driver firmware files placed in >> > > > /boot/firmware/gobi. >> > > > +# If modem does not accept valid firmware try gobi_loader >> > > > -2000 >> > > > switch. >> > > > +# Please adjust modem VID/PID to match your device supported >> > > > by >> > > > u3g >> > > > module. >> > > > +#attach 100 { >> > > > +# match "vendor" "0x04da"; >> > > > +# match "product" "0x250e"; >> > > > +# action "/usr/local/sbin/gobi_loader /dev/cuaU0 >> > > > /boot/firmware/gobi/"; >> > > > +#}; >> > > > >> > > > Else patch looks good. >> > > > >> > > > --HPS >> > > >> > > Hard-coding /dev/cuaU0 cannot possibly be right. >> > > >> > > -- Ian >> > > >> > These three lines are missing: >> > >> > match "system" "DEVFS"; >> > match "subsystem" "CDEV"; >> > match "type" "CREATE"; >> > >> > >> > --HPS >> Thanks! Updated! :-) >> >> https://github.com/freebsd/freebsd/pull/115 >> > > If this is to be an example, it should be correct. Please replace the > "cuaU0" with "$cdev". (See /etc/devd/uath.conf for an example). > > -- Ian Thanks Ian! Is it okay now? I have moved this example to dedicated /etc/devd/u3g.conf file, and added u3g load to /etc/devd/usb.conf.. if syntax is okay I will verify on my laptop.. https://github.com/freebsd/freebsd/pull/115 -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info