bigtreetech / CB2

The official repo for the BTT Pi2 and CB2
https://bttwiki.com/Pi2.html
46 stars 6 forks source link

Bluetooth USB dongle fails to function moving from CB1 to CB2 on M8P #29

Open CMahk opened 1 month ago

CMahk commented 1 month ago

Hello, I am using the following Bluetooth 5.3 USB dongle on my M8P + CB2: https://www.amazon.com/gp/product/B0BL3BTVFJ

It didn't work out of the box for the CB1, requiring that rtl8761bu_fw.bin be downloaded elsewhere and provided in /usr/lib/firmware/rtl_bt/ as running dmesg showed that the firmware was missing.

I am experiencing the same problem when using the CB2 now, however it instead calls for rtl8761a_fw.bin and its subsequent config. Once again, I grabbed the firmware from Realtek's driver repo, however the USB dongle still fails to load with the following output from dmesg:

biqu@bigtreetech-cb2:~$ dmesg | grep -i blue [ 1.183458] Bluetooth: Core ver 2.22 [ 1.183514] Bluetooth: HCI device and connection manager initialized [ 1.183527] Bluetooth: HCI socket layer initialized [ 1.183535] Bluetooth: L2CAP socket layer initialized [ 1.183573] Bluetooth: SCO socket layer initialized [ 3.332951] Bluetooth: RFCOMM socket layer initialized [ 3.332982] Bluetooth: RFCOMM ver 1.11 [ 3.332993] Bluetooth: HIDP (Human Interface Emulation) ver 1.2 [ 3.333000] Bluetooth: HIDP socket layer initialized [ 3.334675] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: uart_rts_gpios = 77. [ 3.334696] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,reset_gpio = 80. [ 3.334706] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,wake_gpio = 81. [ 3.334716] [BT_RFKILL]: bluetooth_platdata_parse_dt: get property: BT,wake_host_irq = 79. [ 4.139925] usb 5-1.2: Product: Bluetooth 5.3 Radio [ 10.445222] systemd[1]: /lib/systemd/system/rk3399-bluetooth.service:11: Support for option SysVStartPriority= has been removed and it is ignored [ 13.724299] Bluetooth: hci0: command 0x1001 tx timeout [ 21.834080] Bluetooth: hci0: RTL: HCI_OP_READ_LOCAL_VERSION failed (-110)

I've found other such cases online for other distros, and it seems like it's an issue when using an older kernel? https://forum.libreelec.tv/thread/23452-how-to-install-mpow-bluetooth-dongle-driver/ https://gist.github.com/rometsch/dfd24fb09c85c1ad2f25223dc1481aaa

CMahk commented 1 month ago

I recognize that bluetooth is supposedly supported onboard with the CB2, but the latest release at this moment (v1.0.5) does not seem to recognize as such.

I built Debian 12 from your guys' Armbian fork via the CB2 branch and things seem to be better, albeit without the extra Klipper stuff, so I'll just install it all via KIAUH and live with it for now.