10 Replies Latest reply on Nov 2, 2020 5:38 AM by AjKu_4703686

    CYW43455 bringup on nvidia platform

    AjKu_4703686

      Hi Team,

       

      I am facing issue with CYW43455 bringup on nvidia  platform,

       

      getting these errors,

      [    8.279684] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)

      [   11.551637] brcmfmac: brcmf_cfg80211_reg_notifier: not a ISO3166 code (0x30 0x30)

      [   14.166818] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110

      [   17.494892] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110

      [   17.495084] brcmfmac: brcmf_cfg80211_get_channel: chanspec failed (-110)

      [   23.386799] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110

      [   23.386994] brcmfmac: brcmf_cfg80211_get_tx_power: error (-110)

      [   26.454885] brcmfmac: brcmf_do_escan: error (-110)

      [   26.455009] brcmfmac: brcmf_cfg80211_scan: scan error (-110)

      [   27.443516] brcmfmac: brcmf_run_escan: error (-4)

      [   27.443643] brcmfmac: brcmf_cfg80211_scan: scan error (-4)

      [   80.215022] brcmfmac: _brcmf_set_multicast_list: Setting mcast_list failed, -110

      [  105.302828] brcmfmac: brcmf_proto_bcdc_query_dcmd: brcmf_proto_bcdc_msg failed w/status -110

      [  105.303017] brcmfmac: brcmf_cfg80211_get_channel: chanspec failed (-110)

      [  315.990889] brcmfmac: brcmf_do_escan: error (-110)

      [  315.991134] brcmfmac: brcmf_cfg80211_scan: scan error (-110)

      [  386.088003] brcmfmac: brcmf_run_escan: error (-4)

      [  386.088224] brcmfmac: brcmf_cfg80211_scan: scan error (-4)

       

      wlan0 is up but i am not able to connect to any wifi network,

      $ ifconfig

      wlan0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500

              ether 48:eb:62:c0:f0:87  txqueuelen 1000  (Ethernet)

              RX packets 0  bytes 0 (0.0 B)

              RX errors 0  dropped 0  overruns 0  frame 0

              TX packets 0  bytes 0 (0.0 B)

              TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

       

      How to resolve this issue?

       

      ZhengbaoZ_96

       

      Thanks,

      Ajith

        • 1. Re: CYW43455 bringup on nvidia platform
          GauravS_31

          Can you please share the following information?

           

          FMAC driver version

           

          Output of the following WL commands:

           

          wl ver

          wl clmver

          wl country

          • 2. Re: CYW43455 bringup on nvidia platform
            AjKu_4703686

            GauravS_31

             

            Thanks for the reply

            wl utility is not present in my build. How to get that utility?

             

            brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Mar  1 2015 07:29:38 version 7.45.18 (r538002) FWID 01-6a2c8ad4

            seems above is fw version. How to get FMAC driver vesrsion?

             

             

            sometimes I am able to see wifi networks but not able to connect,

            # nmcli device wifi list

            IN-USE  SSID       MODE   CHAN  RATE        SIGNAL  BARS  SECURITY

                    arunkumar  Infra  4     270 Mbit/s  45      ��▂��▄__  WPA2

             

             

             

            Thanks,

            Ajith

            • 3. Re: CYW43455 bringup on nvidia platform
              GauravS_31

              Kindly contact your module vendor to get the WL utility. The WLAN firmware version is old and we recommend you to use the latest firmware that contains security fixes to known vulnerabilities. The FMAC driver version is provided in the driver release package. The latest driver package containing the latest firmware is available here https://community.cypress.com/docs/DOC-21490 and the version is v5.4.18-2020_0925.

              • 4. Re: CYW43455 bringup on nvidia platform
                AjKu_4703686

                GauravS_31

                VinayakS_26

                 

                I have updated FMAC driver to v5.4.18-2020_0925(using v5.4.18-backports driver) and using latest firmware,

                brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Sep 18 2020 02:27:58 version 7.45.221 (3a6d3a0 CY) FWID 01-bbd9282b

                 

                I am getting these errors if try to connect to WiFi network,

                [  116.575611] ieee80211 phy0: brcmf_escan_timeout: timer expired

                [  156.767637] ieee80211 phy0: brcmf_escan_timeout: timer expired

                [  171.416181] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

                [  187.999652] ieee80211 phy0: brcmf_escan_timeout: timer expired

                [  211.551686] ieee80211 phy0: brcmf_escan_timeout: timer expired

                [  241.933043] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

                [  260.191764] ieee80211 phy0: brcmf_escan_timeout: timer expired

                [  287.071686] ieee80211 phy0: brcmf_escan_timeout: timer expired

                [  293.520533] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

                [  304.223635] ieee80211 phy0: brcmf_escan_timeout: timer expired

                [  320.607632] ieee80211 phy0: brcmf_escan_timeout: timer expired

                [  353.631653] ieee80211 phy0: brcmf_escan_timeout: timer expired

                [  396.639638] ieee80211 phy0: brcmf_escan_timeout: timer expired

                [  449.631629] ieee80211 phy0: brcmf_escan_timeout: timer expired

                [  512.607586] ieee80211 phy0: brcmf_escan_timeout: timer expired

                [  537.185634] tegradc 15200000.nvdisplay: blank - powerdown

                [  537.239482] extcon-disp-state external-connection:disp-state: cable 47 state 0

                [  537.239511] Extcon AUX1(HDMI) disable

                [  537.260613] tegra_nvdisp_handle_pd_disable: Powergated Head1 pd

                [  537.261123] tegra_nvdisp_handle_pd_disable: Powergated Head0 pd

                [  575.583646] ieee80211 phy0: brcmf_escan_timeout: timer expired

                [  638.559582] ieee80211 phy0: brcmf_escan_timeout: timer expired

                [  701.535694] ieee80211 phy0: brcmf_escan_timeout: timer expired

                [  764.511695] ieee80211 phy0: brcmf_escan_timeout: timer expired

                 

                Any idea on this errors and how to debug?

                • 5. Re: CYW43455 bringup on nvidia platform
                  GauravS_31

                  Does the /lib/firmware/cypress directory contain the WLAN firmware, nvram and clm_blob files? All 3 files would be required. Also which commands have been used to connect to the AP?

                  • 6. Re: CYW43455 bringup on nvidia platform
                    AjKu_4703686

                    GauravS_31

                     

                    yeah it has all three files in /lib/firmware/cypress.

                     

                    Firmware loaded successfully.

                    brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Sep 18 2020 02:27:58 version 7.45.221 (3a6d3a0 CY) FWID 01-bbd9282b

                     

                    tried with nmcli commands.

                    I am able to scan WiFi networks but not able to connect to it

                     

                    # nmcli device wifi list

                    IN-USE  SSID       MODE   CHAN  RATE        SIGNAL  BARS  SECURITY

                            arunkumar  Infra  4     270 Mbit/s  45      ��▂��▄__  WPA2

                    • 7. Re: CYW43455 bringup on nvidia platform
                      GauravS_31

                      I am suspecting if there could be an issue with nmcli communication with driver. If you use wpa_cli to connect, do you still see the same problem?

                      • 8. Re: CYW43455 bringup on nvidia platform
                        AjKu_4703686

                        GauravS_31

                         

                        tried with wpa_cli, still same issue not able to connect to any WiFi network

                        • 9. Re: CYW43455 bringup on nvidia platform
                          GauravS_31

                          Can you share  dmesg logs with

                          insmod brcmfmac.ko debug=0x00100006

                          • 10. Re: CYW43455 bringup on nvidia platform
                            AjKu_4703686

                            GauravS_31

                             

                            Thanks for the reply. I have tried that command and able to connect to WiFi  network with that command

                             

                            observation:

                            able to connect to WiFi network If i do insmod like this below,

                            insmod brcmfmac.ko debug=0x00100006

                             

                            not able to connect to  WiFi network if i do insmod without debug parameter

                            insmod brcmfmac.ko

                             

                            Attached logs for both scenarios.

                             

                            Any idea on this issue? what causing WiFi to work with debug logs enabled case and how to solve this