BT Firmware Init Failed

cancel
Showing results for 
Search instead for 
Did you mean: 

BT Firmware Init Failed

525 Views
m_sadashiv
Contributor I

Hi Team,

I was trying to load mbt8xxx.ko bt module on Ubuntu 18.04 (kernel 5.0.0-23-generic) ended with the above error.

Here are the logs :-

[ 6837.045298] mmc0: new SDIO card at address 0001
[ 7124.794849] BT: Loading driver
[ 7124.902279] BT Request firmware: nxp/sdsd8987_combo.bin
[ 7126.255473] BT: FW download over, size 614792 bytes
[ 7136.193399] Fail to poll firmware status: firmwarestat=0x0
[ 7136.194193] SDIO Func0 (0x0-0x9)43 03 04 04 05 00 00 02 03 00
[ 7136.194563] SDIO Func2 (0x0-0x9)00 00 00 00 3f 00 00 00 00 00
[ 7136.194784] Init Status Reg (0xf1-0xf6): 14 70 c8 c3 03 00
[ 7136.194786] BT: FW failed to be active in time!
[ 7136.194820] FW failed to be download!
[ 7136.194821] BT Firmware Init Failed
[ 7136.202664] sdio_bt: probe of mmc0:0001:2 failed with error -1
[ 7136.202701] BT: Driver loaded successfully

Procedure followed:-

  1. Marvel 8987 board is powered on
  2. Connected to Linux machine via sdio interface
  3. Board is detected with mmc0 emulation on Linux
  4. Built the bt module successfully
  5. Placed firmware in /lib/firmware/nxp directory as mentioned
  6. Used the below command to insert bt module and firmware loading as well.                                                                          $sudo insmod mbt8xxx.ko fw=1

Please would you help to mitigate this issue.

Thanks.

Labels (2)
Tags (1)
0 Kudos
4 Replies

413 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Sadashiv Magadum,

I hope you are doing great and sorry for my late response.

I hope the WLAN/BT driver was compiled properly for kernel version 18.04. 

 

Could you help me with some of the next questions?

1. Did you try loading WLAN? Is the WLAN working or has the same issue as of BT loading?

2. Please help to share the complete dmesg log .

3. Please help to provide the output of:  cat /proc/mbt/mbtchar0/status

Regards,

Mario

0 Kudos

413 Views
m_sadashiv
Contributor I

Hi Mario,

Thanks for asking and I wish, you also doing the same.

Compilation is done properly.

1. Did you try loading WLAN? Is the WLAN working or has the same issue as of BT loading?

   -->> Yes, Able to load combo and wlan firmware's using wlan module successfully. But firmware load is failing with bt module's both char module and bluez modules. As of now we are trying to load first wlan module with combo firmware  and bt module with bt firmware. Hence we are able to work with bluetooth now.

2. Please help to share the complete dmesg log .

-->> Success logs

[14760.256814] wlan: Loading MWLAN driver

[14760.257012] vendor=0x02DF device=0x9149 class=0 function=1

[14760.257125] SDIO: max_segs=128 max_seg_size=65536

[14760.257128] rx_work=1 cpu_num=8

[14760.257772] wlan: Enable TX SG mode

[14760.257773] wlan: Enable RX SG mode

[14760.268989] Request firmware: nxp/sdsd8987_combo.bin

[14761.097005] Wlan: FW download over, firmwarelen=614792 downloaded 614792

[14761.990881] WLAN FW is active

[14762.027947] fw_cap_info=0x587cbf03, dev_cap_mask=0xffffffff

[14762.027960] max_p2p_conn = 0, max_sta_conn = 8

[14762.034513] wlan: version = SD8987-16.88.10.p59-C4X15C668-GPL-(FP88)

[14762.238687] Set REG 0x80002328: 0x13d57 slew_rate=3

[14763.047190] wlan: Driver loaded successfully

[14769.311126] wlan: SCAN COMPLETED: scanned AP count=0

[14920.828869] BT: Loading driver

[14920.836090] BT FW is active(0)

[14920.836094] BT: FW already downloaded!

[14920.851444] BT: Driver loaded successfully

-->> Failure logs

           Attached in first comment.

3. Please help to provide the output of:  cat /proc/mbt/mbtchar0/status

-->> In case of failure, we'll not get this interface.

Regards,

Sadashiv

0 Kudos

413 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Sadashiv,

The combo FW is always loaded via WLAN.

This could be the reason why BT is not brought up directly using combo FW.

 

For BT only bring up, use BT only FW, not combo FW.
1. copy BT only FW to lib/firmware/nxp

2. insmod mbt8xxx.ko fw_name=nxp/sd8987_bt.bin 

Regards,

Mario

0 Kudos

413 Views
mario_castaneda
NXP TechSupport
NXP TechSupport

Hi Sadasvir,

I am checking this issue. I am working on it.

Regards,

Mario

0 Kudos