From owner-freebsd-wireless@freebsd.org Sun Apr 14 15:57:07 2019 Return-Path: Delivered-To: freebsd-wireless@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E3EF01579658 for ; Sun, 14 Apr 2019 15:57:06 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B1B0E6F0DF; Sun, 14 Apr 2019 15:57:05 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: by mail-wr1-x42a.google.com with SMTP id w1so18516728wrp.2; Sun, 14 Apr 2019 08:57:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ha/65nmSA4B5ziiBpHiclKNoLkvuiF8NmQvITTVcSCg=; b=gkjojOKfj9nylQZDK1SeuF3h8ETTdhAHl1+uA0EuzBxJ3t2KKYQ7rxE6yYK2aq1abc 3S3GksVy4kxhWyOrXRIfnunQf3ohEvQWB3npBdRT7CcdkcxkRutpuSugAnyLIqpXWpdD L7vBDfnW9DELzA/jQXlAZqxGjWmDaHWy5J3ew9qwkhW0DcEfcVnw0InWJY0Am7FlUIpc vqr074GVZ2kbUUsNL17rx6961NjCWBfA1PhEhYxLFVdrRYtFbpWOmH5MyrPcO8+DmDn1 2GzvZmmRCXw5M9cVh+PCdMZOZpDVKy1QDuCZjGLhNq7ykK6b/Gp6GQgiJHWXhD9GR0+E ihjA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ha/65nmSA4B5ziiBpHiclKNoLkvuiF8NmQvITTVcSCg=; b=MO7P2L88DHZZclLytNBY+5d5OjlFeji3s+MCcruMWV15F3IjcTPEQk6rv0EyXM5FJu nqJDoTL3yPDbNLD+/AzQtY+fmjZMclEwaLzuiv+Nzki6i8FiJVmKe8W0jIlkxqyr1LdA 4t9pEl5X8aKvpAsuoSttgXKvS2WJZZb3uOMF+PPraEHBwbt+zDLTLJQKtb0Ig07jfVLg HTErjJ+QZ61kQgAgZ5tKMXsYflVu5x6WWDCE3DiitpXSQSuCV8rFHGSwZiFAByUKJrhD Na+mhlv59Luy9DH1bva1Bfp5eGqt5mpm1ck0x4+8NdwEgVZwgCzYVfZRvMp/esXWdZb/ mW5A== X-Gm-Message-State: APjAAAXyuBlslOsRrh4X5Z1vhN2eErY5lDeOd9HLyyQ34mIFPsGstxyM gOGP/1i2Tfd25WKZYqTb7sF3U6b7pb2BXF1rafw= X-Google-Smtp-Source: APXvYqysluSOdXzb0Zgl1AAbRiI6nejk2ebVkSp0104+HFbBemjYqCxfqEeCZDtC6pP3YhpYn6SZF0YYMiP3m3lrEZo= X-Received: by 2002:adf:edcf:: with SMTP id v15mr20058490wro.20.1555257424435; Sun, 14 Apr 2019 08:57:04 -0700 (PDT) MIME-Version: 1.0 References: <20190410152250.GA37191@FreeBSD.org> <20190411092758.GA6899@FreeBSD.org> <20190411104647.GA3864@c720-r342378> <20190411125242.GA64046@FreeBSD.org> <20190411131328.GA4909@c720-r342378> <20190411131859.GA17806@FreeBSD.org> <20190411142350.GA71446@FreeBSD.org> <20190412171218.GA16463@FreeBSD.org> <20190413142006.GA59512@FreeBSD.org> <20190414154658.GA2589@c720-r342378> In-Reply-To: <20190414154658.GA2589@c720-r342378> From: Adrian Chadd Date: Sun, 14 Apr 2019 08:56:52 -0700 Message-ID: Subject: Re: Atheros AR5B22 WLAN+Bluetooth support on FreeBSD To: Matthias Apitz Cc: Alexey Dokuchaev , "freebsd-wireless@freebsd.org" X-Rspamd-Queue-Id: B1B0E6F0DF X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=gkjojOKf; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of adrianchadd@gmail.com designates 2a00:1450:4864:20::42a as permitted sender) smtp.mailfrom=adrianchadd@gmail.com X-Spamd-Result: default: False [-6.77 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; FREEMAIL_FROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; NEURAL_HAM_SHORT(-0.89)[-0.894,0]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; MIME_TRACE(0.00)[0:+,1:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; IP_SCORE(-2.87)[ip: (-9.69), ipnet: 2a00:1450::/32(-2.39), asn: 15169(-2.19), country: US(-0.06)]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[a.2.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Apr 2019 15:57:07 -0000 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 wrote: > El d=C3=ADa s=C3=A1bado, abril 13, 2019 a las 02:20:06p. m. +0000, Alexey= Dokuchaev > escribi=C3=B3: > > > On Fri, Apr 12, 2019 at 05:12:18PM +0000, Alexey Dokuchaev wrote: > > > I've then rebooted back into FreeBSD. Apparently, this AR3012 hardwa= re > > > 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 th= e > > > 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=3D0489, idProduct=3De056, bcdDevice=3D 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 laye= r > initialized > Apr 13 19:22:51 aurora dbus-daemon[740]: [system] Activating via systemd: > service name=3D'org.freedesktop.hostname1' > unit=3D'dbus-org.freedesktop.hostname1.service' requested by ':1.11' (uid= =3D0 > pid=3D719 comm=3D"/usr/lib/bluetooth/bluetoothd " label=3D"unconfined") > Apr 13 19:22:54 aurora NetworkManager[797]: [1555176174.1461] > Loaded device plugin: NMBluezManager > (/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-device-plugin-bluetooth.s= o) > Apr 13 19:22:54 aurora NetworkManager[797]: [1555176174.4358] > bluez: use BlueZ version 5 > Apr 13 19:22:54 aurora NetworkManager[797]: [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=3D:1.= 80 > path=3D/MediaEndpoint/A2DPSource > Apr 13 19:23:29 aurora bluetoothd[719]: Endpoint registered: sender=3D:1.= 80 > path=3D/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=3D1000 pid=3D1340] > Activating via systemd: service name=3D'org.bluez.obex' > unit=3D'dbus-org.bluez.obex.service' requested by ':1.58' (uid=3D1000 pid= =3D1823 > comm=3D"gnome-control-center bluetooth " label=3D"unconfined") > Apr 13 19:24:02 aurora systemd[1306]: Starting Bluetooth OBEX service... > Apr 13 19:24:02 aurora dbus-daemon[1340]: [session uid=3D1000 pid=3D1340] > 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, =E2=9C=89 guru@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 !!! >