Hi @Ram2 ,
Follow the steps below to make a test, please!
===========================
1. Building default Yocto bsp to create images for you board.
2.. Downloading images you built and starting your board.
3.. Building the wifi driver you want to use.
-- Kernel directory should be like this:
tmp/work/imx8mm_ddr4_evk-poky-linux/linux-imx/6.6.52+git/build
##export KERNELDIR= ....(absolute path)... input it using your pat
--Setting cross compilation environment, should be like this:
# source /opt/fsl-imx-wayland/6.6-nanbield/environment-setup-armv8a-poky-linux
[Note]
Toolchain should be the one you exported from yocto source (populate_sdk), it menas you your image and wifi driver must be built using the same cross compiler.
--Copying mlan.ko & moal.ko after building wifi driver to your board home directory.
--Copying companion firmware of the version of wifi driver to board (/lib/firmware/nxp)
4.. Loading Wi-Fi driver on your board.
# cd ~/
# insmod mlan.ko
# insmod moal.ko mod_para=nxp/wifi_mod_para.conf
Don't use modprobe command, it will load default wifi driver in image, NOT yours.
===========================
Try it, please!
Thanks!
Regards,
weidong