我已将内核版本从 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
答案1
问题解决了。我已在 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 对此属性不敏感。