I have bought a Bluetooth Dongle 5.0 (chipset Realtek 8761B). . I installed the firmware as per below code and everything went fine.
After that I upgraded kernel two times and after every upgrade Bluetooth stopped working as if there were no firmware. The only solution was installing firmware again and
removing the previous Bluetooth connections and creating new ones.
I believed that installing the firmware as per below code, they will be maintained upon every kernel upgrade like the case is with the USB dongle that was installed once and maintained.
Is there a solution other that reinstalling?
Regards
Code: Select all
administrador@debian:~/Escritorio/LINUX_DRIVER$ LC_ALL=C sudo make install INTERFACE=usb
[sudo] password for administrador:
mkdir -p /lib/modules/6.1.0-11-amd64/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/administrador/Escritorio/LINUX_DRIVER/usb'
rmmod btusb
rmmod: ERROR: Module btusb is not currently loaded
make[1]: [Makefile:7: install] Error 1 (ignored)
mv /lib/modules/6.1.0-11-amd64/kernel/drivers/bluetooth/btusb.ko /lib/modules/6.1.0-11-amd64/kernel/drivers/bluetooth/btusb_bak
mv: cannot stat '/lib/modules/6.1.0-11-amd64/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/administrador/Escritorio/LINUX_DRIVER/usb/bluetooth_usb_driver'
make -C /lib/modules/6.1.0-11-amd64/build M=/home/administrador/Escritorio/LINUX_DRIVER/usb/bluetooth_usb_driver modules
make[3]: Entering directory '/usr/src/linux-headers-6.1.0-11-amd64'
CC [M] /home/administrador/Escritorio/LINUX_DRIVER/usb/bluetooth_usb_driver/rtk_coex.o
CC [M] /home/administrador/Escritorio/LINUX_DRIVER/usb/bluetooth_usb_driver/rtk_misc.o
CC [M] /home/administrador/Escritorio/LINUX_DRIVER/usb/bluetooth_usb_driver/rtk_bt.o
LD [M] /home/administrador/Escritorio/LINUX_DRIVER/usb/bluetooth_usb_driver/rtk_btusb.o
MODPOST /home/administrador/Escritorio/LINUX_DRIVER/usb/bluetooth_usb_driver/Module.symvers
CC [M] /home/administrador/Escritorio/LINUX_DRIVER/usb/bluetooth_usb_driver/rtk_btusb.mod.o
LD [M] /home/administrador/Escritorio/LINUX_DRIVER/usb/bluetooth_usb_driver/rtk_btusb.ko
BTF [M] /home/administrador/Escritorio/LINUX_DRIVER/usb/bluetooth_usb_driver/rtk_btusb.ko
Skipping BTF generation for /home/administrador/Escritorio/LINUX_DRIVER/usb/bluetooth_usb_driver/rtk_btusb.ko due to unavailability of vmlinux
make[3]: Leaving directory '/usr/src/linux-headers-6.1.0-11-amd64'
make[2]: Leaving directory '/home/administrador/Escritorio/LINUX_DRIVER/usb/bluetooth_usb_driver'
cp -f ./bluetooth_usb_driver/rtk_btusb.ko /lib/modules/6.1.0-11-amd64/kernel/drivers/bluetooth/rtk_btusb.ko
depmod -a 6.1.0-11-amd64
make -C ./bluetooth_usb_driver clean
make[2]: Entering directory '/home/administrador/Escritorio/LINUX_DRIVER/usb/bluetooth_usb_driver'
rm -rf *.o *.mod.c *.mod.o *.ko *.symvers *.order *.a
make[2]: Leaving directory '/home/administrador/Escritorio/LINUX_DRIVER/usb/bluetooth_usb_driver'
echo "install rtk_btusb success!"
install rtk_btusb success!
make[1]: Leaving directory '/home/administrador/Escritorio/LINUX_DRIVER/usb'
administrador@debian:~/Escritorio/LINUX_DRIVER$