Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Apr 2019 14:16:49 +0300
From:      Serge Semenenko <serge.a1@gmail.com>
To:        freebsd-wireless@freebsd.org
Subject:   Re: Atheros AR5B22 WLAN+Bluetooth support on FreeBSD
Message-ID:  <CAFOmZk2kVqhfsfTfmyaF7aZPmLjPmgtNk7DZoA=GteZvVPmJJA@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Hi

It works for me with such section in devd.conf

attach 200 {
       device-name "ubt[0-9]+";
       match "vendor" "0x0cf3";
       match "product" "0xe006";
       action "sleep 2 && /usr/sbin/ath3kfw -d $ugen && sleep 2 &&
/etc/rc.d/bluetooth quietstart $device-name";
};


More info:

#  uname -UK
1200505 1200505

#  pciconf -lv | tail -8
    subclass   =3D ethernet
ath0@pci0:2:0:0: class=3D0x028000 card=3D0x03001028 chip=3D0x0034168c rev=
=3D0x01
hdr=3D0x00
    vendor     =3D 'Qualcomm Atheros'
    device     =3D 'AR9462 Wireless Network Adapter'
    class      =3D network

#  usbconfig list
ugen0.1: <0x8086 XHCI root HUB> at usbus0, cfg=3D0 md=3DHOST spd=3DSUPER
(5.0Gbps) pwr=3DSAVE (0mA)
ugen0.2: <SunplusIT Inc HP HD Camera> at usbus0, cfg=3D0 md=3DHOST spd=3DHI=
GH
(480Mbps) pwr=3DON (500mA)
ugen0.4: <vendor 0x138a product 0x003f> at usbus0, cfg=3D0 md=3DHOST spd=3D=
FULL
(12Mbps) pwr=3DON (100mA)
ugen0.3: <vendor 0x0cf3 product 0xe006> at usbus0, cfg=3D0 md=3DHOST spd=3D=
FULL
(12Mbps) pwr=3DON (100mA)

# ll /usr/share/firmware/ath3k/ar3k/
total 384
drwxr-xr-x  2 serge  wheel    512 17 =D0=BB=D0=B8=D1=81=D1=82.  2017 102020=
1coex/
-rw-r--r--  1 serge  wheel  55244 30 =D0=B1=D0=B5=D1=80.   2017 AthrBT_0x01=
020001.dfu
-rw-r--r--  1 serge  wheel  40724 30 =D0=B1=D0=B5=D1=80.   2017 AthrBT_0x01=
020200.dfu
-rw-r--r--  1 serge  wheel  48188 17 =D0=BB=D0=B8=D1=81=D1=82.  2017 AthrBT=
_0x01020201.dfu
-rw-r--r--  1 serge  wheel  36828 30 =D0=B1=D0=B5=D1=80.   2017 AthrBT_0x11=
020000.dfu
-rw-r--r--  1 serge  wheel  46852 30 =D0=B1=D0=B5=D1=80.   2017 AthrBT_0x11=
020100.dfu
-rw-r--r--  1 serge  wheel  40652 30 =D0=B1=D0=B5=D1=80.   2017 AthrBT_0x31=
010000.dfu
-rw-r--r--  1 serge  wheel  37796 30 =D0=B1=D0=B5=D1=80.   2017 AthrBT_0x31=
010100.dfu
-rw-r--r--  1 serge  wheel  31500 30 =D0=B1=D0=B5=D1=80.   2017 AthrBT_0x41=
020000.dfu
-rw-r--r--  1 serge  wheel   1224 30 =D0=B1=D0=B5=D1=80.   2017 ramps_0x010=
20001_26.dfu
-rw-r--r--  1 serge  wheel   1274 30 =D0=B1=D0=B5=D1=80.   2017 ramps_0x010=
20200_26.dfu
-rw-r--r--  1 serge  wheel   1204 30 =D0=B1=D0=B5=D1=80.   2017 ramps_0x010=
20200_40.dfu
-rw-r--r--  1 serge  wheel    264 30 =D0=B1=D0=B5=D1=80.   2017 ramps_0x010=
20201_26.dfu
-rw-r--r--  1 serge  wheel    264 30 =D0=B1=D0=B5=D1=80.   2017 ramps_0x010=
20201_40.dfu
-rw-r--r--  1 serge  wheel   1796 30 =D0=B1=D0=B5=D1=80.   2017 ramps_0x110=
20000_40.dfu
-rw-r--r--  1 serge  wheel   1802 30 =D0=B1=D0=B5=D1=80.   2017 ramps_0x110=
20100_40.dfu
-rw-r--r--  1 serge  wheel   1926 30 =D0=B1=D0=B5=D1=80.   2017 ramps_0x310=
10000_40.dfu
-rw-r--r--  1 serge  wheel   1922 30 =D0=B1=D0=B5=D1=80.   2017 ramps_0x310=
10100_40.dfu
-rw-r--r--  1 serge  wheel   1820 30 =D0=B1=D0=B5=D1=80.   2017 ramps_0x410=
20000_40.dfu

And also i had to add the card to /usr/src/usr.sbin/bluetooth/ath3kfw

--- main.c.orig 2018-06-23 12:32:29.564631000 +0300
+++ main.c      2018-06-23 12:33:01.283400000 +0300
@@ -85,6 +85,7 @@
        { .vendor_id =3D 0x0CF3, .product_id =3D 0x817a, .is_3012 =3D 1 },
        { .vendor_id =3D 0x0cf3, .product_id =3D 0xe004, .is_3012 =3D 1 },
        { .vendor_id =3D 0x0cf3, .product_id =3D 0xe005, .is_3012 =3D 1 },
+        { .vendor_id =3D 0x0cf3, .product_id =3D 0xe006, .is_3012 =3D 1 },
        { .vendor_id =3D 0x0cf3, .product_id =3D 0xe003, .is_3012 =3D 1 },
        { .vendor_id =3D 0x13d3, .product_id =3D 0x3362, .is_3012 =3D 1 },
        { .vendor_id =3D 0x13d3, .product_id =3D 0x3375, .is_3012 =3D 1 },



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAFOmZk2kVqhfsfTfmyaF7aZPmLjPmgtNk7DZoA=GteZvVPmJJA>