06-18-2016, 12:57 AM
Thanks xalius/ good to know!
RTL8723bs Bluetooth
|
06-18-2016, 12:57 AM
Thanks xalius/ good to know!
06-18-2016, 03:50 AM
(06-17-2016, 04:57 AM)xalius Wrote: I think what Faye wanted to say is that https://github.com/lwfinger/rtl8723bs_bt is not a Linux kernel driver. It just provides a small tool to handshake with the BT module via the UART and upload a firmware blob to the internal BT MCU. After that, the module can be attached to the BT stack (which already speaks HCI H5) available from the current kernel/userland. So the question is rather, how would this workaround be implemented in a proper way? Make a kernel side driver that just does the handshake and firmware loading? Or have something in userland that just calls the tool from lwfinger if a rtl8723bs wifi adapter is detected? I am only a embedded hardware developer with a bit of Linux experience so I dont know what the "right" way is to do this... Thanks for translating for me start_bt.sh resembles the /etc/init/bluetooth.conf file (probably unsurprisingly). Probably it would be fine to install another .conf file which runs rtk_hciattach as daemon once bluetooth.conf has started?
06-22-2016, 04:04 AM
Best method to incorporate this I would say is the pine_fix_whetever scripts.
I will tar up the necessary stuff and write up a systemd service entry. Btw blueman is far more stable I find provided the startup turns the power on to the module.
If you like my work be sure to check out my site or wish to donate to the cause
Cheers
06-22-2016, 12:44 PM
I might eventually package this rtl8723bs_bt but it does not have any licensing information so it is troublesome. If anyone has details or working on it let me know. Best link me to a Git repository with already has packaging
I was looking a bit at what firmware blobs are on the android image, because I have no clue what device classes will work besides HID since there seems to be at least a parallel interface next to the UART for audio (PCM) data, maybe some more things are needed to support that...
Come have a chat in the Pine IRC channel >>
06-22-2016, 01:28 PM
no licensing info can be found from the github where it came from.
basically it comes with the firmware and the compiles the applications to attach/load it with it's start script. It copies the .bin file(s) ti /lib/firmware/rtl_bt and leaves the application script in the build directory. I personally moved the scripts over to /usr/local/sbin/bluetooth then created pine64_bluetooth.sh in /usr/local/sbin pine64_bluetooth.sh contents #!/bin/bash # Shell script to install Bluetooth firmware and attach BT part of # RTL8723BS echo "Initializing Pine64 Bluetooth Module." /usr/local/sbin/bluetooth/rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5 > /usr/local/sbin/bluetooth/hciattach.txt 2>&1 & /bin/sleep 5 /usr/sbin/rfkill unblock 3 /usr/bin/bluetoothctl pairable on power on quit echo "Pine64 Bluetooth Module Active" then added a service bluetooth-module.service [Unit] Description=Start Pine64 Bluetooth Module After=systemd-modules-load.service local-fs.target [Service] Type=idle ExecStart=/usr/local/sbin/pine64_bluetooth.sh RemainAfterExit=yes [Install] WantedBy=multi-user.target no issues on each reboot plus blueman in mate works flawlessly
If you like my work be sure to check out my site or wish to donate to the cause
Cheers
06-22-2016, 03:20 PM
Mhm any chance you can make a Debian package?
06-22-2016, 05:09 PM
I will build the package tonight
If you like my work be sure to check out my site or wish to donate to the cause
Cheers
02-23-2017, 06:49 AM
This will answer the problem of the Bluetooth Module for Kernel. So bluetooth keyboards can login and not require autologin to get Bluetooth up and running via desktop. Great work!
jhawk
02-23-2017, 07:01 AM
It's not really a kernel module, the BT/Wifi module has a UART that is connected to ttyS1, and all that project does is provide a way to upload a firmware binary that enables the module to be attached to the BT stack on the Linux side:
/usr/local/sbin/bluetooth/rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5 > /usr/local/sbin/bluetooth/hciattach.txt 2>&1 &
Come have a chat in the Pine IRC channel >>
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Wifi / Bluetooth Board Update | S265 | 2 | 4,687 |
07-30-2020, 04:53 PM Last Post: S265 |
|
Howto: Getting Bluetooth (serial console) working on Debian | pfeerick | 14 | 34,888 |
08-19-2019, 04:33 AM Last Post: Roverius |
|
WIFI & Bluetooth? | 7777777 | 14 | 31,016 |
12-24-2016, 05:01 AM Last Post: Toriless |
|
Using Bluetooth for Sending serial data | Arjun | 9 | 16,436 |
10-19-2016, 10:19 PM Last Post: Arjun |
|
How can you get the WIFI/Bluetooth module separate? | GoZone | 8 | 12,656 |
07-06-2016, 05:23 PM Last Post: JasperBrown |
|
WiFi/BT module, no bluetooth | riviera89 | 5 | 8,032 |
06-24-2016, 04:32 PM Last Post: srinivas.s34@gmail.com |
|
Board doesn't boot when wifi/Bluetooth connected with Lcd screen | Krinilssen | 4 | 7,755 |
06-16-2016, 07:22 AM Last Post: Krinilssen |
|
WIFI/Bluetooth Chipset | monmoonmooonmoooon | 2 | 5,719 |
01-20-2016, 06:02 AM Last Post: monmoonmooonmoooon |