LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 08-04-2006, 05:54 PM   #1
blueAlien
Member
 
Registered: May 2005
Location: Seattle, WA
Distribution: Slackware 13
Posts: 87

Rep: Reputation: 15
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.

Last edited by blueAlien; 08-04-2006 at 05:56 PM.
 
Old 08-04-2006, 06:52 PM   #2
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
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

Last edited by drkstr; 08-04-2006 at 07:04 PM.
 
Old 08-05-2006, 10:35 AM   #3
blueAlien
Member
 
Registered: May 2005
Location: Seattle, WA
Distribution: Slackware 13
Posts: 87

Original Poster
Rep: Reputation: 15
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.
 
Old 08-05-2006, 11:24 AM   #4
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
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
 
Old 08-10-2006, 07:27 PM   #5
blueAlien
Member
 
Registered: May 2005
Location: Seattle, WA
Distribution: Slackware 13
Posts: 87

Original Poster
Rep: Reputation: 15
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.

Last edited by blueAlien; 08-10-2006 at 07:35 PM.
 
Old 08-11-2006, 02:18 AM   #6
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
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

Last edited by drkstr; 08-11-2006 at 02:20 AM.
 
Old 08-14-2006, 03:05 AM   #7
blueAlien
Member
 
Registered: May 2005
Location: Seattle, WA
Distribution: Slackware 13
Posts: 87

Original Poster
Rep: Reputation: 15
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.
 
Old 08-14-2006, 03:36 AM   #8
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
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
 
Old 08-14-2006, 06:13 AM   #9
blueAlien
Member
 
Registered: May 2005
Location: Seattle, WA
Distribution: Slackware 13
Posts: 87

Original Poster
Rep: Reputation: 15
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.
 
Old 08-14-2006, 08:20 AM   #10
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
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

Last edited by drkstr; 08-14-2006 at 08:27 AM.
 
Old 08-17-2006, 03:37 AM   #11
blueAlien
Member
 
Registered: May 2005
Location: Seattle, WA
Distribution: Slackware 13
Posts: 87

Original Poster
Rep: Reputation: 15
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!
 
Old 08-17-2006, 08:59 AM   #12
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
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
 
Old 08-17-2006, 07:29 PM   #13
blueAlien
Member
 
Registered: May 2005
Location: Seattle, WA
Distribution: Slackware 13
Posts: 87

Original Poster
Rep: Reputation: 15
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)
 
Old 08-17-2006, 11:30 PM   #14
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
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
 
Old 08-20-2006, 08:51 PM   #15
blueAlien
Member
 
Registered: May 2005
Location: Seattle, WA
Distribution: Slackware 13
Posts: 87

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install Bluetooth dongle in RHEL 4 mesharam.amit Linux - Hardware 1 07-11-2006 06:15 PM
How to install Bluetooth dongle in RHEL 4 mesharam.amit Linux - Hardware 1 07-10-2006 04:00 PM
which bluetooth dongle linmith Linux - Networking 1 07-01-2005 04:09 PM
bluetooth dongle keiwu Linux - Hardware 0 02-13-2005 01:50 PM


All times are GMT -5. The time now is 12:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration