Murata 1MW [ WiFi + BT ] module integration with AM335x - Beaglebone black

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
Dipak
Level 2
Level 2
First like received 10 replies posted 10 sign-ins

We are integrating  Murata 1MW [ WiFi + BT ] module integration with AM335x - Beaglebone Black Board.

We have followed steps for building FMAC as documented in Cypress README file in the FMAC release from above repo [ifx-linux-wireless ].

After compiling and loading modules  [compat.ko, cfg80211.ko, brcmutil.ko, brcmfmac.ko,], we are getting below prints from dmesg.

 

 

[ 653.833301] compat: loading out-of-tree module taints kernel.
[ 653.848233] Loading modules backported from Linux version v5.4.18-2021_0520-0-gc6ec8acef0b8
[ 653.861348] Backport generated by backports.git v5.4.27-1-0-gf6e8852f
[ 654.969397] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 654.995533] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 657.124992] brcmfmac: brcmfmac_module_init No platform data available.
[ 657.125234] usbcore: registered new interface driver brcmfmac

 

 

It seems like we are struggling with dtb [Device tree blob] changes for sdio (wifi) and uart (BT) interfaces in am33x. Can you suggest changes for same ? 

Please find dtsi file [am335x-boneblack-wireless-1mw.zip] for am335x in attachments.

Thank You

DS

 

0 Likes
1 Solution
raks_99
Moderator
Moderator
Moderator
First question asked 250 replies posted 250 sign-ins

Hi Dipak,

You can contact murata to verfiy the dtsi file for am335x and WiFI and BT connections to to the Murata 1MW.

But it looks like there are no errors are being printed.

Is your wlan interface up?

Have you loaded the nvram.txt, firmware and clm_blob files in the "/lib/firmware/cypress" path?

Thanks

View solution in original post

6 Replies
raks_99
Moderator
Moderator
Moderator
First question asked 250 replies posted 250 sign-ins

Hi Dipak,

You can contact murata to verfiy the dtsi file for am335x and WiFI and BT connections to to the Murata 1MW.

But it looks like there are no errors are being printed.

Is your wlan interface up?

Have you loaded the nvram.txt, firmware and clm_blob files in the "/lib/firmware/cypress" path?

Thanks

Dipak
Level 2
Level 2
First like received 10 replies posted 10 sign-ins

Hi @raks_99 

  • We have already raised the same issue in murata community. And we are waiting for any answers for the same.
  • We have also placed "cyfmac43455-sdio.bin", "cyfmac43455-sdio.clm_blob", "cyfmac43455-sdio.txt" files in /lib/firmware/cypress directory.
  • we are not able to see wlan interface from ifconfig -a  command.

But we are not able to resolve below error:

brcmfmac: brcmfmac_module_init No platform data available.

 

From my observation using extra debug print:

brcmf_ops_sdio_probe : probe function is not calling once brcmf_sdmmc_driver registration done from brcmf_sdio_register function.

0 Likes
raks_99
Moderator
Moderator
Moderator
First question asked 250 replies posted 250 sign-ins

Hi Dipak,

Let me check the function calls. Are you using the latest fmac driver release from here? : :https://community.cypress.com/t5/Wi-Fi-Bluetooth-for-Linux/Cypress-Linux-WiFi-Driver-Release-FMAC-20...

 

 

 

 

0 Likes
Dipak
Level 2
Level 2
First like received 10 replies posted 10 sign-ins

Yes... I have also tested on this 🤗

I have added extra debug prints:

root@am335x-evm:/opt/wifi/kernel/4_19_94/backport# ./insert.sh

[54675.158312] Loading modules backported from Linux version v5.4.18-2021_0520-0-gc6ec8acef0b8
[54675.173064] Backport generated by backports.git v5.4.27-1-0-gf6e8852f
[54676.263599] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[54676.280803] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[54678.402657] brcmfmac: brcmfmac_module_init [EI] --- brcmfmac_module_init ---
[54678.416901] brcmfmac: brcmfmac_module_init No platform data available.
[54678.433314] brcmfmac: brcmfmac_module_init [EI] check for brcmf_mp_attach
[54678.446748] brcmfmac: brcmfmac_module_init [EI] check for brcmf_core_init
[54678.455350] brcmfmac: brcmf_driver_register [EI] ---- brcmf_driver_register ----
[54678.463607] brcmfmac: brcmfmac_module_init [EI] --- brcmfmac_module_init complete [0]---
[54678.471890] brcmfmac: brcmf_driver_register [EI] ---- CPTCFG_BRCMFMAC_SDIO ----
[54678.483618] brcmfmac: brcmf_sdio_register [EI] ---- brcmf_sdio_register ----
[54678.502475] brcmfmac: brcmf_sdio_register [EI] ---- brcmf_sdio_register completed [0]----
[54678.516786] brcmfmac: brcmf_driver_register [EI] ---- CPTCFG_BRCMFMAC_SDIO exit ----
[54678.530530] usbcore: registered new interface driver brcmfmac

0 Likes
Dipak
Level 2
Level 2
First like received 10 replies posted 10 sign-ins

I am now able to communicate with 1MW module by  replacing with newer 1MW module. Now we are able to enable wlan0 and blutooth connections and also got IP in ifconfig.

Apart from that we have found 2 issues, that are described below...

1) we are getting below print very frequently...
Can you please explain, why we are getting these prints ?

 

[63577.271025] omap_hsmmc 48060000.mmc: MMC start dma failure
[63577.276657] brcmfmac: mmc_submit_one: CMD53 sg block read failed -22
[63577.285946] brcmfmac: brcmf_sdio_rxglom: glom read of 512 bytes failed: -5
[63577.293705] brcmfmac: brcmf_sdio_rxfail: abort command, terminate frame
[63577.301531] brcmfmac: brcmf_sdio_readframes: brcmf_sdio_readframes: glom superframe w/o descriptor!
[63577.311547] brcmfmac: brcmf_sdio_rxfail: terminate frame

 


2 ) We need to take multiple retry for below command to enable BT with HCI.  [ gpio69 ==> BT_REG_ON ]

 

root@am335x-evm:~# echo 0 > /sys/class/gpio/gpio69/value
root@am335x-evm:~# sleep 1
root@am335x-evm:~# echo 1 > /sys/class/gpio/gpio69/value

root@am335x-evm:~# hciattach /dev/ttyS4 bcm43xx 3000000 flow -t 20

 


most of the time it gives time out.

-- Attaching current dts file for reference.

Thank You

0 Likes
raks_99
Moderator
Moderator
Moderator
First question asked 250 replies posted 250 sign-ins

Hi Dipak,

Glom read failures could be leading to low throughputs. I'll take get some more info on this and will get back to you.

For the BT issue, can you try running hciattach with 'nosleep' passed to the command :

hciattach /dev/ttyS4 bcm43xx 3000000 flow -t 20 nosleep

Thanks