Thank you for working on openwrt-support, as i cannot help here much…which version of openwrt do you use? as for current kernel, i guess you are close to upstream
I’m not sure i tested bluetooth on 5.4,but it is marked in table as working…have you build as module and loaded after running wifi.sh (imho needs blacklisting to not be loaded on bootup)?
seems these options are disabled in my 5.4-main defconfig
CONFIG_MTK_COMBO_BT=m
CONFIG_MTK_COMBO_BT_HCI=y
currently compiling, then i test it like here
- first call wifi.sh (or at least call wmt_loader + stp-uart-launcher)
- then load BT-module “modprobe stp_chrdev_bt”
mhm…still no chrdev-module…
drivers/misc/mediatek/connectivity/common/conn_soc/linux/pub/stp_chrdev_bt.o is compiled, but not the *.ko
made mrproper, and compile again, still no ko-file for bluetooth
needed to change makefile from obj-y to obj-m (or obj-$(CONFIG_MTK_COMBO_BT)) like it’s done here:
after that i get BT working (running wifi.sh and the modprobe for bt-module)…have successfully paired my smartphone
apt install bluez
root@bpi-r2:~# bluetoothctl
Agent registered
[bluetooth]# agent on
Agent is already registered
[bluetooth]# power on
Changing power on succeeded
[bluetooth]# discoverable yes
Changing discoverable on succeeded
[CHG] Controller 00:00:46:85:90:01 Discoverable: yes
[bluetooth]# scan on
Discovery started
...
[CHG] Controller 00:00:46:85:90:01 Discoverable: yes
[CHG] Device 04:B4:XX:XX:XX:XX RSSI: -29
[CHG] Device 04:B4:XX:XX:XX:XX RSSI: -48
[CHG] Device 04:B4:XX:XX:XX:XX Connected: yes