<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Wi-Fi® + Bluetooth® + 802.15.4のトピックRe: Problem with 8997 PCIEUART</title>
    <link>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Problem-with-8997-PCIEUART/m-p/2065445#M3778</link>
    <description>&lt;P&gt;Is there any error log after you type "&lt;SPAN&gt;"hciattach /dev/ttymxc1 any 115200 noflow" "?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Mar 2025 09:28:30 GMT</pubDate>
    <dc:creator>jimmychan</dc:creator>
    <dc:date>2025-03-20T09:28:30Z</dc:date>
    <item>
      <title>Problem with 8997 PCIEUART</title>
      <link>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Problem-with-8997-PCIEUART/m-p/2064684#M3776</link>
      <description>&lt;P&gt;Dear NXP&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We need to change WIFI module on a selling product because of EOL on old modules.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are going from:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- A 8897 PCIE+USB(pcie8897_uapsta.bin); to&amp;nbsp;&lt;/P&gt;&lt;P&gt;- A 8997 PCIE+UART(pcieuart8997_combo_v4.bin)&amp;nbsp;&lt;/P&gt;&lt;P&gt;The new module we are evaluatiing is:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.advantech.com/en/products/1-2r51yz/aiw-154/mod_39a01ad5-48ec-4fb0-953b-54387a97cbfc" target="_blank"&gt;https://www.advantech.com/en/products/1-2r51yz/aiw-154/mod_39a01ad5-48ec-4fb0-953b-54387a97cbfc&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running:&lt;/P&gt;&lt;P&gt;- Linux 4.9.85-something ... armv7l GNU/Linux - FSL clone&lt;/P&gt;&lt;P&gt;- Hardware : Freescale i.MX6 Quad/DualLite (Device Tree)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I simply cannot make bluetooth run on the new modules:&lt;/P&gt;&lt;P&gt;I am using the mwifiex_pcie.ko and&amp;nbsp;when modprobing this module I get following log:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;modprobe -v mwifiex_pcie
insmod /lib/modules/4.9.85-g9aee8b6-dirty/kernel/drivers/net/wireless/marvell/mwifiex/mwifiex.ko
insmod /lib/modules/4.9.85-g9aee8b6-dirty/kernel/drivers/net/wireless/marvell/mwifiex/mwifiex_pcie.ko

Mar 19 10:29:20; info; kernel:[   93.789603] mwifiex_pcie 0000:01:00.0: enabling device (0140 -&amp;gt; 0142)
Mar 19 10:29:20; notice; kernel:[   93.789656] mwifiex_pcie: try set_consistent_dma_mask(32)
Mar 19 10:29:20; notice; kernel:[   93.789729] mwifiex_pcie: PCI memory map Virt0: e1100000 PCI memory map Virt2: e1300000
Mar 19 10:29:20; info; kernel:[   93.796715] [mwifiex_pcie_get_fw_name]:2934 - card-&amp;gt;dev-&amp;gt;device:2b42
Mar 19 10:29:20; info; kernel:[   93.796733] [mwifiex_pcie_get_fw_name]:2966 - revision_id:0011 - version:0003 - magic:0024
Mar 19 10:29:20; info; kernel:[   93.796737] [mwifiex_pcie_get_fw_name]:2977 - adapter-&amp;gt;fw_name:mrvl/pcieuart8997_combo_v4.bin
Mar 19 10:29:21; info; kernel:[   94.759628] mwifiex_pcie 0000:01:00.0: info: FW download over, size 583628 bytes
Mar 19 10:29:23; info; kernel:[   97.022199] mwifiex_pcie 0000:01:00.0: WLAN FW is active
Mar 19 10:29:23; info; kernel:[   97.055227] mwifiex_pcie 0000:01:00.0: Unknown api_id: 3
Mar 19 10:29:23; info; kernel:[   97.082838] mwifiex_pcie 0000:01:00.0: info: MWIFIEX VERSION: mwifiex 1.0 (16.68.1.p70)
Mar 19 10:29:23; info; kernel:[   97.082849] mwifiex_pcie 0000:01:00.0: driver_version = mwifiex 1.0 (16.68.1.p70)
Mar 19 10:29:23; notice; softap-init: Adding interface uap0...
Mar 19 10:29:24; info; ifplugd(wlan0)[313]: Using detection mode: IFF_RUNNING
Mar 19 10:29:24; info; ifplugd(wlan0)[313]: Link beat detected.
Mar 19 10:29:24; info; kernel:[   97.934936] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Mar 19 10:29:25; info; ifplugd(wlan0)[313]: Link beat lost.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It seem like&amp;nbsp;pcieuart8997_combo_v4.bin firmware (version 16.68.1.p70) is being downloaded correctly.&lt;/P&gt;&lt;P&gt;And it seems ike pcie/wifi is working - I can do a "iw wlan0 scan" (renamed from "mlan" to "wlan").&lt;/P&gt;&lt;P&gt;But... I cannot get bluetooth to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have verified the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- RX and TX on CPU/M.2 are crossed as expected. Also RTS/CTS is crossed,&lt;/P&gt;&lt;P&gt;- Before modprobe we continuously get this message "a5 10 00 ef ff" from module.&lt;/P&gt;&lt;P&gt;- After loading firmware (modprobe) RTS signal goes low. And the message from above stop being transmitted from module.&lt;/P&gt;&lt;P&gt;- I am 99% sure that it is the WIFI module that lowers the RTS signal as no interaction with uart should be caused by the modprobe.&lt;/P&gt;&lt;P&gt;- I do a:&amp;nbsp;&amp;nbsp;"hciattach /dev/ttymxc1 any 115200 noflow"&amp;nbsp;and this message is sent to module: "01 09 10 00" (visible on logic analyzer).&lt;/P&gt;&lt;P&gt;- We never get any reply from module as if bluetooth is not running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following questions that you might help me with:&lt;/P&gt;&lt;P&gt;Q1) Is there any way I can assure that the bluetooth uart part is runing (firmware has been loaded). Reading back registers etc.?&lt;/P&gt;&lt;P&gt;Q2) Do you have any idea why the RTS signal goes low after loading the firmware?&lt;/P&gt;&lt;P&gt;Q3) Is it the correct firmware for this module e.g version etc? I tried with version&amp;nbsp;16.92.10.p213 as well?&lt;/P&gt;&lt;P&gt;Q4) Should I be able to make the module (8997 chipset) operate on my version of Linux?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have already spend some days on this and any help would really be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance Flemming&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Mar 2025 11:47:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Problem-with-8997-PCIEUART/m-p/2064684#M3776</guid>
      <dc:creator>robot1</dc:creator>
      <dc:date>2025-03-19T11:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 8997 PCIEUART</title>
      <link>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Problem-with-8997-PCIEUART/m-p/2065445#M3778</link>
      <description>&lt;P&gt;Is there any error log after you type "&lt;SPAN&gt;"hciattach /dev/ttymxc1 any 115200 noflow" "?&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 09:28:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Problem-with-8997-PCIEUART/m-p/2065445#M3778</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2025-03-20T09:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 8997 PCIEUART</title>
      <link>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Problem-with-8997-PCIEUART/m-p/2065508#M3779</link>
      <description>&lt;P&gt;Hello Jimmy&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The hciattach gives following:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;/ # hciattach /dev/ttymxc1 any 115200 noflow
Device setup complete
[   66.402244] Bluetooth: hci0 command 0x1003 tx timeout
[   68.482150] Bluetooth: hci0 command 0x1001 tx timeout
[   70.562285] Bluetooth: hci0 command 0x1009 tx timeout&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But what I also wonder is why RTS drops low after firmware download(these are the signals as seen from IMX6):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="robot1_0-1742468709589.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329069i989C5D06B83A76C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="robot1_0-1742468709589.png" alt="robot1_0-1742468709589.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I also see a&amp;nbsp;&lt;SPAN&gt;"01 09 10 00" sequence being transmitted on the TX with some seconds interval, as of above log.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kind regard Flemming&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 11:07:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Problem-with-8997-PCIEUART/m-p/2065508#M3779</guid>
      <dc:creator>robot1</dc:creator>
      <dc:date>2025-03-20T11:07:26Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with 8997 PCIEUART</title>
      <link>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Problem-with-8997-PCIEUART/m-p/2068249#M3822</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/147467"&gt;@robot1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I checked your wifi module, it is advantech AIW-154, so you are using M.2 card based on 8997.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;1. driver you are using is not correct.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;I saw your linux kernel version is 4.9.85(i.mx6q linux bsp for L4.9 should be L4.9.88, not 4.9.85), it is very low, and wifi driver is the one released together with linux kernel, you should remove the Marvell driver, and use the latest version.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;--driver&lt;/STRONG&gt;&lt;BR /&gt;#git clone &lt;A href="https://github.com/nxp-imx/mwifiex.git" target="_blank"&gt;https://github.com/nxp-imx/mwifiex.git&lt;/A&gt;&lt;BR /&gt;#cd mwifiex&lt;BR /&gt;#git tag&lt;/P&gt;
&lt;P&gt;some branches for kernel version will be listed, you can select the latest one, form example.&lt;/P&gt;
&lt;P&gt;# git checkout lf-6.6.52_2.2.0&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;--Firmware &amp;amp; wifi_mod_para.conf&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;.Firmware:&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-imx/imx-firmware/tree/lf-6.6.52_2.2.0/nxp/FwImage_8997" target="_blank"&gt;https://github.com/nxp-imx/imx-firmware/tree/lf-6.6.52_2.2.0/nxp/FwImage_8997&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;--&amp;gt;&lt;A class="Link--primary" title="pcieuart8997_combo_v4.bin" href="https://github.com/nxp-imx/imx-firmware/blob/lf-6.6.52_2.2.0/nxp/FwImage_8997/pcieuart8997_combo_v4.bin" aria-label="pcieuart8997_combo_v4.bin, (File)" target="_blank"&gt;pcieuart8997_combo_v4.bin&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;.&lt;STRONG&gt;wifi_mod_para.conf&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-imx/imx-firmware/tree/lf-6.6.52_2.2.0/nxp" target="_blank"&gt;https://github.com/nxp-imx/imx-firmware/tree/lf-6.6.52_2.2.0/nxp&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Download and copy them to /lib/firmware/nxp of your board.&lt;/P&gt;
&lt;P&gt;Then build driver source code , and get 2 .ko files: mlan.ko &amp;amp; moal.ko, use the following commands to load driver.&lt;/P&gt;
&lt;P&gt;# insmod mlan.ko&lt;/P&gt;
&lt;P&gt;# insmod moal.ko mod_para=nxp/wifi_mod_para.conf&lt;/P&gt;
&lt;P&gt;For Bluetooth.&lt;/P&gt;
&lt;P&gt;# hciattach /dev/ttymxc1 any 115200 flow&lt;/P&gt;
&lt;P&gt;If no error, hci0 interface will be created.&lt;/P&gt;
&lt;P&gt;# ifconfig -a&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;2.&amp;nbsp;&amp;nbsp;Checking hardware design&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;If above driver can't solve the issue, please share your schematic with us!&lt;/P&gt;
&lt;P&gt;Full schematic will be better.&lt;/P&gt;
&lt;P&gt;You can send schematic to &lt;A href="mailto:weidong.sun@nxp.com" target="_blank"&gt;weidong.sun@nxp.com&lt;/A&gt;&amp;nbsp;,&amp;nbsp;&lt;SPAN&gt;&lt;A href="mailto:jimmy.chan@nxp.com" target="_blank"&gt;jimmy.chan@nxp.com&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks!&lt;BR /&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;weidong&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 03:00:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wi-Fi-Bluetooth-802-15-4/Problem-with-8997-PCIEUART/m-p/2068249#M3822</guid>
      <dc:creator>weidong_sun</dc:creator>
      <dc:date>2025-03-26T03:00:32Z</dc:date>
    </item>
  </channel>
</rss>

