Re: troubles with bluetooth configuration

From: Maksim Yevmenkin (maksim.yevmenkin_at_savvis.net)
Date: 03/31/05

  • Next message: FreeBSD Tinderbox: "[current tinderbox] failure on i386/i386"
    Date: Wed, 30 Mar 2005 15:44:36 -0800
    To: Peter Wemm <peter@wemm.org>
    
    

    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 <module file name>" 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

    _______________________________________________
    freebsd-current@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-current
    To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"


  • Next message: FreeBSD Tinderbox: "[current tinderbox] failure on i386/i386"