Tool/software: Linux
Hi,
We use WL1837MOD on our board which is based on nxp i.mx6dl.
Our board is runing linux kernel 4.14.78.
Sometimes Bluetooth initialization succeeds.
the success log:
[ 0.110501] Bluetooth: Core ver 2.22
[ 0.110592] Bluetooth: HCI device and connection manager initialized
[ 0.110609] Bluetooth: HCI socket layer initialized
[ 0.110623] Bluetooth: L2CAP socket layer initialized
[ 0.110676] Bluetooth: SCO socket layer initialized
[ 1.423982] Bluetooth: HCI UART driver ver 2.3
[ 1.428471] Bluetooth: HCI UART protocol H4 registered
[ 1.433646] Bluetooth: HCI UART protocol BCSP registered
[ 1.439036] Bluetooth: HCI UART protocol LL registered
[ 1.444273] Bluetooth: HCI UART protocol ATH3K registered
[ 1.449714] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 1.456163] Bluetooth: HCI UART protocol Intel registered
[ 1.461766] Bluetooth: HCI UART protocol Broadcom registered
[ 1.467466] Bluetooth: HCI UART protocol QCA registered
[ 1.472725] Bluetooth: HCI UART protocol AG6XX registered
[ 1.478153] Bluetooth: HCI UART protocol Marvell registered
[ 2.883724] Bluetooth: RFCOMM TTY layer initialized
[ 2.888660] Bluetooth: RFCOMM socket layer initialized
[ 2.893853] Bluetooth: RFCOMM ver 1.11
[ 2.897643] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 2.902985] Bluetooth: BNEP filters: protocol multicast
[ 2.908247] Bluetooth: BNEP socket layer initialized
[ 2.913241] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 2.919194] Bluetooth: HIDP socket layer initialized
[ 2.969723] Bluetooth: Starting self testing
[ 3.019973] Bluetooth: ECDH test passed in 44858 usecs
[ 3.033652] Bluetooth: SMP test passed in 7616 usecs
[ 3.038711] Bluetooth: Finished self testing
[ 5.697052] Bluetooth: hci0: request_firmware failed(errno -11) for ti-connectivity/TIInit_11.8.32.bts
[ 5.706546] Bluetooth: hci0: download firmware failed, retrying...
[ 5.843303] Bluetooth: hci0: change remote baud rate command in firmware
Sometimes Bluetooth initialization fails:
[ 0.111894] Bluetooth: Core ver 2.22
[ 0.111957] Bluetooth: HCI device and connection manager initialized
[ 0.111974] Bluetooth: HCI socket layer initialized
[ 0.111988] Bluetooth: L2CAP socket layer initialized
[ 0.112029] Bluetooth: SCO socket layer initialized
[ 1.431517] Bluetooth: HCI UART driver ver 2.3
[ 1.436007] Bluetooth: HCI UART protocol H4 registered
[ 1.441170] Bluetooth: HCI UART protocol BCSP registered
[ 1.446556] Bluetooth: HCI UART protocol LL registered
[ 1.451729] Bluetooth: HCI UART protocol ATH3K registered
[ 1.457155] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 1.463605] Bluetooth: HCI UART protocol Intel registered
[ 1.469185] Bluetooth: HCI UART protocol Broadcom registered
[ 1.474881] Bluetooth: HCI UART protocol QCA registered
[ 1.480138] Bluetooth: HCI UART protocol AG6XX registered
[ 1.485565] Bluetooth: HCI UART protocol Marvell registered
[ 2.850017] Bluetooth: RFCOMM TTY layer initialized
[ 2.854953] Bluetooth: RFCOMM socket layer initialized
[ 2.860144] Bluetooth: RFCOMM ver 1.11
[ 2.863937] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 2.869282] Bluetooth: BNEP filters: protocol multicast
[ 2.874543] Bluetooth: BNEP socket layer initialized
[ 2.879541] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 2.885485] Bluetooth: HIDP socket layer initialized
[ 2.936066] Bluetooth: Starting self testing
[ 2.986287] Bluetooth: ECDH test passed in 44828 usecs
[ 2.999979] Bluetooth: SMP test passed in 7605 usecs
[ 3.004994] Bluetooth: Finished self testing
[ 5.803678] Bluetooth: hci0: request_firmware failed(errno -11) for ti-connectivity/TIInit_11.8.32.bts
[ 5.813093] Bluetooth: hci0: download firmware failed, retrying...
[ 5.938912] Bluetooth: hci0: change remote baud rate command in firmware
[ 12.063955] Bluetooth: hci0 command 0xff05 tx timeout
[ 20.447938] Bluetooth: hci0: send command failed
[ 20.454246] Bluetooth: hci0: download firmware failed, retrying...
[ 22.623886] Bluetooth: hci0 command 0x1001 tx timeout
[ 30.687948] Bluetooth: hci0: Reading TI version information failed (-110)
[ 30.694876] Bluetooth: hci0: download firmware failed, retrying...
[ 32.863938] Bluetooth: hci0 command 0x1001 tx timeout
[ 40.921674] Bluetooth: hci0: Reading TI version information failed (-110)
[ 40.928587] Bluetooth: hci0: download firmware failed, retrying...
I have read other articles on the forum and I could make sure the CTS & RTS pins are connected correctly.
I also tried porting linux kernel 3.14.52 driver to kernel 4.14.78.
But the same error happened.
The success log under driver 3.14.52:
[ 1.039398] (stk) :sysfs entries created
[ 1.043396] (stk) : debugfs entries created
[ 1.468114] (stk) : st_kim_start
[ 1.573127] (stk) :ldisc_install = 1
[ 2.592598] (stk) :ldisc installation timeout
[ 2.592603] (stk) :ldisc_install = 0
[ 3.616647] (stk) : timed out waiting for ldisc to be un-installed
[ 3.723709] (stk) :ldisc_install = 1
[ 4.768619] (stk) :ldisc installation timeout
[ 4.768628] (stk) :ldisc_install = 0
[ 5.792617] (stk) : timed out waiting for ldisc to be un-installed
[ 5.899664] (stk) :ldisc_install = 1
[ 6.944686] (stk) :ldisc installation timeout
[ 6.944701] (stk) :ldisc_install = 0
[ 7.968617] (stk) : timed out waiting for ldisc to be un-installed
[ 8.075667] (stk) :ldisc_install = 1
[ 9.120344] (stk) :ldisc installation timeout
[ 9.120353] (stk) :ldisc_install = 0
[ 10.144009] (stk) : timed out waiting for ldisc to be un-installed
[ 10.251031] (stk) :ldisc_install = 1
[ 10.258869] (stk) :line discipline installed
[ 10.264996] (stk) :TIInit_11.8.32.bts
[ 10.275548] (stk) :change remote baud rate command in firmware
[ 10.275555] (stk) :skipping the wait event of change remote baud
the fail log under 3.14.52:
[ 1.039134] (stk) :sysfs entries created
[ 1.043134] (stk) : debugfs entries created
[ 1.467603] (stk) : st_kim_start
[ 1.572616] (stk) :ldisc_install = 1
[ 2.597397] (stk) :ldisc installation timeout
[ 2.597403] (stk) :ldisc_install = 0
[ 3.617230] (stk) : timed out waiting for ldisc to be un-installed
[ 3.724278] (stk) :ldisc_install = 1
[ 4.769571] (stk) :ldisc installation timeout
[ 4.769580] (stk) :ldisc_install = 0
[ 5.793223] (stk) : timed out waiting for ldisc to be un-installed
[ 5.900784] (stk) :ldisc_install = 1
[ 6.945326] (stk) :ldisc installation timeout
[ 6.945342] (stk) :ldisc_install = 0
[ 7.969249] (stk) : timed out waiting for ldisc to be un-installed
[ 8.078231] (stk) :ldisc_install = 1
[ 9.120981] (stk) :ldisc installation timeout
[ 9.120991] (stk) :ldisc_install = 0
[ 10.145327] (stk) : timed out waiting for ldisc to be un-installed
[ 10.252381] (stk) :ldisc_install = 1
[ 10.259980] (stk) :line discipline installed
[ 11.104496] (stk) : waiting for ver info- timed out
[ 11.104512] (stk) :kim: failed to read local ver
[ 11.109614] (stk) :download firmware failed
[ 11.114393] (stk) :ldisc_install = 0
[ 11.227736] (stk) :ldisc_install = 1
[ 11.229493] (stk) :line discipline installed
[ 12.064074] (stk) : waiting for ver info- timed out
[ 12.064088] (stk) :kim: failed to read local ver
[ 12.069196] (stk) :download firmware failed
[ 12.074044] (stk) :ldisc_install = 0
[ 12.187287] (stk) :ldisc_install = 1
[ 12.190088] (stk) :line discipline installed
[ 13.023760] (stk) : waiting for ver info- timed out
[ 13.023775] (stk) :kim: failed to read local ver
[ 13.028877] (stk) :download firmware failed
[ 13.033727] (stk) :ldisc_install = 0
[ 13.147008] (stk) :ldisc_install = 1
[ 13.148384] (stk) :line discipline installed
[ 13.983469] (stk) : waiting for ver info- timed out
[ 13.983483] (stk) :kim: failed to read local ver
[ 13.988594] (stk) :download firmware failed
[ 13.993397] (stk) :ldisc_install = 0
[ 14.106624] (stk) :ldisc_install = 1
[ 14.108074] (stk) :line discipline installed
[ 14.943041] (stk) : waiting for ver info- timed out
[ 14.943047] (stk) :kim: failed to read local ver
[ 14.948048] (stk) :download firmware failed
[ 14.953497] (stk) :ldisc_install = 0
[ 15.068378] (stk) :ldisc_install = 1
[ 15.070127] (stk) :line discipline installed
[ 15.902776] (stk) : waiting for ver info- timed out
[ 15.902783] (stk) :kim: failed to read local ver
[ 15.907831] (stk) :download firmware failed
[ 15.912731] (stk) :ldisc_install = 0
[ 16.026366] (stk) :ldisc_install = 1
[ 16.029213] (stk) :line discipline installed
[ 16.862491] (stk) : waiting for ver info- timed out
[ 16.862505] (stk) :kim: failed to read local ver
[ 16.867617] (stk) :download firmware failed
[ 16.872459] (stk) :ldisc_install = 0
By the way, I changed the retry count from 5 to 10.
Could you help me with this?
				
                          