| Realtek RTL8723BS Bluetooth on Android | spin877 | 03/02/16 20:32 | Android Marshmallow and kernel version 4.4.0 Vanilla Bluetooth works here source give command rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5 on my tablet the dev is /dev/ttyS1 for you could be another dev attached compiled 32 and 64 bit Now the question is: how to integrate the Rom and initialize it in the script init.rc? |
| Re: Realtek RTL8723BS Bluetooth on Android | Mario Holzinger | 03/02/16 22:58 | Thank you for that will try it when I get home today and will also provide a patch for everithing needed (init.sh,...) if I get it working best regards Mario |
| Re: Realtek RTL8723BS Bluetooth on Android | Mario Holzinger | 05/02/16 03:34 | May I ask for a little bit of extra information. I am working on lollipop sources take your precompiled binary (x32) and copy it to /etc/ take your start_bt.sh from sources and copy it to /etc/ (it allready has a auto detection for the hopfully correct dev) take the firmware from the sources and place it according to the Makefile in /lib/firmware/rtk_bt/ manual start do not work ==> autodisabling BT when I try to activate the BT-Module autostart by init.sh also not working same situation do I miss somthing important? thx Mario |
| Re: Realtek RTL8723BS Bluetooth on Android | spin877 | 05/02/16 04:58 | In my pre-compiled , firmware, and config files they have been integrated . each time you start rtk_hciattach he writes in /data/local/tmp/rtlbt_fw etc.... . and then charging . I know it 's stupid and redundant , but I'm not a professional programmer . I was difficult to enter the firmware in ROM , I put the firmware in the executable :-p I tried I start_bt.sh script but does not work for me. It reveals two ports com " MMIO " and locks . the orignal code I took from here https://github.com/lwfinger/rtl8723bs_bt
should respond Realtek Bluetooth :Init Process finished Realtek Bluetooth post process Device setup complete do not touch. open a new shell give command hciconfig should respond hciconfig hci0: Type: BR/EDR Bus: UART BD Address: 00:1A:13:6B:32:C5 ACL MTU: 1021:8 SCO MTU: 255:16 DOWN RX bytes:1290 acl:0 sco:0 events:29 errors:0 TX bytes:789 acl:0 sco:0 commands:29 errors:0 It means that the drivers side is ready .
Lollipop is interfering with marshmallow works on the first try P.S. try hciconfig hci0 up excuse my English use google translate :-( |
| Re: Realtek RTL8723BS Bluetooth on Android | spin877 | 06/02/16 16:38 | I modified the script start_bt.sh bluetooth detection. manually it works. how do I start it each time you start automatically? What should I write in /system/etc/init.sh? -------- cut here script start_bt.sh #!/system/bin/sh # # Shell script to install Bluetooth firmware and attach BT part of # RTL8723BS # RTK_DRV=`lsmod | grep r8723bs` if [ "$RTK_DRV" != "" ];then TTY=`dmesg -t | grep tty | grep -m 1 MMIO | cut -b 14-18` else echo echo "No modules r8723bs to be loaded" echo exit 1 fi if [ "$TTY" != "" ];then TTY="/dev/$TTY" echo "Using device $TTY for Bluetooth" /system/xbin/rtk_hciattach -n -s 115200 $TTY rtk_h5 >/data/local/tmp/hciattach.txt 2>&1 & else echo echo "No r8723bs BT TTY device has been found" echo "Either this computer has no BT device that uses hciattach, or" echo "Your kernel does not have module 8250_dw configured." echo "Note: The configuration variable is CONFIG_SERIAL_8250_DW." echo fi |
| Re: Realtek RTL8723BS Bluetooth on Android | youling 257 | 08/03/16 10:05 | BluetoothThe WiFi drivers indeed are also drivers for Bluetooth, but getting Bluetooth working is a bit difficult. You need to patch your kernel with this patch. Then use this program to add the firmware to your Linux install and also there is a script that needs to be run each boot to turn on the Bluetooth module. https://github.com/Manouchehri/vi8/blob/master/Ubuntu_instructions.md This patch,how to work on android kernel ? |
| Re: Realtek RTL8723BS Bluetooth on Android | Chih-Wei Huang | 09/03/16 09:32 | |
| unk...@googlegroups.com | 09/03/16 18:57 | <Ce message a été supprimé.> | |
| unk...@googlegroups.com | 12/03/16 06:39 | <Ce message a été supprimé.> | |
| Re: Realtek RTL8723BS Bluetooth on Android | spin877 | 13/03/16 01:17 | in my opinion only the patch /net/rfkill/rfkill-gpio.c not enough We must always load the firmware rtlbt_fw with
Il giorno sabato 12 marzo 2016 15:39:07 UTC+1, youling 257 ha scritto:
|
| unk...@googlegroups.com | 26/03/16 02:43 | <Ce message a été supprimé.> | |
| Re: Realtek RTL8723BS Bluetooth on Android | spin877 | 26/03/16 03:36 | I think so. I tried with init.sh but I did not succeed. I do not understand how it works |
| unk...@googlegroups.com | 29/03/16 23:58 | <Ce message a été supprimé.> | |
| unk...@googlegroups.com | 30/03/16 00:00 | <Ce message a été supprimé.> | |
| unk...@googlegroups.com | 30/03/16 00:28 | <Ce message a été supprimé.> | |
| unk...@googlegroups.com | 30/03/16 01:06 | <Ce message a été supprimé.> | |
| unk...@googlegroups.com | 30/03/16 02:01 | <Ce message a été supprimé.> | |
| unk...@googlegroups.com | 04/04/16 09:05 | <Ce message a été supprimé.> | |
| Re: Realtek RTL8723BS Bluetooth on Android | youling 257 | 04/06/16 09:21 | https://github.com/lwfinger/rtl8723bs_bt/issues/7 “I added the lines from here. (had to edit by hand, patch didn't work, since there are other changes on 4.5 kernel in rfkill). Then enabled CONFIG_RFKILL_GPIO=m in kernel config and recompiled kernel. Re-installed rtl8723bs and rtl8723bs_bt and it worked.” need CONFIG_RFKILL_GPIO=m |
| Re: Realtek RTL8723BS Bluetooth on Android | youling 257 | 04/06/16 09:24 | https://sourceforge.net/p/android-x86/kernel/ci/kernel-4.4/tree/arch/x86/configs/android-x86_64_defconfig # CONFIG_RFKILL_GPIO is not set |
| Re: Realtek RTL8723BS Bluetooth on Android | youling 257 | 05/06/16 05:08 | nice |
| unk...@googlegroups.com | 05/06/16 16:17 | <Ce message a été supprimé.> | |
| Re: Realtek RTL8723BS Bluetooth on Android | Chih-Wei Huang | 05/06/16 19:34 | 2016-06-06 7:17 GMT+08:00 youling 257 <youli...@gmail.com>:
> Chih-Wei Huang,I see you add CONFIG_RFKILL_GPIO=m to kernel tree, > https://sourceforge.net/p/android-x86/kernel/ci/bf3cf2a8dded98d77e4c3ed12c19bedb65c4f955/ > I tell you,need system/bin/rtk_hciattach,please extract rtk_hciattach.tar.gz Please use btattach (fix or modify it if necessary). > and add to source ;need every boot,rtk_hciattach -n -s 115200 /dev/ttyS1 > rtk_h5,please add it to init.sh Provide a patch for your device. |
| unk...@googlegroups.com | 05/06/16 20:11 | <Ce message a été supprimé.> | |
| Re: Realtek RTL8723BS Bluetooth on Android | youling 257 | 05/06/16 20:21 | Do not understand the meaning of your English If compile the source code to get ISO, must modify the system.img, copy into the /bin/rtk_hciattach, copy into the /etc/init.d/2.sh, cm13 support init.d, 2.sh, it just needs to be edited. # /system/bin/sh! rtk_hciattach -n -s /dev/ttyS1 115200 rtk_h5 在 2016年6月6日星期一 UTC+8上午10:34:04,Chih-Wei Huang写道: |
| Re: Realtek RTL8723BS Bluetooth on Android | Chih-Wei Huang | 05/06/16 20:31 | 2016-06-06 11:21 GMT+08:00 youling 257 <youli...@gmail.com>:
> Do not understand the meaning of your English > If compile the source code to get ISO, must modify the system.img, copy > into the /bin/rtk_hciattach, copy into the /etc/init.d/2.sh, cm13 support > init.d, > 2.sh, it just needs to be edited. > # /system/bin/sh! > rtk_hciattach -n -s /dev/ttyS1 115200 rtk_h5 > > 在 2016年6月6日星期一 UTC+8上午10:34:04,Chih-Wei Huang写道: >> >> 2016-06-06 7:17 GMT+08:00 youling 257 <youli...@gmail.com>: >> > Chih-Wei Huang,I see you add CONFIG_RFKILL_GPIO=m to kernel tree, >> > >> > https://sourceforge.net/p/android-x86/kernel/ci/bf3cf2a8dded98d77e4c3ed12c19bedb65c4f955/ >> > I tell you,need system/bin/rtk_hciattach,please extract >> > rtk_hciattach.tar.gz >> >> Please use btattach (fix or modify it if necessary). The btattach is a standard Bluez tool which has been integrated into our codebase. See https://www.daemon-systems.org/man/btattach.8.html You may contact the author if you need help to add the support of your device. >> > and add to source ;need every boot,rtk_hciattach -n -s 115200 /dev/ttyS1 >> > rtk_h5,please add it to init.sh >> >> Provide a patch for your device. Read function init_hal_bluetooth() of init.sh to see how to add the support for your device. -- Chih-Wei Android-x86 project http://www.android-x86.org |
| Re: Realtek RTL8723BS Bluetooth on Android | youling 257 | 05/06/16 20:31 |
rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5 在 2016年6月6日星期一 UTC+8上午11:21:22,youling 257写道:
|