Finding a bluetooth kernel module

fa2k

Dabbler
Joined
Jan 9, 2022
Messages
34
I would like to load a kernel module for bluetooth, so I can run bluetoothd in an app for openHAB. I know it's unsupported and could break things.
(Don't spend much time trying to help me - I should really make a VM instead and passthrough, but I'm just trying to avoid some minor pain and overhead)

There seems to be someone who did it in 2017- but the new Scale version doesn't seem to have dpkg.

Does anyone know where (dark hidden corners) I could find a kernel module for BT for TrueNAS-SCALE-23.10.0.1?
 

Arwen

MVP
Joined
May 17, 2014
Messages
3,611
There is a developer mode that enables the ability to add packages and such. I don't know much about it, and it is very new. Any bug found and you want to report, you would have to repeat it on a plain install of SCALE without developer mode enabled.

As how to enable developer mode, I don't remember. A quick search of the forums did not find how that is done.

As for other methods, even if you get one to work, they can disappear with any update. Even if you document how it was done, their is no guarantee that next SCALE release will work exactly the same for the prior work around.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
You could copy the module from a standard Debian installation of the same major version, place it on your data pool somewhere, then supposedly load it in a startup task. Don't know how Linux does this, sorry.
 

fa2k

Dabbler
Joined
Jan 9, 2022
Messages
34
Thanks for the tips both!
1) I could get dpkg to work by making it executable. I don't think it helps me with bluetooth, because the bluetooth modules are normally part of the main linux-image package in Debian, so it doesn't seem to be possible to install them with a deb package.
2) I set up a Debian 12.0 VM and copied across the kernel modules for bluetooth. I couldn't get it to work because of version issues. I don't understand Debian kernel versioning. The kernel package was named something like linux-image-6.0.13, but the package version was 6.1.55-1, almost matching my TrueNAS SCALE version 6.1.55. Anyway I have to give up on this, it will be cleaner and probably less work to move openHAB to a VM.
 
Top