Install bluetooth adapter

You have a problem with Salix? Post here and we'll do what we can to help.
bradnag
Posts: 48
Joined: 1. Nov 2022, 23:38

Install bluetooth adapter

Post by bradnag »

Hi Folks,

I am trying to install an USB Bluetooth adapter.

Code: Select all

lsusb
Bus 002 Device 004: ID 046d:c52f Logitech, Inc. Unifying Receiver
Bus 002 Device 003: ID 0bda:8771 Realtek Semiconductor Corp. Bluetooth Radio
Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 04f2:b128 Chicony Electronics Co., Ltd USB2.0 UVC WebCam
Bus 001 Device 003: ID 0bda:0138 Realtek Semiconductor Corp. RTS5138 Card Reader Controller
Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I have the drivers provided with the device but I do not know how to install this rtk_btusb module which is not found as you can see bellow:

Code: Select all

root@toshiba//home/brad/Downloads/20201202_LINUX_BT_DRIVER# make install INTERFACE=all
mkdir -p /lib/modules/5.15.161/kernel/drivers/bluetooth
Start Realtek Bluetooth USB driver installation
mkdir -p /lib/firmware
Copy rtkbt-firmware/lib/firmware/rtl*_fw to /lib/firmware
cp -a rtkbt-firmware/lib/firmware/rtl*_fw /lib/firmware
Copy rtkbt-firmware/lib/firmware/rtl*_config /lib/firmware
cp -a rtkbt-firmware/lib/firmware/rtl*_config /lib/firmware
make -C usb install
make[1]: Entering directory '/home/brad/Downloads/20201202_LINUX_BT_DRIVER/usb'
rmmod btusb
rmmod: ERROR: Module btusb is not currently loaded
make[1]: [Makefile:7: install] Error 1 (ignored)
mv /lib/modules/5.15.161/kernel/drivers/bluetooth/btusb.ko /lib/modules/5.15.161/kernel/drivers/bluetooth/btusb_bak
mv: cannot stat '/lib/modules/5.15.161/kernel/drivers/bluetooth/btusb.ko': No such file or directory
make[1]: [Makefile:8: install] Error 1 (ignored)
rmmod rtk_btusb
rmmod: ERROR: Module rtk_btusb is not currently loaded
make[1]: [Makefile:9: install] Error 1 (ignored)
make -C ./bluetooth_usb_driver
make[2]: Entering directory '/home/brad/Downloads/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver'
make -C /lib/modules/5.15.161/build M=/home/brad/Downloads/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver modules
make[3]: Entering directory '/home/brad/Downloads/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver'
make[3]: *** /lib/modules/5.15.161/build: No such file or directory.  Stop.
make[3]: Leaving directory '/home/brad/Downloads/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver'
make[2]: *** [Makefile:10: all] Error 2
make[2]: Leaving directory '/home/brad/Downloads/20201202_LINUX_BT_DRIVER/usb/bluetooth_usb_driver'
make[1]: *** [Makefile:10: install] Error 2
make[1]: Leaving directory '/home/brad/Downloads/20201202_LINUX_BT_DRIVER/usb'
make: *** [Makefile:28: install] Error 2
root@toshiba//home/brad/Downloads/20201202_LINUX_BT_DRIVER#
On other Distros the adapter installed flawless.

Thanks!

P.S. I apologize, I forgot to mention, this is Salix
User avatar
gapan
Salix Wizard
Posts: 6369
Joined: 6. Jun 2009, 17:40

Re: Install bluetooth adapter

Post by gapan »

You need to install the kernel-source package.
Image
Image
bradnag
Posts: 48
Joined: 1. Nov 2022, 23:38

Re: Install bluetooth adapter

Post by bradnag »

I installed the kernel-source package and rebooted. Trying to install de drivers again and I got the same "btusb not loaded". Tried to load manual:

Code: Select all

modprobe btusb
modprobe: ERROR: could not insert 'btusb': Unknown symbol in module, or unknown parameter (see dmesg)

Code: Select all

root@toshiba//home/brad/Downloads/20201202_LINUX_BT_DRIVER# modprobe -vv btusb
modprobe: INFO: custom logging function 0x40c270 registered
insmod /lib/modules/5.15.161/kernel/drivers/bluetooth/btusb.ko reset=1 
modprobe: ERROR: could not insert 'btusb': Unknown symbol in module, or unknown parameter (see dmesg)
modprobe: INFO: context 0x1b344b0 released
root@toshiba//home/brad/Downloads/20201202_LINUX_BT_DRIVER# 
User avatar
gapan
Salix Wizard
Posts: 6369
Joined: 6. Jun 2009, 17:40

Re: Install bluetooth adapter

Post by gapan »

What is this driver and where are you getting it from?

Which kernel packages do you have installed? Run

Code: Select all

ls /var/log/packages/kernel*
and post the output here.
Image
Image
bradnag
Posts: 48
Joined: 1. Nov 2022, 23:38

Re: Install bluetooth adapter

Post by bradnag »

both windows and linux drivers came with the adapter (20201202_LINUX_BT_DRIVER).
kernel 5.15.161

Code: Select all

ls /var/log/packages/kernel*
/var/log/packages/kernel-firmware-20240606_90df68d-noarch-1  /var/log/packages/kernel-modules-5.15.161-x86_64-1
/var/log/packages/kernel-headers-5.15.161-x86-1              /var/log/packages/kernel-source-5.15.161-noarch-1
/var/log/packages/kernel-huge-5.15.161-x86_64-1
root@toshiba//home/brad/Downloads/20201202_LINUX_BT_DRIVER# 

Code: Select all

slapt-get -i kernel-huge kernel-headers kernel-modules kernel-firmware kernel-source
Reading Package Lists...Done
kernel-huge is up to date.
kernel-headers is up to date.
kernel-modules is up to date.
kernel-firmware is up to date.
kernel-source is up to date.
0 upgraded, 0 reinstalled, 0 newly installed, 0 to remove, 0 not upgraded.

Done
User avatar
gapan
Salix Wizard
Posts: 6369
Joined: 6. Jun 2009, 17:40

Re: Install bluetooth adapter

Post by gapan »

Is there anywhere I can download that driver and try it?

What happens if you run

Code: Select all

sudo modprobe btusb
?
Image
Image
bradnag
Posts: 48
Joined: 1. Nov 2022, 23:38

Re: Install bluetooth adapter

Post by bradnag »

I will be back Monday and continue.
I will let you know about downloading. https://www.xmpow.com/en-ca/products/m ... B-HAPnqc7B

Yes, I did that before and this is the output:

Code: Select all

root@toshiba//home/brad/Downloads/20201202_LINUX_BT_DRIVER# modprobe -vv btusb
modprobe: INFO: custom logging function 0x40c270 registered
insmod /lib/modules/5.15.161/kernel/drivers/bluetooth/btusb.ko reset=1 
modprobe: ERROR: could not insert 'btusb': Unknown symbol in module, or unknown parameter (see dmesg)
modprobe: INFO: context 0x1b344b0 released
root@toshiba//home/brad/Downloads/20201202_LINUX_BT_DRIVER#
User avatar
gapan
Salix Wizard
Posts: 6369
Joined: 6. Jun 2009, 17:40

Re: Install bluetooth adapter

Post by gapan »

I suggest you reinstall the kernel-modules package and reboot. Then try loading the btusb module again. I'm guessing that the make install you ran replaced it.
Image
Image
bradnag
Posts: 48
Joined: 1. Nov 2022, 23:38

Re: Install bluetooth adapter

Post by bradnag »

what about this below:

Code: Select all

mv /lib/modules/5.15.161/kernel/drivers/bluetooth/btusb.ko /lib/modules/5.15.161/kernel/drivers/bluetooth/btusb_bak
mv: cannot stat '/lib/modules/5.15.161/kernel/drivers/bluetooth/btusb.ko': No such file or directory
I can confirm /lib/modules/5.15.161/kernel/drivers/bluetooth/btusb_bak is there

and I supposed btusb.ko was renamed to btusb.bak.
User avatar
gapan
Salix Wizard
Posts: 6369
Joined: 6. Jun 2009, 17:40

Re: Install bluetooth adapter

Post by gapan »

Did you run that yourself or is it in the Makefile?

In any case, delete it, reinstall the kernel-modules package and see if you can load it with modprobe.
Image
Image
Post Reply