From owner-freebsd-arm@FreeBSD.ORG Fri Apr 10 02:09:15 2015 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 49866F7D for ; Fri, 10 Apr 2015 02:09:15 +0000 (UTC) Received: from biz112.inmotionhosting.com (biz112.inmotionhosting.com [66.117.4.135]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1D0DBF1F for ; Fri, 10 Apr 2015 02:09:14 +0000 (UTC) Received: from 75-37-201-71.lightspeed.snmtca.sbcglobal.net ([75.37.201.71]:57344 helo=SB2) by biz112.inmotionhosting.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.82) (envelope-from ) id 1YfLhM-0005sa-QM for freebsd-arm@freebsd.org; Mon, 06 Apr 2015 22:05:18 -0700 From: "Sven Brehmer" To: Subject: Bluetooth on the Wandboard Quad Date: Mon, 6 Apr 2015 22:05:15 -0700 Message-ID: <04cf01d070f0$6f993d40$4ecbb7c0$@polycoresoftware.com> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 15.0 Thread-Index: AdBw7LvbVhnxBzQ9RtqxSKOi2TJ5VQ== Content-Language: en-us X-OutGoing-Spam-Status: No, score=-102.9 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - biz112.inmotionhosting.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - polycoresoftware.com X-Get-Message-Sender-Via: biz112.inmotionhosting.com: authenticated_id: sven.brehmer@polycoresoftware.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Apr 2015 02:09:15 -0000 Hello, We are running FreeBSD on the Wandboard and are trying get Bluetooth working using a Bluetooth USB adapter. The Adapter is an IOGEAR GBU521W6 Bluetooth 4.0 Micro Adapter USB, based on the Broadcom BCM20702A chip. We can't get the Bluetooth network stack started. We have searched the internet and found advice and settings which we have tested, to no avail. Some information below. Loaded drivers: # kldstat Id Refs Address Size Name 1 16 0xc2000000 6996a4 kernel 2 1 0xc269a000 e6e4 ng_ubt.ko 3 2 0xc26a9000 132e4 ng_hci.ko 4 4 0xc26bd000 9f78 ng_bluetooth.ko 5 6 0xc26c7000 1696c netgraph.ko 6 1 0xc79b2000 22000 ng_btsocket.ko 7 1 0xc7a48000 15000 ng_l2cap.ko 8 1 0xc7881000 b000 ng_socket.ko loader.conf related entries (probably not required): ng_ubt_load="YES" ng_l2cap_load="YES" rc.conf related entries: #bluetooth hcsecd_enable="YES" hcsecd_config="/etc/bluetooth/hcsecd.conf" sdpd_enable="YES" bthidd_enable="YES" bthidd_config="/etc/bluetooth/bthidd.conf" /etc/bluetooth files: ubt0.conf entries: authentication_enable="NO" connectable="YES" discoverable="YES" hci_debug_level="4" l2cap_debug_level="4" local_name="wandboard-quad" role_switch="YES" hcsecd.conf sample entries: device { bdaddr 00:11:22:33:44:55; name "Dummy"; key "0x00112233445566778899aabbccddeeff"; pin nopin; } device { bdaddr e4:32:ab:34:4e:ae; name "SvenB"; key nokey; pin nopin; } bthidd.conf has a blank line. hosts have entries. a snippet from the output of # sh -x /etc/rc.d/bluetooth start ubt0, below. + read _line + return 0 + bluetooth_setup_stack ubt0 hook + dev=ubt0 + shift + hook=hook + shift + ngctl mkpeer ubt0: hci hook drv + ngctl name ubt0:hook ubt0hci + ngctl msg ubt0hci: set_debug 3 + ngctl mkpeer ubt0hci: l2cap acl hci + ngctl name ubt0hci:acl ubt0l2cap + ngctl msg ubt0l2cap: set_debug 3 + ngctl connect ubt0hci: btsock_hci_raw: raw ubt0raw + ngctl connect ubt0l2cap: btsock_l2c_raw: ctl ubt0ctl + ngctl connect ubt0l2cap: btsock_l2c: l2c ubt0l2c + /usr/sbin/hccontrol -n ubt0hci reset + return 1 + bluetooth_shutdown_stack ubt0 + dev=ubt0 + ngctl shutdown ubt0hci: + ngctl shutdown ubt0l2cap: + return 0 + err 1 'Unable to setup Bluetooth stack for device ubt0' + exitval=1 + shift + [ -x /usr/bin/logger ] + logger '/etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0' + echo '/etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0' /etc/rc.d/bluetooth: ERROR: Unable to setup Bluetooth stack for device ubt0 + exit 1 Any advice would be appreciated. Regards, Sven Brehmer