lenovo k20-80 无法上网

包含网卡/无线网的网络问题和ADSL/校园网/宽带拨号支持及代理/共享等网络使用问题
回复
ross_zhao
帖子: 5
注册时间: 2015-12-16 17:19
系统: ubuntu 14.04

lenovo k20-80 无法上网

#1

帖子 ross_zhao »

我的笔记本lenovo k20-80 无法上网

ross@ross-PC:~/backports-4.2.6-1$ lspci -nnvv | grep -A 9 Network
03:00.0 Network controller [0280]: Qualcomm Atheros Device [168c:0041] (rev 20)
Subsystem: Lenovo Device [17aa:3545]
Control: I/O- Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 64 bytes
Interrupt: pin A routed to IRQ 11
Region 0: Memory at d1000000 (64-bit, non-prefetchable)
Capabilities: <access denied>

ross@ross-PC:~/backports-4.2.6-1$ iwconfig
eth0 no wireless extensions.

lo no wireless extensions.

ross@ross-PC:~/backports-4.2.6-1$ rfkill list all
0: ideapad_wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
1: ideapad_bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
2: hci0: Bluetooth
Soft blocked: no
Hard blocked: no

我尝试了使用backports 安装了ath10k,但是make install 好像不能是iinstall,
ross@ross-PC:~/backports-4.2.6-1$ sudo make install
[sudo] password for ross:
Building modules, stage 2.
MODPOST 6 modules
INSTALL /home/ross/backports-4.2.6-1/compat/compat.ko
Can't read private key
INSTALL /home/ross/backports-4.2.6-1/drivers/net/wireless/ath/ath.ko
Can't read private key
INSTALL /home/ross/backports-4.2.6-1/drivers/net/wireless/ath/ath10k/ath10k_core.ko
Can't read private key
INSTALL /home/ross/backports-4.2.6-1/drivers/net/wireless/ath/ath10k/ath10k_pci.ko
Can't read private key
INSTALL /home/ross/backports-4.2.6-1/net/mac80211/mac80211.ko
Can't read private key
INSTALL /home/ross/backports-4.2.6-1/net/wireless/cfg80211.ko
Can't read private key
DEPMOD 3.19.0-39-generic
depmod will prefer updates/ over kernel/ -- OK!
Note:
You may or may not need to update your initramfs, you should if
any of the modules installed are part of your initramfs. To add
support for your distribution to do this automatically send a
patch against "update-initramfs.sh". If your distribution does not
require this send a patch with the '/usr/bin/lsb_release -i -s'
("Ubuntu") tag for your distribution to avoid this warning.

Your backported driver modules should be installed now.
Reboot.

手动insmoe这几个模块没有任何信息

dmesg没有任何关于ath10k的信息。

从我的windows中可以看到看到无线网卡是QCA61x4.

谁能帮忙看一下,万分感谢。已经搞了两天了。 :Cry
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: lenovo k20-80 无法上网

#2

帖子 vickycq »

168c:0041
相关讨论:
https://bugs.launchpad.net/ubuntu/+sour ... ug/1436940
http://permalink.gmane.org/gmane.linux. ... devel/2057

根据讨论结果,Linux 4.4-rc5 已经添加支持
http://kernel.ubuntu.com/~kernel-ppa/ma ... -rc5-wily/ 下载对应架构的内核与头文件,安装之
注意不要移除旧内核
Martín Coll (martingonzalezcoll) 写了: I just installed this kernel and it's working correctly: http://kernel.ubuntu.com/~kernel-ppa/ma ... -rc5-wily/
No backports required!

如果不想试用最新内核,也可使用网友制作的 dkms 包:
http://askubuntu.com/a/678244
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
ross_zhao
帖子: 5
注册时间: 2015-12-16 17:19
系统: ubuntu 14.04

Re: lenovo k20-80 无法上网

#3

帖子 ross_zhao »

vickycq 写了:
168c:0041
相关讨论:
https://bugs.launchpad.net/ubuntu/+sour ... ug/1436940
http://permalink.gmane.org/gmane.linux. ... devel/2057

根据讨论结果,Linux 4.4-rc5 已经添加支持
http://kernel.ubuntu.com/~kernel-ppa/ma ... -rc5-wily/ 下载对应架构的内核与头文件,安装之
注意不要移除旧内核
Martín Coll (martingonzalezcoll) 写了: I just installed this kernel and it's working correctly: http://kernel.ubuntu.com/~kernel-ppa/ma ... -rc5-wily/
No backports required!

如果不想试用最新内核,也可使用网友制作的 dkms 包:
http://askubuntu.com/a/678244
谢谢你的回复,但是我还是有点问题。
首先,我安装了新的内核。
sudo dpkg -i linux-headers-4.4*.deb linux-image-4.4*.deb
我用的包是amd64的
linux-headers-4.4.0-040400rc5_4.4.0-040400rc5.201512140221_all.deb
linux-headers-4.4.0-040400rc5-generic_4.4.0-040400rc5.201512140221_amd64.deb
linux-image-4.4.0-040400rc5-generic_4.4.0-040400rc5.201512140221_amd64.deb

重启之后还是不行。
dmesg终于有了ath10k的相关信息:

ross@ross-PC:~$ dmesg | grep ath10k
[ 12.821653] ath10k_pci 0000:03:00.0: pci irq msi-x interrupts 8 irq_mode 0 reset_mode 0
[ 13.439071] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2
[ 13.648037] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/board-2.bin failed with error -2
[ 14.792758] ath10k_pci 0000:03:00.0: firmware crashed! (uuid 53f520f7-3b5e-4596-ae71-b6a29e0d0d32)
[ 14.792799] ath10k_pci 0000:03:00.0: qca6164 hw2.1 (0x05010000, 0x003405ff sub 17aa:3545) fw killer-n1525-fw fwapi 5 bdapi 1 htt-ver 0.0 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1 features
[ 14.792802] ath10k_pci 0000:03:00.0: debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[ 14.794934] ath10k_pci 0000:03:00.0: firmware register dump:
[ 14.794952] ath10k_pci 0000:03:00.0: [00]: 0x05010000 0x000015B3 0x000A012D 0x00955B31
[ 14.794976] ath10k_pci 0000:03:00.0: [04]: 0x000A012D 0x00060330 0x00000016 0x86705006
[ 14.795000] ath10k_pci 0000:03:00.0: [08]: 0x00000000 0x00400000 0x00400600 0x00000001
[ 14.795023] ath10k_pci 0000:03:00.0: [12]: 0x00000009 0x00000000 0x00931C61 0x00931C7D
[ 14.795047] ath10k_pci 0000:03:00.0: [16]: 0x0096BDBC 0x009287BD 0x00000000 0x00000000
[ 14.795070] ath10k_pci 0000:03:00.0: [20]: 0x400A012D 0x0040E2B0 0x00955A00 0x00404590
[ 14.795094] ath10k_pci 0000:03:00.0: [24]: 0x809287D9 0x0040E310 0x7A508BF8 0xC00A012D
[ 14.795117] ath10k_pci 0000:03:00.0: [28]: 0x809288D7 0x0040E340 0x00000000 0xFFF08040
[ 14.795141] ath10k_pci 0000:03:00.0: [32]: 0x809290FE 0x0040E360 0x00400000 0x00400600
[ 14.795164] ath10k_pci 0000:03:00.0: [36]: 0x80929205 0x0040E380 0x00000000 0x00400600
[ 14.795187] ath10k_pci 0000:03:00.0: [40]: 0x40928024 0x0040E3B0 0x0040D3D0 0x0040D3D0
[ 14.795212] ath10k_pci 0000:03:00.0: [44]: 0x00000000 0x0040E3D0 0x009BB001 0x00040020
[ 14.795235] ath10k_pci 0000:03:00.0: [48]: 0x00401BF0 0x00000001 0x00404B9C 0x00400000
[ 14.795258] ath10k_pci 0000:03:00.0: [52]: 0x40928024 0x0040E3B0 0x0040D3D0 0x0040D3D0
[ 14.795281] ath10k_pci 0000:03:00.0: [56]: 0xDD7FE100 0x782A529F 0x5D7BDD42 0x80C9F6D5
[ 15.788693] ath10k_pci 0000:03:00.0: failed to receive control response completion, polling..
[ 16.788741] ath10k_pci 0000:03:00.0: ctl_resp never came in (-110)
[ 16.788766] ath10k_pci 0000:03:00.0: failed to connect to HTC: -110
[ 16.865865] ath10k_pci 0000:03:00.0: could not init core (-110)
[ 16.865904] ath10k_pci 0000:03:00.0: could not probe fw (-110)
[ 16.876805] ath10k_pci 0000:03:00.0: cannot restart a device that hasn't been started
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: lenovo k20-80 无法上网

#4

帖子 vickycq »

从我的windows中可以看到看到无线网卡是QCA61x4.
[ 13.439071] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2
[ 13.648037] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/board-2.bin failed with error -2
看来是固件有问题
从这里下载固件:
https://github.com/kvalo/ath10k-firmwar ... master.zip
解压,将 QCA6174 文件夹复制到 /lib/firmware/ath10k/QCA6174

如果是 QCA6164 可能还需要这些:
https://github.com/atondwal/ath10k-firm ... 0k/QCA6164

另外可能需要如下配置:
编辑或创建 /etc/modprobe.d/ath10k.conf 加入以下内容

代码: 全选

options ath10k_core skip_otp=y
重新启动计算机

参考
https://bugs.launchpad.net/ubuntu/+sour ... omments/34
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
ross_zhao
帖子: 5
注册时间: 2015-12-16 17:19
系统: ubuntu 14.04

Re: lenovo k20-80 无法上网

#5

帖子 ross_zhao »

看来是固件有问题
从这里下载固件:
https://github.com/kvalo/ath10k-firmwar ... master.zip
解压,将 QCA6174 文件夹复制到 /lib/firmware/ath10k/QCA6174

如果是 QCA6164 可能还需要这些:
https://github.com/atondwal/ath10k-firm ... 0k/QCA6164

另外可能需要如下配置:
编辑或创建 /etc/modprobe.d/ath10k.conf 加入以下内容
代码:
options ath10k_core skip_otp=y


重新启动计算机
我使用了你说的方法,但是好像没有什么作用。

ross@ross-pc:~$ tree /lib/firmware/ath10k/
/lib/firmware/ath10k/
├── QCA6164
│   └── hw2.1
│   ├── board.bin
│   └── firmware-5.bin
├── QCA6174
│   ├── hw2.1
│   │   ├── board.bin
│   │   ├── firmware-5.bin_SW_RM.1.1.1-00157-QCARMSWPZ-1
│   │   └── notice.txt_SW_RM.1.1.1-00157-QCARMSWPZ-1
│   └── hw3.0
│   ├── board-2.bin
│   ├── board.bin
│   ├── firmware-4.bin_WLAN.RM.2.0-00180-QCARMSWPZ-1
│   └── notice.txt_WLAN.RM.2.0-00180-QCARMSWPZ-1
└── QCA988X
└── hw2.0
├── board.bin
├── firmware.bin
└── otp.bin

7 directories, 12 files
ross@ross-pc:~$ cat /etc/modprobe.d/ath10k.conf
options ath10k_core skip_otp=y

文件来源你给的链接,错误是一样的,firmware。
ross@ross-pc:~$ dmesg | grep 'firmware'
[ 13.091576] bluetooth hci0: Direct firmware load for qca/rampatch_usb_00000200.bin failed with error -2
[ 13.156984] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/cal-pci-0000:03:00.0.bin failed with error -2
[ 13.167931] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/firmware-5.bin failed with error -2
[ 13.167948] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA6174/hw2.1/firmware-5.bin': -2
[ 13.169288] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/firmware-4.bin failed with error -2
[ 13.169289] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA6174/hw2.1/firmware-4.bin': -2
[ 13.170478] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/firmware-3.bin failed with error -2
[ 13.170479] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA6174/hw2.1/firmware-3.bin': -2
[ 13.171692] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/firmware-2.bin failed with error -2
[ 13.171694] ath10k_pci 0000:03:00.0: could not fetch firmware file 'ath10k/QCA6174/hw2.1/firmware-2.bin': -2
[ 13.172952] ath10k_pci 0000:03:00.0: Direct firmware load for ath10k/QCA6174/hw2.1/firmware.bin failed with error -2
[ 13.172953] ath10k_pci 0000:03:00.0: could not fetch firmware (-2)
[ 13.173701] ath10k_pci 0000:03:00.0: could not fetch firmware files (-2)
头像
vickycq
帖子: 4507
注册时间: 2011-03-20 13:12
系统: Debian
来自: 山东省寿光县
联系:

Re: lenovo k20-80 无法上网

#6

帖子 vickycq »

https://bugs.launchpad.net/ubuntu/+sour ... mments=all 中用 'firmware' 关键字搜寻,多参考几种方法。

比如还有人提到 把 https://github.com/atondwal/ath10k-firm ... 6164/hw2.1 的固件放到 /lib/firmware/ath10k/QCA6174/ 下覆盖,注意是用 6164 的固件覆盖 6174

比如还有人提到 用这里的固件:https://github.com/sumdog/ath10k-firmwa ... 0k/QCA6174
(forked from kvalo/ath10k-firmware)

另外抱歉,4.4 内核好像不是必须的,4.0 以上貌似都可以。
Debian 中文论坛 - forums.debiancn.org
欢迎所有 Debian GNU/Linux 用户
ross_zhao
帖子: 5
注册时间: 2015-12-16 17:19
系统: ubuntu 14.04

Re: lenovo k20-80 无法上网

#7

帖子 ross_zhao »

vickycq 写了:https://bugs.launchpad.net/ubuntu/+sour ... mments=all 中用 'firmware' 关键字搜寻,多参考几种方法。

比如还有人提到 把 https://github.com/atondwal/ath10k-firm ... 6164/hw2.1 的固件放到 /lib/firmware/ath10k/QCA6174/ 下覆盖,注意是用 6164 的固件覆盖 6174

比如还有人提到 用这里的固件:https://github.com/sumdog/ath10k-firmwa ... 0k/QCA6174
(forked from kvalo/ath10k-firmware)

另外抱歉,4.4 内核好像不是必须的,4.0 以上貌似都可以。

这个问题已经搞定了,
记录一下我一共做了那些事情
1. 到 http://kernel.ubuntu.com/~kernel-ppa/ma ... -rc5-wily/ 下载对应架构的内核与头文件,安装之
sudo dpkg -i linux-headers-4.4*.deb linux-image-4.4*.deb
2. 重启之后firmware有错误
3. https://github.com/atondwal/ath10k-firmware全部git clone 下来。
4. 把上面的ath10k这个目录全部copy到/lib/firmware/下,老的可以先备份下来,反正我估计不会用了。
5. cp -R /lib/firmware/ath10k/QCA6164/hw2.1 /lib/firmware/ath10k/QCA6174/
6. 重启

这样就好了,谢谢vickycq
ross_zhao
帖子: 5
注册时间: 2015-12-16 17:19
系统: ubuntu 14.04

Re: lenovo k20-80 无法上网

#8

帖子 ross_zhao »

再问一个问题,怎么把帖子给关了?
头像
深秋里的姐妹
帖子: 96
注册时间: 2014-12-25 13:04
系统: ubuntu

Re: lenovo k20-80 无法上网

#9

帖子 深秋里的姐妹 »

ross_zhao 写了:再问一个问题,怎么把帖子给关了?
编辑主贴标题,加上 [已解决] 字样
[已解决] lenovo k20-80 无法上网

也可以在标题中添加更多关键词,方便后来者搜索
[已解决] lenovo k20-80 无法上无线网,QCA6164 QCA6174
“这是我送给你的。希望你再来啊。”
苗子摇摇头。千重子抓住红格子门,目送苗子远去。苗子始终没有回头。
在千重子的前发上飘落了少许细雪,很快就消融了。整个市街也还在沉睡着。
回复