How to use an external WiFi card on 8MMINILPD4-EVKB?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to use an external WiFi card on 8MMINILPD4-EVKB?

863件の閲覧回数
jun_1
Contributor III

Could you please tell me the procedure to use external WiFi card through M.2 connector of 8MMINILPD4-EVKB? I am trying to use Embedded Artist's 2DL M.2 Module with IW611 as the external WiFi card. 

I tried the following method, but the WiFi card was not recognized.

<Procedure>

1) Download the following 4 files from the following site and copy them to /lib/firmware/nxp.

https://github.com/nxp-imx/imx-firmware/tree/lf-6.1.22_2.0.0/nxp

My EVK runs Linux kernel Version: 6.1.22, so I chose the above branch.

sd_w61x_v1.bin.se
sduart_nw61x_v1.bin.se
uartspi_n61x_v1.bin.se
(The above 3 files are under FwImage_IW612_SD.)

wifi_mod_para.conf

I referred to the following link for the method.

https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/Steps-to-replace-the-NXP-Wi-Fi-Bluetooth... 1276955

2) Execute the following command

wpa_passphrase <SSID> <PASS> >> /etc/wpa_supplicant.conf
modprobe moal mod_para=nxp/wifi_mod_para.conf
wpa_supplicant -B -i mlan0 -c /etc/wpa_supplicant.conf -D nl80211
udhcpc -i mlan0

0 件の賞賛
返信
7 返答(返信)

793件の閲覧回数
jun_1
Contributor III

For the below question, I just found that there is not  "imx8mq-evk-usdhc2-m2.dtb" inside LF_v6.6.3-1.0.0_images_IMX8MMEVK.zip, even if it is the latest release. Could you please tell me Which release includes "imx8mq-evk-usdhc2-m2.dtb", or Could you send me that .dtb file?

 

0 件の賞賛
返信

710件の閲覧回数
shaun_wu
NXP TechSupport
NXP TechSupport

Hello @jun_1 

 

imx8mq-evk-usdhc2-m2.dtb this dtb file is for i.MX8MQ, not for i.MX8Mmini.

For i.MX8mm evk, M.2-SD is not supported in hardware. We only leave test point, you need to connect test point to SD2 which is micro sd slot then change dts to configure SD2 to m.2 SD.

The M.2 is default for pice card.

shaun_wu_0-1722221933778.png

 

 

 

Best Regards

Shaun

0 件の賞賛
返信

800件の閲覧回数
jun_1
Contributor III

For the below inquiry, it seems that M.2 connector activation is required, however on the procedure, I have another issue.

I am trying to enable SDIO on M,2 connector refering to Page 49 of UM11483.After I excute the following command, I cannot exit from u-boot even if I hit any key within 2 sec time limit.

u-boot=> setenv fdtfile imx8mq-evk-usdhc2-m2.dtb
u-boot=> saveenv
u-boot=> reset

There is an error which says "Failed to load 'imx8mq-evk-usdhc2-m2.dtb" on the console. I think this causes the above issue. Is there any solution for this? When I don't excute the following command, I can quit u-boot and back into the normal boot.

Whole console log:
U-Boot 2023.04+gf8a2983ec8+p0 (Mar 04 2024 - 07:25:04 +0000)

CPU: i.MX8MMQ rev1.0 1800 MHz (running at 1200 MHz)
CPU: Commercial temperature grade (0C to 95C) at 44C
Reset cause: POR
Model: NXP i.MX8MM EVK board
DRAM: 2 GiB
TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x52]
Power supply on USB2
TCPC: Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x50]
Core: 220 devices, 35 uclasses, devicetree: separate
MMC: FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... OK
[*]-Video Link 0adv7535_mipi2hdmi adv7535@3d: Can't find cec device id=0x3c
fail to probe panel device adv7535@3d
mxs_video lcdif@32e00000: failed to get any video link display timings
probe video device failed, ret -22

[0] lcdif@32e00000, video
[1] mipi_dsi@32e10000, video_bridge
[2] adv7535@3d, panel
adv7535_mipi2hdmi adv7535@3d: Can't find cec device id=0x3c
fail to probe panel device adv7535@3d
mxs_video lcdif@32e00000: failed to get any video link display timings
probe video device failed, ret -22
In: serial
Out: serial
Err: serial
SEC0: RNG instantiated
switch to partitions #0, OK
mmc2(part 0) is current device
flash target is MMC:2
Net: eth0: ethernet@30be0000
Fastboot: Normal
Normal Boot
Hit any key to stop autoboot: 0
Working FDT set to 43000000
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND
starting USB...
Bus usb@32e40000: Port not available.
USB is stopped. Please issue 'usb start' first.
MMC: no card present
switch to partitions #0, OK
mmc2(part 0) is current device
Scanning mmc 2:1...
Working FDT set to 43000000
MMC: no card present
Unable to open OP-TEE session (err=-5)
mm_communicate failed!
Error: Cannot initialize UEFI sub-system, r = 3
Running BSP bootcmd ...
switch to partitions #0, OK
mmc2(part 0) is current device
Failed to load 'boot.scr'
34877952 bytes read in 114 ms (291.8 MiB/s)
Booting from mmc ...
Failed to load 'imx8mq-evk-usdhc2-m2.dtb'
WARN: Cannot load the DT

0 件の賞賛
返信

813件の閲覧回数
jun_1
Contributor III

I tried the following procedure based on UM11483 page 70, after installing  LF_v6.6.3-1.0.0_images_IMX8MMEVK.zip, but console log says wlan: version = SD8987, not SDIW612. Is there additional work before  executing "modprobe moal mod_para=nxp/wifi_mod_para.conf"?

Procedure:

1) I edit /lib/firmware/nxp/wifi_mod_para.conf as follows.

SDIW612 = {
cfg80211_wext=0xf
wfd_name=p2p
max_vir_bss=1
cal_data_cfg=none
drv_mode=7
fw_name=nxp/sduart_nw61x_v1.bin.se
}

2) I executed the following command.

modprobe moal mod_para=nxp/wifi_mod_para.conf

==========================================

Here is the log:

imx8mmevk login: root
[ 53.648980] audit: type=1006 audit(1695209395.624:18): pid=523 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=3 res=1
[ 53.661457] audit: type=1300 audit(1695209395.624:18): arch=c00000b7 syscall=64 success=yes exit=1 a0=8 a1=ffffcfe5e350 a2=1 a3=1 items=0 ppid=1 pid=523 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="(systemd)" exe="/usr/lib/systemd/systemd" key=(null)
[ 53.687243] audit: type=1327 audit(1695209395.624:18): proctitle="(systemd)"
[ 53.694369] audit: type=1334 audit(1695209395.648:19): prog-id=15 op=LOAD
[ 53.701231] audit: type=1300 audit(1695209395.648:19): arch=c00000b7 syscall=280 success=yes exit=8 a0=5 a1=fffffc4f8d78 a2=90 a3=0 items=0 ppid=1 pid=523 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="systemd" exe="/usr/lib/systemd/systemd" key=(null)
[ 53.727020] audit: type=1327 audit(1695209395.648:19): proctitle="(systemd)"
[ 53.734120] audit: type=1334 audit(1695209395.664:20): prog-id=15 op=UNLOAD
[ 53.741127] audit: type=1300 audit(1695209395.664:20): arch=c00000b7 syscall=57 success=yes exit=0 a0=8 a1=1 a2=0 a3=ffff979dd500 items=0 ppid=1 pid=523 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=3 comm="systemd" exe="/usr/lib/systemd/systemd" key=(null)
[ 53.766760] audit: type=1327 audit(1695209395.664:20): proctitle="(systemd)"
[ 53.773872] audit: type=1334 audit(1695209395.664:21): prog-id=16 op=LOAD
root@imx8mmevk:~# modprobe moal mod_para=nxp/wifi_mod_para.conf
[ 65.889718] mlan: loading out-of-tree module taints kernel.
[ 65.918086] wlan: Loading MWLAN driver
[ 65.922320] wlan: Register to Bus Driver...
[ 65.927112] vendor=0x02DF device=0x9149 class=0 function=1
[ 65.933058] Attach moal handle ops, card interface type: 0x105
[ 65.938924] rps set to 0 from module param
[ 65.944830] SD8987: init module param from usr cfg
[ 65.949661] card_type: SD8987, config block: 0
[ 65.954128] cfg80211_wext=0xf
[ 65.957116] max_vir_bss=1
[ 65.959756] cal_data_cfg=none
[ 65.962725] ps_mode = 1
[ 65.965185] auto_ds = 1
[ 65.967653] host_mlme=enable
[ 65.970536] fw_name=nxp/sdiouart8987_combo_v0.bin
[ 65.975298] SDIO: max_segs=128 max_seg_size=65535
[ 65.980029] rx_work=1 cpu_num=4
[ 65.983185] Enable moal_recv_amsdu_packet
[ 65.987266] Attach mlan adapter operations.card_type is 0x105.
[ 65.993718] wlan: Enable TX SG mode
[ 65.997235] wlan: Enable RX SG mode
[ 66.003230] Request firmware: nxp/sdiouart8987_combo_v0.bin
[ 66.308168] Wlan: FW download over, firmwarelen=624672 downloaded 615972
[ 67.177044] WLAN FW is active
[ 67.180067] on_time is 67176946125
[ 67.244546] VDLL image: len=8700
[ 67.247887] FW country code WW does not match with US
[ 67.253169] fw_cap_info=0x181d6f03, dev_cap_mask=0xffffffff
[ 67.258795] max_p2p_conn = 8, max_sta_conn = 8
[ 67.263589] SDIO rx aggr: 1 block_size=512
[ 67.267737] wlan: Enable RX SG mode
[ 67.271243] mpa_rx_buf_size=65280
[ 67.294139] Register NXP 802.11 Adapter mlan0
[ 67.301364] Register NXP 802.11 Adapter uap0
[ 67.315060] Register NXP 802.11 Adapter wfd0
[ 67.319544] wlan: version = SD8987----16.92.21.p119.2-MM6X16437.p3-GPL-(FP92)
[ 67.331066] wlan: Register to Bus Driver Done
[ 67.337709] wlan: Driver loaded successfully

0 件の賞賛
返信

814件の閲覧回数
jun_1
Contributor III

The above problem has been resolved. The following command worked.

.\uuu LF_v6.6.3-1.0.0_images_IMX8MMEVK.zip\uuu.auto-imx8mmevk

0 件の賞賛
返信

824件の閲覧回数
jun_1
Contributor III

Thank you for your answer. I am trying to rewrite the OS after reading the linked documentation, but when I try to rewrite the OS using with uuu, I get an error. I have tried on both Windows and Ubuntu PCs. Could you please advise me on this error?

On Windows, I put the following files in the same directory. In this directory, I started PowerShell and ran ".\uuu.exe LF_v6.6.3-1.0.0_images_IMX8MMEVK.zip", but I get an error. USB connectors: J901,J301,J302 are connected to a Host PC(J901 is not connected when using Linux Host PC), and dip switches on EVK are set to Serial download mode.

uuu.exe
uuu
uuu.auto, which is placed inside LF_v6.6.3-1.0.0_images_IMX8MMEVK.zip
libusb-1.0.dll
LF_v6.6.3-1.0.0_images_IMX8MMEVK.zip

Here is the log:

PS C:\Users\username\Desktop> cd C:\Users\username\Desktop
PS C:\Users\username\Desktop> .\uuu.exe LF_v6.6.3-1.0.0_images_IMX8MMEVK.zip
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.182-0-gda3cd53

Wait for Known USB Device Appear...
Error: fail open file: >LF_v6.6.3-1.0.0_images_IMX8MMEVK.zip/uuu.auto


==============================================================================

I also tried with ubuntu (22.04.4 LTS) but I get the following error.

user@user-desktop:~/Desktop$ sudo ./uuu LF_v6.6.3-1.0.0_images_IMX8MMEVK.zip
./uuu: 1: : not found
./uuu: 1: cannot create @ h@8
K /lib64/ld-linux-x86-64.so.2GNU $ < ] J3 vGNU
B X
_ 5 : Directory nonexistent @ @( e m 9 Һ:
./uuu: 2: : not found
./uuu: 10: uD
/

jY
u
G6
4 I"

T

6j

|=o"X

+


\+ ]"

: not found
./uuu: 11: ^ !
#
: not found
./uuu: 12: : not found
./uuu: 12: : not found
./uuu: 13:
O: not found
./uuu: 14: i: not found
./uuu: 9: Syntax error: Unterminated quoted string

0 件の賞賛
返信

832件の閲覧回数
shaun_wu
NXP TechSupport
NXP TechSupport

Hello @jun_1 

 

You may refer to following guides:

https://www.nxp.com/webapp/Download?colCode=UM11483

 

Best Regards

Shaun

0 件の賞賛
返信