What is the proper way to initialize Bluetooth and Wifi on boot.
We are using a custom board with the IMX93 based on the FRDM board. It uses the IW610 chip for wifi/bluetooth.
All tutorials mention to run this command:
modprobe moal mod_para=nxp/wifi_mod_para.conf
Then this command (for bluetooth)
modprobe btnxpuart
and for wifi these commands:
ifconfig mlan0 up
wpa_supplicant -imlan0 -Dnl80211 -c/etc/wpa_supplicant.conf -B
udhcpc -i mlan0
What is the proper way in Yocto to make sure these services get loaded automatically on boot.
I don't want to use a shell script that just calls these command .
I've figured out that you can add:
options moal mod_para=nxp/wifi_mod_para.conf
to /etc/modprobe.d/moal.conf
and
moal
btnxpuart
to /etc/modules-load.d/moal.conf
and remove
blacklist btnxpuart
from /etc/modprobe.d/blacklist.conf
I've sort of figured out how to get the moal.conf files to work.
But i dont know why the btnxpuart is blacklisted in the first place.
It seems to originate from myyocto/sources/meta-imx/meta-imx-bsp/recipes-core/udev/udev-extraconf/imx-nxp-bsp/blacklist.conf
My question:
what is the proper way to make sure that both the HCI interface and the MLAN interface are available after boot?