Wifi driver problem in L4.1.15

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

Wifi driver problem in L4.1.15

5,268 Views
ivyliu
Contributor IV

Hi,

I am using murata SN8000 wifi module with sabre quad board.

The driver module in L3.14.52 works fine.

I used "modprobe bcmdhd firmware_path=/lib/firmware/bcm/SN8000_BCM43362/fw_bcmdhd.bin nvram_path=/lib/firmware/bcm/SN8000_BCM43362/bcmdhd.SN8000.SDIO.cal dhd_msg_level=0x1" to install the module.

Now, I switched to L4.1.15 with the same board.  I was using the original zImage and device tree(zImage-imx6qdlsolo.bin and zImage-imx6q-sabresd-btwifi.dtb).

This time the module is built in the kernel, but I always get an error "CFG80211-ERROR) wl_event_handler : was terminated"

dhd_module_init in
Power-up adapter 'DHD generic adapter'
wifi_platform_bus_enumerate device present 1
mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
mmc1: queuing unknown CIS tuple 0x80 (6 bytes)
mmc1: queuing unknown CIS tuple 0x80 (8 bytes)
mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
mmc1: queuing unknown CIS tuple 0x80 (5 bytes)
mmc1: new high speed SDIO card at address 0001
F1 signature OK, socitype:0x1 chip:0xa962 rev:0x1 pkg:0x9
DHD: dongle ram size is set to 245760(orig 245760) at 0x0
wifi_platform_get_mac_addr
CFG80211-ERROR) wl_setup_wiphy : Registering Vendor80211)
wl_create_event_handler(): thread:wl_event_handler:af started
CFG80211-ERROR) wl_event_handler : dhd_attach(): thread:dhd_watchdog_thread:b0 started
dhd_attach(): thread:dhd_dpc:b1 started
dhd_deferred_work_init: work queue initialized
Dongle Host Driver, version 1.141.92 (r)
Compiled in drivers/net/wireless/bcmdhd
Register interface [wlan0] MAC: 00:90:4c:11:22:33


tsk Enter, tsk = 0xa86a143c
CFG80211-ERROR) wl_event_handler : was terminated
wl_destroy_event_handler(): thread:wl_event_handler:af terminated OK
dhd_prot_ioctl : bus is down. we have nothing to do

Could anyone help me with this?

Thank you very much!!

Best Regards,

Ivy

Labels (2)
15 Replies

3,030 Views
karltsou
Contributor I

Hello Ivy,

I cannot understand your question in below. If you use fsl kernel branch L4.1.15 than you have to set kernel configurations for example firmware path and nvram path for built-in wifi module. Moreover it needs to change sdhc configurations in device tree as well.

"Now, I switched to L4.1.15 with the same board.  I was using the original zImage and device tree(zImage-imx6qdlsolo.bin and zImage-imx6q-sabresd-btwifi.dtb)"

0 Kudos

3,030 Views
hungjerry
Contributor II

Hi all,

  I just got same problem now, can I know how to resolve this problem?

0 Kudos

3,030 Views
413232465
Contributor II

Hi all,

  I just got same problem now, can I know how to resolve this problem?

0 Kudos

3,030 Views
ivyliu
Contributor IV

Hi Hung,

The problem I got before was because I was using the target image that built in the package.

But this image does not have WEXT support which need for murata SN8000 wifi module in it.

Therefore, I got the Kernel source code, enable WEXT support(CONFIG_WEXT_CORE and CONFIG_WEXT_PROC) and rebuild it.

Then it works.

I hope this can help you.

Best Regards,

Ivy

0 Kudos

3,030 Views
hungjerry
Contributor II

Hi Ivy,

   Seems that enabled WEXT cant help my problem, I would appreciate it if you can provide the dmesg/log during the wlan0 up for work kernel.

          B.R jerry

0 Kudos

3,030 Views
hungjerry
Contributor II

Hi Ivy,

 many thanks for replied, i would try that as you said, thank again~

                                  B.R jerry

0 Kudos

3,030 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ivy

one can post it on vendor support link

wireless.murata.com/eng/products/rf-modules-1/wi-fi-bluetooth-for-freescale-i-mx.html

Best regards
igor

0 Kudos

3,030 Views
ivyliu
Contributor IV

Hi Igor,

Could you please help me to post? I can not find any link or something to allow me to post.

And could you please help to ask how to get fw_bcmdhd.bin and bcmdhd.SN8000.SDIO.cal for L4.1.15?

Now I only can find them in L4.1.15-1.0.0 and L4.1.15-2.0.0.

Thank you very much!!

Best Regards,

Ivy

0 Kudos

3,030 Views
igorpadykov
NXP Employee
NXP Employee

Hi Ivy

below snapshot of wireless.murata.com/eng/products/rf-modules-1/wi-fi-bluetooth-for-freescale-i-mx.html

with links

pastedImage_1.jpg

Best regards
igor

0 Kudos

3,030 Views
ivyliu
Contributor IV

Hi Igor,

Thanks!!

I got it work with rebuilding the kernel.

Best Regards,

Ivy

3,030 Views
lakshmishetty
Contributor II

Hi Ivy,

Could you please share what you have changed in kernel.

Thanks and Regards,

Lakshmi Hegde

0 Kudos

3,030 Views
ivyliu
Contributor IV

Hi Lakshmi,

The problem I got before was because I was using the target image that built in the package.

But this image does not have WEXT support which need for murata SN8000 wifi module in it.

Therefore, I got the Kernel source code, enable WEXT support(CONFIG_WEXT_CORE and CONFIG_WEXT_PROC) and rebuild it.

Then it works.

I hope this can help you.

Best Regards,

Ivy

0 Kudos

3,030 Views
ivyliu
Contributor IV

Hi Igor,

Thanks. I will post there. 

Best Regards,

Ivy

0 Kudos

3,030 Views
karltsou
Contributor I

Hello Ivy,

I don't think wifi module has any problem since interface wlan0 register successfully.

And if this is the case you might use 

"ifconfig wlan0" check register interface

"ifconfig wlan0 up" active wlan0 interface 

And if wlan0 is up then you can try to use wireless tools "iw" for setting connection with AP

Meanwhile I've noted your bcmdhd version is "1.141.92". As I know the latest stable version within kernel 4.1.15 bcmdhd version is "1.141.88" and I'm not sure if this cause any other problem.

hope this helps, 

0 Kudos

3,030 Views
ivyliu
Contributor IV

Hi Karl,

I can not configure wlan0.

root@imx6qdlsolo:~# ifconfig wlan0 up

Dongle Host Driver, version 1.141.92 (r)
Compiled in drivers/net/wireless/bcmdhd
wl_android_wifi_on in
mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
mmc1: queuing unknown CIS tuple 0x80 (6 bytes)
mmc1: queuing unknown CIS tuple 0x80 (8 bytes)
mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
mmc1: queuing unknown CIS tuple 0x80 (5 bytes)
F1 signature OK, socitype:0x1 chip:0xa962 rev:0x1 pkg:0x9
DHD: dongle ram size is set to 245760(orig 245760) at 0x0
dhdsdio_write_vars: Download, Upload and compare of NVRAM succeeded.
dhdsdio_htclk: HT Avail timeout (1000000): clkctl 0x50
dhd_bus_init: clock state is wrong. state = 1
dhdsdio_htclk: HT Avail timeout (1000000): clkctl 0x50
dhd_net_bus_devreset: dhd_bus_devreset: -1
dhd_open : wl_android_wifi_on failed (-1)
wl_android_wifi_off in
dhd_prot_ioctl : bus is down. we have nothing to do
dhd_net_bus_devreset: dhd_bus_devreset: -35
SIOCSIFFLAGS: Operation not permitted

Is the wrong bcmdhd.bin file used here, why wl_android_wifi_on() get called when I am using Linux?

Thanks and Best Regards,

Ivy

0 Kudos