From owner-freebsd-current@FreeBSD.ORG Wed Mar 30 23:44:46 2005 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 B33E416A4CE for ; Wed, 30 Mar 2005 23:44:46 +0000 (GMT) Received: from mailgate1b.savvis.net (mailgate1b.savvis.net [216.91.182.6]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2643C43D2D for ; Wed, 30 Mar 2005 23:44:46 +0000 (GMT) (envelope-from Maksim.Yevmenkin@savvis.net) Received: from localhost (localhost.localdomain [127.0.0.1]) by mailgate1b.savvis.net (Postfix) with ESMTP id 932943BF0D; Wed, 30 Mar 2005 17:44:45 -0600 (CST) Received: from mailgate1b.savvis.net ([127.0.0.1]) by localhost (mailgate1b.savvis.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 28863-01-44; Wed, 30 Mar 2005 17:44:45 -0600 (CST) Received: from out001.email.savvis.net (out001.apptix.savvis.net [216.91.32.44]) by mailgate1b.savvis.net (Postfix) with ESMTP id 697383BE31; Wed, 30 Mar 2005 17:44:45 -0600 (CST) Received: from s228130hz1ew03.apptix-01.savvis.net ([10.146.4.28]) by out001.email.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 30 Mar 2005 17:44:54 -0600 Received: from [10.254.186.111] ([66.35.239.94]) by s228130hz1ew03.apptix-01.savvis.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 30 Mar 2005 17:44:49 -0600 Message-ID: <424B39E4.7080900@savvis.net> Date: Wed, 30 Mar 2005 15:44:36 -0800 From: Maksim Yevmenkin User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040822 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Peter Wemm References: <585362735.20050330120814@uscc.ru> <11814573315.20050330144144@uscc.ru> <424AE3E6.3060102@savvis.net> <200503301505.42627.peter@wemm.org> In-Reply-To: <200503301505.42627.peter@wemm.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 30 Mar 2005 23:44:49.0782 (UTC) FILETIME=[765E0160:01C53582] X-Virus-Scanned: amavisd-new at savvis.net cc: freebsd-current@freebsd.org cc: freeze Subject: Re: troubles with bluetooth configuration 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: Wed, 30 Mar 2005 23:44:46 -0000 Peter, >>> When I try to initiate my local bt (/etc/rc.bluetooth start ubt0), >>>I receive an error message: Can`t load ng_bluetooth. >> >>ok, what is the exact error message? > > There is a bug in the module declaration in > sys/netgraph/bluetooth/common/ng_bluetooth.c > > Near 'bluetooth_mod' there is a string in the structure that says > "bluetooth" when it should say "ng_bluetooth". > > --- ng_bluetooth.c 7 Jan 2005 01:45:42 -0000 1.5 > +++ ng_bluetooth.c 30 Mar 2005 23:04:44 -0000 > @@ -243,7 +243,7 @@ > */ > > static moduledata_t bluetooth_mod = { > - "bluetooth", > + "ng_bluetooth", > bluetooth_modevent, > NULL > }; > > The problem is that it is exporting a module called "bluetooth" when the > scripts and module loader are expecting "ng_bluetooth". thanks for the patch, but i do not think this is a problem. it works just fine. beetle# uname -a FreeBSD beetle.digisle.com 6.0-CURRENT FreeBSD 6.0-CURRENT #5: Thu Mar 24 21:40:59 PST 2005 root@beetle.digisle.com:/usr/obj/usr/src/sys/BEETLE i386 beetle# kldload ng_bluetooth beetle# kldstat -vn ng_bluetooth Id Refs Address Size Name 18 1 0xc2576000 2000 ng_bluetooth.ko Contains modules: Id Name 190 bluetooth beetle# kldstat -vn bluetooth kldstat: can't find file bluetooth: No such file or directory the rc.bluetooth script just calls "kldstat -n " and "module file name" is in fact the actual .ko file name, and not the "name" field from the bluetooth_mod structure. unless, of course, something has changed very recently :) thanks, max