From owner-freebsd-wireless@freebsd.org Tue Apr 23 19:37:42 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 51E8315807EA for ; Tue, 23 Apr 2019 19:37:42 +0000 (UTC) (envelope-from serge.a1@gmail.com) Received: from mail-io1-xd33.google.com (mail-io1-xd33.google.com [IPv6:2607:f8b0:4864:20::d33]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EA53C882BE for ; Tue, 23 Apr 2019 19:37:40 +0000 (UTC) (envelope-from serge.a1@gmail.com) Received: by mail-io1-xd33.google.com with SMTP id i21so13090873iol.7 for ; Tue, 23 Apr 2019 12:37:40 -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=i/CH909X+1GsUkW4jm9lbJRUqd7+hMtu2c5bWsvaSxM=; b=pbzsHePwxoIUTsKy4lQXX7R/5GUsB90ZXdRc5eElFcNOAPiuqUl77wNlg+0m/T387P BqQ2XJE0cGAlWOQDUUhLlz3iwNQM7ns/464kEPERyPNXGVeMxSfAQeiKnBhU2va/aCtK Ima8PwjhlKTDdiwGLl8q4sVAsgp6ZATu1Te1RV618a8xLOEECVaXESeEk0ekRgdRJZgV /AcNUNbF4OLHleicZmTcfeJCFDXjF9hacxtnZYVAAHaZSkksZ556OgLu/0m9anx7/byB G1tRQJZXSBuIquZEFh+1ljQzSrrYsmgSakLFNRo+bh4ax90Ar/H2RIMPV4EjTBHcvACm UI8w== 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=i/CH909X+1GsUkW4jm9lbJRUqd7+hMtu2c5bWsvaSxM=; b=S4fy07tHr1zawXhQSgI5hEP1rv55dUIpysIDPcQ0qnzDTZfXDNUtAjwuELodpeUyT1 yciWGPScV6gXzx4Gvtrjgr2XQilI/CF8CpsSj6it+gAv+SLBtKnu9KbyuCijFo7F7fHu Tu7X0jFXs5yD+TbTQCB6lgkfFM1n9HxWa/+O+Drmt3UuTTLd/ijssXngz1DhWFb18c1/ dnj1BgWPKehgeFOC7IjLmv8fzVRROlvns6E0pWKwLCNrMWFWy1TkcDwlnXTb9CRoXYKH Pd1YhF6h+yKKdKEzCRHpulxmYLvNW+qlRT3/dtiEuN0C3upxL+0nwc6ZiT5ZPzt3fRrZ 0tuw== X-Gm-Message-State: APjAAAV6V0xeO6UbxqMGvMn3DkJhTcDLtG4QG+zRQNAySqclp6OEKhlI 3qi5KDMoj5JnVvVcr//8/wBkqCQ4ChcCdNLoDQ== X-Google-Smtp-Source: APXvYqziAKDvI7FkSUr6ZZ2HZjguvMnPcf4pZ+7ZiGYvDmW3umzMCjnS9y74xdJJuxpR8VgwefHjQUv87bR8NZwfAVM= X-Received: by 2002:a5d:83c2:: with SMTP id u2mr18194137ior.288.1556048260009; Tue, 23 Apr 2019 12:37:40 -0700 (PDT) MIME-Version: 1.0 References: <20190421071938.GA59008@c720-r342378> In-Reply-To: <20190421071938.GA59008@c720-r342378> From: Serge Semenenko Date: Tue, 23 Apr 2019 22:37:12 +0300 Message-ID: Subject: Re: Atheros AR5B22 WLAN+Bluetooth support on FreeBSD To: Matthias Apitz Cc: freebsd-wireless@freebsd.org, Adrian Chadd X-Rspamd-Queue-Id: EA53C882BE X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=pbzsHePw; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of sergea1@gmail.com designates 2607:f8b0:4864:20::d33 as permitted sender) smtp.mailfrom=sergea1@gmail.com X-Spamd-Result: default: False [-6.70 / 15.00]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0: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.91)[-0.907,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:2607:f8b0::/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]; TAGGED_RCPT(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[3.3.d.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; IP_SCORE(-2.79)[ip: (-8.47), ipnet: 2607:f8b0::/32(-3.14), asn: 15169(-2.26), country: US(-0.06)]; 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: Tue, 23 Apr 2019 19:37:42 -0000 Could it matter that I load modules from rc.conf? kld_list=3D"if_ath if_ath_pci linux linsysfs linprocfs xhci umass ums snd_h= da /boot/modules/i915kms.ko /boot/modules/acpi_call.ko" =D0=B2=D1=81, 21 =D0=B0=D0=BF=D1=80. 2019 =D0=B3. =D0=B2 11:05, Matthias Ap= itz : > El d=C3=ADa s=C3=A1bado, abril 20, 2019 a las 02:16:49p. m. +0300, Serge = Semenenko > escribi=C3=B3: > > > 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"; > > }; > > I have added the above lines to /etc/devd.conf, ofc with the vendor and > product ID of my chip: > > $ usbconfig > ... > ugen0.3: at usbus0, cfg=3D0 md=3DHOST spd= =3DFULL > (12Mbps) pwr=3DON (100mA) > > and place the firmware in the directory where /usr/sbin/ath3kfw is > looking for it, into /usr/share/firmware/ath3k/ar3k/ > > The problem remains: no device /dev/ubt0 gets created (and the attach > rule does not apply. > > When I change 'attach 200' to 'notify 100', /usr/sbin/ath3kfw gets > called and the firmware gets loaded into the chip. But nothing of BT does > work. > > I think some of the nd_*.ko modules do not attach and due to this the > device is not created. > > matthias > > -- > Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ > +49-176-38902045 > Public GnuPG key: http://www.unixarea.de/key.pub > N =E2=82=AC I N zur EU! > "Gegen das EU-Europa der Banken, Konzerne und Kriegstreiber. > F=C3=BCr ein soziales und friedliches Europa der V=C3=B6lker." DKP >