Wifi

brcmfmac, brcmfmac_module_init 沒有可用的平台數據

  • August 15, 2021

我已將核心版本從 4.11 更新到5.4.3-g9c2490ac8-dirty #3 SMP PREEMPT Sun Aug 8 12:11:16 UTC 2021 armv7l GNU/Linux

我對 brcmfmac 核心模組有疑問。我已啟用 brcmfmac 調試並啟用調試消息中的所有消息類型。

當我輸入這個命令時,你可以看到 dmesg 輸出insmod /<path to ko file>/brcmfmac.ko debug=0x1FFFF

[ 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

執行時我看不到 wlan0 名稱ifconfig -a

我已經在路徑中放置了適當的.bin和文件.txt``/lib/firmware/brcm/


ls /lib/firmware/brcm/ -l
-rwxr--r--    1 root     root        219557 Jun  2 12:28 brcmfmac43362-sdio.bin
-rwxr--r--    1 root     root          1121 Jun  2 12:28 brcmfmac43362-sdio.txt

問題解決了。我在 dts 文件中向 usdhc 添加了兼容屬性。

&usdhc1 {
   #address-cells = <1>;
   #size-cells = <0>;
   pinctrl-names = "default";
   max-frequency = <50000000>;
   pinctrl-0 = <&pinctrl_usdhc1_alt>;
   bus-width = <4>;
   no-1-8-v;   /* force 3.3V VIO */
   non-removable;
   pm-ignore-notify;
   cap-power-off-card;
//    /delete-property/ wakeup-source;
   status = "okay";

   brcmf: bcrmf@1 {
      reg = <1>;
       compatible = "brcm,bcm4329-fmac";
   };
};

我記得舊版本的 brcmfmac 對此屬性不敏感。

引用自:https://unix.stackexchange.com/questions/664115