I have searched the existing open and closed issues
Required Information
DietPi version : 8.25
Distro version : bullseye
Kernel version : Linux DietPi 5.15.76-rockchip64 #22.08.8 SMP PREEMPT Sun Oct 30 10:57:32 CET 2022 aarch64 GNU/Linux
Architecture : arm64
SBC model : Generic Rockchip RK3399 (aarch64) (orange pi 4 lts)
Steps to reproduce
Enable Bluetooth from dietpi-config
See Bluetooth status
Jan 01 13:27:08 DietPi systemd[1]: Starting Bluetooth service...
Jan 01 13:27:08 DietPi bluetoothd[14297]: Bluetooth daemon 5.55
Jan 01 13:27:08 DietPi systemd[1]: Started Bluetooth service.
Jan 01 13:27:08 DietPi bluetoothd[14297]: Starting SDP server
Jan 01 13:27:08 DietPi bluetoothd[14297]: Bluetooth management interface 1.21 initialized
Run sudo bluetoothctl
Run show to list Bluetooth adapter, got No default controller available
Try to check status hciuart service, got Unit hciuart.service could not be found
Is there any way to fix the corruption without wipe clean? My system is still fine.
update: I manually install the Bluetooth package, btusb and bnep, via apt and modprob it got succeded and the bluetoothctl is running. But still no adapter found.
Maybe we lack kernel that must be installed on orange pi 4 lts?
update 2: the one making segmentation fault is sprdbt_tty kernel
I just installed it manually before the Bluetooth, and the installation was successful (I got no segmentation fault).
Back to the original problem, I still can’t detect my Bluetooth device. I will just buy a USB Bluetooth dongle. Will update back if the Bluetooth shown.
Are you sure that a hciuart.service is required in this case, i.e. whether onboard Bluetooth is really internally attached via UART interface?
The sprdbt_tty module is correct for Orange Pi Zero 3 and Orange Pi 3B, but not sure whether the Orange Pi 4 uses the same chip/driver, actually I doubt it, and hence this error is unrelated.
dietpi-set_hardware indeed loops through all known Bluetooth drivers and tries to load the modules. The error output is muted, but I guess this segmentation fault is thrown by the kernel itself and hence cannot be muted via shell redirect. I just excluded this particular module on all devices but Orange Pi Zero 3 and 3B.
This will be natively implemented into dietpi-config with next release, using an own DEB package with the hciattach_opi binary and sprd-bluetooth.service: v9.8 · MichaIng/DietPi@e857d43 · GitHub