Does the Linux 5.10.72_2.2.0 Demo Binary include the 88W8987 driver?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Does the Linux 5.10.72_2.2.0 Demo Binary include the 88W8987 driver?

Jump to solution
5,574 Views
HiroakiOkoshi
Contributor III

I simply want to set up an evaluation environment for 88W8987 (JODY-W2). The materials I have are as follows. (By the way, in the environment of zeus, YOCTO is built and it works.)

  1. i.MX6Qsabresd Board
  2. EVK-JODY-W2

The downloaded binary is below.

LF_v5.10.72-2.2.0_images_IMX6QPDLSOLOX.zip

I run to the imx6QsabreSsd board with the following command.

 

>uuu -b emmc_all u-boot-imx6qsabresd_sd-optee.imx imx-image-full-imx6qpdlsolox.wic
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.4.165-0-ge10b026

Success 1    Failure 0


1:3      8/ 8 [Done                                  ] FB: done

 

The first thing that surprised me when I started it was that /lib/modules/5.10.72-lts-5.10.y+ga68e31b63f86 haven't   88W8987 module.
There is a 88W8987 firm in /lib/firmware/nxp/.

I've tried the following just in case, but I don't see any signs that modules or firms are being read.

 

# modprobe moal mod_para=nxp/wifi_mod_para_sd8987.conf
# dmesg | tail 
[   21.785922] wlan: Register to Bus Driver Done
[   35.033751] usb_otg_vbus: disabling
[   35.037271] wm8962-supply: disabling
[   35.040861] MPCIE_3V3: disabling
[   35.045428] VGEN1: disabling

 

Does the Linux 5.10.72_2.2.0 Demo Binary include the 88W8987 driver?

According to the document (SCR-5.10.72-2.2.0.txt) included in LF_v5.10.72-2.2.0_images_IMX6QPDLSOLOX.zip, the following notation is given, so it was judged that the driver was included.

 

NXP Software Content Register

Release - Linux 5.10.72-2.2.0
 December 2021

Outgoing License: LA_OPT_NXP_Software_License v30 October 2021 - Additional distribution license granted - Section 2.3 applies
License File:     COPYING

Yocto Project recipe manifest:
repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-hardknott -m imx_5.10.72-2.2.0.xml

Release tag: rel_imx_5.10.72-2.2.0

--------------------------------------------
BSP Packages
--------------------------------------------

--------------------------------------------

Package:                     imx-firmware.git
Version:                     
Outgoing License:            LA_OPT_NXP_Software_License v27 July 2021 - Additional distribution license granted - Section 2.3 applies 
License File:                EULA.txt
Package Category:            BSP
Type of Content:             binary
Description and comments:    BSP firmware - Bluetooth and WIFI
Release Location:            https://github.com/NXP/imx-firmware -b master
Origin:                      brcm: Broadcom Corporation (proprietary)
                             cyw-wifi-bt: Cypress Semiconductor Corporation (proprietary)
                             nxp: NXP (proprietary)

--------------------------------------------

Package:                     mwifiex.git
Version:                     
Outgoing License:            GPL-2.0 
License File:                mxm_wifiex/wlan_src/gpl-2.0.txt
Package Category:            BSP
Type of Content:             source
Description and comments:    NXP Wi-Fi linux SDK
Release Location:            https://source.codeaurora.org/external/imx/mwifiex -b rel_imx_5.10.72-2.2.0
Origin:                      NXP (GPL-2.0)

--------------------------------------------

 

 

I tried to build 5.10.72-lts-5.10 YOCTO simple(repo sync & bitbake), but after all, the Driver of 88W8987 was not included.
Currently, I want to use NXP drivers, so I'd like to somehow create the latest environment for this board.

What should I do?

 

The system information is below.

root@imx6qpdlsolox:/etc# uname -a
Linux imx6qpdlsolox 5.10.72-lts-5.10.y+ga68e31b63f86 #1 SMP PREEMPT Tue Nov 23 06:02:20 UTC 2021 armv7l armv7l armv7l GNU/Linux
root@imx6qpdlsolox:/etc# lscpu
Architecture:        armv7l
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
Vendor ID:           ARM
Model:               10
Model name:          Cortex-A9
Stepping:            r2p10
CPU max MHz:         996.0000
CPU min MHz:         396.0000
BogoMIPS:            6.00
Flags:               half thumb fastmult vfp edsp neon vfpv3 tls vfpd32

 

Tags (1)
0 Kudos
Reply
1 Solution
5,451 Views
HiroakiOkoshi
Contributor III

Hi All.

The problem has been solved.

The root cause was less contact SDIO connector.
Sorry for the misguided discussion

[Conclusion]

"Does the Linux 5.10.72_2.2.0 Demo Binary include the 88W8987 driver?"

"Yes!!!!"

[Procedure (imx6qsabresd emmc boot)]

1.Get LF_v5.10.72-2.2.0_images_IMX6QPDLSOLOX.zip from the NXP site.

2.Flash (SW6=[00000000] )

>uuu -b emmc_all u-boot-imx6qsabresd_sd-optee.imx imx-image-full-imx6qpdlsolox.wic

 

3.As follows (SW6=[01101011])

 

root@imx6qpdlsolox:~# modprobe moal mod_para=nxp/wifi_mod_para_sd8987.conf
[   23.157341] mlan: loading out-of-tree module taints kernel.
[   23.250455] wlan: Loading MWLAN driver
[   23.254750] wlan: Driver loaded successfully
[   23.259126] wlan: Register to Bus Driver...
[   23.269119] vendor=0x02DF device=0x9149 class=0 function=1
[   23.274969] Attach moal handle ops, card interface type: 0x105
[   23.287963] SD8987: init module param from usr cfg
[   23.292797] card_type: SD8987, config block: 0
[   23.297310] cfg80211_wext=0xf
[   23.300284] max_vir_bss=1
[   23.302911] cal_data_cfg=none
[   23.305923] ps_mode = 1
[   23.308382] auto_ds = 1
[   23.310845] host_mlme=enable
[   23.313775] fw_name=nxp/sdiouart8987_combo_v0.bin
[   23.318522] SDIO: max_segs=128 max_seg_size=65535
[   23.323237] rx_work=1 cpu_num=4
[   23.326615] Attach mlan adapter operations.card_type is 0x105.
[   23.338615] wlan: Enable TX SG mode
[   23.342110] wlan: Enable RX SG mode
[   23.363836] Request firmware: nxp/sdiouart8987_combo_v0.bin
[   23.871997] Wlan: FW download over, firmwarelen=568984 downloaded 568984
[   24.833953] WLAN FW is active
[   24.836945] on_time is 24833286335
[   24.873885] fw_cap_info=0x181c7f03, dev_cap_mask=0xffffffff
[   24.879505] max_p2p_conn = 8, max_sta_conn = 8
[   24.909831] wlan: version = SD8987----16.92.21.p11.1-MM5X16283.p2-GPL-(FP92)
[   24.918892] wlan: Register to Bus Driver Done

root@imx6qpdlsolox:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

sit0      no wireless extensions.

mlan0     IEEE 802.11-DS  ESSID:""
          Mode:Managed  Access Point: Not-Associated   Bit Rate:1 Mb/s
          Tx-Power=24 dBm
          Retry limit:9   RTS thr=2347 B   Fragment thr=2346 B
          Encryption key:off
          Power Management:on
          Link Quality=0/5  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:2
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

uap0      IEEE 802.11-DS  ESSID:""
          Mode:Master  Frequency:2.437 GHz  Access Point: Not-Associated
          Encryption key:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

wfd0      IEEE 802.11-DS  ESSID:""
          Mode:Managed  Access Point: Not-Associated   Bit Rate:1 Mb/s
          Tx-Power=24 dBm
          Retry limit:9   RTS thr=2347 B   Fragment thr=2346 B
          Encryption key:off
          Power Management:on
          Link Quality=0/5  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:2
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root@imx6qpdlsolox:~# lscpu
Architecture:        armv7l
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
Vendor ID:           ARM
Model:               10
Model name:          Cortex-A9
Stepping:            r2p10
CPU max MHz:         996.0000
CPU min MHz:         396.0000
BogoMIPS:            6.00
Flags:               half thumb fastmult vfp edsp neon vfpv3 tls vfpd32

root@imx6qpdlsolox:/etc# head -80  /lib/firmware/nxp/wifi_mod_para_sd8987.conf | tail -10

SD8987 = {
        cfg80211_wext=0xf
        max_vir_bss=1
        cal_data_cfg=none
        ps_mode=1
        auto_ds=1
        host_mlme=1
        fw_name=nxp/sdiouart8987_combo_v0.bin
}

root@imx6qpdlsolox:~# uname -a
Linux imx6qpdlsolox 5.10.72-lts-5.10.y+ga68e31b63f86 #1 SMP PREEMPT Tue Nov 23 06:02:20 UTC 2021 armv7l armv7l armv7l GNU/Linux

root@imx6qpdlsolox:/etc# lsmod
Module                  Size  Used by
moal                  671744  0
mlan                  540672  1 moal
caam_jr               143360  0
caamkeyblob_desc       16384  1 caam_jr
caamhash_desc          16384  1 caam_jr
caamalg_desc           57344  1 caam_jr
crypto_engine          16384  1 caam_jr
rng_core               20480  1 caam_jr
authenc                16384  1 caam_jr
libdes                 28672  1 caam_jr
mxc_v4l2_capture       32768  0
ipu_bg_overlay_sdc     16384  1 mxc_v4l2_capture
ipu_still              16384  1 mxc_v4l2_capture
ipu_prp_enc            16384  1 mxc_v4l2_capture
ipu_csi_enc            16384  1 mxc_v4l2_capture
ipu_fg_overlay_sdc     16384  1 mxc_v4l2_capture
imx_vdoa               16384  0
ov5640_camera_mipi_int    32768  0
ov5640_camera_int      32768  0
v4l2_int_device        16384  3 ov5640_camera_mipi_int,ov5640_camera_int,mxc_v4l2_capture
caam                   20480  1 caam_jr
secvio                 16384  0
error                  20480  6 caamkeyblob_desc,caamalg_desc,caamhash_desc,caam_jr,caam,secvio

 

 Very Thanks.

View solution in original post

0 Kudos
Reply
7 Replies
5,565 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi @HiroakiOkoshi ,

i.MX8MN-EVK board supports 88W8987 hardware, so it's default demo image includes 8987 driver.

for i.mx6q serials, you should select it in linux kernel. 

then use modprobe to load it.

 

Have a good day!

Regards,

weidong

 

0 Kudos
Reply
5,557 Views
HiroakiOkoshi
Contributor III

Do you mean this selecting?

HiroakiOkoshi_2-1640331993232.png

Thanks.

 

 

 
0 Kudos
Reply
5,546 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello @HiroakiOkoshi ,

 

sorry, correct it.

In kernel, it's Marvel driver, not latest one. below is an example for getting driver:

--driver
#git clone http://source.codeaurora.org/external/imx/mwifiex.git
#git tag
#git checkout lf-5.10.72_2.2.0

--firmware
https://github.com/NXP/imx-firmware/tree/lf-5.10.72_2.2.0/nxp

 

you can select related driver and firmware according to your kernel version. and compile it separately.

 

Have a good day!

Regards,

weidong

 

0 Kudos
Reply
5,518 Views
HiroakiOkoshi
Contributor III

Thanks.

I knew that this file could be obtained with this command, but I avoided it because it is not a YOCTO recipe.
I tried running it with imx6qsabresd, but the error code was as follows because various environments are different in the first place.

 

 

root@imx6qpdlsolox:/usr/src/mwifiex/mxm_wifiex/wlan_src# make build
make -C /usr/src/arm/linux_5_10_y_kernel/linux-nxp M=/usr/src/mwifiex/mxm_wifiex/wlan_src ARCH=arm64 CROSS_COMPILE=/opt/fsl-imx-internal-xwayland/5.10-gatesgarth/sysroots/x86_64-pokysdk-linux/usr/bin/aarch64-poky-linux/aarch64-poky-linux- modules
make[1]: *** /usr/src/arm/linux_5_10_y_kernel/linux-nxp: No such file or directory.  Stop.
make: *** [Makefile:565: default] Error 2

 

 

 

In other words, in YOCTO's HOST environment, I have to carefully set the compiler and linux source directory and build them.

understand. I will try it.

 

 

user@rz3900:/work/tmp_temp/mwifiex/mxm_wifiex/wlan_src$ export CROSS_COMPILE=/work/imx-5.10.72-2.2.0.xml/build-fb/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/util-linux-libuuid/2.36.2-r0/recipe-sysroot-native/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/arm-poky-linux-gnueabi-
user@rz3900:/work/tmp_temp/mwifiex/mxm_wifiex/wlan_src$ export KERNELDIR=/work/imx-5.10.72-2.2.0.xml/build-fb/tmp/work-shared/imx6qsabresd/kernel-build-artifacts/
user@rz3900:/work/tmp_temp/mwifiex/mxm_wifiex/wlan_src$ make build
make -C /work/imx-5.10.72-2.2.0.xml/build-fb/tmp/work-shared/imx6qsabresd/kernel-build-artifacts/ M=/work/tmp_temp/mwifiex/mxm_wifiex/wlan_src ARCH=arm64 CROSS_COMPILE=/work/imx-5.10.72-2.2.0.xml/build-fb/tmp/work/cortexa9t2hf-neon-poky-linux-gnueabi/util-linux-libuuid/2.36.2-r0/recipe-sysroot-native/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/10.2.0/arm-poky-linux-gnueabi- modules
make[1]: ディレクトリ '/work/imx-5.10.72-2.2.0.xml/build-fb/tmp/work-shared/imx6qsabresd/kernel-build-artifacts' に入ります
CC [M] /work/tmp_temp/mwifiex/mxm_wifiex/wlan_src/mlan/mlan_module.o
In file included from /work/imx-5.10.72-2.2.0.xml/build-fb/tmp/work-shared/imx6qsabresd/kernel-source/include/linux/types.h:6,
from /work/imx-5.10.72-2.2.0.xml/build-fb/tmp/work-shared/imx6qsabresd/kernel-source/include/linux/list.h:5,
from /work/imx-5.10.72-2.2.0.xml/build-fb/tmp/work-shared/imx6qsabresd/kernel-source/include/linux/module.h:12,
from /work/tmp_temp/mwifiex/mxm_wifiex/wlan_src/mlan/mlan_module.c:29:
/work/imx-5.10.72-2.2.0.xml/build-fb/tmp/work-shared/imx6qsabresd/kernel-source/include/uapi/linux/types.h:5:10: fatal error: asm/types.h: No such file or directory
5 | #include <asm/types.h>
| ^~~~~~~~~~~~~
compilation terminated.
/work/imx-5.10.72-2.2.0.xml/build-fb/tmp/work-shared/imx6qsabresd/kernel-source/scripts/Makefile.build:280: recipe for target '/work/tmp_temp/mwifiex/mxm_wifiex/wlan_src/mlan/mlan_module.o' failed
make[3]: *** [/work/tmp_temp/mwifiex/mxm_wifiex/wlan_src/mlan/mlan_module.o] Error 1
/work/imx-5.10.72-2.2.0.xml/build-fb/tmp/work-shared/imx6qsabresd/kernel-source/Makefile:1822: recipe for target '/work/tmp_temp/mwifiex/mxm_wifiex/wlan_src' failed
make[2]: *** [/work/tmp_temp/mwifiex/mxm_wifiex/wlan_src] Error 2
/work/imx-5.10.72-2.2.0.xml/build-fb/tmp/work-shared/imx6qsabresd/kernel-source/Makefile:185: recipe for target '__sub-make' failed
make[1]: *** [__sub-make] Error 2
make[1]: ディレクトリ '/work/imx-5.10.72-2.2.0.xml/build-fb/tmp/work-shared/imx6qsabresd/kernel-build-artifacts' から出ます
Makefile:565: recipe for target 'default' failed
make: *** [default] Error 2

I tried it, but it doesn't fit.
Give up and think about other things.

 

 

0 Kudos
Reply
5,485 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello @HiroakiOkoshi ,

 

See Below steps, please!

1. exporting cross-compiling toolchain using Yocto

open i.MX_Linux_Users_Guide.pdf, and search standalone, you will see how to export the toolchain.

2. installing the toolchain(.sh file) to /opt directory.

3. using source command to configure environment, like below

enter into wifi's wlan_src subdirectory, and run :

#source /opt/fsl-imx-fb/5.4-zeus/environment-setup-cortexa9t2hf-neon-poky-linux-gnueabi

[Note]

above is mine , yours should be a little different.

4. setting KERNELDIR

It is in yocot build(tmp/work....) directory, 

5. run make build or make

 

after compilation is done, mlan.ko & moal.ko are generated.

these 2 files are drivers.

 

Have a good day!

Regards,

weidong

0 Kudos
Reply
5,455 Views
HiroakiOkoshi
Contributor III

Thanks weidong.

However ...

  1. I could build driver.(*1)
  2. I can't find sd8987.ko in bin_wlan directory.(*1)
  3. Building from mwifiex generated mlan.ko and moal.ko.   mlan.ko and moal.ko were prepared.(*2)
  4. If I think about another point of view, I suspect that there is a problem with the device tree selection, not with the driver build.
  5. I checked dmesg and it seems that sdio is not found. (*3)
  6. If so, which of should I select the dtb file, JODY-W2 (88W8987) is connected to SD3 of imx6qsabresd. (*4)

(*1)

 

$ make build
make -C /work/imx-yocto-bsp-imx-5.10.72-2.2.0.xml/build-fb/tmp/work-shared/imx6qsabresd/kernel-build-artifacts/ M=/work/imx-yocto-bsp-imx-5.10.72-2.2.0.xml/wifi_src/mwifiex/mxm_wifiex/wlan_src ARCH=arm CROSS_COMPILE=arm
make[1]: ディレクトリ '/work/imx-yocto-bsp-imx-5.10.72-2.2.0.xml/build-fb/tmp/work-shared/imx6qsabresd/kernel-build-artifacts' に入ります
  CC [M]  /work/imx-yocto-bsp-imx-5.10.72-2.2.0.xml/wifi_src/mwifiex/mxm_wifiex/wlan_src/mlan/mlan_shim.o
  CC [M]  /work/imx-yocto-bsp-imx-5.10.72-2.2.0.xml/wifi_src/mwifiex/mxm_wifiex/wlan_src/mlan/mlan_init.o
..................................
arm-poky-linux-gnueabi-gcc  -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a9 -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/opt/fsl-imx-fb/5.10-hardkno
make[1]: ディレクトリ '/work/imx-yocto-bsp-imx-5.10.72-2.2.0.xml/wifi_src/mwifiex/mxm_wifiex/wlan_src/mapp/mlanutl' から出ます

user@rz3900:/work/imx-yocto-bsp-imx-5.10.72-2.2.0.xml/wifi_src/mwifiex/mxm_wifiex/wlan_src$ ls  -al ../bin_wlan/
total 1748
drwxrwxr-x 3 user user   4096 Dec 28 17:01 .
drwxrwxr-x 4 user user   4096 Dec 28 17:01 ..
-rw-rw-r-- 1 user user  62609 Dec 28 17:52 README_MLAN
drwxrwxr-x 2 user user   4096 Dec 28 17:01 config
-rw-rw-r-- 1 user user    302 Dec 28 16:51 load
-rw-rw-r-- 1 user user 681056 Dec 28 17:52 mlan.ko
-rwxrwxr-x 1 user user  51100 Dec 28 17:52 mlanutl
-rw-rw-r-- 1 user user 964364 Dec 28 17:52 moal.ko
-rw-rw-r-- 1 user user    356 Dec 28 16:51 unload
user@rz3900:/work/imx-yocto-bsp-imx-5.10.72-2.2.0.xml/wifi_src/mwifiex/mxm_wifiex/wlan_src$

 

 (*2)

 

root@imx6qpdlsolox:~# ls -al /lib/modules/5.10.72-lts-5.10.y+ga68e31b63f86/extra/
total 1724
drwxr-xr-x 2 root root   4096 Mar  9  2018 .
drwxr-xr-x 4 root root   4096 Dec 23 09:37 ..
-rw-r--r-- 1 root root  63324 Mar  9  2018 cryptodev.ko
-rw-r--r-- 1 root root 698792 Mar  9  2018 mlan.ko
-rw-r--r-- 1 root root 987388 Mar  9  2018 moal.ko

 

(*3)

 

root@imx6qpdlsolox:~# dmesg | head
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.72-lts-5.10.y+ga68e31b63f86 (oe-user@oe-host) (arm-poky-linux-gnueabi-gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.36.1.20210209) #1 SMP PREEMPT Tue Nov 23 06:02:20 UTC 2021
[    0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Freescale i.MX6 Quad SABRE Smart Device Board
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Reserved memory: created CMA memory pool at 0x3c000000, size 320 MiB
[    0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000010000000-0x000000004fffffff]

 

(*4)

 

root@imx6qpdlsolox:/lib/modules/5.10.72-lts-5.10.y+ga68e31b63f86/extra# ls -al /run/media/mmcblk3p1/imx6q-sabresd*
-rwxrwx--- 1 root disk 54201 Apr  5  2011 /run/media/mmcblk3p1/imx6q-sabresd-btwifi.dtb
-rwxrwx--- 1 root disk 53385 Apr  5  2011 /run/media/mmcblk3p1/imx6q-sabresd-enetirq.dtb
-rwxrwx--- 1 root disk 53249 Apr  5  2011 /run/media/mmcblk3p1/imx6q-sabresd-hdcp.dtb
-rwxrwx--- 1 root disk 53176 Apr  5  2011 /run/media/mmcblk3p1/imx6q-sabresd-ldo.dtb
-rwxrwx--- 1 root disk 53252 Apr  5  2011 /run/media/mmcblk3p1/imx6q-sabresd-pcie-ep.dtb
-rwxrwx--- 1 root disk 53252 Apr  5  2011 /run/media/mmcblk3p1/imx6q-sabresd-pcie.dtb
-rwxrwx--- 1 root disk 53340 Apr  5  2011 /run/media/mmcblk3p1/imx6q-sabresd-uart.dtb
-rwxrwx--- 1 root disk 53256 Dec 24 11:05 /run/media/mmcblk3p1/imx6q-sabresd.dtb
-rwxrwx--- 1 root disk 53256 Apr  5  2011 /run/media/mmcblk3p1/imx6q-sabresd.dtb.org

 

Thanks mush support.

Hiroaki.

0 Kudos
Reply
5,452 Views
HiroakiOkoshi
Contributor III

Hi All.

The problem has been solved.

The root cause was less contact SDIO connector.
Sorry for the misguided discussion

[Conclusion]

"Does the Linux 5.10.72_2.2.0 Demo Binary include the 88W8987 driver?"

"Yes!!!!"

[Procedure (imx6qsabresd emmc boot)]

1.Get LF_v5.10.72-2.2.0_images_IMX6QPDLSOLOX.zip from the NXP site.

2.Flash (SW6=[00000000] )

>uuu -b emmc_all u-boot-imx6qsabresd_sd-optee.imx imx-image-full-imx6qpdlsolox.wic

 

3.As follows (SW6=[01101011])

 

root@imx6qpdlsolox:~# modprobe moal mod_para=nxp/wifi_mod_para_sd8987.conf
[   23.157341] mlan: loading out-of-tree module taints kernel.
[   23.250455] wlan: Loading MWLAN driver
[   23.254750] wlan: Driver loaded successfully
[   23.259126] wlan: Register to Bus Driver...
[   23.269119] vendor=0x02DF device=0x9149 class=0 function=1
[   23.274969] Attach moal handle ops, card interface type: 0x105
[   23.287963] SD8987: init module param from usr cfg
[   23.292797] card_type: SD8987, config block: 0
[   23.297310] cfg80211_wext=0xf
[   23.300284] max_vir_bss=1
[   23.302911] cal_data_cfg=none
[   23.305923] ps_mode = 1
[   23.308382] auto_ds = 1
[   23.310845] host_mlme=enable
[   23.313775] fw_name=nxp/sdiouart8987_combo_v0.bin
[   23.318522] SDIO: max_segs=128 max_seg_size=65535
[   23.323237] rx_work=1 cpu_num=4
[   23.326615] Attach mlan adapter operations.card_type is 0x105.
[   23.338615] wlan: Enable TX SG mode
[   23.342110] wlan: Enable RX SG mode
[   23.363836] Request firmware: nxp/sdiouart8987_combo_v0.bin
[   23.871997] Wlan: FW download over, firmwarelen=568984 downloaded 568984
[   24.833953] WLAN FW is active
[   24.836945] on_time is 24833286335
[   24.873885] fw_cap_info=0x181c7f03, dev_cap_mask=0xffffffff
[   24.879505] max_p2p_conn = 8, max_sta_conn = 8
[   24.909831] wlan: version = SD8987----16.92.21.p11.1-MM5X16283.p2-GPL-(FP92)
[   24.918892] wlan: Register to Bus Driver Done

root@imx6qpdlsolox:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

sit0      no wireless extensions.

mlan0     IEEE 802.11-DS  ESSID:""
          Mode:Managed  Access Point: Not-Associated   Bit Rate:1 Mb/s
          Tx-Power=24 dBm
          Retry limit:9   RTS thr=2347 B   Fragment thr=2346 B
          Encryption key:off
          Power Management:on
          Link Quality=0/5  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:2
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

uap0      IEEE 802.11-DS  ESSID:""
          Mode:Master  Frequency:2.437 GHz  Access Point: Not-Associated
          Encryption key:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

wfd0      IEEE 802.11-DS  ESSID:""
          Mode:Managed  Access Point: Not-Associated   Bit Rate:1 Mb/s
          Tx-Power=24 dBm
          Retry limit:9   RTS thr=2347 B   Fragment thr=2346 B
          Encryption key:off
          Power Management:on
          Link Quality=0/5  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:2
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

root@imx6qpdlsolox:~# lscpu
Architecture:        armv7l
Byte Order:          Little Endian
CPU(s):              4
On-line CPU(s) list: 0-3
Thread(s) per core:  1
Core(s) per socket:  4
Socket(s):           1
Vendor ID:           ARM
Model:               10
Model name:          Cortex-A9
Stepping:            r2p10
CPU max MHz:         996.0000
CPU min MHz:         396.0000
BogoMIPS:            6.00
Flags:               half thumb fastmult vfp edsp neon vfpv3 tls vfpd32

root@imx6qpdlsolox:/etc# head -80  /lib/firmware/nxp/wifi_mod_para_sd8987.conf | tail -10

SD8987 = {
        cfg80211_wext=0xf
        max_vir_bss=1
        cal_data_cfg=none
        ps_mode=1
        auto_ds=1
        host_mlme=1
        fw_name=nxp/sdiouart8987_combo_v0.bin
}

root@imx6qpdlsolox:~# uname -a
Linux imx6qpdlsolox 5.10.72-lts-5.10.y+ga68e31b63f86 #1 SMP PREEMPT Tue Nov 23 06:02:20 UTC 2021 armv7l armv7l armv7l GNU/Linux

root@imx6qpdlsolox:/etc# lsmod
Module                  Size  Used by
moal                  671744  0
mlan                  540672  1 moal
caam_jr               143360  0
caamkeyblob_desc       16384  1 caam_jr
caamhash_desc          16384  1 caam_jr
caamalg_desc           57344  1 caam_jr
crypto_engine          16384  1 caam_jr
rng_core               20480  1 caam_jr
authenc                16384  1 caam_jr
libdes                 28672  1 caam_jr
mxc_v4l2_capture       32768  0
ipu_bg_overlay_sdc     16384  1 mxc_v4l2_capture
ipu_still              16384  1 mxc_v4l2_capture
ipu_prp_enc            16384  1 mxc_v4l2_capture
ipu_csi_enc            16384  1 mxc_v4l2_capture
ipu_fg_overlay_sdc     16384  1 mxc_v4l2_capture
imx_vdoa               16384  0
ov5640_camera_mipi_int    32768  0
ov5640_camera_int      32768  0
v4l2_int_device        16384  3 ov5640_camera_mipi_int,ov5640_camera_int,mxc_v4l2_capture
caam                   20480  1 caam_jr
secvio                 16384  0
error                  20480  6 caamkeyblob_desc,caamalg_desc,caamhash_desc,caam_jr,caam,secvio

 

 Very Thanks.

0 Kudos
Reply