Wifi W8997's firmwre and RFtest issue

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

Wifi W8997's firmwre and RFtest issue

3,400 Views
changbaoma
Contributor III

Hi, NXP Experts

I use linux v5.4 kenerl from NXP yocto on my AW-CM276 sdio wifi modules(chipset is W8997). And i have change kernel/drivers/net/wireless/nxp/mxm_wifiex/wlan_src/Makefile to support my sdio wifi, see below:
@@ -28,10 +28,10 @@ CONFIG_PCIE8897=n
CONFIG_SD8977=n
CONFIG_SD8978=n
CONFIG_USB8978=n
-CONFIG_SD8997=n
+CONFIG_SD8997=y
CONFIG_USB8997=n
CONFIG_PCIE8997=n
-CONFIG_SD8987=y
+CONFIG_SD8987=n
CONFIG_SD9097=n
CONFIG_USB9097=n
CONFIG_PCIE9097=n
Now wifi seems work fine both wifi(ap/sta mode) and bluetooth.

And i have tried the firmware sdsd8997_combo_v4.bin from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/mrvl and sdsd8997_combo_v4.bin form Marvell's SD-WLAN-SD-BT-8997-U16-MMC-W16.68.10.p137-16.26.10.p137-C4X16687_V4-MGPL\FwImage, but both face RFtest interface can not work, i refer Chapter 2.8 of NXP pdf Feature Configuration Guide for NXP-based Wireless Modules on i.MX 8M Quad EVK - User manual (public... . see below:

root@root:/proc/mwlan/adapter0# ls
config p2p0 uap0 wlan0
root@root:/proc/mwlan/adapter0# pwd
/proc/mwlan/adapter0
root@root:/proc/mwlan/adapter0# echo "rf_test_mode=1" >>config
root@root:/proc/mwlan/adapter0# cat config
hardware_status=0
netlink_num=31
drv_mode=7
sdcmd52rw=0 0x0 0x00  

(Do not exist rf_test_mode=1)
root@Router:/proc/mwlan/adapter0#

My qustions:

1. How can i dual with this issue?

2. Is there a special mfg wifi fireware for RFtest?

3. How can i get the w8997 sdio wifi firmwares matched to the drivers/net/wireless/nxp/mxm_wifiex of NXP linux kernel 5.4?

 

0 Kudos
8 Replies

3,216 Views
CrawfordW
Contributor I

Thanks for the information you shared. Loved the way you explained everything in this post.

0 Kudos

3,364 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

 

The first recommendation that I would provide would be to make sure that you are using the latest BSP version (the FP92) in this case which is available in this link.

We do have a software test software called Labtool or manufacturing tool, that help us through the different test for both WiFi and Bluetooth , this software is available in the web page of each device, it would be the 88w8997  for your case, under the secure tab (you will need to make sure to be singed into your account ) .

Could you please try using that and let me know if that works for you ? If you can't locate the sw, please let me know as well.

 

Regards

 

 

 

0 Kudos

3,359 Views
changbaoma
Contributor III

Hello, @estephania_mart 

Your reply seems do not answer my confuse:

1. How can i dual with this issue?

2. Is there a special mfg wifi fireware for RFtest?

3. How can i get the w8997 sdio wifi firmwares matched to the drivers/net/wireless/nxp/mxm_wifiex of NXP linux kernel 5.4?

 

--> The first recommendation that I would provide would be to make sure that you are using the latest BSP version (the FP92) in this case which is available in this link.

I use Linux 5.4.70_2.3.0​ + Linux 5.4.70_2.3.1 Patch.

Your colleague has confirmed that labtool cannot be used on imx8+sd8997(but in imx8mplus EVK  imx8+pcie8997 board, labtool works) , so he recommended me to use proc/mwlan/adapter0/config interface to do the same things. Post link: https://community.nxp.com/t5/Wireless-Connectivity/Wifi-MFGTool%E4%BB%A5%E5%8F%8Alabtool%E4%B8%8D%E8...

 

 

0 Kudos

3,293 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

 

Sorry I believe that I was confused by the question , were you looking for a software to perform some RF tests? If this is not the case, could you please help me with more details ?

The 88W8997 is a 2x2 device, also I saw another post from other colleague with some help with the drivers, is there some question that we are missing ?

 

Regards

0 Kudos

3,280 Views
changbaoma
Contributor III

Hello, @estephania_mart 

since i upgrade mwifiex driver in my linux5.4 to the newest version one(branch remotes/origin/lf-5.10.72_2.2.0 of git http://source.codeaurora.org/external/imx/mwifiex (mxm5x17283.p2))  and use the newest firmware  nxp/FwImage_8997_SD/sdiouart8997_combo_v4.bin(branch remotes/origin/lf-5.10.72_2.2.0 of git https://github.com/NXP/imx-firmware.git (SDIO-UART W8987 Firmware version 16.92.21.p11.1)),  the below RFtest cmd test seams works:

root@root:/proc/mwlan/adapter0# echo "rf_test_mode=1" >>config
root@root:/proc/mwlan/adapter0# cat config
hardware_status=0
netlink_num=31
drv_mode=7
sdcmd52rw=0 0x0 0x00
rf_test_mode=1
tx_antenna=1
rx_antenna=1
band=0
bw=0
channel=
radio_mode[0]=
radio_mode[1]=
total rx pkt count=0
rx multicast/broadcast pkt count=0
rx fcs error pkt count=0
tx_power=
tx_continuous=0
tx_frame=0
he_tb_tx=0

I use branch lf-5.10.72_2.2.0 because the lastest update both mwifiex driver and sd firmware is at Nov-15-2021. which is the newest among all branches.

 

 Now i have two qustions:

1. I use branch remotes/origin/lf-5.10.72_2.2.0 mwifiex driver and sd firmware for my linux5.4.24 kernel above,is any risk?

2. how can i find  the newest firmware sdsd8997_combo_v4.bin (both wifi and bluetooth use sdio interface) ,which matched mwifiex driver version mxm5x17283.p2, eg  16.92.21.p11.1?  i can't find it in https://github.com/NXP/imx-firmware.git 

 

0 Kudos

3,250 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

 

Have you tried my colleague recommendation from the driver in this other post?

 

https://community.nxp.com/t5/Wireless-Connectivity/Does-W8997-support-second-AP-interface/m-p/140131...

 

Regards,
Estephania

0 Kudos

3,178 Views
changbaoma
Contributor III

Yes, i have tried.

I git clone w8997 wifi firmware(imx-firmware) from http://source.codeaurora.org/external/imx/mwifiex:

imx-firmware$ git branch -a
* master (doesn't include the newest commit)
remotes/origin/HEAD -> origin/master
remotes/origin/imx_5.4.70_2.3.0
remotes/origin/imx_5.4_android
remotes/origin/lf-5.10.52_2.1.0
remotes/origin/lf-5.10.72_2.2.0  (I found this wifi firmware branch with the newest commit)
remotes/origin/lf-5.10.y_1.0.0
remotes/origin/lf-5.10.y_2.0.0
remotes/origin/master

 

And I git clone w8997 wifi driver(mwifiex) from https://github.com/NXP/imx-firmware.git 

mwifiex$ git branch -a
* master (doesn't include the newest commit)
remotes/origin/HEAD -> origin/master
remotes/origin/imx_5.4.70_2.3.0
remotes/origin/lf-5.10.52_2.1.0
remotes/origin/lf-5.10.72_2.2.0  (I found this wifi driver branch with the newest commit)
remotes/origin/lf-5.10.y_1.0.0
remotes/origin/lf-5.10.y_2.0.0
remotes/origin/master

 

In my case, i use use kernel linux 5.4.70  for my imx6ull.

I use wifi firmware/driver branch lf-5.10.72_2.2.0 because the lastest update both mwifiex driver and sdio firmware for w8997 are all at Nov-15-2021. which is the newest among all branches.

 

 Now my qustions:

1. Why branch imx_5.4.70_2.3.0 in imx-firmware and mwifiex, does not update to as new as lf-5.10.72_2.2.0? and does branch imx_5.4.70_2.3.0 will update later?

2. How NXP manager those banch?  i can see different wifi driver version(git commit) and firmware version(git commit) for each branch? Will NXP continue to update each branch?

changbaoma_0-1644293008824.png

How can i get the newest w8997 commits for both mwifiex driver and imx-firmware?

3. Now I use branch remotes/origin/lf-5.10.72_2.2.0 mwifiex driver and sd firmware for my imx6ull  linux5.4.70 kernel above,is there any risk?

4. How can i find  the newest firmware sdsd8997_combo_v4.bin (both wifi and bluetooth use sdio interface, if i don't want to use uart for w8997 bluetooth) ,which matched mwifiex driver version mxm5x17283.p2, eg  16.92.21.p11.1?  

0 Kudos

3,142 Views
estephania_mart
NXP TechSupport
NXP TechSupport

Hello,

 

I apologize for the inconvenience this might cause you, but we do not have a roadmap with the updates on the branches. 

The version of Firmware is in one-to-one correspondence with the Linux kernel version, so, please do not mix the driver and FW versions between different kernel's versions.

 

Regards,

Estephania

0 Kudos