IMX93 Enable wifi and bluetooth automatically after boot

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

IMX93 Enable wifi and bluetooth automatically after boot

331 次查看
oedze
Contributor I

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?
 

0 项奖励
回复
2 回复数

290 次查看
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

I didn't find a recommended method described in the documentation. However, I tested the following approach on a FRDM‑i.MX93 running Linux 6.18.2. At least in this release, both mlan and moal are already loaded automatically after boot. This means that the only additional step needed is to ensure btnxpuart is also loaded.

Please note this procedure is limited to module loading. Verify on your side if any issue rises and validate it accordingly.

1. Remove btnxpuart from the blacklist file:

/etc/modprobe.d/blacklist.conf

2. Create the following file to specify the modules to be loaded at boot:

/etc/modules-load.d/nxp-wifi-bt.conf 

In this file add btnxpuart

3. In my case, since mlan and moal are already loaded automatically, I only needed to add btnxpuart.

4. Reboot the system.

Regards,
Daniel.

0 项奖励
回复

156 次查看
oedze
Contributor I

We don't have the mlan/moal automatically loaded.

What causes this to load automatically?

0 项奖励
回复
%3CLINGO-SUB%20id%3D%22lingo-sub-2355253%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX93%20%E5%90%AF%E5%8A%A8%E5%90%8E%E8%87%AA%E5%8A%A8%E5%90%AF%E7%94%A8%20wifi%20%E5%92%8C%E8%93%9D%E7%89%99%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2355253%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E5%90%AF%E5%8A%A8%E6%97%B6%E5%88%9D%E5%A7%8B%E5%8C%96%E8%93%9D%E7%89%99%E5%92%8CWifi%E7%9A%84%E6%AD%A3%E7%A1%AE%E6%96%B9%E6%B3%95%E6%98%AF%E4%BB%80%E4%B9%88%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%88%91%E4%BB%AC%E6%AD%A3%E5%9C%A8%E4%BD%BF%E7%94%A8%E5%9F%BA%E4%BA%8E%20FRDM%20%E6%9D%BF%E7%9A%84%20IMX93%20%E7%9A%84%E5%AE%9A%E5%88%B6%E6%9D%BF%E3%80%82%E5%AE%83%E4%BD%BF%E7%94%A8%20IW610%20%E8%8A%AF%E7%89%87%E8%BF%9B%E8%A1%8C%E6%97%A0%E7%BA%BF%2F%E8%93%9D%E7%89%99%E8%BF%9E%E6%8E%A5%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%89%80%E6%9C%89%E6%95%99%E7%A8%8B%E9%83%BD%E6%8F%90%E5%88%B0%E8%A6%81%E8%BF%90%E8%A1%8C%E6%AD%A4%E5%91%BD%E4%BB%A4%EF%BC%9A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-css%22%3E%3CCODE%20translate%3D%22no%22%3Emodprobe%20moal%20mod_para%3Dnxp%2Fwifi_mod_para.conf%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3E%E7%84%B6%E5%90%8E%E6%89%A7%E8%A1%8C%E4%BB%A5%E4%B8%8B%E5%91%BD%E4%BB%A4%EF%BC%88%E7%94%A8%E4%BA%8E%E8%93%9D%E7%89%99%EF%BC%89%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%20translate%3D%22no%22%3Emodprobe%20btnxpuart%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%E8%80%8C%E5%AF%B9%E4%BA%8E%20WIFI%EF%BC%8C%E5%88%99%E4%BD%BF%E7%94%A8%E8%BF%99%E4%BA%9B%E5%91%BD%E4%BB%A4%EF%BC%9A%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%20translate%3D%22no%22%3Eifconfig%20mlan0%20up%0Awpa_supplicant%20-imlan0%20-Dnl80211%20-c%2Fetc%2Fwpa_supplicant.conf%20-B%0Audhcpc%20-i%20mlan0%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%E5%9C%A8Yocto%E4%B8%AD%E7%A1%AE%E4%BF%9D%E8%BF%99%E4%BA%9B%E6%9C%8D%E5%8A%A1%E5%9C%A8%E5%90%AF%E5%8A%A8%E6%97%B6%E8%87%AA%E5%8A%A8%E5%8A%A0%E8%BD%BD%E7%9A%84%E6%AD%A3%E7%A1%AE%E6%96%B9%E6%B3%95%E6%98%AF%E4%BB%80%E4%B9%88%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%88%91%E4%B8%8D%E6%83%B3%E4%BD%BF%E7%94%A8%E5%8F%AA%E8%B0%83%E7%94%A8%E8%BF%99%E4%BA%9B%E5%91%BD%E4%BB%A4%E7%9A%84%20shell%20%E8%84%9A%E6%9C%AC%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%88%91%E5%8F%91%E7%8E%B0%E5%8F%AF%E4%BB%A5%E6%B7%BB%E5%8A%A0%EF%BC%9A%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%20translate%3D%22no%22%3Eoptions%20moal%20mod_para%3Dnxp%2Fwifi_mod_para.conf%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%E5%88%B0%20%2Fetc%2Fmodprobe.d%2Fmoal.conf%3CBR%20%2F%3E%3CBR%20%2F%3E%E5%92%8C%20%3C%2FP%3E%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%20translate%3D%22no%22%3Emoal%0Abtnxpuart%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%E5%88%B0%20%2Fetc%2Fmodules-load.d%2Fmoal.conf%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%E5%B9%B6%E7%A7%BB%E9%99%A4%20%3C%2FP%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%20translate%3D%22no%22%3Eblacklist%20btnxpuart%3C%2FCODE%3E%3C%2FPRE%3E%3CP%3E%E6%9D%A5%E8%87%AA%20%2Fetc%2Fmodprobe.d%2Fblacklist.conf%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%88%91%E5%B7%B2%E7%BB%8F%E7%9F%A5%E9%81%93%E5%A6%82%E4%BD%95%E8%AE%A9%20moal.conf%20%E6%96%87%E4%BB%B6%E6%AD%A3%E5%B8%B8%E5%B7%A5%E4%BD%9C%E4%BA%86%E3%80%82%20%3CBR%20%2F%3E%3CBR%20%2F%3E%E4%BD%86%E6%88%91%E4%B8%8D%E7%9F%A5%E9%81%93%E4%B8%BA%E4%BB%80%E4%B9%88%20btnxpuart%20%E4%BC%9A%E8%A2%AB%E5%88%97%E5%85%A5%E9%BB%91%E5%90%8D%E5%8D%95%E3%80%82%20%3CBR%20%2F%3E%3CBR%20%2F%3E%E5%AE%83%E4%BC%BC%E4%B9%8E%E8%B5%B7%E6%BA%90%E4%BA%8E%20myyocto%2Fsources%2Fmeta-imx%2Fmeta-imx-bsp%2Frecipes-core%2Fudev%2Fudev-extraconf%2Fimx-nxp-bsp%2F%E7%94%B5%E8%B7%AF%E6%9D%BF%E6%94%AF%E6%8C%81%E5%8C%85%2Fblacklist.conf%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%20%3CBR%20%2F%3E%E6%88%91%E7%9A%84%E9%97%AE%E9%A2%98%EF%BC%9A%E7%A1%AE%E4%BF%9D%20HCI%20%E6%8E%A5%E5%8F%A3%E5%92%8C%20MLAN%20%E6%8E%A5%E5%8F%A3%E5%9C%A8%E5%90%AF%E5%8A%A8%E5%90%8E%E9%83%BD%E5%8F%AF%E7%94%A8%E7%9A%84%E6%AD%A3%E7%A1%AE%E6%96%B9%E6%B3%95%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%98%AF%E4%BB%80%E4%B9%88%EF%BC%9F%3CBR%20%2F%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2357044%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX93%20Enable%20wifi%20and%20bluetooth%20automatically%20after%20boot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2357044%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%88%91%E4%BB%AC%E6%B2%A1%E6%9C%89%E8%87%AA%E5%8A%A8%E5%8A%A0%E8%BD%BD%20mlan%2Fmoal%E3%80%82%3CBR%20%2F%3E%3CBR%20%2F%3E%E6%98%AF%E4%BB%80%E4%B9%88%E5%8E%9F%E5%9B%A0%E5%AF%BC%E8%87%B4%E5%AE%83%E8%87%AA%E5%8A%A8%E5%8A%A0%E8%BD%BD%EF%BC%9F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2355456%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX93%20Enable%20wifi%20and%20bluetooth%20automatically%20after%20boot%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2355456%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3E%E6%82%A8%E5%A5%BD%EF%BC%8C%3C%2FP%3E%0A%3CP%3E%E6%88%91%E6%B2%A1%E6%9C%89%E6%89%BE%E5%88%B0%3CSPAN%3E%20%E6%96%87%E6%A1%A3%E4%B8%AD%E6%8F%8F%E8%BF%B0%E7%9A%84%E6%8E%A8%E8%8D%90%E6%96%B9%E6%B3%95%E3%80%82%20%E4%BD%86%E6%98%AF%EF%BC%8C%E6%88%91%E5%9C%A8%E8%BF%90%E8%A1%8C%3C%2FSPAN%3E%20Linux%206.18.2%3CSPAN%3E%20%E7%9A%84%3C%2FSPAN%3E%20FRDM%E2%80%91i.MX93%3CSPAN%3E%20%E4%B8%8A%E6%B5%8B%E8%AF%95%E4%BA%86%E4%BB%A5%E4%B8%8B%E6%96%B9%E6%B3%95%E3%80%82%20%E8%87%B3%E5%B0%91%E5%9C%A8%E8%BF%99%E4%B8%AA%E7%89%88%E6%9C%AC%E4%B8%AD%EF%BC%8C%E5%90%AF%E5%8A%A8%3C%2FSPAN%3E%3CSPAN%3E%20%E5%90%8E%E5%B7%B2%E7%BB%8F%E8%87%AA%E5%8A%A8%E5%8A%A0%E8%BD%BD%E4%BA%86%3C%2FSPAN%3E%20mlan%3CSPAN%3E%20%E5%92%8C%3C%2FSPAN%3E%20moal%E3%80%82%20%E8%BF%99%E6%84%8F%E5%91%B3%E7%9D%80%E5%94%AF%E4%B8%80%E9%9C%80%E8%A6%81%E7%9A%84%E9%A2%9D%E5%A4%96%E6%AD%A5%E9%AA%A4%E6%98%AF%E7%A1%AE%E4%BF%9D%20btnxpuart%3CSPAN%3E%20%E4%B9%9F%E5%B7%B2%E5%8A%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