i.MX6 wifi driver can't working

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX6 wifi driver can't working

2,879 Views
sunnyhyh
Contributor II

Hi all,

Recently,I have a problem when using USI wm-bm-bn-04-a(it's same asBCM4330) wifi module on a i.MX6 board(NITROGEN6x) with Android 5.1. In addition ,linux kernel is 3.14.52.

 

Here is part of the dmesg:

<6>acc_open
<6>acc_release
<6>fec 2188000.ethernet eth0: Freescale FEC PHY driver [Atheros 8035 ethernet] (mii_bus:phy_addr=2188000.ethernet:03, irq=188)
<6>IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
<6>mtp_open
<6>binder: 467:1463 transaction failed 29189, size 136-0
<3>brcmfmac: brcmf_sdiod_request_data: failed to read data F1@0x0b800, err: -84
<3>brcmfmac: brcmf_sdiod_request_data: failed to read data F1@0x0b800, err: -84
<3>brcmfmac: brcmf_sdiod_request_data: failed to read data F1@0x09408, err: -84
<3>brcmfmac: brcmf_sdiod_request_data: failed to read data F1@0x09408, err: -84
<3>brcmfmac: brcmf_sdiod_request_data: failed to read data F1@0x09408, err: -84
<3>brcmfmac: brcmf_sdiod_regrw_helper: failed with -84
<3>brcmfmac: brcmf_sdiod_request_data: failed to read data F1@0x09800, err: -84
<3>brcmfmac: brcmf_sdiod_request_data: failed to read data F1@0x09800, err: -84
<3>brcmfmac: brcmf_sdiod_request_data: failed to read data F1@0x09800, err: -84
<3>brcmfmac: brcmf_sdiod_regrw_helper: failed with -84
<4>brcmfmac_sdio mmc1:0001:2: Direct firmware load failed with error -2
<4>brcmfmac_sdio mmc1:0001:2: Falling back to user helper
<4>brcmfmac_sdio mmc1:0001:2: Direct firmware load failed with error -2
<4>brcmfmac_sdio mmc1:0001:2: Falling back to user helper
<4>net_ratelimit: 9 callbacks suppressed
<3>brcmfmac: brcmf_sdio_bus_rxctl: resumed on timeout
<3>brcmfmac: brcmf_fil_cmd_data: Failed err=-110
<3>brcmfmac: brcmf_btcoex_boost_wifi: attempted to restore not saved BTCOEX params
<4>brcmfmac_sdio mmc1:0001:2: Direct firmware load failed with error -2
<4>brcmfmac_sdio mmc1:0001:2: Falling back to user helper
<4>brcmfmac_sdio mmc1:0001:2: Direct firmware load failed with error -2
<4>brcmfmac_sdio mmc1:0001:2: Falling back to user helper
<3>brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Oct 25 2011 19:34:12 version 5.90.125.104
<3>brcmfmac: brcmf_fil_cmd_data: Failed err=-23
<3>brcmfmac: brcmf_fil_cmd_data: Failed err=-23
<3>brcmfmac: brcmf_fil_cmd_data: Failed err=-23
<3>brcmfmac: brcmf_fil_cmd_data: Failed err=-23

 

 
 
root@nitrogen6x:/ # lsmod                                                        
brcmfmac 153531 0 - Live 0x00000000                                              
brcmutil 7000 1 brcmfmac, Live 0x00000000                                        
root@nitrogen6x:/ # netcfg                                                       
wlan0    DOWN                                   0.0.0.0/0   0x00001002 44:39:c40
lo       UP                                   127.0.0.1/8   0x00000049 00:00:000
eth0     UP                                     0.0.0.0/0   0x00001003 00:19:000
root@nitrogen6x:/ # netcfg wlan0 up                                              
net_ratelimit: 8 callbacks suppressed                                            
brcmfmac: brcmf_add_if: ERROR: netdev:wlan0 already exists                       
brcmfmac: brcmf_add_if: ignore IF event                                          
brcmfmac: brcmf_fil_cmd_data: ****added by hu 1206**brcmf_err**Failed err=-23    
brcmfmac: brcmf_construct_reginfo: channel 1: f=2412 bw=0 sb=-1697145300         
brcmfmac: brcmf_construct_reginfo: channel 2: f=2417 bw=0 sb=-1697145300         
brcmfmac: brcmf_construct_reginfo: channel 3: f=2422 bw=0 sb=-1697145300         
brcmfmac: brcmf_construct_reginfo: channel 4: f=2427 bw=0 sb=-1697145300         
brcmfmac: brcmf_construct_reginfo: channel 5: f=2432 bw=0 sb=-1697145300         
brcmfmac: brcmf_construct_reginfo: channel 6: f=2437 bw=0 sb=-1697145300         
brcmfmac: brcmf_construct_reginfo: channel 7: f=2442 bw=0 sb=-1697145300         
root@nitrogen6x:/ #

 

Please help me analyze it and give some advice. Thanks!

 

Best wishes!

Original Attachment has been moved to: log.txt.zip

Labels (3)
Tags (1)
0 Kudos
Reply
4 Replies

1,696 Views
gary_bisson
Senior Contributor III

Hi,

Can you confirm that you've added this WiFi module yourself to the board?

We only offer the Nitrogen6x with a few supported WiFi module and the USI wm-bm-bn-04 isn't one of them.

In that case, please make sure you've done all the porting job and not just using our standard release. Also check the firmware files, it most likely need a custom NVRAM (new routing).

Regards,

Gary

0 Kudos
Reply

1,696 Views
sunnyhyh
Contributor II

Hi,Gary

Thank you for your reply!

I don't know whether Nitrogen6x support USI wm-bm-bn-04-a wifi module?Hardware has been decided, I can only try to do it.

By the way,the firmware and NVRAM files are "brcmfmac4330-sdio.bin" and "brcmfmac4330-sdio.txt".

About DTS:

Most BCM configuration is in "imx6dq-sabresd.dtsi", but I should add some configuration in "imx6qdl-nitrogen6x.dtsi".

Hardware pin configuration is as follows:

SDIO_HOST_WAKE <->MX6QDL_PAD_ENET_TXD1_GPIO1_IO29

WL_REG_ON <->MX6QDL_PAD_ENET_RXD0_GPIO1_IO27

WL_WAKE<->MX6QDL_PAD_ENET_TXD0_GPIO1_IO30

How do I make changes according to the above in the "imx6qdl-nitrogen6x.dtsi"?

Can you give me some suggestion.

Looking forward to your reply!

Best wishes!

sunny_hyh

0 Kudos
Reply

1,696 Views
gary_bisson
Senior Contributor III

Hi,

Well in that case I'm afraid I can't help you since it's a custom design which I have no knowledge of (module schematics/mapping).

As a FYI, we've used the murata module (bcm43340 chip) with no modification in the past.

Regards,

Gary

0 Kudos
Reply

1,696 Views
sunnyhyh
Contributor II

Hi,

Um, I see. Thank you all the same.

Merry Christmas!

Best wishes!

sunny_hyh

0 Kudos
Reply