tedboudros / tplink-ub500-linux-patch-guide Goto Github PK
View Code? Open in Web Editor NEWA guide on how to get the UB500 bluetooth dongle working on <5.16 linux kernels!
A guide on how to get the UB500 bluetooth dongle working on <5.16 linux kernels!
Hello there!
I recently purchased the tplink ub500 after I checked that it is supported for my kernel (6.4.0). However, whenever I try to use it using bluetoothctl
of blueman-manager
, the result is the same: "No controller available" and "No adapter(s) found"
I downloaded the firmware as specified but that did not help. I then went through the entire patch, step-by-step and did not encounter any errors. But the end result was the same. The adapter is not detected for use by Bluetooth but is detected when I run lsusb
.
Any idea what I can do or what might be happening?
Hello,
Thanks a lot for the guide. It's very helpful !
I met an issue with the sudo modprobe -v btusb
command, though.
insmod /lib/modules/5.15.0-52-generic/kernel/drivers/bluetooth/btusb.ko
modprobe: ERROR: could not insert 'btusb': Invalid argument
Any idea ? Thanks
Hi, There Thanks for sharing this guided readme file really helpful,
I've to admit i am newbie to linux and this could me my mis understanding,
I've been able to follow the guides till mid step 3
i'm having issues at : Sign the compiled patched file btusb.ko: linux-5.11/drivers/bluetooth and run
i am running this comand : kmodsign sha512 MOK.priv MOK.der btusb.ko
at diretory : /home/noob/Desktop/linux-5.14
**I'am Getting This Error : **
MOK.der btusb.ko
At main.c:281:
Shuld i change the current dir?
I wish to know a bit about this section, any help is really appricated :)
Thanks Again for making this guide 👍🏻
Need your help...
I am trying to compile this patch for the kernel version 5.4-132 in Ubuntu.... and after making all proposed changes I got the following erro.
Could you please help me what is wrong and how to fix it.
Thanks in advance.
`Step 4: Compile modules.
make: entering directory «/usr/src/linux-headers-5.4.0-132-generic»
make: entering directory «/usr/src/linux-headers-5.4.0-132-generic»
Make 1 done.
make: entering directory «/usr/src/linux-headers-5.4.0-132-generic»
CC [M] /home/yuri/Downloads/FIX_UB_500_BT_Stick/linux-5.4.132/drivers/bluetooth/hci_vhci.o
CC [M] /home/yuri/Downloads/FIX_UB_500_BT_Stick/linux-5.4.132/drivers/bluetooth/hci_ldisc.o
/home/yuri/Downloads/FIX_UB_500_BT_Stick/linux-5.4.132/drivers/bluetooth/hci_ldisc.c: In function ‘hci_uart_init’:
/home/yuri/Downloads/FIX_UB_500_BT_Stick/linux-5.4.132/drivers/bluetooth/hci_ldisc.c:836:23: error: assignment to ‘ssize_t (*)(struct tty_struct *, struct file *, unsigned char , size_t)’ {aka ‘long int ()(struct tty_struct *, struct file *, unsigned char , long unsigned int)’} from incompatible pointer type ‘ssize_t ()(struct tty_struct *, struct file *, unsigned char , size_t, void **, long unsigned int)’ {aka ‘long int ()(struct tty_struct *, struct file *, unsigned char *, long unsigned int, void **, long unsigned int)’} [-Werror=incompatible-pointer-types]
836 | hci_uart_ldisc.read = hci_uart_tty_read;
| ^
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:270: /home/yuri/Downloads/FIX_UB_500_BT_Stick/linux-5.4.132/drivers/bluetooth/hci_ldisc.o]
Error 1
make: *** [Makefile:1765: /home/yuri/Downloads/FIX_UB_500_BT_Stick/linux-5.4.132/drivers/bluetooth] Ошибка 2
make: leaving directory «/usr/src/linux-headers-5.4.0-132-generic»
Make 2 done.`
There seems to be another version for both this and the 4.0 dongle. Only found one mention of them where it was said that they're the same but was never sure.
Have you been able to tell if there was a change in chipset or firmware or whatever?
Hi there,
I got an error when I build ko file.
Ubuntu 20.04
error: ‘HCI_ISODATA_PKT’ undeclared (first use in this function); did you mean ‘HCI_SCODATA_PKT’?
181 | case HCI_ISODATA_PKT:
| ^~~~~~~~~~~~~~~
| HCI_SCODATA_PKT
/home/jchou20/Downloads/linux-5.11/drivers/bluetooth/hci_vhci.c:181:7: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [scripts/Makefile.build:270: /home/jchou/Downloads/linux-5.11/drivers/bluetooth/hci_vhci.o] Error 1
make: *** [Makefile:1778: /home/jchou/Downloads/linux-5.11/drivers/bluetooth] Error 2
make: Leaving directory '/usr/src/linux-headers-5.4.0-174-generic'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.