[i.MX8QM-MEK] 88W8997 firmware download fail on android-10.0.0_2.6.0

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

[i.MX8QM-MEK] 88W8997 firmware download fail on android-10.0.0_2.6.0

Jump to solution
2,035 Views
waynejeong
Contributor II

Hello 

 

 I am doing test wifi driver on android-10.0.0_2.6.0 using i.MX8QM-MEK.

When I flashed LF_v5.10_2.0.0_image which is prebuilt image, 88W8997 works well. But android-10.0.0_2.6.0 image prebuilt is not.

Please review my console messages.

[ 6.739647] wlan: Loading MWLAN driver
[ 6.744615] wlan_pcie 0000:01:00.0: enabling device (0000 -> 0002)
[ 6.751000] Attach moal handle ops, card interface type: 0x204
[ 6.757463] PCIE8997: init module param from usr cfg
[ 6.762468] card_type: PCIE8997, config block: 0
[ 6.767108] cfg80211_wext=0xf
[ 6.770081] sta_name=wlan
[ 6.772702] uap_name=wlan
[ 6.775322] wfd_name=p2p
[ 6.777871] max_vir_bss=1
[ 6.780488] cal_data_cfg=none
[ 6.783456] ps_mode = 2
[ 6.785906] auto_ds = 2
[ 6.788350] fw_name=pcieuart8997_combo_v4.bin
[ 6.792732] rx_work=1 cpu_num=6
[ 6.795888] Attach mlan adapter operations.card_type is 0x204.
[ 6.808686] Request firmware: pcieuart8997_combo_v4.bin

.........

[ 18.068707] FW failed to be active in time!
[ 18.072943] wlan_dnld_fw fail ret=0xffffffff
[ 18.077302] WLAN: Fail download FW with nowwait: 0
[ 18.082359] Config Space Registers:
[ 18.085892] reg:0x00 value=0x2b421b4b
[ 18.089588] reg:0x04 value=0x00100006
[ 18.093294] reg:0x10 value=0x6200000c
[ 18.096993] reg:0x18 value=0x6210000c
[ 18.100697] reg:0x2c value=0x00000000
[ 18.104375] reg:0x3c value=0x00000150
[ 18.108075] reg:0x44 value=0x00000008
[ 18.111774] reg:0x80 value=0x10120040
[ 18.115477] reg:0x98 value=0x00000000
[ 18.119212] reg:0x170 value=0x0001001e
[ 18.123096] FW Scrach Registers:
[ 18.126382] reg:0xcf0 value=0xfedcba00
[ 18.130162] reg:0xcf8 value=0x0
[ 18.133325] reg:0xcfc value=0x0
[ 18.184101] misc FreescaleGyroscope: mma enable setting active
[ 18.185478] healthd: battery l=85 v=3 t=35.0 h=2 st=2 c=400 fc=4000000 cc=32 chg=a
[ 18.193067] misc FreescaleGyroscope: mma enable setting active
[ 18.199871] healthd: battery l=85 v=3 t=35.0 h=2 st=2 c=400 fc=4000000 cc=32 chg=a
[ 18.210369] misc FreescaleGyroscope: mma enable setting active
[ 18.219798] misc FreescaleGyroscope: mma enable setting active
[ 18.228468] misc FreescaleGyroscope: mma enable setting active
[ 18.238872] reg:0xcf8 value=0x0
[ 18.243616] reg:0xcfc value=0x0
[ 18.349231] Interface registers dump from offset 0xc00 to 0xcfc
[ 18.355201] 00070621 00000000 c0000000 80000000 fc049000 00000000 00000000 00000002
[ 18.363002] 00000000 00000000 ffffffff 00000000 00000000 00000000 00000000 00000000
[ 18.370781] 00000010 00000000 00000472 000000e5 00000000 00000000 00001040 76543210
[ 18.378619] 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 18.386445] a5a00420 040d1be0 01070f1a 5d7c0000 031f9121 00000000 000001e1 00000000
[ 18.394248] 00078120 00058110 00000000 00000000 00000000 00000000 00000000 00000000
[ 18.402037] 00010202 00000000 00000000 ffffffff 00800243 c8701424 00000000 00000000
[ 18.409814] 00000000 00000000 00000000 00000000 fedcba00 00000000 00000000 00000000
[ 18.417685] woal_request_fw failed
[ 18.421118] Firmware Init Failed
[ 18.425293] Free module params
[ 18.428457] woal_pcie_probe: failed
[ 18.432017] wlan_pcie: probe of 0000:01:00.0 failed with error -14
[ 18.438424] wlan: Driver loaded successfully

 

It was the same even if I flashed the image after built the source code.

Please let me know how to fix it.

Thank you.

0 Kudos
1 Solution
2,024 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,

Would you please confirm the contents of the following files?

---\fsl\imx8q\mek_8q\early.init.cfg

8997 driver will be loaded in the file:

insmod vendor/lib/modules/mlan.ko
insmod vendor/lib/modules/pcie8xxx.ko drv_mode=5 sta_name=wlan wfd_name=p2p ps_mode=2 auto_ds=2 max_vir_bss=1 cfg80211_wext=0xf cal_data_cfg=none p2p_enh=1 fw_name=mrvl/pcieuart8997_combo_v4.bin

[note]

firmware, pcieuart8997_combo_v4.bin should be in /vendor/firmware/mrvl/

---init.insmod.sh

cfg_file=$1

if [ -f $cfg_file ]; then
while IFS=" " read -r action name value arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9
do
case $action in
"insmod") insmod $name $value $arg1 $arg2 $arg3 $arg4 $arg5 $arg6 $arg7 $arg8 $arg9 ;;
"setprop") setprop $name $value ;;
esac
done < $cfg_file
fi

# set property even if there is no insmod config
# as property value "1" is expected in early-boot trigger
setprop $2 1

---init.rc

device\fsl\imx8q\mek_8q\

......

on early-init
start early_init_sh

......

service early_init_sh /vendor/bin/init.insmod.sh /vendor/etc/early.init.cfg sys.all.early_init.ready
class main
user root
group root system
disabled
oneshot

 

From the above files, you can clearly see how the wifi driver and firmware are loaded.

 

 Have a good day!

Regards,

weidong

View solution in original post

0 Kudos
2 Replies
1,791 Views
Jose1985
Contributor IV

Dear Weidong,

I am facing similar problem.

Could you help me solve it?

[ 41.088759] wlan: Loading MWLAN driver
[ 41.097580] wlan_pcie 0000:01:00.0: enabling device (0000 -> 0002)
[ 41.104060] Attach moal handle ops, card interface type: 0x204
[ 41.112382] PCIE8997: init module param from usr cfg
[ 41.117447] card_type: PCIE8997, config block: 0
[ 41.122182] cfg80211_wext=0xf
[ 41.125225] sta_name=wlan
[ 41.128332] uap_name=wlan
[ 41.131396] wfd_name=p2p
[ 41.134331] max_vir_bss=1
[ 41.137321] cal_data_cfg=none
[ 41.140600] ps_mode = 2
[ 41.143371] auto_ds = 2
[ 41.145937] fw_name=pcieuart8997_combo_v4.bin
[ 41.151495] rx_work=1 cpu_num=6
[ 41.154780] Attach mlan adapter operations.card_type is 0x204.
[ 41.166187] Request firmware: pcieuart8997_combo_v4.bin
[ 41.734475] android_work: sent uevent USB_STATE=CONNECTED
[ 41.743512] configfs-gadget gadget: super-speed config #1: b
[ 41.749515] android_work: sent uevent USB_STATE=CONFIGURED
[ 42.031325] FW download over, size 548444 bytes
[ 42.142038] FW failed to be active in time!
[ 42.146325] wlan_dnld_fw fail ret=0xffffffff
[ 42.150633] WLAN: Fail download FW with nowwait: 0
[ 42.155458] Config Space Registers:
[ 42.158984] reg:0x00 value=0x2b421b4b
[ 42.162662] reg:0x04 value=0x00100000
[ 42.166338] reg:0x10 value=0x0000000c
[ 42.170009] reg:0x18 value=0x0000000c
[ 42.173669] reg:0x2c value=0x00000000
[ 42.177352] reg:0x3c value=0x000001ff
[ 42.181026] reg:0x44 value=0x00000008
[ 42.184708] reg:0x80 value=0x10120000
[ 42.188376] reg:0x98 value=0x00000000
[ 42.192074] reg:0x170 value=0x0001001e
[ 42.195835] FW Scrach Registers:
[ 42.199076] reg:0xcf0 value=0xffffffff
[ 42.203274] reg:0xcf8 value=0xffffffff
[ 42.207420] reg:0xcfc value=0xffffffff
[ 42.313805] reg:0xcf8 value=0xffffffff
[ 42.317577] reg:0xcfc value=0xffffffff
[ 42.423625] Interface registers dump from offset 0xc00 to 0xcfc
[ 42.429572] ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[ 42.437355] ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[ 42.445151] ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[ 42.452940] ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[ 42.460799] ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[ 42.468599] ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[ 42.476466] ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[ 42.484498] ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff
[ 42.492803] woal_request_fw failed
[ 42.496334] Firmware Init Failed
[ 42.502478] Free module params
[ 42.505734] woal_pcie_probe: failed
[ 42.509508] wlan_pcie: probe of 0000:01:00.0 failed with error -14
[ 42.516269] wlan: Driver loaded successfully

Best regards

Libin Jose

0 Kudos
2,025 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,

Would you please confirm the contents of the following files?

---\fsl\imx8q\mek_8q\early.init.cfg

8997 driver will be loaded in the file:

insmod vendor/lib/modules/mlan.ko
insmod vendor/lib/modules/pcie8xxx.ko drv_mode=5 sta_name=wlan wfd_name=p2p ps_mode=2 auto_ds=2 max_vir_bss=1 cfg80211_wext=0xf cal_data_cfg=none p2p_enh=1 fw_name=mrvl/pcieuart8997_combo_v4.bin

[note]

firmware, pcieuart8997_combo_v4.bin should be in /vendor/firmware/mrvl/

---init.insmod.sh

cfg_file=$1

if [ -f $cfg_file ]; then
while IFS=" " read -r action name value arg1 arg2 arg3 arg4 arg5 arg6 arg7 arg8 arg9
do
case $action in
"insmod") insmod $name $value $arg1 $arg2 $arg3 $arg4 $arg5 $arg6 $arg7 $arg8 $arg9 ;;
"setprop") setprop $name $value ;;
esac
done < $cfg_file
fi

# set property even if there is no insmod config
# as property value "1" is expected in early-boot trigger
setprop $2 1

---init.rc

device\fsl\imx8q\mek_8q\

......

on early-init
start early_init_sh

......

service early_init_sh /vendor/bin/init.insmod.sh /vendor/etc/early.init.cfg sys.all.early_init.ready
class main
user root
group root system
disabled
oneshot

 

From the above files, you can clearly see how the wifi driver and firmware are loaded.

 

 Have a good day!

Regards,

weidong

0 Kudos