PAN9026

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
1,981 Views
Amine_Ferchichi
Contributor I

Hello

Hello,

In fact I am using a PAN9026 wifi module on my IMX8 card.
with ubunto 4.14.78.
I have correctly configured the linux kernel and I created an image based on this configuration but I still have this message when inserting my wifi module.
[ 23.559413] mmc1: new ultra high speed DDR50 SDIO card at address 0001
and again I can't find the mrvl folder under / lib / firmwear / mrvl

0 Kudos
1 Solution
1,938 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Amine_Ferchichi ,

Even if your kerenl is 4.14.98, compiling and loading driver are the same as that of L5.4.21.

Assume you are using imx-yocto-bsp and linux host it ubuntu 18.04.

1. compiling your board board bsp in yocto.

2. export cross-compiling toolchain from yocto and install it to /opt directory

On how to export the toolchain, refer to i.MX_Linux_User's_Guide.pdf. 

4.5.12 How to build U-Boot and Kernel in standalone environment

3. downloading 8977 driver from our website if you have been authorized

after decompressing it, you will get 5 .tgz file and FwImage directory.

SD-BT-8977-U16-MMC-16.26.10.p98-C4X14114_V2-GPL-src.tgz
SD-BT-CHAR-8977-U16-MMC-16.26.10.p98-C4X14114_V2-GPL-src.tgz
SD-UAPSTA-8977-U16-MMC-W16.68.10.p98-C4X16679_V2-app-src.tgz
SD-UAPSTA-8977-U16-MMC-W16.68.10.p98-C4X16679_V2-MGPL-src.tgz
SD-UAPSTA-8977-U16-MMC-W16.68.10.p98-C4X16679_V2-mlan-src.tgz

Using these commands to decompress them at the current path.

# tar zxf SD-UAPSTA-8977-U16-MMC-W16.68.10.p98-C4X16679_V2-app-src.tgz

# tar zxf SD-UAPSTA-8977-U16-MMC-W16.68.10.p98-C4X16679_V2-MGPL-src.tgz

#tar zxf SD-UAPSTA-8977-U16-MMC-W16.68.10.p98-C4X16679_V2-mlan-src.tgz

#tar zxf SD-BT-8977-U16-MMC-16.26.10.p98-C4X14114_V2-GPL-src.tgz

# tar zxf SD-BT-8977-U16-MMC-16.26.10.p98-C4X14114_V2-GPL-src.tgz

SD-UAPSTA-BT-8977-U16-MMC-W16.68.10.p98-16.26.10.p98-C4X16679_V2-MGPL will be created.

# cd SD-UAPSTA-BT-8977-U16-MMC-W16.68.10.p98-16.26.10.p98-C4X16679_V2-MGPL

# ls

mbtc_src       mbt_src       wlan_src

Three directories can be found. mbt_src is for bluetooth, and wlan_src is for wifi

4. entering into wlan_src directory of driver.

# cd wlan_src

#source /opt/fsl-imx-xwayland/4.14-sumo/environment-setup-aarch64-poky-linux

#export KERNELDIR=/home/weidong/imx-yocto-bsp-4.14.98/build-xwayland/tmp/work/imx8mmevk-poky-linux/linux-imx/4.14.98-r0/build

(this is the directory of mine, for yours, you should check and change it to yours)

# unset LDFLAGS

# make

 
 

you will get 2 .ko files:  mlan.ko & sd8xxx.ko .

copy these 2 files and firmware( sd8977_ble_v2.bin sd8977_bt_v2.bin sd8977_wlan_v2.bin sdsd8977_combo_v2.bin) to board ( /home/root)

5. On board

# cd ~/

# mkdir /lib/firmware/nxp

# cp ./*.bin /lib/firmware/nxp

# insmod mlan.ko

# insmod sd8xxx.ko 'drv_mode=7 ps_mode=2 auto_ds=2 cfg80211_wext=0xf fw_name=nxp/sdsd8977_combo_v2.bin cal_data_cfg=none'

Then use ifconfig -a to check wifi interface.

up to now, loading driver is done.

 

Try it, please!

Have a good day!

regards,

weidong

View solution in original post

0 Kudos
4 Replies
1,901 Views
Amine_Ferchichi
Contributor I

Hello

 

The insertion of PAN9026 driver in the image based on 4.14.98.2.3.0 is done.

 

Here is the log when i insert drivers:

 

root@imx8qxpc0mek:~# insmod mlan.ko

ext=0xf fw_name=nxp/sdsd8977_combo_v2.bin cal_data_cfg=none'auto_ds=2 cfg80211_w

[ 28.002126] wlan: Loading MWLAN driver

[ 28.008724] vendor=0x02DF device=0x9145 class=0 function=1

[ 28.014331] SDIO: max_segs=128 max_seg_size=65535

[ 28.019072] rx_work=1 cpu_num=4

[ 28.023494] wlan: Enable TX SG mode

[ 28.027014] wlan: Enable RX SG mode

[ 28.034819] Request firmware: nxp/sdsd8977_combo_v2.bin

[ 28.816579] Wlan: FW download over, firmwarelen=595348 downloaded 595348

[ 29.723953] WLAN FW is active

[ 29.754070] fw_cap_info=0x18fccf03, dev_cap_mask=0xffffffff

[ 29.759701] max_p2p_conn = 8, max_sta_conn = 8

[ 29.771394] call regulatory_set_wiphy_regd US

[ 29.788389] wlan: version = SD8977-16.68.10.p98-C4X16C679-GPL-(FP68)

[ 29.799835] Set REG 0x80002328: 0x13d57 slew_rate=3

[ 29.810108] wlan: Driver loaded successfully

 

The probleme is that after the insertion of drivers, we got an error on the configuration of the board as an access point :

step1)root@8qxpc0mek:~# ifconfig mlan0 up

step2)update /etc/wpa_supplicant.conf with the AP parametres.

step3)root@8qxpc0mek:~# sudo wpa_supplicant -B -i mlan0 -c /etc/wpa_supplicant.conf -D wext

Successfully initialized wpa_supplicant

rfkill: Cannot open RFKILL control device

 

 

and when i brone up my mlan0 interface

 

root@imx8qxpc0mek:~# ifconfig mlan0 up

[ 242.099918] IPv6: ADDRCONF(NETDEV_UP): mlan0: link is not ready

 

and i see that the rfkill device is missing,  when i try to execute rfkill list, this error message appaire

 

rfkill: /dev/rfkill: No such file or directory.

 

Regards,

 

Mohamed Amine.

0 Kudos
1,945 Views
Amine_Ferchichi
Contributor I
Hello,
Thanks for your feedback.
But in fact my problem is in version 4.14 ....
on the other hand in version 5.4.21_2.1.0 I manage to integrate the driver of my divice PAN9026.
By that in version 4.14 I find in the build lo folder of my driver.
under build-x11-pico-imx8 / tmp / work / imx8qxpc0mek-poky-linux / linux-imx / 4.14.98-r0 / build / drivers / net / wireless / marvell / mwifiex
I have correctly configured the linux kernel and I created an image based on this configuration but I still have this message when inserting my wifi module.
[ 23.559413] mmc1: new ultra high speed DDR50 SDIO card at address 0001
and again I can't find the mrvl folder under / lib / firmwear / mrvl
 

 

0 Kudos
1,939 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Amine_Ferchichi ,

Even if your kerenl is 4.14.98, compiling and loading driver are the same as that of L5.4.21.

Assume you are using imx-yocto-bsp and linux host it ubuntu 18.04.

1. compiling your board board bsp in yocto.

2. export cross-compiling toolchain from yocto and install it to /opt directory

On how to export the toolchain, refer to i.MX_Linux_User's_Guide.pdf. 

4.5.12 How to build U-Boot and Kernel in standalone environment

3. downloading 8977 driver from our website if you have been authorized

after decompressing it, you will get 5 .tgz file and FwImage directory.

SD-BT-8977-U16-MMC-16.26.10.p98-C4X14114_V2-GPL-src.tgz
SD-BT-CHAR-8977-U16-MMC-16.26.10.p98-C4X14114_V2-GPL-src.tgz
SD-UAPSTA-8977-U16-MMC-W16.68.10.p98-C4X16679_V2-app-src.tgz
SD-UAPSTA-8977-U16-MMC-W16.68.10.p98-C4X16679_V2-MGPL-src.tgz
SD-UAPSTA-8977-U16-MMC-W16.68.10.p98-C4X16679_V2-mlan-src.tgz

Using these commands to decompress them at the current path.

# tar zxf SD-UAPSTA-8977-U16-MMC-W16.68.10.p98-C4X16679_V2-app-src.tgz

# tar zxf SD-UAPSTA-8977-U16-MMC-W16.68.10.p98-C4X16679_V2-MGPL-src.tgz

#tar zxf SD-UAPSTA-8977-U16-MMC-W16.68.10.p98-C4X16679_V2-mlan-src.tgz

#tar zxf SD-BT-8977-U16-MMC-16.26.10.p98-C4X14114_V2-GPL-src.tgz

# tar zxf SD-BT-8977-U16-MMC-16.26.10.p98-C4X14114_V2-GPL-src.tgz

SD-UAPSTA-BT-8977-U16-MMC-W16.68.10.p98-16.26.10.p98-C4X16679_V2-MGPL will be created.

# cd SD-UAPSTA-BT-8977-U16-MMC-W16.68.10.p98-16.26.10.p98-C4X16679_V2-MGPL

# ls

mbtc_src       mbt_src       wlan_src

Three directories can be found. mbt_src is for bluetooth, and wlan_src is for wifi

4. entering into wlan_src directory of driver.

# cd wlan_src

#source /opt/fsl-imx-xwayland/4.14-sumo/environment-setup-aarch64-poky-linux

#export KERNELDIR=/home/weidong/imx-yocto-bsp-4.14.98/build-xwayland/tmp/work/imx8mmevk-poky-linux/linux-imx/4.14.98-r0/build

(this is the directory of mine, for yours, you should check and change it to yours)

# unset LDFLAGS

# make

 
 

you will get 2 .ko files:  mlan.ko & sd8xxx.ko .

copy these 2 files and firmware( sd8977_ble_v2.bin sd8977_bt_v2.bin sd8977_wlan_v2.bin sdsd8977_combo_v2.bin) to board ( /home/root)

5. On board

# cd ~/

# mkdir /lib/firmware/nxp

# cp ./*.bin /lib/firmware/nxp

# insmod mlan.ko

# insmod sd8xxx.ko 'drv_mode=7 ps_mode=2 auto_ds=2 cfg80211_wext=0xf fw_name=nxp/sdsd8977_combo_v2.bin cal_data_cfg=none'

Then use ifconfig -a to check wifi interface.

up to now, loading driver is done.

 

Try it, please!

Have a good day!

regards,

weidong

0 Kudos
1,970 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello @Amine_Ferchichi ,

It means there is no 88W8977 driver (PAN9026 module) in your system.

It's driver can be downloaded from our website if you have signed NDA and been authorized.

https://www.nxp.com/products/wireless/wi-fi-plus-bluetooth/88w8977-2-4-5-ghz-dual-band-1x1-wi-fi-4-8...

weidong_sun_0-1628222392270.png

---About the pan9026(88w8977 chip) driver, you can also ask for help from Panasonic FAE.

---On how to compile it and integrate it to i.MX8 + linux bsp

you can refer to the link:

https://community.nxp.com/t5/Wireless-Connectivity-Knowledge/WiFi-BT-Integretion-88W8801-To-iMX6ULL-...

https://community.nxp.com/t5/Wireless-Connectivity-Knowledge/How-to-Integrate-88W8997-to-iMX8MM-EVK-...

 

Have a good day!

Regards,

weidong

 

0 Kudos