Open mame82 opened 6 years ago
A fixed version of btuart
, which works for me on Pi0w:
#!/bin/bash
if [ "$(cat /proc/device-tree/aliases/uart0)" = "$(cat /proc/device-tree/aliases/serial1)" ] ; then
if [ "$(wc -c /proc/device-tree/soc/gpio@7e200000/uart0_pins/brcm\,pins | cut -f 1 -d ' ')" = "16" ] ; then
# /usr/bin/hciattach /dev/serial1 bcm43xx 3000000 flow -
/usr/bin/btattach -B /dev/ttyAMA0 -P bcm -S 3000000
else
/usr/bin/hciattach /dev/serial1 bcm43xx 921600 noflow -
fi
else
/usr/bin/hciattach /dev/serial1 bcm43xx 460800 noflow -
fi
The package https://github.com/Re4son/re4son-kernel-builder/blob/build-4.14.n/repo/pi-bluetooth_0.1.4%2Bre4son_all.deb provides the btuart bash script.
This script relies on hciattach
Starting
btuart
or hciattach:(seems to search firmware in /etc/firmware)
The dmesg output after starting
btuart
And hcitool:
fix:
The Bluez version used by Kali with your kernel relies on
btattach
After disabling the
hciuart
service (and reboot), this call allows to create a working hci device:Respective
dmesg
output... and
hcitool
outputAdditionally
btattach
deploys thehci_uart
module if needed, this didn't work for me withciattach
.