We must stop getty now, You must physically disconnect your USB-UART-Adapter!
Using /dev/ttyS0 for Bluetooth
Power cycle rockpi BT-section
Start uploader
root@rockpi4b:/usr/local/bin# Done setting line discpline
Thank you very much, that helps instantly after a manuell search for adapter on the GUI.
But how can I integrate this in the start prozess? Sorry for that (maybe) stupid question, but I´m a Linux Dummie.
And naturally BT is not working. Image written to emmc is rockpi4b-ubuntu-bionic-minimal-20190104_2101-gpt. How to proceed to get this working? no armlbian.
Faced the same issue. Switched from Armbian to Ubuntu since I did not get iptables there.
But with this ubuntu, no bluetooth: root@linux:~# rfkill list all
0: bt_default: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: brcmfmac-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
root@linux:~#
root@linux:~# sudo hcitool dev
Devices:
root@linux:~#
Running /usr/local/bin/test_bt.sh gives errors: root@linux:~# sudo /usr/local/bin/test_bt.sh
Rockchip Linux WifiBt init
BT TTY: /dev/ttyS0
Wifi driver is ready for now…
wifibt_load_driver
uevent path:/sys/bus/sdio/devices/./uevent
uevent path:/sys/bus/sdio/devices/…/event
uevent path:/sys/bus/sdio/devices/mmc2:0001:1/event
line: DRIVER=bcmsdh_sdmmc
, prefix: SDIO_ID=,
line: SDIO_CLASS=00
, prefix: SDIO_ID=.
line: SDIO_ID=02D0:A9BF
, prefix: SDIO_ID=.
pid:vid : 02d0:a9bf
found device pid:vid : 02d0:a9bf
wifi detectd return ret:0
SDIO WIFI identify sucess
check_wifi_chip_type_string: AP6255
Cannot create “/data/wifi_chip”: No such file or directorywifibt_load_driver matched ko file path /system/lib/modules/bcmdhd.ko
wifibt_load_driver insmod /system/lib/modules/bcmdhd.ko
root@linux:~# insmod: ERROR: could not load module /system/lib/modules/bcmdhd.ko: No such file or directory
wifibt_load_driver insmod /system/lib/modules/bcmdhd.ko failed
root@linux:~#
Installed bluetooth and it’s running: root@linux:~# systemctl status bluetooth
â—Ź bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; vendor preset: enabled)
Active: active (running) since Sat 2019-03-16 11:29:48 EET; 42s ago
Docs: man:bluetoothd(8)
Main PID: 533 (bluetoothd)
Status: “Running”
Tasks: 1 (limit: 4572)
CGroup: /system.slice/bluetooth.service
└─533 /usr/lib/bluetooth/bluetoothd
Mar 16 11:29:48 linux systemd[1]: Starting Bluetooth service…
Mar 16 11:29:48 linux bluetoothd[533]: Bluetooth daemon 5.48
Mar 16 11:29:48 linux systemd[1]: Started Bluetooth service.
Mar 16 11:29:48 linux bluetoothd[533]: Starting SDP server
Mar 16 11:29:48 linux bluetoothd[533]: kernel lacks bnep-protocol support
Mar 16 11:29:48 linux bluetoothd[533]: System does not support network plugin
Mar 16 11:29:48 linux bluetoothd[533]: Bluetooth management interface 1.10 initialized
root@linux:~#
I have troubleshooted and tested with different images and after i finally got iptables working I’d like to stick with ubuntu. But if BT does not start to work I need to continue finding working image with iptables and bt…
Did following: root@rockpi:~# apt-get install bluez ap6256-firmware
Reading package lists… Done
Building dependency tree
Reading state information… Done
bluez is already the newest version (5.48-0ubuntu3.1).
ap6256-firmware is already the newest version (0.3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@rockpi:~#
root@rockpi:~# echo 1 > /sys/class/rfkill/rfkill0/state
root@rockpi:~# hciconfig
root@rockpi:~#
Decided to reboot because output of the command hciconfig was empty. After reboot:
Hi guys,
I am a newbie in Linux.
I managed to get Bluetooth connection for my Bluetooth 3.0 keyboard with built in keypad when disable the wifi connection.
Can’t make both BT and WIFI working together…
Any advice?
Don
root@rockip4b:~# hciconfig -a
root@rockip4b:~#
root@rockip4b:~# rfkill list all
0: bt_default: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: brcmfmac-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
root@rockip4b:~#
I have done all the tricks mentioned on this thread w/o accepted result. Still no bluetooth and as a bonus, wifi keeps disconnecting. Any ideas how to proceed? Thanks
if [ -f /etc/FIRST_BOOT ]; then
apt-get install --reinstall rockchip-fstab
rm /etc/FIRST_BOOT
fi
exit 0
Then I reboot and run,
root@rockpi:/home/rock# rfkill list all
0: bt_default: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: brcmfmac-wifi: Wireless LAN
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
root@rockpi:/home/rock# hciconfig -a
hci0: Type: Primary Bus: UART
BD Address: 43:45:C5:00:1F:AC ACL MTU: 1021:8 SCO MTU: 64:1
UP RUNNING
RX bytes:904 acl:0 sco:0 events:66 errors:0
TX bytes:5573 acl:0 sco:0 commands:71 errors:0
Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
Link policy: RSWITCH SNIFF
Link mode: SLAVE ACCEPT
Can’t read local name on hci0: Connection timed out (110)
root@rockpi:/home/rock# hcitool scan
Scanning …
Inquiry failed: Connection timed out