rtl8723bs_bt icon indicating copy to clipboard operation
rtl8723bs_bt copied to clipboard

Onda V919 3G Dual Os 64Gb : H5 sync timed out

Open jon1012 opened this issue 8 years ago • 56 comments

Hi,

I tried all the ttyS* on my device and none works. Wifi is working perfectly (recompiled kernel with fixes from the patch/ directory of rtl8723bs repo), but no way to get the bluetooth work.

Command outputs :

$ dmesg | grep tty [ 0.000000] console [tty0] enabled [ 1.672313] 00:02: ttyS0 at I/O 0x3f8 (irq = 199, base_baud = 115200) is a 16550A [ 6.740893] systemd[1]: Created slice system-getty.slice. [ 7.103121] 80860F0A:00: ttyS4 at MMIO 0x90913000 (irq = 191, base_baud = 2764800) is a 16550A [ 7.103517] 80860F0A:01: ttyS5 at MMIO 0x90919000 (irq = 192, base_baud = 2764800) is a 16550A

hciattach.txt:

Realtek Bluetooth init uart with init speed:115200, final_speed:115200, type:HCI UART H5 Realtek Bluetooth :Realtek hciattach version 2.5 Realtek Bluetooth :3-wire sync pattern resend : 1, len: 8 Realtek Bluetooth :3-wire sync pattern resend : 2, len: 8 Realtek Bluetooth :3-wire sync pattern resend : 3, len: 8

[... cut for brievety]

Realtek Bluetooth :3-wire sync pattern resend : 40, len: 8 Realtek Bluetooth ERROR: H5 sync timed out

I tried to use it on all the tty (not just ttyS4), change the baudrate, even ried rtk_h4 with no luck.

Any idea why it might happen ?

Thanks, Jonathan

jon1012 avatar Dec 21 '15 09:12 jon1012

no idea ? :(

jon1012 avatar Jan 08 '16 10:01 jon1012

I do not. On the TW100 that I have, BT just worked. You might check the output of 'dmesg | grep tty' to see what tty's are created.

lwfinger avatar Jan 08 '16 16:01 lwfinger

I just pasted the output of that command on the ticket, ttyS4 and ttyS5 are created. But the bluetooth module doesn't answer on any of them.

I am running the sdio patched kernel with the rtl8723bs module for wifi.

jon1012 avatar Jan 08 '16 16:01 jon1012

I would think that ttyS4 is the correct unit. From the dmesg output, a baud rate of 2764800 would be suggested; however, that is a strange number. I would also try 115200, 230400, 460800, 921600, and 1843200.

lwfinger avatar Jan 08 '16 17:01 lwfinger

Thanks for your insights. I just tried those values with no luck, I still have this H5 timeout error.

I used this command with all the values you suggested : sudo ./rtk_hciattach -n -s /dev/ttyS4 rtk_h5

Le ven. 8 janv. 2016 à 18:24, lwfinger [email protected] a écrit :

I would think that ttyS4 is the correct unit. From the dmesg output, a baud rate of 2764800 would be suggested; however, that is a strange number. I would also try 115200, 230400, 460800, 921600, and 1843200.

— Reply to this email directly or view it on GitHub https://github.com/lwfinger/rtl8723bs_bt/issues/7#issuecomment-170064042 .

jon1012 avatar Jan 08 '16 17:01 jon1012

Does the hardware work with Windows?

lwfinger avatar Jan 08 '16 17:01 lwfinger

Didn't have a windows on the tablet to check anymore, so it took a bit of time. Yes, it works under windows and android.

jon1012 avatar Jan 10 '16 20:01 jon1012

Do you know where the source is for the version of Android that you checked?

lwfinger avatar Jan 11 '16 01:01 lwfinger

I didn't find a source code sorry :( An image is here : https://mega.nz/#!PA1nxaAK!NpTtZVaCQadeqa437K3mUsSf9OEN7jDMshmf5hI8wOk

jon1012 avatar Jan 11 '16 16:01 jon1012

I'm having the exact same issue on a TrekStor SurtTab wintron 7.0. The kernel reports this:

[   18.583782] 80860F0A:00: ttyS1 at MMIO 0x48919000 (irq = 191, base_baud = 2764800) is a 16550A
[   18.588570] 80860F0A:01: ttyS2 at MMIO 0x4891b000 (irq = 192, base_baud = 2764800) is a 16550A

But unluckily the H5 sync times out on both ttyS1 and ttyS2. When the sync pattern is sent no data can be recieved at the stty. I'm totally stuck because I have no idea how to tackle this problem. You seem to have quite some insight in the operation of realtek chipsets. Do you have any hints for further debugging? Any help is greatly appreciated.

TobleMiner avatar Jan 31 '16 17:01 TobleMiner

I know very little about the BT devices; however, most of the Realtek serial BT devices are not connected to ttyS1 or ttyS2. These devices are usually real serial ports even though there is no external connector for them. Every Realtek BT device that I know about uses ttyS4.

lwfinger avatar Jan 31 '16 18:01 lwfinger

Hm, ok. Thanks for the info. Bluetooth somewhat works under Windows so there must be some serial connection. Maybe my tablet uses some strange seial interface that's not recognized by Linux? There are only ttyS0-2. I'm quite puzzled about that.

TobleMiner avatar Jan 31 '16 21:01 TobleMiner

I am not at all familiar with the Onda devices, but on the NextThingCo CHIP boards, the rtl8723bs bluetooth device is wired to the second UART of the SoC and appears at /dev/ttyS1 ... the attachment to something like ttyS[0-4] is specific to how the Onda device is physically constructed.

One thing that may help get people going a little better is a small observation that I made while getting the rtl8723bs bluetooth working on CHIP was:

The bluetooth firmware is downloaded to the rtl8723bs at 115200bps by the rtk_hciattach command. After firmware download, the rtk_hciattach command sends an H5 command to change the UART rate to something higher than 115200bps.

However, the rtk_hciattach command does nothing to probe the UART before attempting to send the bluetooth firmware at 11520bps.

This leads to a strange fault where the second attempt to run an rtk_hciattach will fail because the firmware has already been downloaded an the rtl8723bs device is set to a higher communication rate. Warm reboots can also exhibit this same issue as the rtl8723bs may still be configured for the higher bitrate and thus the new attempt to download firmware at 115200bps will fail and thus all of the hciattach fails.

At NextThing, we are carrying a hack for now that toggles the reset line of the rtl8723bs before calling rtk_hciattach, but this would be hard to do on other devices without knowledge of how the rtl8723bs is wired to the SoC.

I am working on a better solution where the firmware download is skipped if the UART is detected to be in a higher bitrate and I will try to remember to ping this issue/repo when we have a better fix.

Hope that helps someone fix this up for other rtl8723bs devices.

jasonabele avatar Feb 01 '16 20:02 jasonabele

Same issue on a Teclast x89.

pcercuei avatar Mar 09 '16 17:03 pcercuei

onda v891w ,same problem

youling257 avatar Mar 30 '16 07:03 youling257

I had identical issue on a no-name baytrail device in laptop form factor from alibaba. Applied the patches from here and then installed this and this. Was getting time outs after 40 counts like @jon1012 .

The following resolved it -->

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.

Hope it helps someone else.

BotCyborg avatar Jun 04 '16 15:06 BotCyborg

That was it! Bluetooth is now working here. Thanks!

pcercuei avatar Jun 07 '16 12:06 pcercuei

Adding { "OBDA8723", RFKILL_TYPE_BLUETOOTH }, in rfkill-gpio.c did the trick for me too.

ghost avatar Jun 08 '16 14:06 ghost

Wow, nice !

I'll try it, maybe that tablet won't sit in a drawer anymore :)

Le mer. 8 juin 2016 à 16:22, Simon-Pierre Dubé [email protected] a écrit :

Adding { "OBDA8723", RFKILL_TYPE_BLUETOOTH }, in rfkill-gpio.c did the trick for me too.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/lwfinger/rtl8723bs_bt/issues/7#issuecomment-224604800, or mute the thread https://github.com/notifications/unsubscribe/AABe-r0LRfKwZDUcURi71pKoUFzmkDqWks5qJtAegaJpZM4G5GR8 .

jon1012 avatar Jun 08 '16 14:06 jon1012

Even though adding that line works, that is NOT the long-term solution for the kernel. The RFKILL_TYPE_BLUETOOTH entries from that table have been moved. I have tried to find the "correct and approved" way to make this change, but no luck so far. If anyone out there has any suggestions, then please post them.

lwfinger avatar Jun 08 '16 14:06 lwfinger

To what i see in the in the .c, it wasn't moved, it was replaced by an automatic detection based on the ACPI properties of the device. Not completely sure though.

As of kernel 3.19, the kernel use the Unified Device Properties Interface. http://events.linuxfoundation.org/sites/events/files/slides/unified_properties_API_0.pdf

I'm pretty sure the ACPI table don't contain the type of device it is, and is not recognized as RFKILL_TYPE_BLUETOOTH, and skipped. Those still in the hardcoded table seems like similar exceptions.

I can be wrong. I stopped following and reading kernel sources when they moved to 3.x, now i will be honest, i am lost in new implementations.

ghost avatar Jun 08 '16 15:06 ghost

I have PCG02U Ubuntu Stick PC (bought from AliExpress), running Ubuntu 14.04.4 LTS and kernel 3.16.0-71.

I run sudo ~/rtl8723bs_bt/start_bt.sh, but I got this error H5 sync timed out. My problem is described here: https://github.com/lwfinger/rtl8723bs_bt/issues/13

Any idea how to solve this? @BotCyborg, how exactly did you solve the problem?

MatejKovacic avatar Jun 27 '16 09:06 MatejKovacic

Thanks for the solution. Just for anyone who also has this problem. I got the bluetooth working with the patch described here with RFKILL_TYPE_BLUETOOTH (I using 4.6.2 kernel). I'm using HP Stream 7 and the ACPI identification is OBDA8723 (rtl8923bs). I also noticed this ACPI being discussed in hadess work on the rtl8723bs driver.

protectivedad avatar Jun 28 '16 13:06 protectivedad

where exactly did you add those lines?

ghost avatar Jul 07 '16 03:07 ghost

@kahrloz add it in the in the rfkill-gpio.c file, in the linux kernel source and then recompile the kernel. (P.S. It does the job, but is only an ugly workaround)

@MatejKovacic I have already mentioned the 4 things that I did, in my last post. I'm afraid you would have to ask google if you need detailed help with applying patches and recompiling the kernel. My apologies, but describing everything here would be beyond the scope of this thread.

BotCyborg avatar Jul 07 '16 06:07 BotCyborg

i looked for that file, but couldn't find it

ghost avatar Jul 08 '16 12:07 ghost

@BotCyborg where is that file located? Can't find it

ghost avatar Jul 10 '16 08:07 ghost

@kahrloz Hi! Here it is, in the kernel source https://github.com/torvalds/linux/blob/master/net/rfkill/rfkill-gpio.c Hope that helps.

BotCyborg avatar Jul 10 '16 08:07 BotCyborg

@BotCyborg i found a rfkill-gpio.h file, is that it? I'm using kernel 4.4.0

ghost avatar Jul 10 '16 09:07 ghost

@kahrloz You should be able to see these files in the net/rfkill/ directory as shown here, http://lxr.free-electrons.com/source/net/rfkill/?v=4.4 Where did you get your kernel source from?

You must be looking at the headers, if you are seeing rfkill-gpio.h. That's not the one.

BotCyborg avatar Jul 10 '16 09:07 BotCyborg

@BotCyborg what if those files are not there?

ghost avatar Jul 10 '16 09:07 ghost

@kahrloz Then most likely you are looking at the wrong place or using some custom kernel source. Where did you download the kernel source from?

Also are you very sure you are not looking at the linux-header sources or the include directory?

BotCyborg avatar Jul 10 '16 14:07 BotCyborg

@lwfinger it looks like I have very similar problem with Allwinner A20 custom board. I was able to integrated driver with buildroot and build it with 4.7 kernel. I'm sure that I'm using correct ttySX device based on MMIO. Unfortunately I'm getting;

Realtek Bluetooth ERROR: H5 sync timed out

BT_DIS was verified to be high. Do I need any additional code to drive BT_WAKE ? I also assume GPIO to which I have BT_HOST_WAKE connected should be configured as input, but does driver or any kernel will know about that without correct device tree ?

@jasonabele if I read CHIP schematics correctly BT_WAKE is connected directly to AXP209, do you know how this pin should be driven ? Also BT_HOST_WAKE is PG0 and I can't see PG0 configuration in CHIP device tree on chips/stable branch of NextThingCo repo.

BTW WiFi works to some extent, so I assume hardware is connected correctly in this area.

pietrushnic avatar Aug 13 '16 21:08 pietrushnic

@lwfinger @jasonabele I managed to make some progress by toggling BT_DIS before starting to send anything on UART. In that way it looks like I'm able to finish firmware upload:

Realtek Bluetooth :Send FW last command
Realtek Bluetooth :hci_download_patch tx_index:100 rx_index: 99

Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:0
Realtek Bluetooth ERROR: patch timerout, retry:

I tried both firmwares rtlbt_fw and rtlbt_fw_new.

Full dmesg can be found here. I'm using recent hadess/rtl8723bs if this help anything.

@hadess do you have any insights about BT part of this chip ?

pietrushnic avatar Aug 14 '16 23:08 pietrushnic

Same problem here, even with OBDA patch. I have ttyS1 and ttyS2, neither work.

H5 sync time out

ghost avatar Aug 15 '16 07:08 ghost

Devices ttyS1 and ttys2 are real serial ports, not the one created by the Bluetooth device. If you are not seeing other ttySx devices, then your BT device is not being found. I have no idea what errors there might be in the kernel configuration, but I would suspect that as the problem.

lwfinger avatar Aug 15 '16 17:08 lwfinger

@jingber OBDA patch may work only on platforms with ACPI (mostly Intel platforms).

@lwfinger have you got any thoughts about patch timerout problem ?

pietrushnic avatar Aug 16 '16 00:08 pietrushnic

No. I have no hardware that shows this problem, and I have no plans to buy anything new.

lwfinger avatar Aug 16 '16 00:08 lwfinger

@pietrushnic i got the BT device to wake up and scanned for available bluetooth signals. Am using Allwinner A20 and the RTL8723bs on a custorm board. i used the Makefile from https://github.com/NextThingCo/rtl8723bs_bt to cross compile this driver for Sun7i.

hciconfig -a
hci0:   Type: BR/EDR  Bus: UART
        BD Address: 8D:18:D9:35:7C:3C  ACL MTU: 1021:8  SCO MTU: 255:16
        UP RUNNING 
        RX bytes:5737 acl:0 sco:0 events:94 errors:0
        TX bytes:1971 acl:0 sco:0 commands:75 errors:0
        Features: 0xff 0xff 0xff 0xfe 0xdb 0xfd 0x7b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3 
        Link policy: RSWITCH HOLD SNIFF PARK 
        Link mode: SLAVE ACCEPT 
        Name: 'RTK_BT_4.0'
        Class: 0x000000
        Service Classes: Unspecified
        Device Class: Miscellaneous, 
        HCI Version: 4.0 (0x6)  Revision: 0x1e3e
        LMP Version: 4.0 (0x6)  Subversion: 0xe40e
        Manufacturer: Realtek Semiconductor Corporation (93)

hcitool dev
Devices:
        hci0    8D:18:D9:35:7C:3C
hcitool scan
Scanning ...
        54:44:08:30:FD:06       x2:
        74:04:2B:4E:4D:31       Lenovo K3 Note

 bluetoothctl 
[NEW] Controller 8D:18:D9:35:7C:3C BlueZ 5.39 [default]

[bluetooth]# pair 74:04:2B:4E:4D:31
Attempting to pair with 74:04:2B:4E:4D:31
[CHG] Device 74:04:2B:4E:4D:31 Connected: yes
Request confirmation
[agent] Confirm passkey 411857 (yes/no): yes
[CHG] Device 74:04:2B:4E:4D:31 Modalias: bluetooth:v000Fp1200d1436
[CHG] Device 74:04:2B:4E:4D:31 UUIDs: 00001105-0000-1000-8000-00805f9b34fb
[CHG] Device 74:04:2B:4E:4D:31 UUIDs: 0000110a-0000-1000-8000-00805f9b34fb
[CHG] Device 74:04:2B:4E:4D:31 UUIDs: 0000110c-0000-1000-8000-00805f9b34fb
[CHG] Device 74:04:2B:4E:4D:31 UUIDs: 0000110e-0000-1000-8000-00805f9b34fb
[CHG] Device 74:04:2B:4E:4D:31 UUIDs: 00001112-0000-1000-8000-00805f9b34fb
[CHG] Device 74:04:2B:4E:4D:31 UUIDs: 00001115-0000-1000-8000-00805f9b34fb
[CHG] Device 74:04:2B:4E:4D:31 UUIDs: 00001116-0000-1000-8000-00805f9b34fb
[CHG] Device 74:04:2B:4E:4D:31 UUIDs: 0000111f-0000-1000-8000-00805f9b34fb
[CHG] Device 74:04:2B:4E:4D:31 UUIDs: 0000112f-0000-1000-8000-00805f9b34fb
[CHG] Device 74:04:2B:4E:4D:31 UUIDs: 00001132-0000-1000-8000-00805f9b34fb
[CHG] Device 74:04:2B:4E:4D:31 UUIDs: 00001200-0000-1000-8000-00805f9b34fb
[CHG] Device 74:04:2B:4E:4D:31 UUIDs: 00001800-0000-1000-8000-00805f9b34fb
[CHG] Device 74:04:2B:4E:4D:31 UUIDs: 00001801-0000-1000-8000-00805f9b34fb
[CHG] Device 74:04:2B:4E:4D:31 Paired: yes
Pairing successful

[bluetooth]# connect 74:04:2B:4E:4D:31
Attempting to connect to 74:04:2B:4E:4D:31
Failed to connect: org.bluez.Error.Failed

[bluetooth]# info 74:04:2B:4E:4D:31 
Device 74:04:2B:4E:4D:31
        Name: Lenovo K3 Note
        Alias: Lenovo K3 Note
        Class: 0x5a020c
        Icon: phone
        Paired: yes
        Trusted: no
        Blocked: no
        Connected: no
        LegacyPairing: no
        UUID: OBEX Object Push          (00001105-0000-1000-8000-00805f9b34fb)
        UUID: Audio Source              (0000110a-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control Target (0000110c-0000-1000-8000-00805f9b34fb)
        UUID: A/V Remote Control        (0000110e-0000-1000-8000-00805f9b34fb)
        UUID: Headset AG                (00001112-0000-1000-8000-00805f9b34fb)
        UUID: PANU                      (00001115-0000-1000-8000-00805f9b34fb)
        UUID: NAP                       (00001116-0000-1000-8000-00805f9b34fb)
        UUID: Handsfree Audio Gateway   (0000111f-0000-1000-8000-00805f9b34fb)
        UUID: Phonebook Access Server   (0000112f-0000-1000-8000-00805f9b34fb)
        UUID: Message Access Server     (00001132-0000-1000-8000-00805f9b34fb)
        UUID: PnP Information           (00001200-0000-1000-8000-00805f9b34fb)
        UUID: Generic Access Profile    (00001800-0000-1000-8000-00805f9b34fb)
        UUID: Generic Attribute Profile (00001801-0000-1000-8000-00805f9b34fb)
        Modalias: bluetooth:v000Fp1200d1436
        RSSI: -58


uname -r
 4.3.2

lscpu 
Architecture:          armv7l
Byte Order:            Little Endian
CPU(s):                2
On-line CPU(s) list:   0,1
Thread(s) per core:    1
Core(s) per socket:    2
Socket(s):             1
Model name:            ARMv7 Processor rev 4 (v7l)


i have managed to pair with my phone but now trying to figure out how i can do file transfer. For some reason i can "pair" but i cant "connect" to the phone.

madivak avatar Feb 17 '17 14:02 madivak

@madivak according to our email discussion you managed to solve that issues. It would be great if you can leave here a note for community benefit.

pietrushnic avatar Mar 12 '17 23:03 pietrushnic

@pietrushnic sorry about that. After cross-compiling and ensuring all files available at /lib/firmware/rtl_bt (rtlbt_config and rtlbt_fw) i created 2 scripts to initialize BT. I didnt use the start_bt.sh

1st script is to initialize BT_WAKE and BT_WAKE_HOST, here is the script, run this after boot.

#!/bin/bash
#initialize pin BT_WAKE_HOST (on GPIO239 on my board) to register as gpio_in with rising edge
echo "239"  > /sys/class/gpio/export   
echo "in"  > /sys/class/gpio/gpio239/direction  
echo "rising"  > /sys/class/gpio/gpio239/edge

#initialize pin BT_WAKE (on GPIO238 on my board) to register as gpio_out and conf HIGH
echo "238" > /sys/class/gpio/export
echo "out" > /sys/class/gpio/gpio238/direction
echo "1" > /sys/class/gpio/gpio238/value

2nd script runs the BT driver

#!/bin/bash
#Run Bluetooth driver (BT attached to ttyS2 on my board)

rtk_hciattach -n -b -s 115200 /dev/ttyS2 rtk_h5 > hciattach.txt 2>&1 &
/bin/sleep 5		#allow hci0 interface to initialise (u can spot the hci0 when u check running processes #ps)
hciconfig               #show if hci inteface is up
hciconfig hci0 up       #bring up the hci inteface if down
hciconfig -a            #show if hci inteface is up
hciconfig hci0 piscan   #Make my device discoverable
hcitool scan            #scan available BT signals

So after this, i could now use the Bluetoothctl to do all Bluetooth functionalities.

NOTE: My wifi worked with Kernel 4.3.2 as shown in an earlier comment so proceeded to working with 4.3.2 for BT. (i had tried 4.4.27 and 4.6 but the mmc-sdhci patches from https://github.com/hadess/rtl8723bs failed)

madivak avatar Mar 13 '17 07:03 madivak

@pietrushnic I managed to connect and send files via Bluetooth using rfcomm. UPDATE: I connected with my phone using this command, and was able to send files to it.

sudo rfcomm connect [bluetooth host device] [Target bluetooth device MAC] [channel] e.g sudo rfcomm connect hci0 83:23:26:15:54:46 2

madivak avatar Apr 06 '17 05:04 madivak

@madivak hi , I have a23 tablet I followed your steps and got bluetooth to work , but after a while all commands return timeout : hci0 command tx timeout and strange error : out-of-order packet arrived , got 7 expected 0 if I keep executing hcitool scan , one time after another , timeout doesnt occur , if I leave a time gap between scans timeout occurs on all commands any help is apreciated

xchetah avatar May 02 '17 19:05 xchetah

@xchetah that's strange. I have never encountered the "timeout" ever since i scripted the 2 Scripts listed above. If your issue involves scanning and u r using "Bluetoothctl" you can try and leave the "scan on/off" option "ON" and see whether there is timeout. You can go ahead and remove the "hcitool scan" from the script and do it withing "Bluetoothctl". Am not sure whether that will solve your problem.

madivak avatar May 03 '17 09:05 madivak

@madivak thanks for your reply , anyway that didn't fix the problem I think it's either rtk_hciattach or tty problem , the problem happens if i delay any command , for example if I delay hci0 up after hciattach , it wont bring the interface up , so all i have to do is to keep the device busy with commands which is not practical , btw I'm using allwinner kernel 3.4 , got problems with mainline kernel

xchetah avatar May 03 '17 09:05 xchetah

@xchetah have u tried re-compiling it. Were the mainline issues linked with compiling this driver? Because that wasn't my case. Either try recompiling the kernel and the driver and see what happens. Are u using buildroot with 3.4?

madivak avatar May 03 '17 09:05 madivak

@madivak in mainline kernel rtk_hciattach fails with : peer acked invalid packet ERROR : h5 hdr checksum error rtk get lmp version timeout and so on

xchetah avatar May 03 '17 10:05 xchetah

yikes! which kernel version is that? I can give you my kernel.config for 4.3.2 you download the Kernel source and recompile both and see what happens. That will be my best effort to ur problem, since i made it work and moved on to other minor-projects. Here is a link to configuration for kernel and my dts file If u have the time you can build your system, but make amends to kernel for ur A23 specification. LINK: https://www.4shared.com/folder/_o4Og-79/LINUX.html

madivak avatar May 03 '17 10:05 madivak

@madivak main kernel 4.11-rc1 works now , i missed a regulator enable in the dts file , works perfectly thanks for your effort

xchetah avatar May 03 '17 10:05 xchetah

The mmc section? OK, Glad i could be of help. Cheers. :100: :+1:

madivak avatar May 03 '17 10:05 madivak

@madivak this is the parameters from my script.bin [wifi_para] wifi_used = 1 wifi_sdc_id = 1 wifi_usbc_id = 1 wifi_usbc_type = 1 wifi_mod_sel = 9 wifi_power = "axp22_dldo1" wifi_power_ext1 = "axp22_dldo2" wifi_power_ext2 = "" wifi_power_switch = port:power0<1><0><0> rtl8723bs_vq0_chip_en = port:PL11<1><0> rtl8723bs_vq0_wl_regon = port:PL06<1><0> rtl8723bs_vq0_wl_host_wake = port:PL07<4><0> rtl8723bs_vq0_bt_regon = port:PL08<1><0> rtl8723bs_vq0_bt_wake = port:PL10<1><0> rtl8723bs_vq0_bt_host_wake = port:PL09<4><0> rtl8723bs_vq0_lpo_use_apclk = 0

[bt_para] bt_used = 1 bt_uart_id = 1

I didnt enable wifi_power_ext1 = "axp22_dldo2" in the dtsi , which resulted in the errors mentioned earlier

xchetah avatar May 03 '17 10:05 xchetah

With kernel 4.8 Bluetoooth worked with this patch: https://github.com/burzumishi/linux-baytrail-flexx10/tree/master/kernel/patches/v4.8 In kernel 4.12, rtl8723bs wifi got included. However, even with that patch applied, the "base_baud = 2764800" appears in dmesg and 'ERROR: H5 sync timed out" appears in hciattach.txt. This is my computer: http://lad.dsc.ufcg.edu.br/lad/pmwiki.php?n=Lad.Tablet Is there a way to get Bluetooth working using kernel 4.12 ?

emelcher avatar Jul 17 '17 13:07 emelcher

With that issue I suspect its something to do with your DTS file. Check previous comments above and see guys had the same issue. Make sure your DTS file is properly configured. Check my comment above u will find a link for my DTS file and kernel. Properly look at the DTS file.

madivak avatar Jul 17 '17 19:07 madivak

I forgot to enable CONFIG_RFKILL_GPIO in the kernel .config, Sorry for the silly mistake.

emelcher avatar Jul 17 '17 21:07 emelcher

I drive rtl8723ds with rtk_h5 protocol on ARM 9,kernel 3.10.65,bluez5.38. when i ran hciattach -n -s 115200 ttyS2 rtk_h5,I got logs below: root@TinaLinux:/# hciattach -n -s 115200 ttyS2 rtk_h5 Realtek Bluetooth init uart with init speed:115200, final_speed:115200, type:HCI UART H5 Realtek Bluetooth :Realtek hciattach version 3.1

Realtek Bluetooth :3-wire sync pattern resend : 1, len: 8

Realtek Bluetooth :Get SYNC Resp Pkt

Realtek Bluetooth :Get SYNC pkt-active mode

Realtek Bluetooth :3-wire config pattern resend : 1 , len: 10 Realtek Bluetooth :Get CONFG pkt-active mode

Realtek Bluetooth :Get CONFG resp pkt-active mode

Realtek Bluetooth :H5 init finished

Realtek Bluetooth :RTK send HCI_VENDOR_READ_RTK_ROM_VERISION_Command

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :receive hci command complete event with command:1001

Realtek Bluetooth :Read Local Version Information with Status:0 Realtek Bluetooth :HCI Version 0x08 Realtek Bluetooth :HCI Revision 0x000d Realtek Bluetooth :LMP Subversion 0x8723 Realtek Bluetooth :RTK send HCI_VENDOR_READ_RTK_ROM_VERISION_Command

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :receive hci command complete event with command:fc6d

Realtek Bluetooth :Read RTK rom version with Status:0 Realtek Bluetooth :LMP Subversion 0x8723 Realtek Bluetooth :EVersion 2 Realtek Bluetooth :IC: RTL8723DS

Realtek Bluetooth :Firmware/config: rtl8723d_fw, rtl8723d_config

Realtek Bluetooth :config offset(00f4),length(01) Realtek Bluetooth :config offset(00f6),length(02) Realtek Bluetooth :config offset(00fa),length(02) Realtek Bluetooth :config baud rate to :4928002, hwflowcontrol:5f, 1 Realtek Bluetooth :config offset(00d9),length(01) Realtek Bluetooth :config offset(00e4),length(01) Realtek Bluetooth :Get config baud rate from config file:252c00a Realtek Bluetooth :Load FW OK Realtek Bluetooth :rtk_get_fw_project_id: opcode 0, len 1, data 9 Realtek Bluetooth :fw_ver 0xaa5d675f, patch_num 3 Realtek Bluetooth :chip id 0x0001 Realtek Bluetooth :chip id 0x0002 Realtek Bluetooth :chip id 0x0003 Realtek Bluetooth :patch length is 0x7594 Realtek Bluetooth :start offset is 0x4980 Realtek Bluetooth :Svn version: 18994

Realtek Bluetooth :Coexistence: BTCOEX_20161108-1010

Realtek Bluetooth :fw: exists, config file: exists Realtek Bluetooth :Total len 30147 for fw/config Realtek Bluetooth :baudrate in change speed command: 0xa 0xc0 0x52 0x2

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :receive hci command complete event with command:fc17

Realtek Bluetooth :Change BD Rate with status:0 Realtek Bluetooth :final_speed 230400

Realtek Bluetooth :hw flow control enable Realtek Bluetooth :iEndIndex:119 iLastPacketLen:159 iAdditionpkt:5

Realtek Bluetooth :hci_download_patch tx_index:0 rx_index: -1

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 0

Realtek Bluetooth :hci_download_patch tx_index:1 rx_index: 0

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 1

Realtek Bluetooth :hci_download_patch tx_index:2 rx_index: 1

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 2

Realtek Bluetooth :hci_download_patch tx_index:3 rx_index: 2

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 3

Realtek Bluetooth :hci_download_patch tx_index:4 rx_index: 3

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 4

Realtek Bluetooth :hci_download_patch tx_index:5 rx_index: 4

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 5

Realtek Bluetooth :hci_download_patch tx_index:6 rx_index: 5

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 6

Realtek Bluetooth :hci_download_patch tx_index:7 rx_index: 6

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 7

Realtek Bluetooth :hci_download_patch tx_index:8 rx_index: 7

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 8

Realtek Bluetooth :hci_download_patch tx_index:9 rx_index: 8

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 9

Realtek Bluetooth :hci_download_patch tx_index:10 rx_index: 9

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 10

Realtek Bluetooth :hci_download_patch tx_index:11 rx_index: 10

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 11

Realtek Bluetooth :hci_download_patch tx_index:12 rx_index: 11

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 12

Realtek Bluetooth :hci_download_patch tx_index:13 rx_index: 12

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 13

Realtek Bluetooth :hci_download_patch tx_index:14 rx_index: 13

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 14

Realtek Bluetooth :hci_download_patch tx_index:15 rx_index: 14

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 15

Realtek Bluetooth :hci_download_patch tx_index:16 rx_index: 15

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 16

Realtek Bluetooth :hci_download_patch tx_index:17 rx_index: 16

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 17

Realtek Bluetooth :hci_download_patch tx_index:18 rx_index: 17

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 18

Realtek Bluetooth :hci_download_patch tx_index:19 rx_index: 18

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 19

Realtek Bluetooth :hci_download_patch tx_index:20 rx_index: 19

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 20

Realtek Bluetooth :hci_download_patch tx_index:21 rx_index: 20

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 21

Realtek Bluetooth :hci_download_patch tx_index:22 rx_index: 21

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 22

Realtek Bluetooth :hci_download_patch tx_index:23 rx_index: 22

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 23

Realtek Bluetooth :hci_download_patch tx_index:24 rx_index: 23

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 24

Realtek Bluetooth :hci_download_patch tx_index:25 rx_index: 24

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 25

Realtek Bluetooth :hci_download_patch tx_index:26 rx_index: 25

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 26

Realtek Bluetooth :hci_download_patch tx_index:27 rx_index: 26

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 27

Realtek Bluetooth :hci_download_patch tx_index:28 rx_index: 27

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 28

Realtek Bluetooth :hci_download_patch tx_index:29 rx_index: 28

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 29

Realtek Bluetooth :hci_download_patch tx_index:30 rx_index: 29

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 30

Realtek Bluetooth :hci_download_patch tx_index:31 rx_index: 30

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 31

Realtek Bluetooth :hci_download_patch tx_index:32 rx_index: 31

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 32

Realtek Bluetooth :hci_download_patch tx_index:33 rx_index: 32

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 33

Realtek Bluetooth :hci_download_patch tx_index:34 rx_index: 33

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 34

Realtek Bluetooth :hci_download_patch tx_index:35 rx_index: 34

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 35

Realtek Bluetooth :hci_download_patch tx_index:36 rx_index: 35

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 36

Realtek Bluetooth :hci_download_patch tx_index:37 rx_index: 36

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 37

Realtek Bluetooth :hci_download_patch tx_index:38 rx_index: 37

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 38

Realtek Bluetooth :hci_download_patch tx_index:39 rx_index: 38

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 39

Realtek Bluetooth :hci_download_patch tx_index:40 rx_index: 39

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 40

Realtek Bluetooth :hci_download_patch tx_index:41 rx_index: 40

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 41

Realtek Bluetooth :hci_download_patch tx_index:42 rx_index: 41

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 42

Realtek Bluetooth :hci_download_patch tx_index:43 rx_index: 42

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 43

Realtek Bluetooth :hci_download_patch tx_index:44 rx_index: 43

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 44

Realtek Bluetooth :hci_download_patch tx_index:45 rx_index: 44

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 45

Realtek Bluetooth :hci_download_patch tx_index:46 rx_index: 45

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 46

Realtek Bluetooth :hci_download_patch tx_index:47 rx_index: 46

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 47

Realtek Bluetooth :hci_download_patch tx_index:48 rx_index: 47

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 48

Realtek Bluetooth :hci_download_patch tx_index:49 rx_index: 48

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 49

Realtek Bluetooth :hci_download_patch tx_index:50 rx_index: 49

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 50

Realtek Bluetooth :hci_download_patch tx_index:51 rx_index: 50

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 51

Realtek Bluetooth :hci_download_patch tx_index:52 rx_index: 51

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 52

Realtek Bluetooth :hci_download_patch tx_index:53 rx_index: 52

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 53

Realtek Bluetooth :hci_download_patch tx_index:54 rx_index: 53

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 54

Realtek Bluetooth :hci_download_patch tx_index:55 rx_index: 54

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 55

Realtek Bluetooth :hci_download_patch tx_index:56 rx_index: 55

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 56

Realtek Bluetooth :hci_download_patch tx_index:57 rx_index: 56

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 57

Realtek Bluetooth :hci_download_patch tx_index:58 rx_index: 57

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 58

Realtek Bluetooth :hci_download_patch tx_index:59 rx_index: 58

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 59

Realtek Bluetooth :hci_download_patch tx_index:60 rx_index: 59

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 60

Realtek Bluetooth :hci_download_patch tx_index:61 rx_index: 60

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 61

Realtek Bluetooth :hci_download_patch tx_index:62 rx_index: 61

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 62

Realtek Bluetooth :hci_download_patch tx_index:63 rx_index: 62

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 63

Realtek Bluetooth :hci_download_patch tx_index:64 rx_index: 63

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 64

Realtek Bluetooth :hci_download_patch tx_index:65 rx_index: 64

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 65

Realtek Bluetooth :hci_download_patch tx_index:66 rx_index: 65

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 66

Realtek Bluetooth :hci_download_patch tx_index:67 rx_index: 66

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 67

Realtek Bluetooth :hci_download_patch tx_index:68 rx_index: 67

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 68

Realtek Bluetooth :hci_download_patch tx_index:69 rx_index: 68

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 69

Realtek Bluetooth :hci_download_patch tx_index:70 rx_index: 69

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 70

Realtek Bluetooth :hci_download_patch tx_index:71 rx_index: 70

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 71

Realtek Bluetooth :hci_download_patch tx_index:72 rx_index: 71

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 72

Realtek Bluetooth :hci_download_patch tx_index:73 rx_index: 72

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 73

able seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 73

Realtek Bluetooth :hci_download_patch tx_index:74 rx_index: 73

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 74

Realtek Bluetooth :hci_download_patch tx_index:75 rx_index: 74

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 75

Realtek Bluetooth :hci_download_patch tx_index:76 rx_index: 75

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 76

Realtek Bluetooth :hci_download_patch tx_index:77 rx_index: 76

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 77

Realtek Bluetooth :hci_download_patch tx_index:78 rx_index: 77

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 78

Realtek Bluetooth :hci_download_patch tx_index:79 rx_index: 78

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 79

Realtek Bluetooth :hci_download_patch tx_index:80 rx_index: 79

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 80

Realtek Bluetooth :hci_download_patch tx_index:81 rx_index: 80

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 81

Realtek Bluetooth :hci_download_patch tx_index:82 rx_index: 81

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 82

Realtek Bluetooth :hci_download_patch tx_index:83 rx_index: 82

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 83

Realtek Bluetooth :hci_download_patch tx_index:84 rx_index: 83

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 84

Realtek Bluetooth :hci_download_patch tx_index:85 rx_index: 84

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 85

Realtek Bluetooth :hci_download_patch tx_index:86 rx_index: 85

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 86

Realtek Bluetooth :hci_download_patch tx_index:87 rx_index: 86

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 87

Realtek Bluetooth :hci_download_patch tx_index:88 rx_index: 87

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 88

Realtek Bluetooth :hci_download_patch tx_index:89 rx_index: 88

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 89

Realtek Bluetooth :hci_download_patch tx_index:90 rx_index: 89

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 90

Realtek Bluetooth :hci_download_patch tx_index:91 rx_index: 90

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 91

Realtek Bluetooth :hci_download_patch tx_index:92 rx_index: 91

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 92

Realtek Bluetooth :hci_download_patch tx_index:93 rx_index: 92

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 93

Realtek Bluetooth :hci_download_patch tx_index:94 rx_index: 93

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 94

Realtek Bluetooth :hci_download_patch tx_index:95 rx_index: 94

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 95

Realtek Bluetooth :hci_download_patch tx_index:96 rx_index: 95

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 96

Realtek Bluetooth :hci_download_patch tx_index:97 rx_index: 96

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 97

Realtek Bluetooth :hci_download_patch tx_index:98 rx_index: 97

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 98

Realtek Bluetooth :hci_download_patch tx_index:99 rx_index: 98

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 99

Realtek Bluetooth :hci_download_patch tx_index:100 rx_index: 99

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 100

Realtek Bluetooth :hci_download_patch tx_index:101 rx_index: 100

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 101

Realtek Bluetooth :hci_download_patch tx_index:102 rx_index: 101

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 102

Realtek Bluetooth :hci_download_patch tx_index:103 rx_index: 102

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 103

Realtek Bluetooth :hci_download_patch tx_index:104 rx_index: 103

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 104

Realtek Bluetooth :hci_download_patch tx_index:105 rx_index: 104

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 105

Realtek Bluetooth :hci_download_patch tx_index:106 rx_index: 105

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 106

Realtek Bluetooth :hci_download_patch tx_index:107 rx_index: 106

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 107

Realtek Bluetooth :hci_download_patch tx_index:108 rx_index: 107

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 108

Realtek Bluetooth :hci_download_patch tx_index:109 rx_index: 108

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 109

Realtek Bluetooth :hci_download_patch tx_index:110 rx_index: 109

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 110

Realtek Bluetooth :hci_download_patch tx_index:111 rx_index: 110

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 111

Realtek Bluetooth :hci_download_patch tx_index:112 rx_index: 111

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 112

Realtek Bluetooth :hci_download_patch tx_index:113 rx_index: 112

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 113

Realtek Bluetooth :hci_download_patch tx_index:114 rx_index: 113

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 114

Realtek Bluetooth :hci_download_patch tx_index:115 rx_index: 114

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 115

Realtek Bluetooth :hci_download_patch tx_index:116 rx_index: 115

Realtek Bluetooth :Received reliable seqno 7 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 116

Realtek Bluetooth :hci_download_patch tx_index:117 rx_index: 116

Realtek Bluetooth :Received reliable seqno 0 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 117

Realtek Bluetooth :proto:2 Realtek Bluetooth :hci_download_patch tx_index:118 rx_index: 117

Realtek Bluetooth :Received reliable seqno 1 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 118

Realtek Bluetooth :hci_download_patch tx_index:119 rx_index: 118

Realtek Bluetooth :Received reliable seqno 2 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 119

Realtek Bluetooth :Send additional packet 120 Realtek Bluetooth :hci_download_patch tx_index:120 rx_index: 119

Realtek Bluetooth :Received reliable seqno 3 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 120

Realtek Bluetooth ERROR: Out-of-order packet arrived, got(3)expected(4) Realtek Bluetooth :Send additional packet 121 Realtek Bluetooth :hci_download_patch tx_index:121 rx_index: 120

Realtek Bluetooth :Received reliable seqno 4 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 121

Realtek Bluetooth :Send additional packet 122 Realtek Bluetooth :hci_download_patch tx_index:122 rx_index: 121

Realtek Bluetooth :Received reliable seqno 5 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 122

Realtek Bluetooth :Send additional packet 123 Realtek Bluetooth :hci_download_patch tx_index:123 rx_index: 122

Realtek Bluetooth :Received reliable seqno 6 from card Realtek Bluetooth :rtk_hw_cfg.rx_index 123

Realtek Bluetooth :Send end packet 252 Realtek Bluetooth :Send FW last command Realtek Bluetooth :hci_download_patch tx_index:124 rx_index: 123

Realtek Bluetooth ERROR: h5 hdr checksum error!!! Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:0 Alarm clock

PS:i show the uart speed to 115200.i set alarm timer to 10s in case of alarming in downloading patch

youyudedasan avatar Oct 03 '17 14:10 youyudedasan

root@amlogic:~/rtl8723bs_bt# ./rtk_hciattach -n -s 115200 /dev/ttyS1 rtk_h5
Realtek Bluetooth init uart with init speed:115200, final_speed:115200, type:HCI UART H5
Realtek Bluetooth :Realtek hciattach version 2.5 

Realtek Bluetooth :3-wire sync pattern resend : 1, len: 8

Realtek Bluetooth :Get SYNC Resp Pkt

Realtek Bluetooth :3-wire config pattern resend : 1 , len: 10
Realtek Bluetooth :Get SYNC pkt-active mode

Realtek Bluetooth :Get SYNC pkt-active mode

Realtek Bluetooth :Get CONFG pkt-active mode

Realtek Bluetooth :3-wire config pattern resend : 2 , len: 10
Realtek Bluetooth :Get CONFG resp pkt-active mode

Realtek Bluetooth :H5 init finished

Realtek Bluetooth :config offset(f4),length(8)
Realtek Bluetooth :config baud rate to :4928002, hwflowcontrol:5f, 1
Realtek Bluetooth :config offset(27),length(1)
Realtek Bluetooth :config offset(fe),length(1)
Realtek Bluetooth :config offset(15b),length(4)
Realtek Bluetooth :config offset(1e3),length(1)
Realtek Bluetooth :Get config baud rate from config file:4928002
Realtek Bluetooth :Load FW OK
Realtek Bluetooth :RTK send HCI_VENDOR_READ_RTK_ROM_VERISION_Command

Realtek Bluetooth :Received reliable seqno 0 from card
Realtek Bluetooth :receive hci command complete event with command:1001

Realtek Bluetooth :Read RTK LMP version with Status:0
Realtek Bluetooth :gLmpVersion = 0x8723
Realtek Bluetooth :RTK send HCI_VENDOR_READ_RTK_ROM_VERISION_Command

Realtek Bluetooth :Received reliable seqno 1 from card
Realtek Bluetooth :receive hci command complete event with command:fc6d

Realtek Bluetooth :Read RTK rom version with Status:0
Realtek Bluetooth :rtk_hw_cfg.eversion = 1
Realtek Bluetooth :rtk_get_fw_project_id: opcode 0, len 1, data 1
Realtek Bluetooth :fw_ver 0x1e3ee40e, patch_num 2
Realtek Bluetooth :patch length is 0x5e90
Realtek Bluetooth :start offset is 0x4f00
Realtek Bluetooth :fw: exists, config file: exists
Realtek Bluetooth :baudrate in change speed command: 0x2 0x80 0x92 0x4 

Realtek Bluetooth :Received reliable seqno 2 from card
Realtek Bluetooth :receive hci command complete event with command:fc17

Realtek Bluetooth :Change BD Rate with status:0
Realtek Bluetooth :final_speed 1500000

Realtek Bluetooth :hw flow control enable
Realtek Bluetooth :iEndIndex:96  iLastPacketLen:71 iAdditionpkt:4

Realtek Bluetooth :hci_download_patch tx_index:0 rx_index: -1

Realtek Bluetooth ERROR: patch timerout, retry:

Realtek Bluetooth :3-wire download patch re send:0
Realtek Bluetooth ERROR: patch timerout, retry:

Anyone seen this happen before?

dmarkey avatar Nov 26 '17 13:11 dmarkey