I am starting to work with the i.MX8 Mini EVK ( 8MMINILPD4-EVKB ). I can build an image for the device and flash it's eMMC with the uuu tool. I use the latest meta-imx with linux-imx version 5.10.52-lts and Yocto hardknott branch. The MACHINE target in Yocto is 'imx8mmevk' and the image is based on 'core-image-full-cmdline'.
The datasheet says that this EVK contains the following radio:
- SDIO Wi-Fi/Bluetooth: AW-CM358SM (NXP 88W8987), Wi-Fi5 (802.11ac) 1x1 Dual-Band (2.4/5 GHz) and Bluetooth 5.1
The Linux User's Guide claims that this radio is supported in linux-imx by the moal driver.
root@device:~# modprobe moal mod_para=nxp/wifi_mod_para.conf
However, when I run menuconfig for the kernel, there is no radio driver by that name.
I have included the 'linux-firmware' bitbake target and my device has the following files on the root file system:
root@device:/lib/firmware/nxp# ls -lrt
total 2780
-rw-r--r-- 1 root root 4261 Mar 9 2018 wifi_mod_para.conf
-rw-r--r-- 1 root root 28376 Mar 9 2018 txpwrlimit_cfg_9098.conf
-rw-r--r-- 1 root root 25516 Mar 9 2018 txpwrlimit_cfg_8997.conf
-rw-r--r-- 1 root root 20963 Mar 9 2018 txpwrlimit_cfg_8987.conf
-rw-r--r-- 1 root root 481712 Mar 9 2018 sdiouartiw416_combo_v0.bin
-rw-r--r-- 1 root root 548308 Mar 9 2018 sdiouart8997_combo_v4.bin
-rw-r--r-- 1 root root 530240 Mar 9 2018 sdiouart8987_combo_v0.bin
-rw-r--r-- 1 root root 620764 Mar 9 2018 pcieuart9098_combo_v1.bin
-rw-r--r-- 1 root root 554644 Mar 9 2018 pcieuart8997_combo_v4.bin
-rw-r--r-- 1 root root 1049 Mar 9 2018 ed_mac_ctrl_V3_909x.conf
-rw-r--r-- 1 root root 1058 Mar 9 2018 ed_mac_ctrl_V3_8997.conf
-rw-r--r-- 1 root root 1058 Mar 9 2018 ed_mac_ctrl_V3_8987.conf
I tried enabling the 'mwifiex' driver in the Linux menuconfig, since it claims to support this radio, but the driver fails to use the provided firmware:
CONFIG_MWIFIEX=m
CONFIG_MWIFIEX_SDIO=m
root@device:/permanent-storage# dmesg
[ 78.704225] mwifiex_sdio mmc0:0001:1: info: FW download over, size 623240 bytes
[ 94.912462] mwifiex_sdio mmc0:0001:1: FW failed to be active in time
[ 94.912480] mwifiex_sdio mmc0:0001:1: info: _mwifiex_fw_dpc: unregister device
[ 123.876607] imx-sdma 302b0000.dma-controller: external firmware not found, using ROM firmware
How do I configure Yocto to support this radio so that I get a 'wlan0' device? Is the driver I should use called 'moal' or 'mwifiex'? If it is 'moal', how do I build that driver?
Thank you.