This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Wl18xx: Can't init bluetooth during boot; But BT works afterward

Other Parts Discussed in Thread: WL1831

Hello,

Some background information -- We have an existing product based on iMX6 with WL1831.  I am in process of upgrading the Wireless drivers from R8.5 to R8.6

During boot, line-discipline time's out installing.  This causes a long delay in boot-time.
But, after boot finished, if I write "hciconfig hci0 up", it starts without any problem.

What might be the reason for this?

Regards,
Erez


During boot:

Loading modules backported from Linux version R8.6-0-g3f5b34f
Backport generated by backports.git R8.6_SP1-0-g4677dc3
wl18xx_driver wl18xx.0.auto: Direct firmware load failed with error -2
wl18xx_driver wl18xx.0.auto: Falling back to user helper
wlcore: wl18xx HW: 183x or 180x, PG 2.2 (ROM 0x11)
wlcore: loaded
wlcore: driver version:
wlcore: compilation time: timestamp not possible with gcc 4.9
(stk) :ldisc installation timeout
(stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
(stk) :ldisc_install = 1(stk) :ldisc installation timeout
(stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
(stk) :ldisc_install = 1(stk) :ldisc installation timeout
(stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
(stk) :ldisc_install = 1(stk) :ldisc installation timeout
(stk) :ldisc_install = 0(stk) : timed out waiting for ldisc to be un-installed
Bluetooth: st_register failed -22
hci0 880e4000
(stc): chnl_id list empty :4
(stk) : st_kim_start(stk) :ldisc_install = 1
(stk) :ldisc installation timeout(stk) :ldisc_install = 0
(stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
(stk) :ldisc installation timeout(stk) :ldisc_install = 0
(stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
(stk) :ldisc installation timeout(stk) :ldisc_install = 0
(stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
(stk) :ldisc installation timeout(stk) :ldisc_install = 0
(stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
(stk) :ldisc installation timeout(stk) :ldisc_install = 0
(stk) : timed out waiting for ldisc to be un-installed(stk) :ldisc_install = 1
(stk) :ldisc installation timeout(stk) :ldisc_install = 0
(stk) : timed out waiting for ldisc to be un-installedBluetooth: st_register failed -22
Can't init device hci0: Input/output error (5)
wlcore: PHY firmware version: Rev 8.2.0.0.232
wlcore: firmware booted (Rev 8.9.0.0.48)
IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
:
:
UIM SYSFS Node Found at /sys/./devices/soc0/kim.15/install
Starting uim-sysfs daemon.
uim:@ main
uim:install = /sys/./devices/soc0/kim.15/install
uim:dev_name = /sys/./devices/soc0/kim.15/dev_name
uim:baud_rate = /sys/./devices/soc0/kim.15/baud_rate
uim:flow_cntrl = /sys/./devices/soc0/kim.15/flow_cntrl
uim:begin polling...

After login -- I type: 'hciconfig hci0 up' ... and it works immediatly:

hci0 880e4000

(stc): chnl_id list empty :4
(stk) : st_kim_start(stk) :ldisc_install = 1uim:poll broke due to event 10(PRI:2/ERR:8)

uim:read 1 from install

uim:@ st_uart_config
uim: signal received, opening /dev/ttymxc2
uim:@ set_baud_rate
uim:set_baud_rate() done
uim:Setting speed to 3000000
uim:@ read_command_complete
uim: Command complete started
uim:@ read_hci_event
uim: read_hci_event
uim:Command complete done
(stc): st_tty_open
uim:Speed changing to 3000000, (stk) :line discipline installed1
uim:@ set_custom_baud_rate

(stk) :ti-connectivity/TIInit_11.8.32.btsuim:Installed N_TI_WL Line displine
uim:begin polling...
(stk) :change remote baud rate command in firmware
(stk) :skipping the wait event of change remote baud(stc): add_channel_to_table: id 4
(stc): add_channel_to_table: id 2
(stc): add_channel_to_table: id 3
hci0: type 1 len 4
hci0: type 1 len 4
hci0: type 1 len 4
hci0: type 1 len 4
hci0: type 1 len 4
hci0: type 1 len 4
hci0: type 1 len 4
hci0: type 1 len 4
hci0: type 1 len 4
hci0: type 1 len 4
hci0: type 1 len 5
hci0: type 1 len 6
hci0: type 1 len 4
hci0: type 1 len 4
hci0: type 1 len 4
hci0: type 1 len 4
hci0: type 1 len 4
hci0: type 1 len 4
hci0: type 1 len 4
hci0: type 1 len 12
hci0: type 1 len 12
hci0: type 1 len 4
hci0: type 1 len 245
hci0: type 1 len 5
hci0: type 1 len 4
hci0: type 1 len 5
hci0: type 1 len 11
hci0: type 1 len 6