Bluetooth and rtk_hciattach

For rtk_hciattach I am using the source code from here :

wifi is working.

When I compile rtk_hciattach from that repo, I get the following :

# rtk_hciattach -n -s 115200 /dev/ttyS4 rtk_h5
Realtek Bluetooth :Realtek Bluetooth init uart with init speed:115200, type:HCI UART H5
Realtek Bluetooth :Realtek hciattach version 3.1.8905594.20200602-140152 

Realtek Bluetooth :Use epoll
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth ERROR: Retransmission exhausts

I see the problem for now, the hci_uart module isn’t built

OK now I have a working hci_uart module.
The same problem persists :

# modprobe hci_uart
# lsmod
Module                  Size  Used by    Tainted: G  
hci_uart               40960  0 

# dmesg
[   60.784351] Bluetooth: HCI UART driver ver 2.2.407c1dd.20200602-140151
[   60.791010] Bluetooth: HCI H4 protocol initialized
[   60.795876] Bluetooth: HCI Realtek H5 protocol initialized
[   60.801439] rtk_btcoex: rtk_btcoex_init: version: 1.2
[   60.806691] rtk_btcoex: create workqueue
[   60.810856] rtk_btcoex: alloc buffers 1792, 2432 for ev and l2

# rtk_hciattach -n -s 115200 /dev/ttyS4 rtk_h5
Realtek Bluetooth :Realtek Bluetooth init uart with init speed:115200, type:HCI UART H5
Realtek Bluetooth :Realtek hciattach version 3.1.8905594.20200602-140152 

Realtek Bluetooth :Use epoll
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth WARN: OP_H5_SYNC Transmission timeout
Realtek Bluetooth ERROR: Retransmission exhausts

You can refer:

https://wiki.radxa.com/RockpiS/Debian#Bluetooth

Hi Jack,

I am using buildroot : https://github.com/flatmax/buildroot.rk3308

The debian apt package manager doesn’t work in buildroot. Buildroot is a thin and minimal operating system installation based on Linux and busybox.

Can you please link me to the debian distro source codes for the various apt packages ?

thanks
Matt

you can find the source code of the deb package with

apt source package-name