拯救者Y7000在CentOS7上面无法打开网卡 Ath10k (QCA9377)

问题

  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/

Atheros AR8131 网卡驱动下载地址:(包括windows 驱动 和 Linux驱动) http://partner.atheros.com/Drivers.aspx Atheros AR9285无线网卡驱动,由开源项目MadWifi支持 在sourceforge搜索MadWifi可以找到: http://sourceforge.net/projects/madwifi/ 最新的Atheros无线网卡驱动主页: http://madwifi-project.org/ 对于新版本linux kernel 2.6.25之后(现在都是这个以上的内核),要用新的current版本。 http://snapshots.madwifi-project.org/madwifi-0.9.4-current.tar.gz In case you use kernel 2.6.25 or newer, you need to get this snapshot of the madwifi-0.9.4 branch instead of the v0.9.4 release! That snapshot is basically v0.9.4 plus compilation fixes for recent kernels. Atheros无线网卡驱动介绍: http://wireless.kernel.org/en/users/Drivers/Atheros AR9285无线网卡驱动 http://wireless.kernel.org/en/users/Drivers/ath9k Any distribution shipping a kernel >= 2.6.27 will have ath9k present but the ath9k driver on 2.6.32 is the oldest one recommended, anything older than that is completely unsupported. Below is a list of the minimal distribution requirements to either use ath9k from 2.6.27 or from compat-wireless, which lets you install newer drivers on older kernels. Ubuntu Intrepid (8.10) Fedora Core 10 openSUSE 11.1 Mandriva Linux 2009.0 (formally known as Mandrake Linux) ARCH Linux Gentoo Linux Red Flag Linux 7.0 (based on Fedora 10) RHEL5 2.6.18 kernel being tested When it went in ath9k was announced to have been merged into Linux-2.6.27-rc3 by Linus on Tue, 12 Aug 2008 19:33:16 -0700 (PDT), and consisted of 58.8% of the entire rc3 patch. Early distributions which picked it up OpenWrt became the first distribution to pick up ath9k and contribute to it.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值