Hi,
I am running Linux on a i.MX6 Solo-based board. I enabled the Shared Transport driver in kernel. I am able to see "btwilink" and "kim" devices under /sys/devices/platform/. Upon running the command "hciconfig hci0 up", I am getting the error "failed to read local version". The logs show that the host is able to set the UART speed of WL18xx to 3M. Since this is done using HCI command, this shows that the interface between host and WL18xx is working.
I checked out UIM from https://gitorious.org/uim. Is this the right UIM to use for WL18xx?
If this is the right UIM, please share your thoughts on possible reasons for set_custom_baud_rate() to work, but reading of version info from st_kim.c in kernel times out.
The logs are given below:
# hciconfig hci0 up
uim:poll broke due to event 10(PRI:2/ERR:8)
uim:read 1 from install
uim:@ st_uart_config
uim: signal received, opening /dev/ttymxc3
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(stk) :read_local_version
uim:Speed changing to 3000000,
(stc): >>>tty: ttymxc3
1
uim:@ set_custom_baud_rate
uim:Installed N_TI_WL Line displine
uim:begin polling...
(stk) : waiting for ver info- timed out
(stk) :kim: failed to read local ver(stk) :download firmware failed
uim:poll broke due to event 10(PRI:2/ERR:8)
uim:read 0 from install
uim:@ st_uart_config
uim:Un-Installed N_TI_WL Line displine
uim:begin polling...
uim:poll broke due to event 10(PRI:2/ERR:8)
uim:read 1 from install
uim:@ st_uart_config
uim: signal received, opening /dev/ttymxc3
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(stk) :read_local_version
uim:Speed changing to 3000000,
(stc): >>>tty: ttymxc3
1
uim:@ set_custom_baud_rate
uim:Installed N_TI_WL Line displine
uim:begin polling...
(stk) : waiting for ver info- timed out
(stk) :kim: failed to read local ver(stk) :download firmware failed
uim:poll broke due to event 10(PRI:2/ERR:8)
uim:read 0 from install
uim:@ st_uart_config
uim:Un-Installed N_TI_WL Line displine
uim:begin polling...
uim:poll broke due to event 10(PRI:2/ERR:8)
uim:read 1 from install
uim:@ st_uart_config
uim: signal received, opening /dev/ttymxc3
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(stk) :read_local_version
uim:Speed changing to 3000000,
(stc): >>>tty: ttymxc3
1
uim:@ set_custom_baud_rate
uim:Installed N_TI_WL Line displine
uim:begin polling...
(stk) : waiting for ver info- timed out
(stk) :kim: failed to read local ver(stk) :download firmware failed
uim:poll broke due to event 10(PRI:2/ERR:8)
uim:read 0 from install
uim:@ st_uart_config
uim:Un-Installed N_TI_WL Line displine
uim:begin polling...
uim:poll broke due to event 10(PRI:2/ERR:8)
uim:read 1 from install
uim:@ st_uart_config
uim: signal received, opening /dev/ttymxc3
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(stk) :read_local_version
uim:Speed changing to 3000000,
(stc): >>>tty: ttymxc3
1
uim:@ set_custom_baud_rate
uim:Installed N_TI_WL Line displine
uim:begin polling...
(stk) : waiting for ver info- timed out
(stk) :kim: failed to read local ver(stk) :download firmware failed
uim:poll broke due to event 10(PRI:2/ERR:8)
uim:read 0 from install
uim:@ st_uart_config
uim:Un-Installed N_TI_WL Line displine
uim:begin polling...
uim:poll broke due to event 10(PRI:2/ERR:8)
uim:read 1 from install
uim:@ st_uart_config
uim: signal received, opening /dev/ttymxc3
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(stk) :read_local_version
uim:Speed changing to 3000000,
(stc): >>>tty: ttymxc3
1
uim:@ set_custom_baud_rate
uim:Installed N_TI_WL Line displine
uim:begin polling...
(stk) : waiting for ver info- timed out
(stk) :kim: failed to read local ver(stk) :download firmware failed
uim:poll broke due to event 10(PRI:2/ERR:8)
uim:read 0 from install
uim:@ st_uart_config
uim:Un-Installed N_TI_WL Line displine
uim:begin polling...
uim:poll broke due to event 10(PRI:2/ERR:8)
uim:read 1 from install
uim:@ st_uart_config
uim: signal received, opening /dev/ttymxc3
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(stk) :read_local_version
uim:Speed changing to 3000000,
(stc): >>>tty: ttymxc3
1
uim:@ set_custom_baud_rate
uim:Installed N_TI_WL Line displine
uim:begin polling...
(stk) : waiting for ver info- timed out
(stk) :kim: failed to read local ver(stk) :download firmware failed
uim:poll broke due to event 10(PRBluetooth: st_register failed -22
I:2/ERR:8)
uim:read 0 from install
uim:@ st_uart_config
uim:Un-Installed N_TI_WL Line displine
uim:begin polling...
Can't init device hci0: Input/output error (5)