From owner-freebsd-usb@freebsd.org Sun Oct 1 16:34:08 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 E784AE28BFF for ; Sun, 1 Oct 2017 16:34:08 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-ua0-x22c.google.com (mail-ua0-x22c.google.com [IPv6:2607:f8b0:400c:c08::22c]) (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 9AD7C65B9E; Sun, 1 Oct 2017 16:34:08 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: by mail-ua0-x22c.google.com with SMTP id q29so2093775uaf.3; Sun, 01 Oct 2017 09:34:08 -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=1Jd6ZxskTII4eIfa84JiMYkYX6fTt+brehYQPXtvDlc=; b=B3js7hTSWeBMoKI/Zk7bqK1xf2RY2a/dLl9IUlTJwxM5VtkrSntlz7hBxruH4oaX5I GqhQgg1pabUSNModMrY+Hj8boY3pwNYFDVLY7J40uoXGwI61jmV3ZFbXBdFRByy84G45 NT1SpomkD6+I8kjAHSlOwAp/GJVh/j1+zh+Tka+VizxuPzU6GjMByvp282DYbKKvL2n2 251rWejJac3pqwguC777jIRArIU/9OfQ+fIzed3xEkWW6WR9Ub45dOG83x1RiPqBbLvY cy6b90gOvApxRB7TKWAdz6CXsc127ZHCI+7CgLc4u9ZtYzZi8FtaVrwS+5nbhbYRuYQw SpPA== 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=1Jd6ZxskTII4eIfa84JiMYkYX6fTt+brehYQPXtvDlc=; b=YYVau2TmLjI15GXscOTzsNRbsnS9uPKGd82X2IIe4EXp6qIppMptbqaHoprF2gvUJW XOu6RUhHNJ0z7vd6C8UpLP8jNa+qNj9Y7auoNLuTvH6rlip54+I7R6mhhWKCtJWieHU8 x8P+w2GClxDQCrWgJlRe3DzsKrwIiVvlcBykE1SQ7PwEgcnjTdumtJppTRQ1/9gwR/GX /xRRXXG8hJFYqtl2fbjQBVlW5iU/ZLvQrYuwKgQ6W0zMyPJTJw+HhF4HrRp0TPzA7Ox8 MnDH9Q8w44TJa53DCSBLFYNWiwupA14kCvMF7MECXsTkIA3PAGvwyqCUNkv9diwkACsy tWSw== X-Gm-Message-State: AHPjjUjhVMmJI2D5wpr8T9acD9qPfYR9Ai+KezplgMJ7cmUnxWdON1TW dy2CmjxXtt9zbhzLg/2aoFDJHx1b6NOApgOe2IgTVZ8Y X-Google-Smtp-Source: AOwi7QDtByPFxtoa70wpB533Cnk7jA/WxwY0VEJxM9gvI5py4mV5XBmvvjf2Ys8KKabkAcFpah0gW6re6JqPsc14jlI= X-Received: by 10.176.70.75 with SMTP id z11mr7631962uab.43.1506875647233; Sun, 01 Oct 2017 09:34:07 -0700 (PDT) MIME-Version: 1.0 Sender: tomek.cedro@gmail.com Received: by 10.159.53.237 with HTTP; Sun, 1 Oct 2017 09:33:46 -0700 (PDT) In-Reply-To: <165556bc-c011-bebd-feee-5bbd4cb5943e@selasky.org> References: <1506465459.73082.168.camel@freebsd.org> <165556bc-c011-bebd-feee-5bbd4cb5943e@selasky.org> From: Tomasz CEDRO Date: Sun, 1 Oct 2017 18:33:46 +0200 X-Google-Sender-Auth: FW2mjoUXy7-c96J3egaRjI0PL5E Message-ID: Subject: Re: USB/U3G: Added support for Panasonic CF-F9 GOBI 3G modem to U3G module To: Hans Petter Selasky Cc: Ian Lepore , "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 16:34:09 -0000 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 -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@freebsd.org Sun Oct 1 16:41:04 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 C20B2E28DB2 for ; Sun, 1 Oct 2017 16:41:04 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A335165FF6 for ; Sun, 1 Oct 2017 16:41:04 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 3d864b40-a6c7-11e7-b50b-53dc5ecda239 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound2.ore.mailhop.org (Halon) with ESMTPSA id 3d864b40-a6c7-11e7-b50b-53dc5ecda239; Sun, 01 Oct 2017 16:40:32 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v91GetQa001439; Sun, 1 Oct 2017 10:40:55 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1506876055.22078.24.camel@freebsd.org> Subject: Re: USB/U3G: Added support for Panasonic CF-F9 GOBI 3G modem to U3G module From: Ian Lepore To: Tomasz CEDRO , Hans Petter Selasky Cc: "freebsd-usb@FreeBSD.org" Date: Sun, 01 Oct 2017 10:40:55 -0600 In-Reply-To: References: <1506465459.73082.168.camel@freebsd.org> <165556bc-c011-bebd-feee-5bbd4cb5943e@selasky.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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 16:41:04 -0000 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 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 From owner-freebsd-usb@freebsd.org Sun Oct 1 17:24:28 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 52C2EE2A242 for ; Sun, 1 Oct 2017 17:24:28 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [88.99.82.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1640467EE2; Sun, 1 Oct 2017 17:24:27 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 0C6402601AB; Sun, 1 Oct 2017 19:24:18 +0200 (CEST) Subject: Re: USB/U3G: Added support for Panasonic CF-F9 GOBI 3G modem to U3G module To: Tomasz CEDRO , Ian Lepore Cc: "freebsd-usb@FreeBSD.org" References: <1506465459.73082.168.camel@freebsd.org> <165556bc-c011-bebd-feee-5bbd4cb5943e@selasky.org> <1506876055.22078.24.camel@freebsd.org> From: Hans Petter Selasky Message-ID: <87d62aba-0b35-8b20-cf1f-9fd2de2d301a@selasky.org> Date: Sun, 1 Oct 2017 19:21:42 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit 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:24:28 -0000 On 10/01/17 19:09, Tomasz CEDRO wrote: > 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 > Looks good to me. Don't forget to MFC! --HPS From owner-freebsd-usb@freebsd.org Sun Oct 1 18:17:54 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 4856CE2B6F9 for ; Sun, 1 Oct 2017 18:17:54 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-ua0-x244.google.com (mail-ua0-x244.google.com [IPv6:2607:f8b0:400c:c08::244]) (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 F0A8E69ED4; Sun, 1 Oct 2017 18:17:53 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: by mail-ua0-x244.google.com with SMTP id k23so1193900uaf.3; Sun, 01 Oct 2017 11:17:53 -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=9+kRBjhLkdtgUKPgnhXS9X6cR+zl66LmgtEdcpuA0qA=; b=etr54wGiTIzmQv01fdCPpGtD/LNeUT5AqL/wSHKEPqSaYYzp23JlY7ihhhm9oSm6K/ eh/n5bV0MrT/3Fc992oVx2+8z7BagoIw68SXzU9GI3PPJgUOp7GgsuB+NSf2lS0lTHSs 7heooBCNDnWpTShSk05RzTq25iPyDvirwReP6vRPfT5ERibdOCaKV4S5meDsTxbmCITk Dvh5ashBWM+D0ossDhKzGOzR1om13wWn14D9trP+SQlnRiDE5JwyKmcWyZJkElFrTF00 woMWnHpemwPpwoxkoxrb9y3Ee/HtSnFtDentyaSN5mGHa4j1Qefi4qVks5ebgAN6ETnS DhEQ== 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=9+kRBjhLkdtgUKPgnhXS9X6cR+zl66LmgtEdcpuA0qA=; b=l8PnEb8LJOcUY6of7a97ANJq1VEFmt+bvpZJtoFHaeNCYPGSM+bbxiUheG1ctFce8Z xbPKdhN6RUdIHd2vY53pWsk4MkbyKsrT5CcLr+A3dj/xpHAn7aYVVx+kHAUpc+a2N3Yj P1VYr1JB+NzDBh8raIL8WbaaPtrxmTqpEy2KYtjmgS9/UDzd+cknIDilS73UpCOVldn2 aU08wyHZR4n0AlA00SYZUqmYU6HG5UhRCw6tBhwBWvqbc1rpjt6iMRvW+B0GZ2Lm0lyG Bipmuh3CbpKr8hSWHy2KzX+raq1xPUwUfNIMP4P0IpSfRQM9rToKra9jAsAumdEqKqlY bk2w== X-Gm-Message-State: AHPjjUgOyUKN4kkhWaDqX/sqg9uDmiNckxEaLwFV+J9UDAbeCdM+IRJy xANqbyZ7VE+Cxrxj1iGiz0E4WELTVb9zxItArbI= X-Google-Smtp-Source: AOwi7QBmXKpFvtopYDgO3n2MiGtRIi27cyIa4Vhtzu2UOo8EDtNnVVJapbjREN1K6iTB9zTwsnYcydHR4bqKsGS3uWw= X-Received: by 10.176.6.195 with SMTP id g61mr8842187uag.161.1506881872913; Sun, 01 Oct 2017 11:17:52 -0700 (PDT) MIME-Version: 1.0 Sender: tomek.cedro@gmail.com Received: by 10.159.53.237 with HTTP; Sun, 1 Oct 2017 11:17:32 -0700 (PDT) In-Reply-To: <87d62aba-0b35-8b20-cf1f-9fd2de2d301a@selasky.org> References: <1506465459.73082.168.camel@freebsd.org> <165556bc-c011-bebd-feee-5bbd4cb5943e@selasky.org> <1506876055.22078.24.camel@freebsd.org> <87d62aba-0b35-8b20-cf1f-9fd2de2d301a@selasky.org> From: Tomasz CEDRO Date: Sun, 1 Oct 2017 20:17:32 +0200 X-Google-Sender-Auth: HRPLw3N5HQ64w4oHmMmVfjWalwQ Message-ID: Subject: Re: USB/U3G: Added support for Panasonic CF-F9 GOBI 3G modem to U3G module To: Hans Petter Selasky Cc: Ian Lepore , "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 18:17:54 -0000 On Sun, Oct 1, 2017 at 7:21 PM, Hans Petter Selasky wrote: > On 10/01/17 19:09, Tomasz CEDRO wrote: >> >> 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 >> > > Looks good to me. Don't forget to MFC! > > --HPS /etc/devd/u3g.conf: notify 100 { match "system" "USB"; match "subsystem" "DEVICE"; match "type" "ATTACH"; match "vendor" "0x04da"; match "product" "0x250e"; action "/usr/local/bin/gobi_loader /dev/$cdev /boot/firmware/gobi/"; }; This does not work when /dev/$cdev is used.. but it works when /dev/cuaU0 is used. Ian, could you please advise? :-) -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@freebsd.org Sun Oct 1 18:23:16 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 CF9A0E2B8B5 for ; Sun, 1 Oct 2017 18:23:16 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id AECA76A1A4 for ; Sun, 1 Oct 2017 18:23:16 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 9a406404-a6d5-11e7-a937-4f970e858fdb X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.ore.mailhop.org (Halon) with ESMTPSA id 9a406404-a6d5-11e7-a937-4f970e858fdb; Sun, 01 Oct 2017 18:23:20 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v91INDtL001612; Sun, 1 Oct 2017 12:23:13 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1506882193.22078.32.camel@freebsd.org> Subject: Re: USB/U3G: Added support for Panasonic CF-F9 GOBI 3G modem to U3G module From: Ian Lepore To: Tomasz CEDRO , Hans Petter Selasky Cc: "freebsd-usb@FreeBSD.org" Date: Sun, 01 Oct 2017 12:23:13 -0600 In-Reply-To: References: <1506465459.73082.168.camel@freebsd.org> <165556bc-c011-bebd-feee-5bbd4cb5943e@selasky.org> <1506876055.22078.24.camel@freebsd.org> <87d62aba-0b35-8b20-cf1f-9fd2de2d301a@selasky.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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 18:23:16 -0000 On Sun, 2017-10-01 at 20:17 +0200, Tomasz CEDRO wrote: > On Sun, Oct 1, 2017 at 7:21 PM, Hans Petter Selasky > wrote: > > > > On 10/01/17 19:09, Tomasz CEDRO wrote: > > > > > > > > > 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 > > > > asky.org > > > > > > > > > > > > > > > > > > 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 > > > > > Looks good to me. Don't forget to MFC! > > > > --HPS > /etc/devd/u3g.conf: > > notify 100 { >  match "system" "USB"; >  match "subsystem" "DEVICE"; >  match "type" "ATTACH"; >  match "vendor" "0x04da"; >  match "product" "0x250e"; >  action "/usr/local/bin/gobi_loader /dev/$cdev /boot/firmware/gobi/"; > }; > > This does not work when /dev/$cdev is used.. but it works when > /dev/cuaU0 is used. Ian, could you please advise? :-) > Hmmm, then I'd have to surmise that everything in /etc/devd/uath.conf will fail the same way. I noticed earlier the events mentioned were          match "system"          "DEVFS";          match "subsystem"       "CDEV";          match "type"            "CREATE"; and I would expect $cdev to have the right value on a CDEV/CREATE event, but not necessarily on a DEVICE/ATTACH event. -- Ian From owner-freebsd-usb@freebsd.org Sun Oct 1 19:00:10 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 01CF2E2C132 for ; Sun, 1 Oct 2017 19:00:10 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-ua0-x244.google.com (mail-ua0-x244.google.com [IPv6:2607:f8b0:400c:c08::244]) (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 A90206AE97; Sun, 1 Oct 2017 19:00:09 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: by mail-ua0-x244.google.com with SMTP id 97so1220582uai.2; Sun, 01 Oct 2017 12:00:09 -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=cnxh8vGp5V+doRioxamPcNJZEyH2Zt1yQbnZVsAkb70=; b=esxxN3gw5y+ENBJmiCeHX9pkAculSov5fMWcPvzN4zuLt8Mm18hxa14fGOkCeUqnTH hDwAYb3Bv2wtb+4Abg4yx9lhwC9dcPdf9N4tqNNlsdsWqcQ+zULa6Qj7fOm0sZPEz+oP ch0J1LzqA4JLTlP/D4Gv/GmYpFXvG7Zd5BFS033EyUXAmTWRHXdPaohDdjgpbwMQDyYS gPZQqEmLrsA5L8FJZtaweH2xm8YrTBrQPhvAhS0MeDBrDg3aR0AgK84nueFDeme/CmUB 4dqwf8y7XmU0oVASzrXE3C39zlYpCY/132s3Mr1R4usp0OmCIMuyVGjg4A7/Jj8gIPww MW8w== 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=cnxh8vGp5V+doRioxamPcNJZEyH2Zt1yQbnZVsAkb70=; b=aNIzEIAcSkrgh0F1gCiuin5tm2+1jcYyHkPtfhkoMiO/9/QdDJcC8iY6bFhd8DTaoW NrhMsrBoEvXioSluKwiAxMdaYDzlmGmgGPpZYFg5H6Bxr5yHDHIgqmuu1H67isy8zvZe /dw+D5vAjC2x4Mu9dnMQGWcnNiTPA2oY2j7sZOjoHXtfajHEYnkRQSCg3auKNttzUl8h 1MPOJ/QqJclx8EB8CfSmio+Q1m3GLXgPoJko65Mdg6Lke7DJhCMtgGp/+SZLdKLa3VtW Cj7De/q47EH84cZZvGEGiQ8ToTl9ZyqNcwp7g4dGvjBp62vPOLsehQNWbu1e81BxFO+Y bAUA== X-Gm-Message-State: AHPjjUhZjZvMTFzcYNBRUw6uzKQgPvB5GLtUQKifREFOjn+lFDK9kWxg YbbtFzQjZ6BXfVqhk0tlD+beSF0+eezltZ1NVJi/5A7c X-Google-Smtp-Source: AOwi7QB5AGYfneKCTihTBhh1nM+wqCL8Xn17R1PCDniDuFGaPYYjIIIaYvX8P49lHRsOzwn7V6x5NoksbhPBCUbXELg= X-Received: by 10.176.6.195 with SMTP id g61mr8881437uag.161.1506884408548; Sun, 01 Oct 2017 12:00:08 -0700 (PDT) MIME-Version: 1.0 Sender: tomek.cedro@gmail.com Received: by 10.159.53.237 with HTTP; Sun, 1 Oct 2017 11:59:48 -0700 (PDT) In-Reply-To: <1506882193.22078.32.camel@freebsd.org> References: <1506465459.73082.168.camel@freebsd.org> <165556bc-c011-bebd-feee-5bbd4cb5943e@selasky.org> <1506876055.22078.24.camel@freebsd.org> <87d62aba-0b35-8b20-cf1f-9fd2de2d301a@selasky.org> <1506882193.22078.32.camel@freebsd.org> From: Tomasz CEDRO Date: Sun, 1 Oct 2017 20:59:48 +0200 X-Google-Sender-Auth: Irdjj-ZDaSvU6FlWZGF0C2Vj2pc 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 19:00:10 -0000 On Sun, Oct 1, 2017 at 8:23 PM, Ian Lepore wrote: > On Sun, 2017-10-01 at 20:17 +0200, Tomasz CEDRO wrote: >> On Sun, Oct 1, 2017 at 7:21 PM, Hans Petter Selasky >> wrote: >> > >> > On 10/01/17 19:09, Tomasz CEDRO wrote: >> > > >> > > >> > > 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 > > > > > asky.org >> > > > > > >> > > > > > >> > > > > > 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 >> > > >> > Looks good to me. Don't forget to MFC! >> > >> > --HPS >> /etc/devd/u3g.conf: >> >> notify 100 { >> match "system" "USB"; >> match "subsystem" "DEVICE"; >> match "type" "ATTACH"; >> match "vendor" "0x04da"; >> match "product" "0x250e"; >> action "/usr/local/bin/gobi_loader /dev/$cdev /boot/firmware/gobi/"; >> }; >> >> This does not work when /dev/$cdev is used.. but it works when >> /dev/cuaU0 is used. Ian, could you please advise? :-) >> > > Hmmm, then I'd have to surmise that everything in /etc/devd/uath.conf > will fail the same way. > > I noticed earlier the events mentioned were > > match "system" "DEVFS"; > match "subsystem" "CDEV"; > match "type" "CREATE"; > > and I would expect $cdev to have the right value on a CDEV/CREATE > event, but not necessarily on a DEVICE/ATTACH event. > > -- Ian I have verified on uath device (more on that below) and it turns out $cdev works fine.. but it returns /dev/usb/X.Y.Z not the /dev/cuaU0 which does not work with this "gobi_loader" utility which requires /dev/cuaU0 (CDC / serial port device)... any clues how to replace $cdev with cuaUX? :-) Regarding the UATH, I have TP-LINK TL-WN822N Ver2.0 based on Atheros 9002[1] and it seems to work with modified /dev/devd/uath.conf but the uathload returns "Operation not permitted" when executed as root and during boot.. [1] https://wikidevi.com/wiki/TP-LINK_TL-WN822N_v2 -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@freebsd.org Sun Oct 1 19:38:32 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 69064E2CBEB for ; Sun, 1 Oct 2017 19:38:32 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound1b.ore.mailhop.org (outbound1b.ore.mailhop.org [54.200.247.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3D4486BF60 for ; Sun, 1 Oct 2017 19:38:31 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: 1dbbfc82-a6e0-11e7-a937-4f970e858fdb X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.ore.mailhop.org (Halon) with ESMTPSA id 1dbbfc82-a6e0-11e7-a937-4f970e858fdb; Sun, 01 Oct 2017 19:38:36 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v91JcTV4001693; Sun, 1 Oct 2017 13:38:29 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1506886709.22078.43.camel@freebsd.org> Subject: Re: USB/U3G: Added support for Panasonic CF-F9 GOBI 3G modem to U3G module From: Ian Lepore To: Tomasz CEDRO Cc: "freebsd-usb@FreeBSD.org" Date: Sun, 01 Oct 2017 13:38:29 -0600 In-Reply-To: References: <1506465459.73082.168.camel@freebsd.org> <165556bc-c011-bebd-feee-5bbd4cb5943e@selasky.org> <1506876055.22078.24.camel@freebsd.org> <87d62aba-0b35-8b20-cf1f-9fd2de2d301a@selasky.org> <1506882193.22078.32.camel@freebsd.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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 19:38:32 -0000 On Sun, 2017-10-01 at 20:59 +0200, Tomasz CEDRO wrote: > On Sun, Oct 1, 2017 at 8:23 PM, Ian Lepore wrote: > > > > On Sun, 2017-10-01 at 20:17 +0200, Tomasz CEDRO wrote: > > > > > > [...old stuff...] > I have verified on uath device (more on that below) and it turns out > $cdev works fine.. but it returns /dev/usb/X.Y.Z not the /dev/cuaU0 > which does not work with this "gobi_loader" utility which requires > /dev/cuaU0 (CDC / serial port device)... any clues how to replace > $cdev with cuaUX? :-) > > Regarding the UATH, I have TP-LINK TL-WN822N Ver2.0 based on Atheros > 9002[1] and it seems to work with modified /dev/devd/uath.conf but > the > uathload returns "Operation not permitted" when executed as root and > during boot.. > > [1] https://wikidevi.com/wiki/TP-LINK_TL-WN822N_v2 > Hmmm.  I think we need to key off the tty 'attach' event instead of the devfs 'create' event.  The tty attach for a usb device is the one event that has all the info we need in one message.  This is assuming the device name in dmesg on attach is u3g0 or u3g1 or whatever. attach 100 { device-name "(u3g)[0-9]+"; match "vendor"          "0x04da"; match "product"         "0x250e"; action "/usr/local/bin/gobi_loader /dev/cua$ttyname /boot/firmware/gobi/"; }; The way I arrived at this conclusion was to first look in the devd source to figure out/remind myself that devd creates variables from all the tag=value tuples it finds in the events coming from the kernel.  Then I connected to devd using netcat so I could watch the events as they happen:   nc -U /var/run/devd.pipe then I plugged in a usb-serial adapter (I have no u3g stuff), which creates a whole lot of events.  The last one was the tty attach: +uplcom0 at bus=1 hubaddr=1 port=1 devaddr=2 interface=0 ugen=ugen1.2 vendor=0x067b product=0x2303 devclass=0x00 devsubclass=0x00 devproto=0x00 sernum="" release=0x0300 mode=host intclass=0xff intsubclass=0x00 intprotocol=0x00 ttyname=U0 ttyports=1 on uhub1 The '+' means it's an attach, the "device-name" variable is set from the space-delimited word after the +, and then vars are created from all the tag=value tuples between 'at' and 'on'.  So that gives us the info to match product and vendor, and ttyname is the suffix to append to /dev/cua to make the cdev name. -- Ian From owner-freebsd-usb@freebsd.org Sun Oct 1 20:21:08 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 D7FA6E2D929 for ; Sun, 1 Oct 2017 20:21:08 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-ua0-x244.google.com (mail-ua0-x244.google.com [IPv6:2607:f8b0:400c:c08::244]) (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 941206D870; Sun, 1 Oct 2017 20:21:08 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: by mail-ua0-x244.google.com with SMTP id q29so1257189uaf.4; Sun, 01 Oct 2017 13:21:08 -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=VaCo1NgvkvQhr64e5skpq9Zc8WuUqHZb15XC0E6IQRU=; b=Z3eFGUHf144OT+pywkSKumMag8up9Z+0pkEfsRB1RQ7KRW2tsgdEyJ8aP1vmvTCH0r xbbc4lT356lalXSf2iABFgzGUBgdOIwgVv/D7x1KMhtwhBltU1KxgMk7zSoyfxnGPmgG QRVjRCi88/YS8qoKQ1whokt5pSdF4fdrsbNJTWlpSCs1/9FXzJ5HfjoG4v0iBB0WSzTv DVcF5hPY04p5DFlsAJnN4Thh/Hh8AiN54YWW9ScjQjLpRVkrwIQDgaJvM/tTj1kCS05q 4eFNz7GSSv3KILB2N6PFfsxpGDe680BDntq+TIM+41TgmHY4lKswSUzZ7qmjxLKH30Er J8+g== 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=VaCo1NgvkvQhr64e5skpq9Zc8WuUqHZb15XC0E6IQRU=; b=C+jEH67vHYHPNINKHhtghpsCgYf5pmQj5lm4JENTogPXWZ6kyJdGXON5DseWgbmjDS cb4Iqxd0RRbAMw//OVG0EGu78ACMH+s2C/tb/i8EHL8cgCDFFq9R4iU1aCKc/T8iMQDP 0PzEAwqenLAhMHWdBk1zt4GryqRD/TUyTWmJCpXuf+Baeore+rV2/f1kF3GfcSB6NyC3 TFN75egnwsi4uwpottelEO4nLIdlogW5FQVE/DY5x3XjQQjki4JERZ05aM+jEyTHNuM8 Q7Bo0VuE5UkboX8JHwjUnhrQaSM2USgzEXqVSrAPSRjwDb2MQJlK1HJzCJsDWLrMj2Oo zabA== X-Gm-Message-State: AHPjjUhOywG9HBXkMIWDT7a15+XQqOx7VHDWHA8Ty5xsq4tRmLE9vRFU f/AmGpTXFHSBtKFYlwn/50I99Xm4NPKbN6rZ46dw5A== X-Google-Smtp-Source: AOwi7QArxMa1Id6bWjSkl/UOjvGQQN5PsCjB0idnQBwgCg3LBOgdqVST63V9D20yp0ayRJkfZEqKzuYZ1jYjl3clBbU= X-Received: by 10.176.6.195 with SMTP id g61mr8997769uag.161.1506889267326; Sun, 01 Oct 2017 13:21:07 -0700 (PDT) MIME-Version: 1.0 Sender: tomek.cedro@gmail.com Received: by 10.159.53.237 with HTTP; Sun, 1 Oct 2017 13:20:46 -0700 (PDT) In-Reply-To: <1506886709.22078.43.camel@freebsd.org> References: <1506465459.73082.168.camel@freebsd.org> <165556bc-c011-bebd-feee-5bbd4cb5943e@selasky.org> <1506876055.22078.24.camel@freebsd.org> <87d62aba-0b35-8b20-cf1f-9fd2de2d301a@selasky.org> <1506882193.22078.32.camel@freebsd.org> <1506886709.22078.43.camel@freebsd.org> From: Tomasz CEDRO Date: Sun, 1 Oct 2017 22:20:46 +0200 X-Google-Sender-Auth: nt4yCjfoZMHfJhq7sUI4cAqZjGY Message-ID: Subject: Re: USB/U3G: Added support for Panasonic CF-F9 GOBI 3G modem to U3G module To: Ian Lepore , Hans Petter Selasky Cc: "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 20:21:09 -0000 On Sun, Oct 1, 2017 at 9:38 PM, Ian Lepore wrote: > On Sun, 2017-10-01 at 20:59 +0200, Tomasz CEDRO wrote: >> On Sun, Oct 1, 2017 at 8:23 PM, Ian Lepore wrote: >> > >> > On Sun, 2017-10-01 at 20:17 +0200, Tomasz CEDRO wrote: >> > > >> > > [...old stuff...] >> I have verified on uath device (more on that below) and it turns out >> $cdev works fine.. but it returns /dev/usb/X.Y.Z not the /dev/cuaU0 >> which does not work with this "gobi_loader" utility which requires >> /dev/cuaU0 (CDC / serial port device)... any clues how to replace >> $cdev with cuaUX? :-) >> >> Regarding the UATH, I have TP-LINK TL-WN822N Ver2.0 based on Atheros >> 9002[1] and it seems to work with modified /dev/devd/uath.conf but >> the >> uathload returns "Operation not permitted" when executed as root and >> during boot.. >> >> [1] https://wikidevi.com/wiki/TP-LINK_TL-WN822N_v2 >> > > Hmmm. I think we need to key off the tty 'attach' event instead of the > devfs 'create' event. The tty attach for a usb device is the one event > that has all the info we need in one message. This is assuming the > device name in dmesg on attach is u3g0 or u3g1 or whatever. > > attach 100 { > device-name "(u3g)[0-9]+"; > match "vendor" "0x04da"; > match "product" "0x250e"; > action "/usr/local/bin/gobi_loader /dev/cua$ttyname /boot/firmware/gobi/"; > }; > > The way I arrived at this conclusion was to first look in the devd > source to figure out/remind myself that devd creates variables from all > the tag=value tuples it finds in the events coming from the kernel. > Then I connected to devd using netcat so I could watch the events as > they happen: > > nc -U /var/run/devd.pipe > > then I plugged in a usb-serial adapter (I have no u3g stuff), which > creates a whole lot of events. The last one was the tty attach: > > +uplcom0 at bus=1 hubaddr=1 port=1 devaddr=2 interface=0 ugen=ugen1.2 > vendor=0x067b product=0x2303 devclass=0x00 devsubclass=0x00 > devproto=0x00 sernum="" release=0x0300 mode=host intclass=0xff > intsubclass=0x00 intprotocol=0x00 ttyname=U0 ttyports=1 on uhub1 > > The '+' means it's an attach, the "device-name" variable is set from > the space-delimited word after the +, and then vars are created from > all the tag=value tuples between 'at' and 'on'. So that gives us the > info to match product and vendor, and ttyname is the suffix to append > to /dev/cua to make the cdev name. > > -- Ian Awsome! That works!! Thank you Ian!! Thank you for pointing out how that was achieved! :-) Is there any way to echo something out to the console to notify user that firmware is being updated? This takes some time and it would be nice to see something happens in the background.. I cannot see anything with action "logging blah"; maybe no need for that? -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@freebsd.org Sun Oct 1 21:07:20 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 E9BD9E2EA2F for ; Sun, 1 Oct 2017 21:07:20 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from nov-007-i577.relay.mailchannels.net (nov-007-i577.relay.mailchannels.net [46.232.183.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 87F2A6F426 for ; Sun, 1 Oct 2017 21:07:18 +0000 (UTC) (envelope-from ian@freebsd.org) X-Sender-Id: _forwarded-from|73.78.92.27 Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id D23B27C945D for ; Sun, 1 Oct 2017 20:59:27 +0000 (UTC) Received: from outbound1a.eu.mailhop.org (unknown [100.96.146.253]) (Authenticated sender: duocircle) by relay.mailchannels.net (Postfix) with ESMTPA id 3E7CE7C958D for ; Sun, 1 Oct 2017 20:59:27 +0000 (UTC) X-Sender-Id: _forwarded-from|73.78.92.27 Received: from outbound1a.eu.mailhop.org (outbound1a.eu.mailhop.org [172.20.107.195]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.9.14); Sun, 01 Oct 2017 20:59:27 +0000 X-MC-Relay: Forwarding X-MailChannels-SenderId: _forwarded-from|73.78.92.27 X-MailChannels-Auth-Id: duocircle X-Absorbed-Cold: 27a36056093f6961_1506891567690_1847463218 X-MC-Loop-Signature: 1506891567690:1191600439 X-MC-Ingress-Time: 1506891567690 X-MHO-User: 65d9b828-a6eb-11e7-a893-25625093991c X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound1.eu.mailhop.org (Halon) with ESMTPSA id 65d9b828-a6eb-11e7-a893-25625093991c; Sun, 01 Oct 2017 20:59:22 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v91KxJqE001826; Sun, 1 Oct 2017 14:59:19 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1506891559.22078.50.camel@freebsd.org> Subject: Re: USB/U3G: Added support for Panasonic CF-F9 GOBI 3G modem to U3G module From: Ian Lepore To: Tomasz CEDRO , Hans Petter Selasky Cc: "freebsd-usb@FreeBSD.org" Date: Sun, 01 Oct 2017 14:59:19 -0600 In-Reply-To: References: <1506465459.73082.168.camel@freebsd.org> <165556bc-c011-bebd-feee-5bbd4cb5943e@selasky.org> <1506876055.22078.24.camel@freebsd.org> <87d62aba-0b35-8b20-cf1f-9fd2de2d301a@selasky.org> <1506882193.22078.32.camel@freebsd.org> <1506886709.22078.43.camel@freebsd.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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 21:07:21 -0000 On Sun, 2017-10-01 at 22:20 +0200, Tomasz CEDRO wrote: > On Sun, Oct 1, 2017 at 9:38 PM, Ian Lepore wrote: > >=20 > > On Sun, 2017-10-01 at 20:59 +0200, Tomasz CEDRO wrote: > > >=20 > > > On Sun, Oct 1, 2017 at 8:23 PM, Ian Lepore > > > wrote: > > > >=20 > > > >=20 > > > > On Sun, 2017-10-01 at 20:17 +0200, Tomasz CEDRO wrote: > > > > >=20 > > > > >=20 > > > > > [...old stuff...] > > > I have verified on uath device (more on that below) and it turns > > > out > > > $cdev works fine.. but it returns /dev/usb/X.Y.Z not the > > > /dev/cuaU0 > > > which does not work with this "gobi_loader" utility which > > > requires > > > /dev/cuaU0 (CDC / serial port device)... any clues how to replace > > > $cdev with cuaUX? :-) > > >=20 > > > Regarding the UATH, I have TP-LINK TL-WN822N Ver2.0 based on > > > Atheros > > > 9002[1] and it seems to work with modified /dev/devd/uath.conf > > > but > > > the > > > uathload returns "Operation not permitted" when executed as root > > > and > > > during boot.. > > >=20 > > > [1] https://wikidevi.com/wiki/TP-LINK_TL-WN822N_v2 > > >=20 > > Hmmm.=A0=A0I think we need to key off the tty 'attach' event instead = of > > the > > devfs 'create' event.=A0=A0The tty attach for a usb device is the one > > event > > that has all the info we need in one message.=A0=A0This is assuming t= he > > device name in dmesg on attach is u3g0 or u3g1 or whatever. > >=20 > > attach 100 { > > =A0=A0=A0=A0=A0=A0=A0=A0device-name=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0"(u3g)[0-9]+"; > > =A0=A0=A0=A0=A0=A0=A0=A0match "vendor"=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0"= 0x04da"; > > =A0=A0=A0=A0=A0=A0=A0=A0match "product"=A0=A0=A0=A0=A0=A0=A0=A0=A0"0x= 250e"; > > =A0=A0=A0=A0=A0=A0=A0=A0action "/usr/local/bin/gobi_loader /dev/cua$t= tyname > > /boot/firmware/gobi/"; > > }; > >=20 > > The way I arrived at this conclusion was to first look in the devd > > source to figure out/remind myself that devd creates variables from > > all > > the tag=3Dvalue tuples it finds in the events coming from the kernel. > > =A0Then I connected to devd using netcat so I could watch the events > > as > > they happen: > >=20 > > =A0 nc -U /var/run/devd.pipe > >=20 > > then I plugged in a usb-serial adapter (I have no u3g stuff), which > > creates a whole lot of events.=A0=A0The last one was the tty attach: > >=20 > > +uplcom0 at bus=3D1 hubaddr=3D1 port=3D1 devaddr=3D2 interface=3D0 > > ugen=3Dugen1.2 > > vendor=3D0x067b product=3D0x2303 devclass=3D0x00 devsubclass=3D0x00 > > devproto=3D0x00 sernum=3D"" release=3D0x0300 mode=3Dhost intclass=3D0= xff > > intsubclass=3D0x00 intprotocol=3D0x00 ttyname=3DU0 ttyports=3D1 on uh= ub1 > >=20 > > The '+' means it's an attach, the "device-name" variable is set > > from > > the space-delimited word after the +, and then vars are created > > from > > all the tag=3Dvalue tuples between 'at' and 'on'.=A0=A0So that gives = us > > the > > info to match product and vendor, and ttyname is the suffix to > > append > > to /dev/cua to make the cdev name. > >=20 > > -- Ian > Awsome! That works!! Thank you Ian!! Thank you for pointing out how > that was achieved! :-) >=20 > Is there any way to echo something out to the console to notify user > that firmware is being updated? This takes some time and it would be > nice to see something happens in the background.. I cannot see > anything with action "logging blah"; maybe no need for that? >=20 I think you can use logger(1) in the action, like: =A0 action "logger -p kern.crit Loading firmware to cua$ttyname ; =A0 =A0 /usr/local/bin/gobi_loader etc etc" The 'kern.crit' should be a high enough priority to ensure it comes out on the console, but it depends on syslog.conf of course. =A0If gobi_loader outputs a nice message it could be piped to logger(1) instead of putting the message in the command. -- Ian From owner-freebsd-usb@freebsd.org Sun Oct 1 22:06:22 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 15542E2FB1B for ; Sun, 1 Oct 2017 22:06:22 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-vk0-x243.google.com (mail-vk0-x243.google.com [IPv6:2607:f8b0:400c:c05::243]) (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 BABDE70CE0; Sun, 1 Oct 2017 22:06:21 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: by mail-vk0-x243.google.com with SMTP id b5so350361vkf.1; Sun, 01 Oct 2017 15:06:21 -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=a4NctLZGbGfhxivAHL0HxbwjpJCAe5nIOdf78tDkK+8=; b=bC2B7GNxhVF2K/ULfcdB3j88P/bE3lqTv//BrgNkqUtKon/hCBayJjfANUg9m10ZZB 3t7AfuveZ1bM9L/LL7YBQx4j37ct1KpRd3kbSus1DoDQw2G4yErZtu6Ky4Pkn0IM6yPR 5D9qp0/YK7FJoIMuxqxNt88H3fsXgc5lpQq0P3YrqAJHJxGKU2rNgUT3bLgLvKeeAnXp KnA9Z9iNW+1+FPAtU8K/PqSxWk6YQE7s3CE9WwJ+8XHT1jVS/OTSioxoo6rndroCwPIy mcLDwNZYPkt+VTd+aKHPO4bZCzU0mGRU+8NssJvQd7TsvoTNWmxSndzsy9y1+ASi4LEG kKHA== 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=a4NctLZGbGfhxivAHL0HxbwjpJCAe5nIOdf78tDkK+8=; b=MTi4ox5SWlMpayKot4hn669lnVz6Lr9Fq8Sl5d0lyRmDngRSjwwFumpwW71z/ls4R7 3TKAthehcsjusUlYJ8QpHH3vZbMtmyIbAAf3scHZzpRNPca2Q3swkPW2xaF05VprG7D9 k8ccoBE2WsrmkSXRYrDGqzSvzRVV3QxgsSjqP7o5d+ig2+wN79HGUO99re7kPN0A5WaC A5KaUJx+tl8+hujQkda9EYO26OSdRa8+nNW/JltxIWKpblwowXbzxaVSCeeodyKB5NFT 5to1KjLpuJRUoBbeGLLExzj7AccAg2ESuIC0p/A5nbgdxheEjFn+E4cgzGYwYVorMjKw MFRg== X-Gm-Message-State: AHPjjUjASEr3GP8KDEe3tQiHeXzR/tk8ACL/W4CNPpxTzX10Xd+u2dqd XbXEpb5qr96MYm2o1ThBQC9d7lITOETkQnMd/nRxDSpN X-Google-Smtp-Source: AOwi7QBUEDCTwYwA6sryU09XtizPq/6IOr5pUz4nTX8a7l6P0pIHGyxkjYcPGQsvmqI0OPmc25xp+pwsfYZoD3bJXAk= X-Received: by 10.31.167.71 with SMTP id q68mr7085926vke.49.1506895580433; Sun, 01 Oct 2017 15:06:20 -0700 (PDT) MIME-Version: 1.0 Sender: tomek.cedro@gmail.com Received: by 10.159.53.237 with HTTP; Sun, 1 Oct 2017 15:05:59 -0700 (PDT) In-Reply-To: <1506891559.22078.50.camel@freebsd.org> References: <1506465459.73082.168.camel@freebsd.org> <165556bc-c011-bebd-feee-5bbd4cb5943e@selasky.org> <1506876055.22078.24.camel@freebsd.org> <87d62aba-0b35-8b20-cf1f-9fd2de2d301a@selasky.org> <1506882193.22078.32.camel@freebsd.org> <1506886709.22078.43.camel@freebsd.org> <1506891559.22078.50.camel@freebsd.org> From: Tomasz CEDRO Date: Mon, 2 Oct 2017 00:05:59 +0200 X-Google-Sender-Auth: qUI_fx0dsjKMLLxxZLpFUa0AQL0 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 22:06:22 -0000 On Sun, Oct 1, 2017 at 10:59 PM, Ian Lepore wrote: > On Sun, 2017-10-01 at 22:20 +0200, Tomasz CEDRO wrote: >> On Sun, Oct 1, 2017 at 9:38 PM, Ian Lepore wrote: >> > >> > On Sun, 2017-10-01 at 20:59 +0200, Tomasz CEDRO wrote: >> > > >> > > On Sun, Oct 1, 2017 at 8:23 PM, Ian Lepore >> > > wrote: >> > > > >> > > > >> > > > On Sun, 2017-10-01 at 20:17 +0200, Tomasz CEDRO wrote: >> > > > > >> > > > > >> > > > > [...old stuff...] >> > > I have verified on uath device (more on that below) and it turns >> > > out >> > > $cdev works fine.. but it returns /dev/usb/X.Y.Z not the >> > > /dev/cuaU0 >> > > which does not work with this "gobi_loader" utility which >> > > requires >> > > /dev/cuaU0 (CDC / serial port device)... any clues how to replace >> > > $cdev with cuaUX? :-) >> > > >> > > Regarding the UATH, I have TP-LINK TL-WN822N Ver2.0 based on >> > > Atheros >> > > 9002[1] and it seems to work with modified /dev/devd/uath.conf >> > > but >> > > the >> > > uathload returns "Operation not permitted" when executed as root >> > > and >> > > during boot.. >> > > >> > > [1] https://wikidevi.com/wiki/TP-LINK_TL-WN822N_v2 >> > > >> > Hmmm. I think we need to key off the tty 'attach' event instead of >> > the >> > devfs 'create' event. The tty attach for a usb device is the one >> > event >> > that has all the info we need in one message. This is assuming the >> > device name in dmesg on attach is u3g0 or u3g1 or whatever. >> > >> > attach 100 { >> > device-name "(u3g)[0-9]+"; >> > match "vendor" "0x04da"; >> > match "product" "0x250e"; >> > action "/usr/local/bin/gobi_loader /dev/cua$ttyname >> > /boot/firmware/gobi/"; >> > }; >> > >> > The way I arrived at this conclusion was to first look in the devd >> > source to figure out/remind myself that devd creates variables from >> > all >> > the tag=value tuples it finds in the events coming from the kernel. >> > Then I connected to devd using netcat so I could watch the events >> > as >> > they happen: >> > >> > nc -U /var/run/devd.pipe >> > >> > then I plugged in a usb-serial adapter (I have no u3g stuff), which >> > creates a whole lot of events. The last one was the tty attach: >> > >> > +uplcom0 at bus=1 hubaddr=1 port=1 devaddr=2 interface=0 >> > ugen=ugen1.2 >> > vendor=0x067b product=0x2303 devclass=0x00 devsubclass=0x00 >> > devproto=0x00 sernum="" release=0x0300 mode=host intclass=0xff >> > intsubclass=0x00 intprotocol=0x00 ttyname=U0 ttyports=1 on uhub1 >> > >> > The '+' means it's an attach, the "device-name" variable is set >> > from >> > the space-delimited word after the +, and then vars are created >> > from >> > all the tag=value tuples between 'at' and 'on'. So that gives us >> > the >> > info to match product and vendor, and ttyname is the suffix to >> > append >> > to /dev/cua to make the cdev name. >> > >> > -- Ian >> Awsome! That works!! Thank you Ian!! Thank you for pointing out how >> that was achieved! :-) >> >> Is there any way to echo something out to the console to notify user >> that firmware is being updated? This takes some time and it would be >> nice to see something happens in the background.. I cannot see >> anything with action "logging blah"; maybe no need for that? >> > > I think you can use logger(1) in the action, like: > > action "logger -p kern.crit Loading firmware to cua$ttyname ; > /usr/local/bin/gobi_loader etc etc" > > The 'kern.crit' should be a high enough priority to ensure it comes out > on the console, but it depends on syslog.conf of course. If > gobi_loader outputs a nice message it could be piped to logger(1) > instead of putting the message in the command. > > -- Ian Logger works with syslog which is loaded after modules and firmware, this is why I could not see the message.. but additional action with /bin/echo seems to do the job :-) Thank you guys! You are the best! FreeBSD ROX!!! =) https://github.com/freebsd/freebsd/pull/115 -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@freebsd.org Sun Oct 1 23:41:02 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 047ADE31135 for ; Sun, 1 Oct 2017 23:41:02 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D466272E8D for ; Sun, 1 Oct 2017 23:41:01 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: eb8f7c3c-a701-11e7-b50b-53dc5ecda239 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 73.78.92.27 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [73.78.92.27]) by outbound2.ore.mailhop.org (Halon) with ESMTPSA id eb8f7c3c-a701-11e7-b50b-53dc5ecda239; Sun, 01 Oct 2017 23:40:35 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id v91New7B002027; Sun, 1 Oct 2017 17:40:58 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <1506901258.22078.51.camel@freebsd.org> Subject: Re: USB/U3G: Added support for Panasonic CF-F9 GOBI 3G modem to U3G module From: Ian Lepore To: Tomasz CEDRO Cc: Hans Petter Selasky , "freebsd-usb@FreeBSD.org" Date: Sun, 01 Oct 2017 17:40:58 -0600 In-Reply-To: References: <1506465459.73082.168.camel@freebsd.org> <165556bc-c011-bebd-feee-5bbd4cb5943e@selasky.org> <1506876055.22078.24.camel@freebsd.org> <87d62aba-0b35-8b20-cf1f-9fd2de2d301a@selasky.org> <1506882193.22078.32.camel@freebsd.org> <1506886709.22078.43.camel@freebsd.org> <1506891559.22078.50.camel@freebsd.org> Content-Type: text/plain; charset="ISO-8859-1" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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 23:41:02 -0000 On Mon, 2017-10-02 at 00:05 +0200, Tomasz CEDRO wrote: > On Sun, Oct 1, 2017 at 10:59 PM, Ian Lepore wrote: > > > > On Sun, 2017-10-01 at 22:20 +0200, Tomasz CEDRO wrote: > > > > > > On Sun, Oct 1, 2017 at 9:38 PM, Ian Lepore > > > wrote: > > > > > > > > > > > > On Sun, 2017-10-01 at 20:59 +0200, Tomasz CEDRO wrote: > > > > > > > > > > > > > > > On Sun, Oct 1, 2017 at 8:23 PM, Ian Lepore > > > > > wrote: > > > > > > > > > > > > > > > > > > > > > > > > On Sun, 2017-10-01 at 20:17 +0200, Tomasz CEDRO wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > [...old stuff...] > > > > > I have verified on uath device (more on that below) and it > > > > > turns > > > > > out > > > > > $cdev works fine.. but it returns /dev/usb/X.Y.Z not the > > > > > /dev/cuaU0 > > > > > which does not work with this "gobi_loader" utility which > > > > > requires > > > > > /dev/cuaU0 (CDC / serial port device)... any clues how to > > > > > replace > > > > > $cdev with cuaUX? :-) > > > > > > > > > > Regarding the UATH, I have TP-LINK TL-WN822N Ver2.0 based on > > > > > Atheros > > > > > 9002[1] and it seems to work with modified > > > > > /dev/devd/uath.conf > > > > > but > > > > > the > > > > > uathload returns "Operation not permitted" when executed as > > > > > root > > > > > and > > > > > during boot.. > > > > > > > > > > [1] https://wikidevi.com/wiki/TP-LINK_TL-WN822N_v2 > > > > > > > > > Hmmm.  I think we need to key off the tty 'attach' event > > > > instead of > > > > the > > > > devfs 'create' event.  The tty attach for a usb device is the > > > > one > > > > event > > > > that has all the info we need in one message.  This is assuming > > > > the > > > > device name in dmesg on attach is u3g0 or u3g1 or whatever. > > > > > > > > attach 100 { > > > >         device-name             "(u3g)[0-9]+"; > > > >         match "vendor"          "0x04da"; > > > >         match "product"         "0x250e"; > > > >         action "/usr/local/bin/gobi_loader /dev/cua$ttyname > > > > /boot/firmware/gobi/"; > > > > }; > > > > > > > > The way I arrived at this conclusion was to first look in the > > > > devd > > > > source to figure out/remind myself that devd creates variables > > > > from > > > > all > > > > the tag=value tuples it finds in the events coming from the > > > > kernel. > > > >  Then I connected to devd using netcat so I could watch the > > > > events > > > > as > > > > they happen: > > > > > > > >   nc -U /var/run/devd.pipe > > > > > > > > then I plugged in a usb-serial adapter (I have no u3g stuff), > > > > which > > > > creates a whole lot of events.  The last one was the tty > > > > attach: > > > > > > > > +uplcom0 at bus=1 hubaddr=1 port=1 devaddr=2 interface=0 > > > > ugen=ugen1.2 > > > > vendor=0x067b product=0x2303 devclass=0x00 devsubclass=0x00 > > > > devproto=0x00 sernum="" release=0x0300 mode=host intclass=0xff > > > > intsubclass=0x00 intprotocol=0x00 ttyname=U0 ttyports=1 on > > > > uhub1 > > > > > > > > The '+' means it's an attach, the "device-name" variable is set > > > > from > > > > the space-delimited word after the +, and then vars are created > > > > from > > > > all the tag=value tuples between 'at' and 'on'.  So that gives > > > > us > > > > the > > > > info to match product and vendor, and ttyname is the suffix to > > > > append > > > > to /dev/cua to make the cdev name. > > > > > > > > -- Ian > > > Awsome! That works!! Thank you Ian!! Thank you for pointing out > > > how > > > that was achieved! :-) > > > > > > Is there any way to echo something out to the console to notify > > > user > > > that firmware is being updated? This takes some time and it would > > > be > > > nice to see something happens in the background.. I cannot see > > > anything with action "logging blah"; maybe no need for that? > > > > > I think you can use logger(1) in the action, like: > > > >   action "logger -p kern.crit Loading firmware to cua$ttyname ; > >     /usr/local/bin/gobi_loader etc etc" > > > > The 'kern.crit' should be a high enough priority to ensure it comes > > out > > on the console, but it depends on syslog.conf of course.  If > > gobi_loader outputs a nice message it could be piped to logger(1) > > instead of putting the message in the command. > > > > -- Ian > Logger works with syslog which is loaded after modules and firmware, > this is why I could not see the message.. but additional action with > /bin/echo seems to do the job :-) > > Thank you guys! You are the best! FreeBSD ROX!!! =) > > https://github.com/freebsd/freebsd/pull/115 > echo probably won't work when devices attach after rc scripts are done.  Try "logger -s", that sends the output to syslog and stderr, it might cover both situations. -- Ian From owner-freebsd-usb@freebsd.org Mon Oct 2 06:48:58 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 3CF7AE37ED2 for ; Mon, 2 Oct 2017 06:48:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2BCCE817FA for ; Mon, 2 Oct 2017 06:48:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v926mv0h059653 for ; Mon, 2 Oct 2017 06:48:58 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 222659] Add quirk UQ_MSC_NO_PREVENT_ALLOW to SMI USB DISK 3000 Date: Mon, 02 Oct 2017 06:48:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rfraile@rfraile.eu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Mon, 02 Oct 2017 06:48:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222659 --- Comment #3 from Ricardo Fraile --- Created attachment 186852 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D186852&action= =3Dedit Patch file for SMI USB Flash Drive Hi, Here is the patch. I tested it and works without issue. Thanks, --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Oct 2 09:24:42 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 CF105E3A867 for ; Mon, 2 Oct 2017 09:24:42 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-vk0-x242.google.com (mail-vk0-x242.google.com [IPv6:2607:f8b0:400c:c05::242]) (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 7CCC7F3B; Mon, 2 Oct 2017 09:24:42 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: by mail-vk0-x242.google.com with SMTP id q75so1437044vkf.4; Mon, 02 Oct 2017 02:24:42 -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=fHbnmF0uKSNdmE+tBXIpl93Wvoceq/fH6SkCZybQFcM=; b=Kz3UScKt0a2sxlGCCY96IiIG4JFJdNGLHvKNNZVc+E+c4ceT4HMSnsFuVknQWWJ2jd atmLhCWFuGcObbOWY7he6KFtk2LqeQQloSXpchetxyOdY/Eh0ft1S2iV8vfS3o9FBQAb FmUnch6lgiIBFyN+76FJrA3fzAkTIQE2zdQKPK1V4QVPFYjzmhAS8zXOT+FvK90c4oe8 2QrXE/cFdse6IvhCmXsXtLbRZ9ynQ80XaZyDfKamiMJyxKykCqhUpe0ZYpIUl3f8SY4E BV0LoajiTvO4MM+uKH0ujzkQfcQR8dHr0/jDc/JGfPn6NfQsssNMWxCisC8XYhr6ynC1 Zcsw== 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=fHbnmF0uKSNdmE+tBXIpl93Wvoceq/fH6SkCZybQFcM=; b=q/DR2LYbHXZSyso4kFGKPAWjcBRdMFGvAQmZZMlasaa2pbm6tQykpWdXYnAKRM4Xpx Fp4Tudrb8PwgcfTnIeHjQG8uvlW7XNqOJmiNK+nDga/KCaaYO5FMHaP+dMjLEhrEoGsK C5tEcOhIn4K4TVPeuIP7yLWxEe9ywU9ty+3QAtmVYUTiGJKioZ2H2iYDkJIA+Rc8Pned h8hAAn50Uf0Hh/FYiYgKiFHF4mXUGy9fMz1XhwU5bwqUhlojs2a1pt2uhlClV5PmXU5C qpihOkjX4MSkZKOEw5U27dGVAwJxgRgQOGxAbDqoVm7AKoHeR38Y1MTQqEyz4LujTRK9 2NxQ== X-Gm-Message-State: AHPjjUjgu6kmWjzqC3ANy7OsEal1c3yg3dmP0jUyxdJczq/OJIllccLp uDIuZLOtjD8LdMZCSZU4/i5vZm0JCv+usbYogCJAy4FN X-Google-Smtp-Source: AOwi7QDF2oMWMS5dzjzfvWYcZNN+pbaJe15UZJVEkSWNm0KT6EAQqK62eE3DW8/0DJ3dI9ToQy80oBcEjmJyasJP48o= X-Received: by 10.31.200.195 with SMTP id y186mr8568306vkf.115.1506936281139; Mon, 02 Oct 2017 02:24:41 -0700 (PDT) MIME-Version: 1.0 Sender: tomek.cedro@gmail.com Received: by 10.159.53.237 with HTTP; Mon, 2 Oct 2017 02:24:20 -0700 (PDT) In-Reply-To: <1506901258.22078.51.camel@freebsd.org> References: <1506465459.73082.168.camel@freebsd.org> <165556bc-c011-bebd-feee-5bbd4cb5943e@selasky.org> <1506876055.22078.24.camel@freebsd.org> <87d62aba-0b35-8b20-cf1f-9fd2de2d301a@selasky.org> <1506882193.22078.32.camel@freebsd.org> <1506886709.22078.43.camel@freebsd.org> <1506891559.22078.50.camel@freebsd.org> <1506901258.22078.51.camel@freebsd.org> From: Tomasz CEDRO Date: Mon, 2 Oct 2017 11:24:20 +0200 X-Google-Sender-Auth: cbdrJJ1BQJt9VutGL7Kkbh64IWw 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: Mon, 02 Oct 2017 09:24:42 -0000 On Mon, Oct 2, 2017 at 1:40 AM, Ian Lepore wrote: > On Mon, 2017-10-02 at 00:05 +0200, Tomasz CEDRO wrote: >> On Sun, Oct 1, 2017 at 10:59 PM, Ian Lepore wrote: >> > On Sun, 2017-10-01 at 22:20 +0200, Tomasz CEDRO wrote: >> > > On Sun, Oct 1, 2017 at 9:38 PM, Ian Lepore >> > > wrote: >> > > > On Sun, 2017-10-01 at 20:59 +0200, Tomasz CEDRO wrote: >> > > > > On Sun, Oct 1, 2017 at 8:23 PM, Ian Lepore >> > > > > wrote: >> > > > > > On Sun, 2017-10-01 at 20:17 +0200, Tomasz CEDRO wrote: >> > > > > > > [...old stuff...] >> > > > > I have verified on uath device (more on that below) and it >> > > > > turns >> > > > > out >> > > > > $cdev works fine.. but it returns /dev/usb/X.Y.Z not the >> > > > > /dev/cuaU0 >> > > > > which does not work with this "gobi_loader" utility which >> > > > > requires >> > > > > /dev/cuaU0 (CDC / serial port device)... any clues how to >> > > > > replace >> > > > > $cdev with cuaUX? :-) >> > > > > >> > > > > Regarding the UATH, I have TP-LINK TL-WN822N Ver2.0 based on >> > > > > Atheros >> > > > > 9002[1] and it seems to work with modified >> > > > > /dev/devd/uath.conf >> > > > > but >> > > > > the >> > > > > uathload returns "Operation not permitted" when executed as >> > > > > root >> > > > > and >> > > > > during boot.. >> > > > > >> > > > > [1] https://wikidevi.com/wiki/TP-LINK_TL-WN822N_v2 >> > > > > >> > > > Hmmm. I think we need to key off the tty 'attach' event >> > > > instead of >> > > > the >> > > > devfs 'create' event. The tty attach for a usb device is the >> > > > one >> > > > event >> > > > that has all the info we need in one message. This is assuming >> > > > the >> > > > device name in dmesg on attach is u3g0 or u3g1 or whatever. >> > > > >> > > > attach 100 { >> > > > device-name "(u3g)[0-9]+"; >> > > > match "vendor" "0x04da"; >> > > > match "product" "0x250e"; >> > > > action "/usr/local/bin/gobi_loader /dev/cua$ttyname >> > > > /boot/firmware/gobi/"; >> > > > }; >> > > > >> > > > The way I arrived at this conclusion was to first look in the >> > > > devd >> > > > source to figure out/remind myself that devd creates variables >> > > > from >> > > > all >> > > > the tag=value tuples it finds in the events coming from the >> > > > kernel. >> > > > Then I connected to devd using netcat so I could watch the >> > > > events >> > > > as >> > > > they happen: >> > > > >> > > > nc -U /var/run/devd.pipe >> > > > >> > > > then I plugged in a usb-serial adapter (I have no u3g stuff), >> > > > which >> > > > creates a whole lot of events. The last one was the tty >> > > > attach: >> > > > >> > > > +uplcom0 at bus=1 hubaddr=1 port=1 devaddr=2 interface=0 >> > > > ugen=ugen1.2 >> > > > vendor=0x067b product=0x2303 devclass=0x00 devsubclass=0x00 >> > > > devproto=0x00 sernum="" release=0x0300 mode=host intclass=0xff >> > > > intsubclass=0x00 intprotocol=0x00 ttyname=U0 ttyports=1 on >> > > > uhub1 >> > > > >> > > > The '+' means it's an attach, the "device-name" variable is set >> > > > from >> > > > the space-delimited word after the +, and then vars are created >> > > > from >> > > > all the tag=value tuples between 'at' and 'on'. So that gives >> > > > us >> > > > the >> > > > info to match product and vendor, and ttyname is the suffix to >> > > > append >> > > > to /dev/cua to make the cdev name. >> > > > >> > > > -- Ian >> > > Awsome! That works!! Thank you Ian!! Thank you for pointing out >> > > how >> > > that was achieved! :-) >> > > >> > > Is there any way to echo something out to the console to notify >> > > user >> > > that firmware is being updated? This takes some time and it would >> > > be >> > > nice to see something happens in the background.. I cannot see >> > > anything with action "logging blah"; maybe no need for that? >> > > >> > I think you can use logger(1) in the action, like: >> > >> > action "logger -p kern.crit Loading firmware to cua$ttyname ; >> > /usr/local/bin/gobi_loader etc etc" >> > >> > The 'kern.crit' should be a high enough priority to ensure it comes >> > out >> > on the console, but it depends on syslog.conf of course. If >> > gobi_loader outputs a nice message it could be piped to logger(1) >> > instead of putting the message in the command. >> > >> > -- Ian >> Logger works with syslog which is loaded after modules and firmware, >> this is why I could not see the message.. but additional action with >> /bin/echo seems to do the job :-) >> >> Thank you guys! You are the best! FreeBSD ROX!!! =) >> >> https://github.com/freebsd/freebsd/pull/115 >> > > echo probably won't work when devices attach after rc scripts are done. > Try "logger -s", that sends the output to syslog and stderr, it might > cover both situations. > > -- Ian Logging updated, works as expected, thanks Ian! It should be all fine now :-) https://github.com/freebsd/freebsd/pull/115 -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@freebsd.org Mon Oct 2 23:43:20 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 AD3D9E2A42D for ; Mon, 2 Oct 2017 23:43:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8E5A3801DF for ; Mon, 2 Oct 2017 23:43:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v92NhKX3027252 for ; Mon, 2 Oct 2017 23:43:20 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 222743] unable to boot/install from Supermicro IPMI emulated disks Date: Mon, 02 Oct 2017 23:43:20 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: bugzilla@globecorp.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Mon, 02 Oct 2017 23:43:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222743 Bug ID: 222743 Summary: unable to boot/install from Supermicro IPMI emulated disks Product: Base System Version: 10.3-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Many People Priority: --- Component: usb Assignee: freebsd-usb@FreeBSD.org Reporter: bugzilla@globecorp.net Created attachment 186869 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D186869&action= =3Dedit IPMI screenshot showing problem The FreeBSD 10.2 and later, including 10.3-REL and 11.0-REL on both i386 and amd64 can not be loaded or installed on all Supermicro X9 motherboards (tes= ted on X9DLR, X9DBi, X9SCa, X9SCi-LN4F and many others) using IPMI emulated CD= ROM. after kernel loaded it stucks on umass1-device probe: umass1: 8087i (ATAPI) over Blulk-Only; quirks =3D 0xc101 umass1:8:1: Attached to scbus0 (cd0:umass1-sim1:1:0:0): got CAM status 0x44 (cd0:umass1-sim1:1:0:0): fatal error, failed to attach to device g_access(918): provider cd0 has error g_access(918): provider cd0 has error g_access(918): provider cd0 has error (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Retrying command ... (probe0:umass-sim0:0:0:0): INQUIRY. CDB: 12 00 00 00 24 00 (probe0:umass-sim0:0:0:0): CAM status: CCB request completed with an error (probe0:umass-sim0:0:0:0): Error 5, Retries exhaused. we have digged deeply into the problem and found that it is related to how = BSD deals with CDROM cache. Using the best of our knowledge we found a way to f= ix it: on the boot time escaping to loader prompt (press 3 in when loader menu appears), and entering following command: set hw.usb.quirk.0=3D"0x0ea0 0x2222 0 0xffff UQ_MSC_NO_SYNC_CACHE" boot after this kernel loads successfully and FreeBSD can be installed without a= ny troubles. The problem appears only on FreeBSD 10.2 and later. Version 10.1 and previo= us including but not limited to : 10.0 , 9.3 , 8.4 , 7.4 and 6.4 have no such problem. Please add this fix to the further releases including 10.4 , as at the mome= nt its barely impossible to install or repair OS on the servers with mentioned motherboards which are very popular. Thanks, Tech Support Team Globecorp Networks --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Oct 2 23:44:19 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 42401E2A475 for ; Mon, 2 Oct 2017 23:44:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3050080219 for ; Mon, 2 Oct 2017 23:44:19 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v92NiJfa028575 for ; Mon, 2 Oct 2017 23:44:19 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 222743] FreeBSD 10.3+ unable to boot/install from Supermicro IPMI emulated CDROM Date: Mon, 02 Oct 2017 23:44:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: bugzilla@globecorp.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Mon, 02 Oct 2017 23:44:19 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222743 USNOC changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|unable to boot/install from |FreeBSD 10.3+ unable to |Supermicro IPMI emulated |boot/install from |disks |Supermicro IPMI emulated | |CDROM --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Mon Oct 2 23:44:48 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 DBCFAE2A4A9 for ; Mon, 2 Oct 2017 23:44:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CA7518024F for ; Mon, 2 Oct 2017 23:44:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v92Nim6G029190 for ; Mon, 2 Oct 2017 23:44:48 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 222743] FreeBSD 10.2+ unable to boot/install from Supermicro IPMI emulated CDROM Date: Mon, 02 Oct 2017 23:44:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: bugzilla@globecorp.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: short_desc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Mon, 02 Oct 2017 23:44:49 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222743 USNOC changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|FreeBSD 10.3+ unable to |FreeBSD 10.2+ unable to |boot/install from |boot/install from |Supermicro IPMI emulated |Supermicro IPMI emulated |CDROM |CDROM --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Tue Oct 3 22:17:18 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 AD993E264DD for ; Tue, 3 Oct 2017 22:17:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9C44F666AC for ; Tue, 3 Oct 2017 22:17:18 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v93MHINm075866 for ; Tue, 3 Oct 2017 22:17:18 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 222659] Add quirk UQ_MSC_NO_PREVENT_ALLOW to SMI USB DISK 3000 Date: Tue, 03 Oct 2017 22:17:18 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Tue, 03 Oct 2017 22:17:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222659 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Tue Oct 3 22:32:37 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 D5997E2705F for ; Tue, 3 Oct 2017 22:32:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C3B106738A for ; Tue, 3 Oct 2017 22:32:37 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v93MWbck015305 for ; Tue, 3 Oct 2017 22:32:37 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 222743] FreeBSD 10.2+ unable to boot/install from Supermicro IPMI emulated CDROM Date: Tue, 03 Oct 2017 22:32:37 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Tue, 03 Oct 2017 22:32:37 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222743 Mark Linimon changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Oct 5 07:59:27 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 D7336E2FE0F for ; Thu, 5 Oct 2017 07:59:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C602B645EF for ; Thu, 5 Oct 2017 07:59:27 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v957xRbH092229 for ; Thu, 5 Oct 2017 07:59:27 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 222659] Add quirk UQ_MSC_NO_PREVENT_ALLOW to SMI USB DISK 3000 Date: Thu, 05 Oct 2017 07:59:27 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Thu, 05 Oct 2017 07:59:28 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222659 --- Comment #4 from Hans Petter Selasky --- Patch looks good to me. Approved. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Oct 5 08:04:17 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 F3106E302AC for ; Thu, 5 Oct 2017 08:04:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E1DF464990 for ; Thu, 5 Oct 2017 08:04:17 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v9584Gcl015711 for ; Thu, 5 Oct 2017 08:04:17 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 222659] Add quirk UQ_MSC_NO_PREVENT_ALLOW to SMI USB DISK 3000 Date: Thu, 05 Oct 2017 08:04:17 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Thu, 05 Oct 2017 08:04:18 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222659 --- Comment #5 from Hans Petter Selasky --- Can you try adding UQ_MSC_NO_SYNC_CACHE to the list of quirks? I see it is already listed. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Oct 5 09:13:30 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 F1015E324E4 for ; Thu, 5 Oct 2017 09:13:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DEB366715A for ; Thu, 5 Oct 2017 09:13:30 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v959DUxl013126 for ; Thu, 5 Oct 2017 09:13:30 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 222659] Add quirk UQ_MSC_NO_PREVENT_ALLOW to SMI USB DISK 3000 Date: Thu, 05 Oct 2017 09:13:30 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: rfraile@rfraile.eu X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Thu, 05 Oct 2017 09:13:31 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222659 --- Comment #6 from Ricardo Fraile --- Hi Hans, Sorry but where is the list of quirks? The usb_quirk.c already have UQ_MSC_NO_SYNC_CACHE: + USB_QUIRK(FEIYA, USB_DISK, 0x0000, 0xffff, UQ_MSC_NO_SYNC_CACHE, + UQ_MSC_NO_PREVENT_ALLOW), Thanks, --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Oct 5 09:20:20 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 969B9E325C8 for ; Thu, 5 Oct 2017 09:20:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8513B6726A for ; Thu, 5 Oct 2017 09:20:20 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v959KJND022651 for ; Thu, 5 Oct 2017 09:20:20 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 222659] Add quirk UQ_MSC_NO_PREVENT_ALLOW to SMI USB DISK 3000 Date: Thu, 05 Oct 2017 09:20:19 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: patch X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Thu, 05 Oct 2017 09:20:20 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222659 --- Comment #7 from Hans Petter Selasky --- Hi, If you look at this line you see your device already has some quirks. Try looking in sys/cam/* for those: da0: quirks=3D0x3 Yes, try adding the NO_SYNCHRONIZE_CACHE quirk aswell at USB level. --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Thu Oct 5 14:40:37 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 E22B3E3A370; Thu, 5 Oct 2017 14:40:37 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-vk0-x232.google.com (mail-vk0-x232.google.com [IPv6:2607:f8b0:400c:c05::232]) (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 9AD8873E75; Thu, 5 Oct 2017 14:40:37 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: by mail-vk0-x232.google.com with SMTP id i1so8140687vke.12; Thu, 05 Oct 2017 07:40:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:from:date:message-id:subject:to; bh=wrakKtP2OM0iBUN89Z6zjDZLQYEsLAipIzM5NgTW40k=; b=pRfOUFIxWCgFv3GlTOiR49mTTtubOztgYndxzUCkhK0jO9wFMu8Usw07QBNcuqHkjR PKAfRc6A1Fnq65oCrPASj1aVEA7B+UXO+WhBbvpQe9WY+Is3u73T4QszzMw/Sq9MjkBp i8okG9Zetk1hVv/acPXM76ecdBZz3CehTy9RwNAp/JbhicFvgmrtD8Wpdt9rm3Np4wPk ++ZkChpLu5UXohjEtL29QiB1iynmUAUql+kW1webWVpKgU8vrZGFwYqAUO12LrNbam6O /rYu/Qezm2uc1iq6ReXXWTp8JFcBWW8eomF30RwPmMfnHqP6yrXyg9S4XarhiafpHwx6 k1Lg== 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:from:date:message-id:subject :to; bh=wrakKtP2OM0iBUN89Z6zjDZLQYEsLAipIzM5NgTW40k=; b=SNCR98p7xDkBqx4Pgbt6Ee9r/0AIwkzc2B7pqP59kjqrJKTL/oT1PQpdtR+L6cavb+ 91MzCFQi9G5eY7rGTC1wbS70WgWNu1uMUXYHls6jGaEuwLtf6VbEYogChyzRzTsyBK15 jzwVD6zMrpGRbA+N1XNNrRzrz4LKmCUlZ9+/wVnF0ZKsenV8wIW4ieTVjo98mi8KuWwW llvtPoeMFQgMgyNWLZxSUegKO1I2iL1PeFS4b1e2UHDJ/78lrTWPNgtG4X0CK6U8Mr6r bQCRv6VOvjBp4h7DxSgv+GgNl4keqR4vUtBpnCBRjxBKYtW8IOTiOQfEbuWcaDqq0akE SKYA== X-Gm-Message-State: AHPjjUi6h1LABFUdA+av2srflt7RInxOHHmAY+TIfYrK79WrC7ZiXbS5 XeouJ/SAN4rVLvhKbGlxWPdO5B4Sjc/YRpqMXHk4ATAK X-Google-Smtp-Source: AOwi7QAVzPgFYQLyFHOuDgUOzgQkuRAxaDEtwpFXlyu4ek1BKfqOkvwoSrSXaeJBAq2r1VCMlozKC97SS1VbTUoQaRw= X-Received: by 10.31.167.71 with SMTP id q68mr12792372vke.49.1507214436490; Thu, 05 Oct 2017 07:40:36 -0700 (PDT) MIME-Version: 1.0 Sender: tomek.cedro@gmail.com Received: by 10.159.53.237 with HTTP; Thu, 5 Oct 2017 07:40:15 -0700 (PDT) From: Tomasz CEDRO Date: Thu, 5 Oct 2017 16:40:15 +0200 X-Google-Sender-Auth: 18cimykU4fy5pYL_XPWJmzGNFtM Message-ID: Subject: usbdump on macOS To: FreeBSD Questions Mailing List , "freebsd-usb@FreeBSD.org" , freebsd-hardware@freebsd.org, Hans Petter Selasky , Tomasz Cedro 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: Thu, 05 Oct 2017 14:40:38 -0000 Hello world! Is there any chance to have USBDUMP working on current macOS? I can see there is a manual page for usbdump in XCode taken directly from the FreeBSD.. but I could not find the binary.. Is anyone aware or can make usbdump work on macOS? I may be able to find some funding to make it work.. :-) Best regards, Tomek CEDRO -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@freebsd.org Fri Oct 6 14:20:56 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 3F2EAE386EB for ; Fri, 6 Oct 2017 14:20:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2D61A1766 for ; Fri, 6 Oct 2017 14:20:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v96EKtPc092437 for ; Fri, 6 Oct 2017 14:20:56 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 222624] [usb] [panic] thread's sleep queue 0 is not empty at usb_process.c:193 Date: Fri, 06 Oct 2017 14:20:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Fri, 06 Oct 2017 14:20:56 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222624 --- Comment #5 from Hans Petter Selasky --- Is it possible to do an attended KDB and get the output from: show sleepqueue --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri Oct 6 14:26:00 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 EA6DBE38935 for ; Fri, 6 Oct 2017 14:26:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D609A1C6A for ; Fri, 6 Oct 2017 14:26:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v96EQ0A3008014 for ; Fri, 6 Oct 2017 14:26:00 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 222624] [usb] [panic] thread's sleep queue 0 is not empty at usb_process.c:193 Date: Fri, 06 Oct 2017 14:26:01 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-RELEASE X-Bugzilla-Keywords: crash X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Fri, 06 Oct 2017 14:26:01 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222624 --- Comment #6 from Hans Petter Selasky --- Some closer inspections reveals the show sleepqueue command is broken ... S= tay tuned for better debug ideas. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Fri Oct 6 16:43:10 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 9F03AE3B69C; Fri, 6 Oct 2017 16:43:10 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from land.berklix.org (land.berklix.org [144.76.10.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "land.berklix.org", Issuer "land.berklix.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 325A765B29; Fri, 6 Oct 2017 16:43:09 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mart.js.berklix.net (pD9FA3C56.dip0.t-ipconnect.de [217.250.60.86]) (authenticated bits=0) by land.berklix.org (8.15.2/8.15.2) with ESMTPSA id v96GdWmr081179 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 6 Oct 2017 16:39:36 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id v96GeK5a006195; Fri, 6 Oct 2017 18:40:20 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id v96GdhSM024796; Fri, 6 Oct 2017 18:39:55 +0200 (CEST) (envelope-from jhs@berklix.com) Message-Id: <201710061639.v96GdhSM024796@fire.js.berklix.net> To: Tomasz CEDRO cc: FreeBSD Questions Mailing List , "freebsd-usb@FreeBSD.org" , freebsd-hardware@freebsd.org, Hans Petter Selasky , Tomasz Cedro Subject: Re: usbdump on macOS From: "Julian H. Stacey" Organization: http://berklix.eu BSD Unix Linux Consultants, Munich Germany User-agent: EXMH on FreeBSD http://berklix.eu/free/ X-From: http://www.berklix.eu/~jhs/ In-reply-to: Your message "Thu, 05 Oct 2017 16:40:15 +0200." Date: Fri, 06 Oct 2017 18:39:42 +0200 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: Fri, 06 Oct 2017 16:43:10 -0000 Tomasz CEDRO wrote: > Hello world! > > Is there any chance to have USBDUMP working on current macOS? I can > see there is a manual page for usbdump in XCode taken directly from > the FreeBSD.. but I could not find the binary.. > > Is anyone aware or can make usbdump work on macOS? I may be able to > find some funding to make it work.. :-) > > Best regards, > Tomek CEDRO I'd guess you'd stand best chance asking on a MacOS list. But if you do find funding & want a geographic indexed global BSD contractors index: http://www.berklix.com/consultants/ Cheers, Julian -- Julian H. Stacey, Computer Consultant, BSD Linux Unix Systems Engineer, Munich Reply below, Prefix '> '. Plain text, No .doc, base64, HTML, quoted-printable. http://berklix.eu/brexit/ UK stole 3,500,000 votes; 700,000 from Brits in EU. From owner-freebsd-usb@freebsd.org Fri Oct 6 16:47:17 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 2DBE7E3B816; Fri, 6 Oct 2017 16:47:17 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: from mail-vk0-x243.google.com (mail-vk0-x243.google.com [IPv6:2607:f8b0:400c:c05::243]) (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 DA40E65CF2; Fri, 6 Oct 2017 16:47:16 +0000 (UTC) (envelope-from tomek.cedro@gmail.com) Received: by mail-vk0-x243.google.com with SMTP id b5so4378622vkf.1; Fri, 06 Oct 2017 09:47:16 -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=zvEMDOc9idGWYg+hRAxR7AZT7mp+zwStjbPcQlTbmOA=; b=IwMeu6kHN0qV0G6tYu+CysZ/8jxEN5f+J0tAzOv2Yx+IJNmFzOV3Io8O4ZxpGTy7Ok ilfKopRSadNBMoHKpMDEz9EzMp8Swz3L4T4J1bu9yRIQEdnXT22Qgmv9H71lRHDf7uPT 5G/rPCVrGfHUYJcvoC3XqfXmtYZYuRoeNRoNn4r7FuOeH0YY5CFWhmRAA3nMTi98nVwJ eoN4Wu8jhkq8IijXWn04eGs51EaTJDgZliYkXRDdL3ArTFmrqQpErKiDgSQ0x9OKYWw/ FG00cjWvWbNJaO4VHidufjEpLJikeCUhvNlq/S6zv7yt8Z3xF90JsmOmhjHDFOctOs+Q 288A== 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=zvEMDOc9idGWYg+hRAxR7AZT7mp+zwStjbPcQlTbmOA=; b=K2DWJdN/Mn6W2PlIyAKo6n/ejLJxRMwlWfIF6iAm8sUmj+t8WqBOz7RSDW2N74Py+r z7qXnxEIFVL1HprOjjPyjy/LAefKstXewDv+pMdxJ2Kru+M+TN3zE5lv/w7cju69lK+d 5VKPeZb5RyhPsE+yWv8UvQshVfkeFsv0j7ae3kM4Pdul2QhW1Buh7BrssLOEDQ5V9RrA ysbgfiCJ/w5In75VfTUZslWLTyuBX4ilSnOEM7NpkSzan2S2MBtPAEi8IShYGpvlYDra z3YkwcvCI0RJzdizN3OMAm3WZwFKPg1ziiDTlpOY1U++5s0HIeubGeqt5/my5kVRzHgy LSrA== X-Gm-Message-State: AMCzsaWnFD4ACyb2HGFG8+qD6KXENdyYZO7w639MiV51rR58OQLSb8bG gz8rWEvn1yb/moYth6eah32barguR1vD9oA7/Abdhg== X-Google-Smtp-Source: AOwi7QA7+l8ROIIgc/Wm2/lYOP1r1LAKZN20w/4+gRTKQk/emJxVB9peQAJlDmjLPDiBgo9XK8WIYR/OQVJTRKpODJc= X-Received: by 10.31.41.151 with SMTP id p145mr649363vkp.3.1507308435972; Fri, 06 Oct 2017 09:47:15 -0700 (PDT) MIME-Version: 1.0 Sender: tomek.cedro@gmail.com Received: by 10.159.53.237 with HTTP; Fri, 6 Oct 2017 09:46:55 -0700 (PDT) In-Reply-To: <201710061639.v96GdhSM024796@fire.js.berklix.net> References: <201710061639.v96GdhSM024796@fire.js.berklix.net> From: Tomasz CEDRO Date: Fri, 6 Oct 2017 18:46:55 +0200 X-Google-Sender-Auth: _vU0Kw07pevSSTc_qUSmWHfPRnY Message-ID: Subject: Re: usbdump on macOS To: "Julian H. Stacey" Cc: FreeBSD Questions Mailing List , "freebsd-usb@FreeBSD.org" , freebsd-hardware@freebsd.org, Hans Petter Selasky , Tomasz Cedro 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: Fri, 06 Oct 2017 16:47:17 -0000 On Fri, Oct 6, 2017 at 6:39 PM, Julian H. Stacey wrote: > Tomasz CEDRO wrote: >> Hello world! >> Is there any chance to have USBDUMP working on current macOS? I can >> see there is a manual page for usbdump in XCode taken directly from >> the FreeBSD.. but I could not find the binary.. >> Is anyone aware or can make usbdump work on macOS? I may be able to >> find some funding to make it work.. :-) >> Best regards, >> Tomek CEDRO > > I'd guess you'd stand best chance asking on a MacOS list. But if you > do find funding & want a geographic indexed global BSD contractors index: > http://www.berklix.com/consultants/ > Cheers, > Julian Hello Julian, thanks for response! I thought there may be an effort already to port usbdump to macOS as I found the man page there.. no clue why it landed there without the binary... this is why I ask here :-) Do you know any sensible macOS list of this kind where I could ask? I did not get ANY sensible support from Apple Developer Forum nor Support.. Best regards, Tomek -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From owner-freebsd-usb@freebsd.org Fri Oct 6 22:38:14 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 8D1C5E43485; Fri, 6 Oct 2017 22:38:14 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from land.berklix.org (land.berklix.org [144.76.10.75]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "land.berklix.org", Issuer "land.berklix.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 1B4FD72868; Fri, 6 Oct 2017 22:38:13 +0000 (UTC) (envelope-from jhs@berklix.com) Received: from mart.js.berklix.net (pD9FA3C56.dip0.t-ipconnect.de [217.250.60.86]) (authenticated bits=0) by land.berklix.org (8.15.2/8.15.2) with ESMTPSA id v96MbBL7093456 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 6 Oct 2017 22:37:20 GMT (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (fire.js.berklix.net [192.168.91.41]) by mart.js.berklix.net (8.14.3/8.14.3) with ESMTP id v96MbxSj009460; Sat, 7 Oct 2017 00:37:59 +0200 (CEST) (envelope-from jhs@berklix.com) Received: from fire.js.berklix.net (localhost [127.0.0.1]) by fire.js.berklix.net (8.14.7/8.14.7) with ESMTP id v96MbNIS031218; Sat, 7 Oct 2017 00:37:59 +0200 (CEST) (envelope-from jhs@berklix.com) Message-Id: <201710062237.v96MbNIS031218@fire.js.berklix.net> To: Tomasz CEDRO cc: FreeBSD Questions Mailing List , "freebsd-usb@FreeBSD.org" , freebsd-hardware@freebsd.org, Hans Petter Selasky , Tomasz Cedro Subject: Re: usbdump on macOS From: "Julian H. Stacey" Organization: http://berklix.eu BSD Unix Linux Consultants, Munich Germany User-agent: EXMH on FreeBSD http://berklix.eu/free/ X-From: http://www.berklix.eu/~jhs/ In-reply-to: Your message "Fri, 06 Oct 2017 18:46:55 +0200." Date: Sat, 07 Oct 2017 00:37:23 +0200 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: Fri, 06 Oct 2017 22:38:14 -0000 Tomasz CEDRO wrote: > On Fri, Oct 6, 2017 at 6:39 PM, Julian H. Stacey wrote: > > Tomasz CEDRO wrote: > >> Hello world! > >> Is there any chance to have USBDUMP working on current macOS? I can > >> see there is a manual page for usbdump in XCode taken directly from > >> the FreeBSD.. but I could not find the binary.. > >> Is anyone aware or can make usbdump work on macOS? I may be able to > >> find some funding to make it work.. :-) > >> Best regards, > >> Tomek CEDRO > > > > I'd guess you'd stand best chance asking on a MacOS list. But if you > > do find funding & want a geographic indexed global BSD contractors index: > > http://www.berklix.com/consultants/ > > Cheers, > > Julian > > Hello Julian, thanks for response! I thought there may be an effort > already to port usbdump to macOS as I found the man page there.. no > clue why it landed there without the binary... this is why I ask here > :-) > > Do you know any sensible macOS list of this kind where I could ask? I > did not get ANY sensible support from Apple Developer Forum nor > Support.. > > Best regards, > Tomek Sorry Tomasz, I know nothing helpful, I do know a friend who used to work for Apple who is on BSD lists maybe he knows lists, I'm bcc'ing him, so's not to drop him in it :-) Actually I think theres been a few BSD people at Apple, maybe some on lists will see your call for help. All the best. Cheers, Julian -- Julian H. Stacey, Computer Consultant, BSD Linux Unix Systems Engineer, Munich Reply below, Prefix '> '. Plain text, No .doc, base64, HTML, quoted-printable. http://berklix.eu/brexit/ UK stole 3,500,000 votes; 700,000 from Brits in EU. From owner-freebsd-usb@freebsd.org Sat Oct 7 23:41:38 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 A0210E44C93 for ; Sat, 7 Oct 2017 23:41:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 736A07CF02 for ; Sat, 7 Oct 2017 23:41:38 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v97Nfcox081090 for ; Sat, 7 Oct 2017 23:41:38 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 222743] FreeBSD 10.2+ unable to boot/install from Supermicro IPMI emulated CDROM Date: Sat, 07 Oct 2017 23:41:38 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: bugzilla@globecorp.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Sat, 07 Oct 2017 23:41:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222743 --- Comment #1 from USNOC --- Created attachment 186992 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D186992&action= =3Dedit IPMI screenshot showing FIX added screenshot with fixed quirks --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Sat Oct 7 23:43:24 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 0F65DE44E2D for ; Sat, 7 Oct 2017 23:43:24 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B07777D506 for ; Sat, 7 Oct 2017 23:43:23 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id v97NhN6r089649 for ; Sat, 7 Oct 2017 23:43:23 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-usb@FreeBSD.org Subject: [Bug 222743] FreeBSD 10.2+ unable to boot/install from Supermicro IPMI emulated CDROM Date: Sat, 07 Oct 2017 23:43:23 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: 10.3-RELEASE X-Bugzilla-Keywords: regression X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: bugzilla@globecorp.net X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Sat, 07 Oct 2017 23:43:24 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222743 --- Comment #2 from USNOC --- Created attachment 186993 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D186993&action= =3Dedit IPMI screenshot showing problem quirks added screenshot showing problematik quirks --=20 You are receiving this mail because: You are the assignee for the bug.=