VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Bluetooth on VL7 - Errors from daemon.  (Read 2387 times)

pierce.jason

  • Packager
  • Vectorite
  • ****
  • Posts: 250
Bluetooth on VL7 - Errors from daemon.
« on: January 15, 2012, 03:14:07 pm »

Has anyone else used bluetooth under VL7? I'm trying to setup IP networking over bluetooth and have discovered some things that seem to be missing in the default packages.

Code: [Select]
root:# /etc/init.d/bluetooth restart
which: no hcid in (/sbin:/bin:/usr/sbin:/usr/bin)
which: no sdpd in (/sbin:/bin:/usr/sbin:/usr/bin)
Stopping Bluetooth subsystem:  pand dund rfcomm hidd sdpd hcid.
Starting Bluetooth subsystem: Can't open RFCOMM control socket: Protocol not supported
 rfcomm.

While trying to configure VL7 Gold for bluetooth, I've discovered that our default 3.0.8 kernel is missing some modules that will most likely be needed for bluetooth.

Download and install the kernel source.
Code: [Select]
root:# wget http://vectorlinux.osuosl.org/veclinux-7.0/kernels/3.0.8-1vl70/kernel-src-3.0.8-i686-1vl70.txz
root:# installpkg kernel-src-3.0.8-i686-1vl70.txz

Compile the protocol modules:
Code: [Select]
root:# cd /usr/src/linux/

root:# BluetoothCFG="CONFIG_BT_L2CAP=y CONFIG_BT_SCO=y CONFIG_BT_RFCOMM=m CONFIG_BT_BNEP=m CONFIG_BT_BNEP_MC_FILTER=y CONFIG_BT_BNEP_PROTO_FILTER=y CONFIG_BT_CMTP=m CONFIG_BT_HIDP=m"

root:# make $BluetoothCFG M=net/bluetooth/bnep/

root:# make $BluetoothCFG M=net/bluetooth/cmtp/

root:# make $BluetoothCFG M=net/bluetooth/hidp/

root:# make  $BluetoothCFG M=net/bluetooth/rfcomm/

Ask the kernel source tree to install the new modules for you:
Code: [Select]
root:# make modules_install M=net/bluetooth/*/
  INSTALL net/bluetooth/bnep/bnep.ko
  INSTALL net/bluetooth/cmtp/cmtp.ko
  INSTALL net/bluetooth/hidp/hidp.ko
  INSTALL net/bluetooth/rfcomm/rfcomm.ko
  DEPMOD  3.0.8


Now you have rfcomm module and the "Protocol not supported" error should go away. I haven't subdued the errors of missing hcid and sdpd yet. Perhaps they are not important... we will see.
« Last Edit: January 15, 2012, 03:16:21 pm by pierce.jason »
Logged
pierce.jason
Email: $(echo -e "moc\x2eliamg\x40nosaj.ecreip" | rev)

pierce.jason

  • Packager
  • Vectorite
  • ****
  • Posts: 250
Re: Bluetooth on VL7 - Errors from daemon.
« Reply #1 on: January 15, 2012, 05:54:02 pm »

Additionally, the bluetooth.ko module needed recompiled for L2 support. I'll append this later with more details on this.

It looks like complaints about the two missing executable (hcid, sdpd) are irrelevant, relics from an older version of bluetooth tools.
Logged
pierce.jason
Email: $(echo -e "moc\x2eliamg\x40nosaj.ecreip" | rev)

danthemannewtolinux

  • Vectorite
  • ***
  • Posts: 107
Re: Bluetooth on VL7 - Errors from daemon.
« Reply #2 on: February 28, 2012, 04:53:51 pm »

I had this problem with bluetooth, it wouldn't detect my ps3 bluetooth dongle, i updated to the latest kernel and the rfcomm problem went away but still cant connect to my controller with btsixa
Logged