问题
2018 版的联想拯救者Y7000,网卡为高通的QCA9377,在Ubuntu 18.04 操作系统上可以通过卸载ideapad_laptop模块使用网卡,但是在CentOS7 上,不能开启网卡。先查看系统日志。
[ 9.381418] ath10k_pci 0000:07:00.0: enabling device (0000 -> 0002)
[ 9.384323] ath10k_pci 0000:07:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ 9.598369] ath10k_pci 0000:07:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:02:00.0.bin failed with error -2
[ 9.598384] ath10k_pci 0000:07:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[ 9.969628] ath10k_pci 0000:07:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 1028:1810
[ 9.969633] ath10k_pci 0000:07:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[ 9.971155] ath10k_pci 0000:07:00.0: firmware ver WLAN.TF.2.1-00021-QCARMSWP-1 api 6 features wowlan,ignore-otp crc32 42e41877
[ 13.034010] ath10k_pci 0000:07:00.0: unable to read from the device
[ 13.034012] ath10k_pci 0000:07:00.0: could not execute otp for board id check: -110
[ 13.034013] ath10k_pci 0000:07:00.0: failed to get board id from otp: -110
[ 13.034029] ath10k_pci 0000:07:00.0: could not probe fw (-110)
确认Linux的firmware保持在最新。
yum update
yum search kernel-firmware
那么问题出在哪里呢?进入ath10k的固件目录看看?
[oripoin@LEGION-Y7K hw1.0]$ ll
total 1076
-rw-r--r--. 1 root root 304308 Apr 1 2020 board-2.bin
-rw-r--r--. 1 root root 8124 Apr 1 2020 board.bin
-rw-r--r--. 1 root root 783336 Apr 1 2020 firmware-5.bin
-rw-r--r--. 1 root root 751436 Apr 1 2020 firmware-6.bin
看起来很正常,找不出什么问题。在Gentoo的论坛上,我找到了解决办法,网址如下:https://forums.gentoo.org/viewtopic-t-1088792-start-0.html
解决方法
删除/lib/firmware/ath10k/QCA9377/hw1.0
目录下的firmware-6.bin
总结
据说是因为固件包更新后新加入了一个firmware-6.bin,就会加载这个固件,删除后内核日志里面可以看到已经是‵…api 5…‵了。
[ 0.437435] pci 0000:07:00.0: [168c:0042] type 00 class 0x028000
[ 0.437502] pci 0000:07:00.0: reg 0x10: [mem 0xa4200000-0xa43fffff 64bit]
[ 0.437775] pci 0000:07:00.0: PME# supported from D0 D3hot D3cold
[ 0.437909] pci 0000:07:00.0: System wakeup disabled by ACPI
[ 1.280063] pci 0000:07:00.0: Signaling PME through PCIe PME interrupt
[ 4.974971] ath10k_pci 0000:07:00.0: irq 505 for MSI/MSI-X
[ 4.975086] ath10k_pci 0000:07:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ 5.178558] ath10k_pci 0000:07:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 17aa:0901
[ 5.178561] ath10k_pci 0000:07:00.0: kconfig debug 0 debugfs 1 tracing 0 dfs 0 testmode 0
[ 5.179110] ath10k_pci 0000:07:00.0: firmware ver WLAN.TF.1.0-00002-QCATFSWPZ-5 api 5 features ignore-otp crc32 c3e0d04f
[ 5.242807] ath10k_pci 0000:07:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a
[ 5.892749] ath10k_pci 0000:07:00.0: htt-ver 3.44 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
有的没的
作为一个重度CentOS用户,几乎所有的问题都要从Arch和Gentoo的文档,Ubuntu,Gentoo和Arch的论坛里面寻找解决方法。服了。
原文发布在我的博客:https://blog.oripoin.me/software/legiony7000_centos7_qca9377/