Hi ,
downloaded IW416 driver from github: git clone https://github.com/nxp-imx/mwifiex.git
switched to lf-6.1.36_2.1.0 and compiled the drivers.
please download Firmware from github: git clone https://github.com/NXP/imx-firmware.git
my kernel verison is 6.1.33
steps followed to enable WIFI :
compile wifi driver :
move to 6.1.36. barnch
add CROSS_COMPILE and KENELDIR
change pwd as shell pwd
and compile the wifi drivers
Load :
insmod cfg80211.ko
insmod mac80211.ko
insmod mlan.ko
insmod moal.ko cal_data_cfg=none
=> when i used to load eralier that time it was worked for me
root@am62xx-evm:/home# insmod cfg80211.ko
[ 51.308487] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 51.336917] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 51.344688] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
root@am62xx-evm:/home# [ 51.359055] cfg80211: failed to load regulatory.db
root@am62xx-evm:/home#
root@am62xx-evm:/home# insmod mac80211.ko
root@am62xx-evm:/home# insmod mlan.ko
[ 61.719068] mlan: loading out-of-tree module taints kernel.
root@am62xx-evm:/home# ifconfig -a
eth0 Link encap:Ethernet HWaddr 34:08:E1:87:A8:9F
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:2004 (1.9 KiB)
eth1 Link encap:Ethernet HWaddr 96:27:08:A0:AB:BC
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:2004 (1.9 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:90 errors:0 dropped:0 overruns:0 frame:0
TX packets:90 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6824 (6.6 KiB) TX bytes:6824 (6.6 KiB)
root@am62xx-evm:/home# insmod moal.ko cal_data_cfg=none
[ 144.689146] wlan: Loading MWLAN driver
[ 144.693492] wlan: Register to Bus Driver...
[ 144.780463] vendor=0x02DF device=0x9159 class=0 function=1
[ 144.786205] Attach moal handle ops, card interface type: 0x108
[ 144.792846] rps set to 0 from module param
[ 144.797349] No module param cfg file specified
[ 144.802377] SDIO: max_segs=128 max_seg_size=65536
[ 144.807483] rx_work=1 cpu_num=4
[ 144.811444] Attach mlan adapter operations.card_type is 0x108.
[ 144.818731] wlan: Enable TX SG mode
[ 144.822618] wlan: Enable RX SG mode
[ 144.829926] Request firmware: nxp/sduartiw416_combo.bin
[ 144.836726] WLAN FW already running! Skip FW download
[ 144.842582] WLAN FW is active
[ 144.845549] on_time is 144647979935
[ 144.870237] FW country code WW does not match with US
[ 144.875535] fw_cap_info=0x187c4f03, dev_cap_mask=0xffffffff
[ 144.881647] max_p2p_conn = 8, max_sta_conn = 8
[ 144.913720] Register NXP 802.11 Adapter mlan0
[ 144.927591] Register NXP 802.11 Adapter uap0
[ 144.943618] Register NXP 802.11 Adapter wfd0
[ 144.951794] wlan: version = SDIW416---16.92.21.p55.3-MM6X16408.p2-GPL-(FP92)
[ 144.966890] wlan: Register to Bus Driver Done
[ 144.976151] wlan: Driver loaded successfully
root@am62xx-evm:/home#
root@am62xx-evm:/home# ifconfig -a
eth0 Link encap:Ethernet HWaddr 34:08:E1:87:A8:9F
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:2338 (2.2 KiB)
eth1 Link encap:Ethernet HWaddr 96:27:08:A0:AB:BC
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:3340 (3.2 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:90 errors:0 dropped:0 overruns:0 frame:0
TX packets:90 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:6824 (6.6 KiB) TX bytes:6824 (6.6 KiB)
mlan0 Link encap:Ethernet HWaddr 04:C4:61:AC:81:25
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
uap0 Link encap:Ethernet HWaddr 06:C4:61:AC:82:25
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
wfd0 Link encap:Ethernet HWaddr 06:C4:61:AC:81:25
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Thanks,
Naresh