2021-08-14 12:07:09

by Arend Van Spriel

[permalink] [raw]
Subject: Re: add support for brcm43362

Please keep linux-wireless in Cc:

On August 14, 2021 1:14:14 PM "M.Sadegh Zeyghami" <[email protected]> wrote:

> I have fixed the regulatory.db error. but the issue still persists.

Right. That should not be an issue for you right now. The driver does not
seem to get to a state where that would matter.

So taking a look at brcmf_ops_sdio_probe() [1]. It should end up calling
brcmf_sdiod_probe() which would show up in the kernel log. As it doesn't I
only see two places that may fail but those are allocations so that would
dump a stack trace in the log. So I have no clue unless that SDK you are
using has some modifications in brcmfmac driver.

Regards,
Arend

[1]
https://elixir.bootlin.com/linux/v5.4.3/source/drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c#L991

>
> On Sat, Aug 14, 2021 at 2:56 PM M.Sadegh Zeyghami <[email protected]>
> wrote:
>
>> OK
>> you can see sdio log as below:
>>
>> [ 684.265241] brcmfmac: brcmfmac_module_init No platform data available.
>> [ 684.271302] brcmfmac: brcmf_ops_sdio_probe Enter
>> [ 684.271323] brcmfmac: brcmf_ops_sdio_probe Class=0
>> [ 684.271336] brcmfmac: brcmf_ops_sdio_probe sdio vendor ID: 0x02d0
>> [ 684.271347] brcmfmac: brcmf_ops_sdio_probe sdio device ID: 0xa962
>> [ 684.271357] brcmfmac: brcmf_ops_sdio_probe Function#: 1
>> [ 684.271681] brcmfmac: brcmf_ops_sdio_probe Enter
>> [ 684.271695] brcmfmac: brcmf_ops_sdio_probe Class=0
>> [ 684.271706] brcmfmac: brcmf_ops_sdio_probe sdio vendor ID: 0x02d0
>> [ 684.271713] brcmfmac: brcmf_ops_sdio_probe sdio device ID: 0xa962
>> [ 684.271722] brcmfmac: brcmf_ops_sdio_probe Function#: 2
>>
>> is it possible that the error is related to below error log?
>>
>> [ 18.352425] cfg80211: Loading compiled-in X.509 certificates for
>> regulatory database
>> [ 18.552486] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
>> [ 18.631523] platform regulatory.0: Direct firmware load for
>> regulatory.db failed with error -2
>> [ 18.690135] platform regulatory.0: Falling back to sysfs fallback for:
>> regulatory.db
>>
>> On Sat, Aug 14, 2021 at 11:48 AM Arend Van Spriel <
>> [email protected]> wrote:
>>
>>> + linux-wireless list
>>>
>>> On August 14, 2021 6:07:15 AM "M.Sadegh Zeyghami" <[email protected]>
>>> wrote:
>>>
>>>> Hi,
>>>> How are you?
>>>> I've compiled a linux OS using yocto project. I want to have wifi
>>> interface
>>>> using WM-N-BM-02SDIO . I have set the WM-N-BM-02SDIO on sdio-1 which is
>>>> considered for sd card. I have successfully added wifi before in a
>>> project
>>>> with kernel 4.x.x.
>>>> now I'm trying with new sdk:
>>>> uname -a
>>>> 5.4.3-g9c2490ac8-dirty #3 SMP PREEMPT Sun Aug 8 12:11:16 UTC 2021 armv7l
>>>> GNU/Linux
>>>>
>>>> I have an issue with the brcmfmac kernel module. I have enabled brcmfmac
>>>> debug and enabled all message types in debug messages.
>>>>
>>>> you can see the dmesg output when I put this command insmod /<path to ko
>>>> file>/brcmfmac.ko debug=0x1FFFE :
>>>>
>>>> [ 2526.159218] brcmfmac: brcmfmac_module_init No platform data
>>> available.
>>>> [ 2526.168959] brcmfmac: brcmf_ops_sdio_probe Enter
>>>> [ 2526.168979] brcmfmac: brcmf_ops_sdio_probe Class=0
>>>> [ 2526.168991] brcmfmac: brcmf_ops_sdio_probe sdio vendor ID: 0x02d0
>>>> [ 2526.169001] brcmfmac: brcmf_ops_sdio_probe sdio device ID: 0xa962
>>>> [ 2526.169011] brcmfmac: brcmf_ops_sdio_probe Function#: 1
>>>> [ 2526.169347] brcmfmac: brcmf_ops_sdio_probe Enter
>>>> [ 2526.169362] brcmfmac: brcmf_ops_sdio_probe Class=0
>>>> [ 2526.169372] brcmfmac: brcmf_ops_sdio_probe sdio vendor ID: 0x02d0
>>>> [ 2526.169383] brcmfmac: brcmf_ops_sdio_probe sdio device ID: 0xa962
>>>> [ 2526.169392] brcmfmac: brcmf_ops_sdio_probe Function#: 2[
>>>> 3249.364285] brcmfmac: brcmf_sdio_exit Enter
>>>
>>> The vendor and device id are correct so can you retry using debug=0x31416
>>> enabling SDIO debug level.
>>>
>>> Regards,
>>> Arend
>>>
>>>
>>>
>>> --
>>> This electronic communication and the information and any files
>>> transmitted
>>> with it, or attached to it, are confidential and are intended solely for
>>> the use of the individual or entity to whom it is addressed and may
>>> contain
>>> information that is confidential, legally privileged, protected by
>>> privacy
>>> laws, or otherwise restricted from disclosure to anyone else. If you are
>>> not the intended recipient or the person responsible for delivering the
>>> e-mail to the intended recipient, you are hereby notified that any use,
>>> copying, distributing, dissemination, forwarding, printing, or copying of
>>> this e-mail is strictly prohibited. If you received this e-mail in error,
>>> please return the e-mail to the sender, delete it from your computer, and
>>> destroy any printed copy of it.




--
This electronic communication and the information and any files transmitted
with it, or attached to it, are confidential and are intended solely for
the use of the individual or entity to whom it is addressed and may contain
information that is confidential, legally privileged, protected by privacy
laws, or otherwise restricted from disclosure to anyone else. If you are
not the intended recipient or the person responsible for delivering the
e-mail to the intended recipient, you are hereby notified that any use,
copying, distributing, dissemination, forwarding, printing, or copying of
this e-mail is strictly prohibited. If you received this e-mail in error,
please return the e-mail to the sender, delete it from your computer, and
destroy any printed copy of it.


Attachments:
smime.p7s (4.12 kB)
S/MIME Cryptographic Signature