06-22-2016, 01:28 PM
no licensing info can be found from the github where it came from.
basically it comes with the firmware and the compiles the applications to attach/load it with it's start script.
It copies the .bin file(s) ti /lib/firmware/rtl_bt and leaves the application script in the build directory.
I personally moved the scripts over to /usr/local/sbin/bluetooth
then created pine64_bluetooth.sh in /usr/local/sbin
pine64_bluetooth.sh contents
#!/bin/bash
# Shell script to install Bluetooth firmware and attach BT part of
# RTL8723BS
echo "Initializing Pine64 Bluetooth Module."
/usr/local/sbin/bluetooth/rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5 > /usr/local/sbin/bluetooth/hciattach.txt 2>&1 &
/bin/sleep 5
/usr/sbin/rfkill unblock 3
/usr/bin/bluetoothctl
pairable on
power on
quit
echo "Pine64 Bluetooth Module Active"
then added a service
bluetooth-module.service
[Unit]
Description=Start Pine64 Bluetooth Module
After=systemd-modules-load.service local-fs.target
[Service]
Type=idle
ExecStart=/usr/local/sbin/pine64_bluetooth.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
no issues on each reboot plus blueman in mate works flawlessly
basically it comes with the firmware and the compiles the applications to attach/load it with it's start script.
It copies the .bin file(s) ti /lib/firmware/rtl_bt and leaves the application script in the build directory.
I personally moved the scripts over to /usr/local/sbin/bluetooth
then created pine64_bluetooth.sh in /usr/local/sbin
pine64_bluetooth.sh contents
#!/bin/bash
# Shell script to install Bluetooth firmware and attach BT part of
# RTL8723BS
echo "Initializing Pine64 Bluetooth Module."
/usr/local/sbin/bluetooth/rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5 > /usr/local/sbin/bluetooth/hciattach.txt 2>&1 &
/bin/sleep 5
/usr/sbin/rfkill unblock 3
/usr/bin/bluetoothctl
pairable on
power on
quit
echo "Pine64 Bluetooth Module Active"
then added a service
bluetooth-module.service
[Unit]
Description=Start Pine64 Bluetooth Module
After=systemd-modules-load.service local-fs.target
[Service]
Type=idle
ExecStart=/usr/local/sbin/pine64_bluetooth.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
no issues on each reboot plus blueman in mate works flawlessly
If you like my work be sure to check out my site or wish to donate to the cause
Cheers
Cheers