IMX8mm SD8997 WIFI/BT on android 12 porting

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

IMX8mm SD8997 WIFI/BT on android 12 porting

460 次查看
Harrison_lee
Contributor I

Dear NXP,

We are porting android 12 on IMX8MM SD8997 WIFI/BT. I have showed fail log.

bt_hci_reset send out command successfully but don't receive response and directly show timer expired.

04-29 11:24:07.026 372 372 D bt-vnd-mrvl: bt_hci_reset(L898): bt_hci_reset send out command successfully

04-29 11:24:08.895 729 973 E bt_hci : system/bt/hci/src/hci_layer.cc:379 startup_timer_expired: startup_timer_expired
04-29 11:24:08.896 729 973 I BtStopWatchLegacy: system/bt/common/stop_watch_legacy.cc:58

 

DumpStopWatchLog: =====================================
04-29 11:24:08.896 729 973 I BtStopWatchLegacy: system/bt/common/stop_watch_legacy.cc:59 DumpStopWatchLog: bluetooth stopwatch log history:
04-29 11:24:08.896 729 973 I BtStopWatchLegacy: system/bt/common/stop_watch_legacy.cc:86 DumpStopWatchLog:

  

0 项奖励
回复
6 回复数

436 次查看
Harrison_lee
Contributor I

Dear NXP,

From A12BTBOOTSUCCESS_0527_b.TXT, you can find out timeline 04-29 11:24:07 as below.

04-29 11:24:07.026 372 372 D bt-vnd-mrvl: bt_hci_reset(L898): bt_hci_reset send out command successfully.

I have traced the code, it call function as below

if (vnd_cb->xmit_cb(HCI_RESET, packet, bt_cmpltevet_callback))
debug("%s send out command successfully --\n", __func__);
 
but doesn't trigged the callback function bt_cmpltevet_callback, could you please help to track this root casue? 

 

0 项奖励
回复

423 次查看
cdoumenc
NXP Employee
NXP Employee

Are you using one of the modules listed on 2.4/5 GHz Dual-Band 2x2 Wi-Fi® 5 (802.11ac) + Bluetooth® 5.3 Solution | NXP Semiconductors ? If yes, which one ?
NB : in your log A12BTBOOTSUCCESS_0527_b.TXT, I see that you are using i.MX8MQ NXP Application Processor.

0 项奖励
回复

393 次查看
cdoumenc
NXP Employee
NXP Employee

In your logs, I also see that your board name is "Machine model: PSC i.MX8MQ HUNTER". It is a custom board, right ?
Could you explained the actions you did after bootup, please ?
Do you have the same issue with Android 14 ?
Could you provide the output of command "adb logcat", please ?

I also see the following logs :

01-01 00:00:08.689 234 234 W mlan : loading out-of-tree module taints kernel.
01-01 00:00:08.746 234 234 I : Loading modules backported from Summit Linux version LRD-REL-11.171.0.24-0-gdb58c28ba46c
01-01 00:00:08.756 234 234 I : Backport generated by backports.git v11.171.0.24
01-01 00:00:08.763 1 1 I : Registered swp emulation handler
01-01 00:00:08.883 241 241 I watchdogd: watchdogd started (interval 10, margin 20)!
01-01 00:00:08.886 234 234 W : Found checksum 713F1083 vs module 3C0F674
01-01 00:00:08.896 234 234 W moal : disagrees about version of symbol- cfg80211_remain_on_channel_expired

which shows that 88W8997 driver modules haven't been loaded and it explains the issue.

 

I think you need to follow integration guide https://www.nxp.com/webapp/Download?colCode=Android_Vendor_HAL_V009_Integration_Guide&appType=licens... and adapt to your case :

at chapter 2.2, get our last SD8997 drv release "Generic_SD-WLAN-UART-BT-8997-LNX_6_6_3-IMX8-16.92.21.p119.2-16.92.21.p119.2-MM6X16437.P3-GPL" available from Software (direct dwl link is https://www.nxp.com/webapp/Download?colCode=GEN.16.92.21.p119.2MM6X16437.P3-GPLBT&appType=license)

0 项奖励
回复

380 次查看
Harrison_lee
Contributor I

Dear NXP,

Yes, we are using PSC i.MX8MQ HUNTER customer board and laird wifi/bt module. However, I don't android 14 due to our customer need to use android 12. My log is used adb logcat to dump the log. 

I am used NXP bluetooth driver and TTY driver for NXP android 12 code base. 

I show the following error messgae for downloading document. 

Your userId does not have sufficient privilege to proceed with download.

However, we seems to find the root cause on nxp tty driver. 

the paramter hw_stoppped seems to be set as "1" to cause wirte fail for hci write command. 

however, cause the result as below. 

uport->hw_stopped = uart_softcts_mode(uport) && !(uport->ops->get_mctrl(uport) & TIOCM_CTS);

 

Could you please help to check why hw_stopped is set as "1" ?

 

Thanks!

BR,

Harrison

0 项奖励
回复

350 次查看
cdoumenc
NXP Employee
NXP Employee

You can request access rights by following the process described on page https://www.nxp.com/ > Support > All Support > Secure Access Rights.

Here is direct link : Learn more about secure access rights.

 

As long as you don't get logs as the followings :

[ 8.617758][ T249] mlan: loading out-of-tree module taints kernel.
[ 8.723194][ T249] wlan: Loading MWLAN driver
[ 8.728124][ T249] wlan: Register to Bus Driver...
[ 8.733120][ T249] wlan: Register to Bus Driver Done
[ 8.738345][ T249] wlan: Driver loaded successfully

but errors such as what I see in your logs (see my previous post) : "moal : disagrees about version of symbol- "

It means wifi/bt drivers aren't properly loaded. You need to fix that first.

Did you already check Laird module docs on page 60-2230C Series Bluetooth and WiFi Module | Ezurio ? And Ezurio support ?

0 项奖励
回复

444 次查看
cdoumenc
NXP Employee
NXP Employee

Hi,

I am sorry but I don't find the traces you mentioned in the log you provided (A12BTBOOTSUCCESS_0527_b.TXT).
Did you follow doc UM11558 (Getting Started with NXP-based Wireless Modules on i.MX 8M Quad EVK Running Android 13 OS – User man... that you will find on product page Documentation ?

0 项奖励
回复