Atheros AR5B22 WLAN+Bluetooth support on FreeBSD

Adrian Chadd adrian.chadd at gmail.com
Sun Apr 14 15:57:07 UTC 2019


hi!

Ok, so there's two parts:

* loading in the firmware and/or bt nic setup (clock rate, etc) via
ath3kfw; and
* bluetooth coex/antenna setup in ath(4).

The latter I can do. The former may require USB stack debugging.

Which NIC is in the C720? Ar9485, right?


-adrian


On Sun, 14 Apr 2019 at 08:47, Matthias Apitz <guru at unixarea.de> wrote:

> El día sábado, abril 13, 2019 a las 02:20:06p. m. +0000, Alexey Dokuchaev
> escribió:
>
> > On Fri, Apr 12, 2019 at 05:12:18PM +0000, Alexey Dokuchaev wrote:
> > > I've then rebooted back into FreeBSD.  Apparently, this AR3012 hardware
> > > is very fragile, it can be easily left in confused state and won't
> accept
> > > further commands, "usbconfig reset" does not help.  To avoid this, it
> is
> > > better run ./ath3kfw as root, after powercycling machine (to reset the
> > > card).  This got me further:
> > >
>
> I booted my Acer C720 from an external USB disk with an Ubuntu 18.04 ;
> below is the output of the following grep (I can provide the full file if
> it
> is of interest); BlueTooth was working fine out of the box and pairing
> with my Ubuntu mobile phone
>
> $ egrep -i 'e056|blue|ath3' syslog
>
> Apr 13 19:22:47 aurora systemd[1]: Starting Bluetooth service...
> Apr 13 19:22:47 aurora kernel: [    3.378263] usb 2-4: New USB device
> found, idVendor=0489, idProduct=e056, bcdDevice= 0.02
> Apr 13 19:22:47 aurora kernel: [   16.176818] Bluetooth: Core ver 2.22
> Apr 13 19:22:47 aurora kernel: [   16.176840] Bluetooth: HCI device and
> connection manager initialized
> Apr 13 19:22:47 aurora kernel: [   16.176845] Bluetooth: HCI socket layer
> initialized
> Apr 13 19:22:47 aurora kernel: [   16.176848] Bluetooth: L2CAP socket
> layer initialized
> Apr 13 19:22:47 aurora kernel: [   16.176858] Bluetooth: SCO socket layer
> initialized
> Apr 13 19:22:47 aurora kernel: [   17.403429] usbcore: registered new
> interface driver ath3k
> Apr 13 19:22:51 aurora bluetoothd[719]: Bluetooth daemon 5.48
> Apr 13 19:22:51 aurora systemd[1]: Started Bluetooth service.
> Apr 13 19:22:51 aurora systemd[1]: Reached target Bluetooth.
> Apr 13 19:22:51 aurora bluetoothd[719]: Starting SDP server
> Apr 13 19:22:51 aurora bluetoothd[719]: Bluetooth management interface
> 1.14 initialized
> Apr 13 19:22:51 aurora kernel: [   30.609088] Bluetooth: BNEP (Ethernet
> Emulation) ver 1.3
> Apr 13 19:22:51 aurora kernel: [   30.609090] Bluetooth: BNEP filters:
> protocol multicast
> Apr 13 19:22:51 aurora kernel: [   30.609096] Bluetooth: BNEP socket layer
> initialized
> Apr 13 19:22:51 aurora dbus-daemon[740]: [system] Activating via systemd:
> service name='org.freedesktop.hostname1'
> unit='dbus-org.freedesktop.hostname1.service' requested by ':1.11' (uid=0
> pid=719 comm="/usr/lib/bluetooth/bluetoothd " label="unconfined")
> Apr 13 19:22:54 aurora NetworkManager[797]: <info>  [1555176174.1461]
> Loaded device plugin: NMBluezManager
> (/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-device-plugin-bluetooth.so)
> Apr 13 19:22:54 aurora NetworkManager[797]: <info>  [1555176174.4358]
> bluez: use BlueZ version 5
> Apr 13 19:22:54 aurora NetworkManager[797]: <info>  [1555176174.4421]
> bluez5: NAP: added interface 90:48:9A:92:9E:44
> Apr 13 19:23:23 aurora /usr/lib/gdm3/gdm-x-session[1324]: (II) modeset(0):
> blueX: 0.160 blueY: 0.144   whiteX: 0.313 whiteY: 0.329
> Apr 13 19:23:29 aurora bluetoothd[719]: Endpoint registered: sender=:1.80
> path=/MediaEndpoint/A2DPSource
> Apr 13 19:23:29 aurora bluetoothd[719]: Endpoint registered: sender=:1.80
> path=/MediaEndpoint/A2DPSink
> Apr 13 19:23:29 aurora kernel: [   68.884106] Bluetooth: RFCOMM TTY layer
> initialized
> Apr 13 19:23:29 aurora kernel: [   68.884115] Bluetooth: RFCOMM socket
> layer initialized
> Apr 13 19:23:29 aurora kernel: [   68.884122] Bluetooth: RFCOMM ver 1.11
> Apr 13 19:24:01 aurora kernel: [  100.963505] Bluetooth: hci0: last event
> is not cmd complete (0x0f)
> Apr 13 19:24:02 aurora dbus-daemon[1340]: [session uid=1000 pid=1340]
> Activating via systemd: service name='org.bluez.obex'
> unit='dbus-org.bluez.obex.service' requested by ':1.58' (uid=1000 pid=1823
> comm="gnome-control-center bluetooth " label="unconfined")
> Apr 13 19:24:02 aurora systemd[1306]: Starting Bluetooth OBEX service...
> Apr 13 19:24:02 aurora dbus-daemon[1340]: [session uid=1000 pid=1340]
> Successfully activated service 'org.bluez.obex'
> Apr 13 19:24:02 aurora systemd[1306]: Started Bluetooth OBEX service.
> Apr 13 19:24:17 aurora kernel: [  116.965447] Bluetooth: hci0: last event
> is not cmd complete (0x0f)
> --
> Matthias Apitz, ✉ guru at unixarea.de, http://www.unixarea.de/
> +49-176-38902045
> Public GnuPG key: http://www.unixarea.de/key.pub
> 70 years of NATO - 70 years of wars (Jugoslavia, Afghanistan, Syria, ...)
> and 70 years
> of war preparation against Russia.  -- PEACE instead of NATO !!!
>


More information about the freebsd-wireless mailing list