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.
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.
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:
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:
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.