Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BlueZ Bluetooth Mesh crypto kernel modules missing, bluetooth adapters without public address cannot be initialized. #3322

Closed
zalatnaicsongor opened this issue Apr 22, 2024 · 0 comments · Fixed by #3330
Labels
board/ova Open Virtual Appliance (Virtual Machine) bug

Comments

@zalatnaicsongor
Copy link

Describe the issue you are experiencing

Some bluetooth HCI adapters, such as NRF52 based ones cannot be initialized due to the lack of the following kernel modules:

	CONFIG_CRYPTO_USER
	CONFIG_CRYPTO_USER_API
	CONFIG_CRYPTO_USER_API_AEAD
	CONFIG_CRYPTO_USER_API_HASH
	CONFIG_CRYPTO_USER_API_SKCIPHER

	CONFIG_CRYPTO_AES
	CONFIG_CRYPTO_CCM
	CONFIG_CRYPTO_AEAD
	CONFIG_CRYPTO_CMAC

See: https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/README#n64

What operating system image do you use?

ova (for Virtual Machines)

What version of Home Assistant Operating System is installed?

12.2

Did you upgrade the Operating System.

Yes

Steps to reproduce the issue

Attach a bluetooth controller such as an NRF52 based one (https://docs.zephyrproject.org/latest/samples/bluetooth/hci_usb/README.html) and you'll observe the following output:

Apr 22 00:13:59 homeassistant bluetoothd[2085427]: src/adapter.c:get_static_addr() Unable t
Apr 22 00:13:59 homeassistant bluetoothd[2085427]: src/adapter.c:get_static_addr() Failed t
Apr 22 00:13:59 homeassistant bluetoothd[2085427]: No Bluetooth address for index 0

Anything in the Supervisor logs that might be useful for us?

-

Anything in the Host logs that might be useful for us?

-

System information

No response

Additional information

See: raspberrypi/linux#3628

@sairon sairon added the board/ova Open Virtual Appliance (Virtual Machine) label Apr 26, 2024
sairon added a commit that referenced this issue Apr 26, 2024
Enable libkcapi in generic kernel config. The bloat is minimal and the
options are enabled on most distributions. These modules are also needed
for Bluetooth Mesh and adding them fixes compatibility with some HCI USB
adapters.

Fixes #3322
sairon added a commit that referenced this issue Apr 26, 2024
Enable libkcapi in generic kernel config. The bloat is minimal and the
options are enabled on most distributions. These modules are also needed
for Bluetooth Mesh and adding them fixes compatibility with some HCI USB
adapters.

Fixes #3322
sairon added a commit that referenced this issue Apr 30, 2024
Enable libkcapi in generic kernel config. The bloat is minimal and the
options are enabled on most distributions. These modules are also needed
for Bluetooth Mesh and adding them fixes compatibility with some HCI USB
adapters.

Fixes #3322

(cherry picked from commit 67315f8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
board/ova Open Virtual Appliance (Virtual Machine) bug
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants