Ok, bluetooth DONE!
Here is what I did to make embedded bluetooth work (but not fully tested yet)…
Please run these as root on kvim once it is booted up !
echo "hci_uart" >> /etc/modules
cd /usr/local/bin
vi khadas-bt-init
(…and fill it with the khadas-bt-init on your PC or w/ #! /bin/sh# /etc/init.d/khadas-bt-init#do_start(){ #non mainline: mo - Pastebin.com)
chmod +x khadas-bt-init
update-rc.d khadas-bt-init defaults
wget http://download1339.mediafireuserdownload.com/1pbaw901nrng/18v8miyhefi7vm8/brcm_patchram_plus
chmod +x brcm_patchram_plus
edit /etc/apt/sources.list and uncomment “deb Index of /ubuntu xenial partner”
apt-get update
apt-get install -y bluetooth blueman bluez bluez-tools libbluetooth-dev
sync; reboot
lsmod | grep hci_uart
…then and just let “/usr/local/bin/khadas-bt-init” do its thing (using init.d style) at each bootup (and not that old rc.local !!)
Maybe we would need to take into accnt what /etc/init.d/bluetooth already does ??
Anyway, hooray
right after login, hciconfig now says…
raxy@ivnVimPro:~$ hciconfig
hci0: Type: BR/EDR Bus: UART
BD Address: 44:2C:05:B6:BD:FF ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING
RX bytes:717 acl:0 sco:0 events:41 errors:0
TX bytes:1008 acl:0 sco:0 commands:41 errors:0