2383818_en-US

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

2383818_en-US

2383818_en-US

Request for IW416 Wi-Fi/BT driver source code and build guide for Linux Kernel 6.1.85

Hello NXP Community,

I am currently working on integrating the NXP IW416 (8997-based) Wi-Fi/Bluetooth module into a custom SBC. My system is running a Yocto-based distribution with Linux Kernel 6.1.85.

I would like to build the Wi-Fi and Bluetooth drivers as out-of-tree kernel modules, but I want to make sure I am using the correct and most stable source.

Could you please guide me on the following?

  1. Driver Source Code: Which specific repository and branch (or commit) should I use for Kernel 6.1.85?

  2. Build Instructions: Is there any official documentation, application note, or guide on how to properly build and integrate these drivers and the required firmware?

Any help or pointers to the right resources would be greatly appreciated.

Thank you in advance!

 

Re: Request for IW416 Wi-Fi/BT driver source code and build guide for Linux Kernel 6.1.85

Here is my environment setup:

$ ls -al /lib/firmware/nxp/
drwxr-xr-x 2 root root 4096 Feb 28 02:44 ./
drwxr-xr-x 3 root root 4096 Feb 28 2024 ../
-rw-r--r-- 1 root root 415996 Feb 28 2024 sdioiw416_wlan_v0.bin
-rw-r--r-- 1 root root 570976 Feb 28 2024 sdiouartiw416_combo_v0.bin
-rw-r--r-- 1 root root 154920 Feb 28 2024 uartiw416_bt_v0.bin
-rw-r--r-- 1 root root 58 Feb 28 02:28 wifi_mod_para.conf
 
$ cat /lib/firmware/nxp/wifi_mod_para.conf
fw_name="nxp/sdiouartiw416_combo_v0.bin"
cal_data_cfg=none
 
$ lsmod
Module Size Used by
moal 745472 0
mlan 585728 1 moal
 
I can provide the relevant parts of the dmesg log. Could you let me know which specific keywords or parts I should grep for? Also, I would like to know what the expected result/output is when it operates normally.
 
Thank you.

+ when booting, there is log from mlan driver like below.
[ 1.312336] wlan: Loading MWLAN driver
[ 1.316381] wlan: Register to Bus Driver...
[ 1.321331] wlan: Register to Bus Driver Done
[ 1.326355] wlan: Driver loaded successfully

 
Re: Request for IW416 Wi-Fi/BT driver source code and build guide for Linux Kernel 6.1.85

Hi, @sunam 

The firmware should be placed in /lib/firmware/nxp/.

Like below if you are using the Wi-Fi and Bluetooth combo FW:

root@imx8mnevk:/lib/firmware/nxp# ls -l sduartiw416_combo.bin
-rw-r--r-- 1 root root 406996 Apr 5 2011 sduartiw416_combo.bin

After you put there, please check the wifi driver loading parameters in /lib/firmware/nxp/wifi_mod_para.conf, double confirm the firmware name is matched.

Please provide me dmesg logs from your device booting up if still failed.


Best regards,

Christine.

Re: Request for IW416 Wi-Fi/BT driver source code and build guide for Linux Kernel 6.1.85

Hello,

I am currently working with the IW416 chip. I have successfully built the driver using the 6.1.55-2.2.2 branch and confirmed that the driver was generated correctly.

However, it seems to not be working, and I suspect it is because the latest firmware is missing. Could you please let me know which directory the firmware files should be placed in?

Thank you.

Re: Request for IW416 Wi-Fi/BT driver source code and build guide for Linux Kernel 6.1.85

Hi, @sunam 

1. Please double confirm you are using IW416 or 88W8997, they are different chipset.

For IW416,

To download our latest FW:

imx-firmware/FwImage_IW416_SD at lf-6.18.20_2.0.0 · nxp-imx/imx-firmware · GitHub

To download our latest Driver:

GitHub - nxp-imx/mwifiex at lf-6.18.20_2.0.0 · GitHub

And the driver source code is compatible with hosts running Linux kernel versions ranging from 2.6.32 to 6.19.0, so it is ok for your L6.1.85.

2.Build Instructions: Is there any official documentation, application note, or guide on how to properly build and integrate these drivers and the required firmware?

==> Please refer to:

How to Download and Build NXP Wi-Fi Drivers

And I believe below doc is also useful for you:

Getting Started with NXP-based Wireless Modules on i.MX 8M Quad EVK Running Linux OS

Please let me know whether still have any other concerns.

If no, please help to mark my answer as a solution, so that we can close it.

Welcome to create new case if you meet any issue during using our products.


Best regards,

Christine.


Re: Request for IW416 Wi-Fi/BT driver source code and build guide for Linux Kernel 6.1.85

Hi, @sunam 

Usually it should print dmesg logs like below:

=========

root@imx8mnevk:~# dmesg | grep wlan
[ 5.127546] wlan: Loading MWLAN driver
[ 5.141006] wlan: Register to Bus Driver...
[ 5.213728] wlan: Enable TX SG mode
[ 5.217262] wlan: mpa_tx.buf_size=65280
[ 5.221136] wlan: Enable RX SG mode
[ 5.224679] wlan: mpa_rx.buf_size=65280
[ 6.505940] wlan: Enable RX SG mode
[ 6.585864] wlan: version = SD8987----16.92.21.p155.1-MM6X16540.p33-GPL-(FP92)//Here is an exampel of our 88W8987.
[ 6.624373] wlan: Register to Bus Driver Done
[ 6.637582] wlan: Driver loaded successfully

========

You can modify the wifi_mod_para.conf as below:


======

SDIW416 = {
fw_name=nxp/sdiouartiw416_combo_v0.bin
cal_data_cfg=none
cfg80211_wext=0xf
max_sta_bss=1
drv_mode=7
}

=======

If still fails, please provide me a full dmesg logs from your device booting up.

You can upload the dmesg log as an attachment.


Best regards,

Christine.


标记 (1)
无评分
版本历史
最后更新:
昨天
更新人: