Bluetooth device on gameshell

sudo su

cat <<EOF >/etc/rc.local
#!/bin/sh -e
sleep 15
brcm_patchram_plus --patchram /lib/firmware/brcm/bcm43438a0.hcd --enable_hci --bd_addr B0:F1:EC:2D:07:5B --no2bytes --tosleep 5000 /dev/ttyS1 &
EOF
chmod +x /etc/rc.local
systemctl daemon-reload
systemctl start rc-local
systemctl status rc-local

systemctl enable bluetooth
reboot

use rc.local to auto set bluetooth everytime rebooted

add two lines in /etc/systemd/system/dbus-org.bluez.service

Restart=always
RestartSec=3

under [Service] section
after line ProtectSystem=full

to prevent bluetoothd unexpected crash