From owner-freebsd-current@FreeBSD.ORG Wed Mar 26 16:03:55 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B938B37B404 for ; Wed, 26 Mar 2003 16:03:55 -0800 (PST) Received: from castle.org (castle.org [207.178.4.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0760A43F75 for ; Wed, 26 Mar 2003 16:03:55 -0800 (PST) (envelope-from nomad@castle.org) Received: from castle.org (localhost.castle.org [127.0.0.1]) by castle.org (8.12.8/8.12.7) with ESMTP id h2R03Ivm015192; Wed, 26 Mar 2003 16:03:18 -0800 (PST) (envelope-from nomad@castle.org) Message-Id: <200303270003.h2R03Ivm015192@castle.org> X-Mailer: exmh version 2.5 07/13/2001 with nmh-1.0.4 To: Maksim Yevmenkin In-reply-to: Your message of Wed, 26 Mar 2003 12:17:28 -0800. <3E820AD8.1050408@exodus.net> X-uri: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 26 Mar 2003 16:03:18 -0800 From: Lee Damon X-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,IN_REP_TO,QUOTED_EMAIL_TEXT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: current@freebsd.org Subject: Re: Bluetooth on IBM T30 (USB device problem) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Mar 2003 00:03:57 -0000 Hi Max, Kernel recompiled and now no more "_mtx_assert undefined" errors. Continuing with the directions at : When I press the T30's bluetooth button I get the known USB problem, but never see the ubt0 device defined. Instead of getting ubt0: vendor 0x0a12 product 0x0001, rev 1.10/5.25, addr 2 ubt0: Interface 0 endpoints: interrupt=0x81, bulk-in=0x82, bulk-out=0x2 ubt0: Interface 1 (alt.config 5) endpoints: isoc-in=0x83, isoc-out=0x3; wMaxPacketSize=49; nframes=6, buffer size=294 I get dead silence. Grep'ing for it in dmesg renders: : || tylendel.castle.org [8] ; dmesg | grep ubt Preloaded elf module "/boot/kernel/ng_ubt.ko" at 0xc06e60a8. I am presuming pressing the bluetooth button is like adding a bluetooth USB device but I am lacking in actual real knowledge here. Their documentation has things like "Power on the BDC by pressing Bluetooth power switch if the Bluetooth LED is off." (BDC = Bluetooth Daughter Card). When I press the button the LED does not come on. If I press and hold the button the LED will eventually flash once and then I get the "uhub2: device problem, disabling port 1" message on the console yet again. In searching IBM's documentation I found that they have updated firmware for the BDC, but you have to be running windows to install it. :/ Kernel source was sup'd Monday evening, US Pacific time. Bluetooth bundle is ngbt-fbsd-20030305.tar.gz. I went ahead and tried to run rc.bluetooth start ubt0 in debug mode and got pretty much what you'd expect when the device isn't there: + logger=/usr/bin/logger -i -s -p user.err + kldstat=/sbin/kldstat + kldload=/sbin/kldload + sysctl=/sbin/sysctl + ngctl=/usr/sbin/ngctl + hcseriald=/usr/sbin/hcseriald + hccontrol=/usr/sbin/hccontrol + hci_debug_level=3 + l2cap_debug_level=3 + [ 2 -lt 2 ] + startstop=start + shift + dev=ubt0 + shift + load_module ng_bluetooth + module=ng_bluetooth + shift + /sbin/kldstat -n ng_bluetooth + [ 1 -ne 0 ] + /sbin/kldload ng_bluetooth + [ 0 -ne 0 ] + load_module ng_hci + module=ng_hci + shift + /sbin/kldstat -n ng_hci + [ 1 -ne 0 ] + /sbin/kldload ng_hci + [ 0 -ne 0 ] + load_module ng_l2cap + module=ng_l2cap + shift + /sbin/kldstat -n ng_l2cap + [ 1 -ne 0 ] + /sbin/kldload ng_l2cap + [ 0 -ne 0 ] + load_module ng_btsocket + module=ng_btsocket + shift + /sbin/kldstat -n ng_btsocket + [ 1 -ne 0 ] + /sbin/kldload ng_btsocket + [ 0 -ne 0 ] + ./src/share/examples/netgraph/bluetooth/rc.bluetooth stop ubt0 + hook=hook + expr ubt0 : ubt\([0-9]\{1,\}\) + unit=0 + [ -z 0 ] + setup_stack ubt0 hook + dev=ubt0 + shift + hook=hook + shift + /usr/sbin/ngctl mkpeer ubt0: hci hook drv ngctl: send msg: No such file or directory + exit 1 nomad > Lee Damon wrote: > > first pass at trying to follow Pav's directions. I get as far as trying > > to run rc.bluetooth and get the following in syslog: > > > > Mar 26 11:18:34 tylendel kernel: link_elf: symbol _mtx_assert undefined > > Mar 26 11:18:34 tylendel nomad[576]: Failed to load ng_btsocket > > your kernel options do not match options in Makefile. please > > 1) edit snapshot Makefile's for the modules and remove > -DWITNESSxxx and -DINVARIANTxxx > > or > > 2) add options WITNESS, options WITNESS_SKIPSPIN, > options INVARIANTS and options INVARIANTS_SUPPORT to > your kernel config. > > this is an intergration issue. i use this option to catch > locking bugs. once code is commited this will be resolved > automatically. some people choose to disable them because > it improves performance. > > thanks, > max > nomad ----------- - Lee "nomad" Damon - \ play: nomad@castle.org or castle!nomad \ work: nomad@ee.washington.edu \ /\ Seneschal, Castle PAUS. / \ "Celebrate Diversity" / \