88W9098 hciattach fail on i.mx8QM-MEK

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

88W9098 hciattach fail on i.mx8QM-MEK

1,206 Views
ChChang
Contributor II

Hi 

I connected the 88w9098 to the i.MX8QM-MEK M2 slot and executed
$modprobe moal mod_para=nxp/wifi_mod_para.conf."
The log is as follows:
root@imx8qmmek:~# modprobe moal mod_para=nxp/wifi_mod_para.conf
[ 63.645151] mlan: loading out-of-tree module taints kernel.
[ 63.699001] wlan: Loading MWLAN driver
[ 63.703632] wlan: Register to Bus Driver...
[ 63.708350] wlan_pcie 0000:01:00.0: enabling device (0000 -> 0002)
[ 63.714734] PCI memory map Virt0: 000000005ac78db9 PCI memory map Virt2: 0000000007819d02
[ 63.722989] Attach moal handle ops, card interface type: 0x206
[ 63.728865] rps set to 0 from module param
[ 63.734787] PCIE9098: init module param from usr cfg
[ 63.739812] card_type: PCIE9098, config block: 0
[ 63.744456] cfg80211_wext=0xf
[ 63.747443] max_vir_bss=1
[ 63.750083] cal_data_cfg=none
[ 63.753046] ps_mode = 1
[ 63.755503] auto_ds = 1
[ 63.757965] host_mlme=enable
[ 63.760849] fw_name=nxp/pcieuart9098_combo_v1.bin
[ 63.765594] rx_work=1 cpu_num=6
[ 63.768751] Attach mlan adapter operations.card_type is 0x206.
[ 63.777745] Request firmware: nxp/pcieuart9098_combo_v1.bin
[ 63.997512] FW download over, size 698976 bytes
[ 64.281475] WLAN FW is active
[ 64.284454] on_time is 64051029250
[ 64.293254] VDLL image: len=153348
[ 64.296816] fw_cap_info=0xc8fcefa3, dev_cap_mask=0xffffffff
[ 64.302477] max_p2p_conn = 8, max_sta_conn = 64
[ 64.317612] Register NXP 802.11 Adapter mlan0
[ 64.322306] wlan: uap%d set max_mtu 2000
[ 64.327698] Register NXP 802.11 Adapter uap0
[ 64.335758] Register NXP 802.11 Adapter wfd0
[ 64.340189] wlan: version = PCIE9098--17.92.1.p136.24-MM5X17368.p2-GPL-(FP92)
[ 64.349116] wlan_pcie 0000:01:00.1: enabling device (0000 -> 0002)
[ 64.355632] PCI memory map Virt0: 00000000d59e4ced PCI memory map Virt2: 000000008daf5778
[ 64.364091] Attach moal handle ops, card interface type: 0x206
[ 64.370154] rps set to 0 from module param
[ 64.374509] PCIE9098: init module param from usr cfg
[ 64.379610] card_type: PCIE9098, config block: 1
[ 64.384326] cfg80211_wext=0xf
[ 64.387390] max_vir_bss=1
[ 64.390080] cal_data_cfg=none
[ 64.393058] ps_mode = 1
[ 64.395562] auto_ds = 1
[ 64.398056] host_mlme=enable
[ 64.400948] fw_name=nxp/pcieuart9098_combo_v1.bin
[ 64.405717] rx_work=1 cpu_num=6
[ 64.408903] Attach mlan adapter operations.card_type is 0x206.
[ 64.417759] Request firmware: nxp/pcieuart9098_combo_v1.bin
[ 64.424488] WLAN FW already running! Skip FW download
[ 64.430005] WLAN FW is active
[ 64.433057] on_time is 64199632000
[ 64.450287] VDLL image: len=153348
[ 64.454310] fw_cap_info=0x68fcefa3, dev_cap_mask=0xffffffff
[ 64.459949] max_p2p_conn = 8, max_sta_conn = 64
[ 64.469552] Register NXP 802.11 Adapter mmlan0
[ 64.474171] wlan: muap%d set max_mtu 2000
[ 64.479866] Register NXP 802.11 Adapter muap0
[ 64.488405] Register NXP 802.11 Adapter mwfd0
[ 64.492912] wlan: version = PCIE9098--17.92.1.p136.24-MM5X17368.p2-GPL-(FP92)
[ 64.503638] wlan: Register to Bus Driver Done
[ 64.508249] wlan: Driver loaded successfully

However, when attempting to execute
$hciattach ttyLP1 any 115200 flow," it fails, and the log is as follows:

root@imx8qmmek:~# systemctl status bluetooth
* bluetooth.service - Bluetooth service
Loaded: loaded (/lib/systemd/system/bluetooth.service; enabled; preset: enabled)
Active: active (running) since Tue 2022-11-08 19:12:58 UTC; 16s ago
Docs: man:bluetoothd(8)
Main PID: 844 (bluetoothd)
Status: "Running"
Tasks: 1 (limit: 5323)
Memory: 1.8M
CGroup: /system.slice/bluetooth.service
`-844 /usr/libexec/bluetooth/bluetoothd

Nov 08 19:12:57 imx8qmmek systemd[1]: Starting Bluetooth service...
Nov 08 19:12:58 imx8qmmek bluetoothd[844]: Bluetooth daemon 5.65
Nov 08 19:12:58 imx8qmmek systemd[1]: Started Bluetooth service.
Nov 08 19:12:58 imx8qmmek bluetoothd[844]: Starting SDP server
Nov 08 19:12:58 imx8qmmek bluetoothd[844]: /usr/src/debug/bluez5/5.65-r0/src/rfkill.c:rfkill_init() Failed to open RFKILL control device
Nov 08 19:12:58 imx8qmmek bluetoothd[844]: Bluetooth management interface 1.22 initialized


root@imx8qmmek:~# hciattach ttyLP1 any 115200 flow
Setting TTY to N_HCI line discipline
Device setup complete
root@imx8qmmek:~# [ OK ] Reached target Bluetooth Support.
[ 56.229276] Bluetooth: hci0: Opcode 0x1003 failed: -110
[ 56.229275] Bluetooth: hci0: command 0x1003 tx timeout

Please let me know how to proceed with this issue.

 

 

0 Kudos
Reply
5 Replies

1,176 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

Could you please tell me the Linux version you are using and the if you are using a module?

Regards,

Daniel.

0 Kudos
Reply

1,143 Views
ChChang
Contributor II
Hi Daniel My linux version is root@imx8qmmek:/# uname -r 6.1.1+g29549c7073bf 88W9098 is Murata module, but I'm not sure about the correct module model. Thanks for your reply. Regards, CH
0 Kudos
Reply

1,129 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

Thank you for the information.

I saw on your logs that the Wi-Fi FW is downloading correctly. Unfortunately, I don’t have an i.MX 8QuadMax to test the BT on my side.

In the other hand, I did a small test with an i.MX 8MQuad EVK and a AW-XM458MA (88W9098) M.2 module.

These are my logs and it seems to be working on my side.

 

root@imx8mqevk:~# modprobe moal mod_para=nxp/wifi_mod_para.conf
[  123.098995] mlan: loading out-of-tree module taints kernel.
[  123.126560] wlan: Loading MWLAN driver
[  123.130767] wlan: Register to Bus Driver...
[  123.135493] wlan_pcie 0001:01:00.0: enabling device (0000 -> 0002)
[  123.141771] PCI memory map Virt0: 000000002b015bed PCI memory map Virt2: 000000005c2006f7
[  123.150004] Attach moal handle ops, card interface type: 0x206
[  123.155860] rps set to 0 from module param
[  123.160884] PCIE9098: init module param from usr cfg
[  123.165902] card_type: PCIE9098, config block: 0
[  123.170538] cfg80211_wext=0xf
[  123.173535] max_vir_bss=1
[  123.176238] cal_data_cfg=none
[  123.179222] ps_mode = 1
[  123.181666] auto_ds = 1
[  123.184124] host_mlme=enable
[  123.187016] fw_name=nxp/pcieuart9098_combo_v1.bin
[  123.191746] rx_work=1 cpu_num=4
[  123.194900] Attach mlan adapter operations.card_type is 0x206.
[  123.203141] Request firmware: nxp/pcieuart9098_combo_v1.bin
[  123.484328] FW download over, size 698976 bytes
[  123.767515] WLAN FW is active
[  123.770487] on_time is 123767543414
[  123.779847] VDLL image: len=153348
[  123.783574] fw_cap_info=0xc8fcefa3, dev_cap_mask=0xffffffff
[  123.789229] max_p2p_conn = 8, max_sta_conn = 64
[  123.802687] Register NXP 802.11 Adapter mlan0
[  123.807188] wlan: uap%d set max_mtu 2000
[  123.812366] Register NXP 802.11 Adapter uap0
[  123.819831] Register NXP 802.11 Adapter wfd0
[  123.824324] wlan: version = PCIE9098--17.92.1.p136.24-MM5X17368.p2-GPL-(FP92)
[  123.839370] wlan_pcie 0001:01:00.1: enabling device (0000 -> 0002)
[  123.845689] PCI memory map Virt0: 00000000e168d01a PCI memory map Virt2: 00000000c30bfcd5
[  123.866050] Attach moal handle ops, card interface type: 0x206
[  123.872242] rps set to 0 from module param
[  123.876506] PCIE9098: init module param from usr cfg
[  123.881597] card_type: PCIE9098, config block: 1
[  123.886268] cfg80211_wext=0xf
[  123.889268] max_vir_bss=1
[  123.891929] cal_data_cfg=none
[  123.894904] ps_mode = 1
[  123.897372] auto_ds = 1
[  123.899867] host_mlme=enable
[  123.902755] fw_name=nxp/pcieuart9098_combo_v1.bin
[  123.907505] rx_work=1 cpu_num=4
[  123.910674] Attach mlan adapter operations.card_type is 0x206.
[  123.919155] Request firmware: nxp/pcieuart9098_combo_v1.bin
[  123.925700] WLAN FW already running! Skip FW download
[  123.930801] WLAN FW is active
[  123.933782] on_time is 123930838100
[  123.951540] VDLL image: len=153348
[  123.956141] fw_cap_info=0x68fcefa3, dev_cap_mask=0xffffffff
[  123.961867] max_p2p_conn = 8, max_sta_conn = 64
[  123.970940] Register NXP 802.11 Adapter mmlan0
[  123.975538] wlan: muap%d set max_mtu 2000
[  123.980790] Register NXP 802.11 Adapter muap0
[  123.987331] Register NXP 802.11 Adapter mwfd0
[  123.991801] wlan: version = PCIE9098--17.92.1.p136.24-MM5X17368.p2-GPL-(FP92)
[  124.000066] wlan: Register to Bus Driver Done
[  124.006720] wlan: Driver loaded successfully
root@imx8mqevk:~# hciattach /dev/ttymxc2 any 115200 flow
Setting TTY to N_HCI line discipline
Device setup complete
root@imx8mqevk:~# [  131.231309] Bluetooth: MGMT ver 1.22
[  131.239083] NET: Registered PF_ALG protocol family
[  131.243974] audit: type=1334 audit(1667916206.814:18): prog-id=15 op=LOAD
[  131.250840] audit: type=1334 audit(1667916206.818:19): prog-id=16 op=LOAD

root@imx8mqevk:~# hciconfig -a
hci0:   Type: Primary  Bus: UART
        BD Address: XX:XX:XX:XX:XX:XX  ACL MTU: 1021:8  SCO MTU: 64:1
        DOWN
        RX bytes:667 acl:0 sco:0 events:34 errors:0
        TX bytes:422 acl:0 sco:0 commands:34 errors:0
        Features: 0xbf 0xfe 0xcf 0xfe 0xdb 0xff 0x7b 0x87
        Packet type: DM1 DM3 DM5 DH1 DH3 DH5 HV1 HV2 HV3
        Link policy: RSWITCH SNIFF
        Link mode: PERIPHERAL ACCEPT

root@imx8mqevk:~# hciconfig hci0 up
root@imx8mqevk:~# hciconfig
hci0:   Type: Primary  Bus: UART
        BD Address: XX:XX:XX:XX:XX:XX  ACL MTU: 1021:8  SCO MTU: 64:1
        UP RUNNING
        RX bytes:1383 acl:0 sco:0 events:75 errors:0
        TX bytes:1191 acl:0 sco:0 commands:75 errors:0

root@imx8mqevk:~# uname -r
6.1.1+g29549c7073bf
root@imx8mqevk:~#

 

Please verify you are using the correct UART (tty) and device tree.

I hope this helps.

Regards,

Daniel.

1,103 Views
ChChang
Contributor II

Hi Daniel 

Thanks for your help , the issue was resolved.
Baudrate need be set to 3000000, 
Therefore I executed command "$hciattach ttyLP1 any 3000000 flow , 
Now , 88w9098 is work well

Regards,

CH

0 Kudos
Reply

1,085 Views
DanielRuvalcaba
NXP TechSupport
NXP TechSupport

Hi,

Thanks for letting me know.

Regards,

Daniel.

0 Kudos
Reply