LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Bluetooth Dongle Install (https://www.linuxquestions.org/questions/slackware-14/bluetooth-dongle-install-470870/)

blueAlien 08-04-2006 05:54 PM

Bluetooth Dongle Install
 
I just got a bluetooth capable phone, so I decided to purchase a usb bluetooth dongle so I could sync it with my laptop. I've done some research on getting it to work, but what I have found is vague and splotchy. I am very confused.

when it's plugged in /sbin/lsusb reports:
Code:

Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 002: ID 0a5c:4500 Broadcom Corp.
Bus 002 Device 003: ID 0a5c:2100 Broadcom Corp.
Bus 002 Device 004: ID 0a5c:4502 Broadcom Corp.
Bus 002 Device 005: ID 0a5c:4503 Broadcom Corp.
Bus 001 Device 001: ID 0000:0000

Also I read that I am supposed to have the /etc/rc.d/rc.bluetooth script, but it is not there.

Any help is appreciated.

drkstr 08-04-2006 06:52 PM

I wrote a howto for this:

http://www.linuxquestions.org/linux/...lackware_HOWTO

Let me know if you are still having trouble after this.

regards,
...drkstr

**edit**
although the guide on my half-ass web site is more up-to-date. http://www.drkstr.org

blueAlien 08-05-2006 10:35 AM

I got everything installed, and am at the "/etc/rc.d/rc.bluetooth start" step, but I get an error saying "no hid3hci in (/sbin:/bin:/usr/sbin:/usr/bin)".

I went back and looked in my compile dirs, and found that hid2hci never compiled, but I didn't get any errors when compiling. So, I tried to compile it, and got a bunch of errors about undefined references in 7 different usb functions.

At this point in time, I am stuck here.

drkstr 08-05-2006 11:24 AM

Quote:

I went back and looked in my compile dirs, and found that hid2hci never compiled, but I didn't get any errors when compiling. So, I tried to compile it, and got a bunch of errors about undefined references in 7 different usb functions.
What specifically did you try and compile, and how? What specific error did you get? I can't help you unless you provide more detailed information. Did you compile and install all the needed dependencies prior to compiling bluez-utils? Since you missed such a big step during the process, it makes me think you might have missed some of the needed steps before it. Try starting back from the beginning and follow each of the steps closely.

regards,
...drkstr

blueAlien 08-10-2006 07:27 PM

I got dbus to download and install just fine, but for some reason I could not download bluez over cvs, so I downloaded bluez-libs, bluez-utils from their site, and installed them seperately. I modified rc.bluetooth, and hcid.conf. I did not install any documentation though.

Now when I get to Part 2, Step 1 is where things get bumpy.
root@#/etc/rc.d/rc.bluetooth start
Code:

which: no hid2hci in (/sbin:/bin:/usr/sbin:/usr/bin)
Starting Bluetooth subsystem hcid sdpdCon't open HIDP control socket: No such file or directory
 hidd rfcom.

I looked in the same directory I ran the ./configure, make, and make install in,
(aka ./bluez-utils-3.2/) and went to the tools dir (./bluez-utils-3.2/tools/)

root@#ls
Code:

Makefile
    Makefile.am
    Makefile.in
    avctrl.8
    avctrl.c
    bccmd.8
    bccmd.c
    ciptool
    ciptool.1
    ciptool.c
    ciptool.o
    csr.c
    csr.h
    csr.o
    csr_3wire.c
    csr_bcsp.c
    csr_h4.c
    csr_hci.c
    csr_usb.c
    dfu.c
    dfu.h
    dfutool.1
    dfutool.c
    example.psr
    hciattach
    hciattach.8
    hciattach.c
    hciattach.o
    hciattach_st.c
    hciattach_st.o
    hciconfig
    hciconfig.8
    hciconfig.c
    hciconfig.o
    hcisecfilter
    hcisecfilter.c
    hcisecfilter.o
    hcitool
    hcitool.1
    hcitool.c
    hcitool.o
    hid2hci.8
    hid2hci.c
    l2ping
    l2ping.1
    l2ping.c
    l2ping.o
    listing
    ppporc
    ppporc.c
    ppporc.o
    sdptool
    sdptool.1
    sdptool.c
    sdptool.o
    ubcsp.c
    ubcsp.h


It looks like hid2hci did not compile, which explains why it is missing. So I try to compile it:

root@# gcc hid2hci.c
Code:

/tmp/ccyOZwHQ.o(.text+0xf): In function `switch_hidproxy':
: undefined reference to `usb_open'
/tmp/ccyOZwHQ.o(.text+0x48): In function `switch_hidproxy':
: undefined reference to `usb_control_msg'
/tmp/ccyOZwHQ.o(.text+0x84): In function `switch_hidproxy':
: undefined reference to `usb_close'
/tmp/ccyOZwHQ.o(.text+0x53d): In function `find_devices':
: undefined reference to `usb_find_buses'
/tmp/ccyOZwHQ.o(.text+0x542): In function `find_devices':
: undefined reference to `usb_find_devices'
/tmp/ccyOZwHQ.o(.text+0x547): In function `find_devices':
: undefined reference to `usb_get_buses'
/tmp/ccyOZwHQ.o(.text+0x72a): In function `main':
 : undefined reference to `usb_init'

So this is where I am stuck.

drkstr 08-11-2006 02:18 AM

Quote:

I got dbus to download and install just fine, but for some reason I could not download bluez over cvs, so I downloaded bluez-libs, bluez-utils from their site, and installed them seperately. I modified rc.bluetooth, and hcid.conf. I did not install any documentation though.
I'm not sure what the latest version of bluez is out, but I was unable to get the latest version (at the time of writing the guide) working on my Slackware system. The cvs version had a required patch that was not in the release version yet. cvs checkout is working fine, I just tried it. What is the exact command you tried and the exact error messege you got?

Quote:

which: no hid2hci in (/sbin:/bin:/usr/sbin:/usr/bin)
Starting Bluetooth subsystem hcid sdpdCon't open HIDP control socket: No such file or directory
hidd rfcom.
What are the contents of your bluez build directory? Did everything get installed to /usr/sbin like it should have?

Code:

drkstr@dsk:$ whereis hid2hci
hid2hci: /usr/sbin/hid2hci /usr/man/man8/hid2hci.8 /usr/share/man/man8/hid2hci.8

Quote:

It looks like hid2hci did not compile, which explains why it is missing. So I try to compile it:

root@# gcc hid2hci.c
This is not proper syntax. That's what make files are for. Shouldn't be necessary anyways. Did you --enable-all or if you don't want everything, make sure you--enable-hid2hci. I remember the compile options being a bit diffrent on the non cvs version though. You might want to ../configure --help to make sure.

Let me know if you are still stuck.

regards,
...drkstr

blueAlien 08-14-2006 03:05 AM

Ok, so I scraped the compiling from source, and found a website that had dbus, bluez-libs, and bluez-utils already in a slack package. Those installed with no problem using pkgtool, and this is what I get now.

/etc/rc.d/rc.bluetooth start
Code:

Starting Bluetooth subsystem: hcid sdpdCan't open HIDP control socket: No such file or directory
 hidd hid2hci rfcomm.

Also, after I installed the above packages I ran
/etc/rc.d/rc.messagebus start
Code:

Starting message bus: /usr/bin/dbus-daemon --system
This is where I am now. BTW, Thanks for all the help so far.

drkstr 08-14-2006 03:36 AM

hmmm, not really sure. I always prefer to build my own packages if they don't come default with Slackware. This gives you more control over what goes into your system and you never know what what dependencies the builder already has.

You might want to check out the start up script and search for the error message your getting. Hopefully it will indicate which file it can't find and you can go from there.

Maybe someone that had this same problem will be able to help you, but if you can get some more info, I would be happy to give it a try as well.

regards,
...drkstr

blueAlien 08-14-2006 06:13 AM

Ok, so I've narrowed it down to "/usr/bin/hidd --server || true"
which gives me:
Code:

Can't open HIDP control socket: No such file or directory
The same exact output from when I ran /etc/rc.d/rc.bluetooth.

drkstr 08-14-2006 08:20 AM

What kernel version are you running? Do you have a 2.6 kernel with hidp support compiled in? If it is modular, is the module loaded? 'lsmod' to see a list of modules, 'modprobe hidb' to load it (assuming it's enabled as a module).

This is my Kernel config for 2.6.16.5:
Code:

Networking-->
  Bluetooth subsystem support --->
    <M>  L2CAP protocol support
    < >  SCO links support
    <M>  RFCOMM protocol support
    [ * ]    RFCOMM TTY support                                                                               
    < >  BNEP protocol support                                                                                                                                                                                                                                       
    <M>  HIDP protocol support                                                                               
    Bluetooth device drivers  ---> 
      <M> HCI USB driver                                                                                       
      [ ]  SCO (voice) support                                                                                 
      < > HCI UART driver                                                                                       
      < > HCI BCM203x USB driver                                                                               
      < > HCI BPA10x USB driver                                                                                 
      < > HCI BlueFRITZ! USB driver                                                                             
      < > HCI VHCI (Virtual HCI device) driver

Hope this helps. Let me know if you're still having problems.

regards,
...drkstr

blueAlien 08-17-2006 03:37 AM

I am currently using the 2.4.31 kernel. I have tried upgrading my kernel to 2.6 before, but I always seem to do something wrong, so I always revert back to 2.4.31. I tried again to go to 2.6, but again something is messed up. I am currently researching what went wrong, and if I can't fix it, then I will post here to with error mesages.

Thanks for all the help so far!

drkstr 08-17-2006 08:59 AM

Quote:

I am currently using the 2.4.31 kernel.
Yup, that is most likley the problem. Let me know how it turns out. Feel free to ask if you still can't get 2.6 up and running.

regards,
...drkstr

blueAlien 08-17-2006 07:29 PM

I only found one readable site out of all the google searching, and wouldn't you know it's a linuxquestions.org thread:

http://www.linuxquestions.org/questi...hreadid=387349

From what I gather, this all has to do with the hd controller in my laptop, which is sata (even though my laptop has an ide hard drive). So, I am going to try the few things that I understood from that thread, and see if they work. Will report back later on progress.

btw, the error message I get is:

Code:

VFS: Cannot open root device "805" or unknown-block(8,5)
Please append a correct "root="boot option
Kernel panic: VFS: Unable to mount root fs on unknown-block(8,5)


drkstr 08-17-2006 11:30 PM

hehe, I thought that might be the problem, but I didn't want to make random guesses before you posted the error.

Try doing a 'make distclean' from within the kernel source before you do you configure/compile. I was unable to tweak the default Slackware kernel back to workable. This is probably my own fault, but I tried many times and failed with the default Slackware 2.6 config. Got it working perfect the first try when I started clean (IE: 'make distclean').

I agree, it's not very easy to find a solution on this. You would think it would appear more often since I got the same result on *every* computer I've tried it on. (sounds like you might have too)

regards,
...drkstr

blueAlien 08-20-2006 08:51 PM

I tried make distclean, and I am still having the same problem, with the same error message. Although, I forgot to make a backup of my old kernel, so now I have two copies of a non-functioning kernel (IE .old).


Maybe I am not doing something right. I am going to try a fresh install on another computer and see if I get the same results when changing the kernel on it.


All times are GMT -5. The time now is 11:22 PM.