When the W8997 driver module with kernel version 4.4.50 is installed on the arm platform, the driver cannot be loaded properly and a FW CRC error indicated by the helper is displayed. len = 0x0011, txlen = 17 Abnormal print, suspect whether the firmware is incorrect
, download the firmware for git clone https://github.com/NXP/imx-firmware.git command of NXP, NXP_FIRMWARE \ took imx - the firmware, NXP, FwImage_8997 directory firmware, don't know whether it is right, If no, provide the firmware download path
I do not know whether the driver of this version supports the PCIE W8997 NIC driver mwifiex-lf-6.1.36_2.1.0, or whether the W8997 NIC driver has other versions. If yes, please inform me where to download the driver
Hi, @chengeneg
What is your meaning of NIC?
If you are using this driver: mwifiex-lf-6.1.36_2.1.0, it means you downloaded from our git hub:
https://github.com/nxp-imx/mwifiex/tree/lf-6.1.36_2.1.0
Am I right?
This driver version is supported on Linux kernel 4.4.50, and also support PCIE-UART interface for Wi-Fi and Bluetooth.
And about the FW, yes, you are right. You can download firmware from this git hub:
https://github.com/NXP/imx-firmware.git
We suggest you choose same version with driver.
Can you please let me know your host side platform? Are you using our I.MX series board?
Best regards,
Christine.
Hi, @chengeneg
Are you using arm 32 bit or arm 64 bit host plat form?
Did you put the firmware in /lib/firmware/nxp/ directory on your board?
And can you please provide me your loading Wi-Fi driver parameter and full dmesg logs for further checking?
Best regards,
Christine.
1.平台使用高通平台的QSDK,32位的arm,内核版本为linux-4.4.50
2.驱动版本为网站下载的mwifiex-lf-6.1.36_2.1.0,固件也为该版本mwifiex-lf-6.1.36_2.1.0.firmware
3.驱动加载为insmod mlan.ko , insmod mlan.ko mod_para=nxp/wifi_mod_para.con drvdbg=0xa0037
需要知道根据日志显示是否为估计不匹配问题,如果为估计不匹配请提供固件下载路径,一下为日志消息
[ 5532.027649] wlan: Loading MWLAN driver
[ 5532.048153] wlan: Register to Bus Driver...
[ 5532.048395] vendor=0x1B4B device=0x2B42 rev=17
[ 5532.055880] Attach moal handle ops, card interface type: 0x204
[ 5532.064595] No module param cfg file specified
[ 5532.075201] rx_work=1 cpu_num=4
[ 5532.078523] Attach mlan adapter operations.card_type is 0x204.
[ 5532.116405] Request firmware: nxp/pcieuart8997_combo_v4.bin
[ 5532.119917] woal_init_fw_dpc 3913
[ 5532.125102] wlan_pcie_dnld_fw 4018
[ 5532.145663] FW CRC error indicated by the helper: len = 0x0011, txlen = 17
[ 5532.145859] FW CRC error indicated by the helper: len = 0x0011, txlen = 17
[ 5532.151592] FW download failure @ 0, over max retry count
[ 5534.155624] FW failed to be active in time!
[ 5534.155660] wlan_dnld_fw fail ret=0xffffffff
[ 5534.158624] WLAN: Fail download FW with nowwait: 0
[ 5534.163141] Config Space Registers:
[ 5534.167991] reg:0x00 value=0x2b421b4b
[ 5534.171134] reg:0x04 value=0x00100546
[ 5534.174949] reg:0x10 value=0x4800000c
[ 5534.178759] reg:0x18 value=0x4810000c
[ 5534.182242] reg:0x2c value=0x00000000
[ 5534.186016] reg:0x3c value=0x000001e8
[ 5534.189534] reg:0x44 value=0x00000008
[ 5534.193178] reg:0x80 value=0x10110000
[ 5534.196974] reg:0x98 value=0x00000000
[ 5534.200472] reg:0x170 value=0x0001001e
[ 5534.204106] FW Scrach Registers:
[ 5534.207898] reg:0xcf0 value=0xfedcba00
[ 5534.211142] reg:0xcf8 value=0x0
[ 5534.214698] reg:0xcfc value=0x0
[ 5534.317890] reg:0xcf8 value=0x0
[ 5534.317913] reg:0xcfc value=0x0
[ 5534.419852] Interface registers dump from offset 0xc00 to 0xcfc
[ 5534.419903] 00070621 00000000 c0000000 80000000 9c4730c0 00000000 00000000 00000000
[ 5534.424606] 00000000 00000000 ffffffff 00000000 00000000 00000000 00000000 00000000
[ 5534.432800] 00000011 00000000 00000472 000000e5 00000000 00000000 00001040 76543210
[ 5534.440359] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 5534.448063] a5a00420 040d1be0 01070f1a 5d7c0000 031f9121 00000000 000001e1 00000000
[ 5534.455784] 00078120 00058110 00000000 00000000 00000000 00000000 00000000 00000000
[ 5534.463496] 00010202 00000000 00000000 ffffffff 008003c3 c8701424 00000000 00000000
[ 5534.471234] 00000000 00000000 00000000 00000000 fedcba00 00000000 00000000 00000000
[ 5534.478975] woal_request_fw failed
[ 5534.486657] Firmware Init Failed
[ 5534.489852] woal_add_card 10848
[ 5534.496175] Free module params
[ 5534.496267] woal_pcie_probe: failed
[ 5534.499260] wlan_pcie: probe of 0000:01:00.0 failed with error -14
[ 5534.502747] wlan: Register to Bus Driver Done
[ 5534.508944] wlan: Driver loaded successfully
Hi, @chengeneg
请用附件给出的firmware 文件,放在您板子的如下路径: /lib/firmware/nxp/
并同步检测一下 该路径下的wifi_mod_para.conf文件中,PCIE8997部分是否与如下内容一致?
PCIE8997 = {
cfg80211_wext=0xf
max_vir_bss=1
cal_data_cfg=none
ps_mode=1
auto_ds=1
host_mlme=1
fw_name=nxp/pcieuart8997_combo_v4.bin
}
加载Wi-Fi driver 参数:
insmod mlan.ko
insmod moal.ko mod_para=nxp/wifi_mod_para.con drvdbg=0xa0037
Best regards,
Christine.