88W8997 - Firmware loading fails

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

88W8997 - Firmware loading fails

跳至解决方案
3,807 次查看
swapnil
Contributor I

We are unable to see NXP 88W8997 chipset firmware initialization getting failed while the Android boots. We are trying to boot Android Automotive OS 14 on iMX8QM.

Kernel version is - 6.1.55

Dmesg Logs - 
[ 13.146366] PCIE8997: init module param from usr cfg
[ 13.146398] card_type: PCIE8997, config block: 0
[ 13.146403] drv_mode = 5
[ 13.146407] sta_name=wlan
[ 13.146410] wfd_name=p2p
[ 13.146412] ps_mode = 2
[ 13.146415] auto_ds = 2
[ 13.146417] max_vir_bss=1
[ 13.146420] cfg80211_wext=0xf
[ 13.146423] cal_data_cfg=none
[ 13.146428] fw_name=pcieuart8997_combo_v4.bin
[ 13.146446] rx_work=1 cpu_num=6
[ 13.146451] Enable moal_recv_amsdu_packet
[ 13.146468] Attach mlan adapter operations.card_type is 0x204.
[ 13.156095] Request firmware: pcieuart8997_combo_v4.bin

....

[ 19.472057] FW failed to be active in time!
[ 19.476989] wlan_dnld_fw fail ret=0xffffffff
[ 19.481984] WLAN: Fail download FW with nowwait: 0
[ 19.487493] Config Space Registers:
[ 19.491715] reg:0x00 value=0x2b421b4b
[ 19.496097] reg:0x04 value=0x00100006
[ 19.500474] reg:0x10 value=0x6200000c
[ 19.504850] reg:0x18 value=0x6210000c
[ 19.509234] reg:0x2c value=0x00000000
[ 19.513630] reg:0x3c value=0x0000019b
[ 19.518020] reg:0x44 value=0x00000008
[ 19.522457] reg:0x80 value=0x10120040
[ 19.526867] reg:0x98 value=0x00000000
[ 19.531264] reg:0x170 value=0x0001001e
[ 19.535838] FW Scrach Registers:
[ 19.539820] reg:0xcf0 value=0xfedcba00
[ 19.544288] reg:0xcf8 value=0x0
[ 19.548144] reg:0xcfc value=0x0
[ 19.656980] reg:0xcf8 value=0x0
[ 19.660850] reg:0xcfc value=0x0
[ 19.769362] Interface registers dump from offset 0xc00 to 0xcfc
[ 19.776047] 00070621 00000000 c0000000 80000000 fa16c000 00000000 00000000 00000000
[ 19.784522] 00000000 00000000 ffffffff 00000000 00000000 00000000 00000000 00000000
[ 19.793006] 00000000 00000000 00000472 000000e5 00000000 00000000 00001040 76543210
[ 19.801481] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 19.809954] a5a00420 040d1be0 01070f1a 5d7c0000 031f9121 00000000 000001e1 00000000
[ 19.818416] 00078120 00058110 00000000 00000000 00000000 00000000 00000000 00000000
[ 19.826995] 00010202 00000000 00000000 ffffffff 00800243 c8701424 00000000 00000000
[ 19.835491] 00000000 00000000 00000000 00000000 fedcba00 00000000 00000000 00000000
[ 19.844127] woal_request_fw failed
[ 19.848238] Firmware Init Failed
[ 19.876947] Free module params
[ 19.880956] woal_pcie_probe: failed
[ 19.885194] wlan_pcie: probe of 0000:01:00.0 failed with error -14

 

 

Requesting your support on the same.

0 项奖励
回复
1 解答
3,549 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Dear @swapnil ,

 

I tested demo image, the version is : Android Automotive 14.0.0_1.1.0 (LF_v6.1.55 BSP)​​​​​​

weidong_sun_0-1728978037458.png

Don't need to do any change, only need to install AW-CM276MA to M.2 Key E connector on i.mx8qm-mek board, then burn android images into emmc on board.

See below screenshot, please!

weidong_sun_1-1728978203627.jpegweidong_sun_2-1728978225165.jpegweidong_sun_3-1728978241817.jpeg

 

checked firmware files in the vendor path, see below, please!

weidong_sun_4-1728978342308.png

It means that the default bsp supports 88W8997 & 88Q9098 / 88W9098.

 

Thanks!

Regards,

weidong

 

在原帖中查看解决方案

0 项奖励
回复
8 回复数
3,606 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Dear @swapnil ,

 

OK, got it.

I will arrange time to test it next week.

due to no android auto bsp source code in my machine, so I have to make a new start, so  I need some time.

 

Thanks!

Regards,

weidong

0 项奖励
回复
3,619 次查看
swapnil
Contributor I

Dear @weidong_sun ,

In the vendor partition, at path - /vendor/firmware/, pcieuart8997_combo_v4.bin as well as pcieuart9098_combo_v1.bin is present. With these files in place, the result is the same as mentioned in the above post.

Regards,

Swapnil

0 项奖励
回复
3,550 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Dear @swapnil ,

 

I tested demo image, the version is : Android Automotive 14.0.0_1.1.0 (LF_v6.1.55 BSP)​​​​​​

weidong_sun_0-1728978037458.png

Don't need to do any change, only need to install AW-CM276MA to M.2 Key E connector on i.mx8qm-mek board, then burn android images into emmc on board.

See below screenshot, please!

weidong_sun_1-1728978203627.jpegweidong_sun_2-1728978225165.jpegweidong_sun_3-1728978241817.jpeg

 

checked firmware files in the vendor path, see below, please!

weidong_sun_4-1728978342308.png

It means that the default bsp supports 88W8997 & 88Q9098 / 88W9098.

 

Thanks!

Regards,

weidong

 

0 项奖励
回复
3,638 次查看
weidong_sun
NXP TechSupport
NXP TechSupport

Dear @swapnil ,

 

In default android auto bsp, WiFi/BT based on pcie9098 chip is supported, not PCIe8997.

 

weidong_sun_0-1728526659483.png

From your logs, it seems there doesn't exist the firmware of 88W8997.

So firmware of 88W8997, pcieuart8997_combo_v4.bin should be needed. According to your linux kernel version, you can get firmware from the link, then push it to corresponding directory on board ( the directory should be /vendor/firmware/), anyway, the firmware of 8997 should be the same directory as that of PCIE9098 (its firmware name is: pcieuart9098_combo_v1.bin)

-- getting firmware of 88W8997(PCIE interface)

https://github.com/nxp-imx/imx-firmware/tree/lf-6.1.55_2.2.0/nxp/FwImage_8997

weidong_sun_1-1728526855221.png

 

Try it, please!

Then tell me your test result.

 

Thanks!

Regards,

weidong

 

 

0 项奖励
回复
3,528 次查看
swapnil
Contributor I

Thanks @weidong_sun for the efforts you put in. We too had tried BT/WiFi Chipset based on PCIe 8997 on this demo image. Seems there might be some issue with the chip we are using.

Thank you!!

0 项奖励
回复
3,720 次查看
kkobayas
Contributor I

@estephania_mart 

Let me share a similar malfunction on i.MX 8M Plus and I would request your cooperation to resolve my issue as well.

A very similar log was observed when the WiFi driver was installed via modprobe.

My case uses not Android but i.MX Yocto BSP userland. The kernel version and PCIe chipset were same as this thread owner. I suspect it happens due to the same reason though the tested SoCs are different.

Here's my environment.

  • board : i.MX 8M Plus EVK
  • M.2 slot : AzureWave AW-CM276MA
  • kernel/userland : i.MX Yocto BSP imx-6.1.55-2.2.1

As long as I reproduced this, it frequently happened just on a cold boot and did not happen after rebooting by the reboot command.

Also, here's the failure log.

root@imx8mp-lpddr4-evk:~# modprobe moal mod_para=nxp/wifi_mod_para.conf
[  558.517304] mlan: loading out-of-tree module taints kernel.
[  558.560383] wlan: Loading MWLAN driver
[  558.564772] wlan: Register to Bus Driver...
[  558.569610] wlan_pcie 0000:01:00.0: enabling device (0000 -> 0002)
[  558.575903] PCI memory map Virt0: 000000006b43baf2 PCI memory map Virt2: 0000000067866472
[  558.584115] Attach moal handle ops, card interface type: 0x204
[  558.589965] rps set to 0 from module param
[  558.595594] PCIE8997: init module param from usr cfg
[  558.600615] card_type: PCIE8997, config block: 0
[  558.605252] cfg80211_wext=0xf
[  558.608229] max_vir_bss=1
[  558.610849] cal_data_cfg=none
[  558.613822] ps_mode = 1
[  558.616277] auto_ds = 1
[  558.618724] host_mlme=enable
[  558.621615] fw_name=nxp/pcieuart8997_combo_v4.bin
[  558.626345] rx_work=1 cpu_num=4
[  558.629496] Enable moal_recv_amsdu_packet
[  558.633529] Attach mlan adapter operations.card_type is 0x204.
[  558.644020] Request firmware: nxp/pcieuart8997_combo_v4.bin
[  559.250376] FW download over, size 622824 bytes
[  565.252124] FW failed to be active in time!
[  565.256337] wlan_dnld_fw fail ret=0xffffffff
[  565.260632] WLAN: Fail download FW with nowwait: 0
[  565.265443] Config Space Registers:
[  565.268948] reg:0x00 value=0x2b421b4b
[  565.272626] reg:0x04 value=0x00100406
[  565.276298] reg:0x10 value=0x1810000c
[  565.279972] reg:0x18 value=0x1820000c
[  565.283636] reg:0x2c value=0x00000000
[  565.287307] reg:0x3c value=0x000001d9
[  565.290981] reg:0x44 value=0x00000008
[  565.294654] reg:0x80 value=0x10110040
[  565.298346] reg:0x98 value=0x00000000
[  565.302034] reg:0x170 value=0x0001001e
[  565.305795] FW Scrach Registers:
[  565.309031] reg:0xcf0 value=0xfedcba00
[  565.312789] reg:0xcf8 value=0x0
[  565.315937] reg:0xcfc value=0x0
[  565.420711] reg:0xcf8 value=0x0
[  565.423866] reg:0xcfc value=0x0
[  565.528740] Interface registers dump from offset 0xc00 to 0xcfc
[  565.534697] 00070621 00000000 c0000000 80000000 c0926000 00000000 00000000 00000000 
[  565.542465] 0000002f 0000002f ffffffff 00000000 00000000 00000000 00000000 00000000 
[  565.550252] 00000000 00000000 00000472 000000e5 00000000 00000000 00006414 76543210 
[  565.558027] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 
[  565.565797] 0da70420 a2ee1be1 32070f1a 5d7c1400 031f9121 00000006 000001e1 00000000 
[  565.573564] 00078120 00058110 00000000 00000000 00000000 00000000 00000000 00000000 
[  565.581329] 00010222 00000000 00000000 ffffffff 00800343 c8701424 00000000 00000000 
[  565.589111] 00000000 00000000 00000080 00000000 fedcba00 00000000 00000000 00000000 
[  565.596934] woal_request_fw failed
[  565.600347] Firmware Init Failed
[  565.609093] Free module params
[  565.612327] woal_pcie_probe: failed
[  565.615865] wlan_pcie: probe of 0000:01:00.0 failed with error -14
[  565.622181] wlan: Register to Bus Driver Done
[  565.626607] wlan: Driver loaded successfully

 

I hope this information will be helpful to resolve the problem.

0 项奖励
回复
3,744 次查看
swapnil
Contributor I

I am using Android Automotive 14.0.0_1.1.0 (LF_v6.1.55 BSP)​​​​​​ which is the latest release for Android automotive. Reference 

0 项奖励
回复
3,783 次查看
estephania_mart
NXP TechSupport
NXP TechSupport

Hello, 

 

 

Could you please help me with which packet are you using for Android? 

 

Regards, 

 

0 项奖励
回复