Ubuntu 16.04

Ubuntu 16.04 で ASUS Z170I PRO GAMING の Wi-Fi を使用する件

投稿日:

売値が2万円を超えるマザーボードを購入するなんて恐らく初めてなので,CPUファンを取り付けるときに手が震えました.

Ubuntu 16.04 をただインストールしただけではオンボードの Wi-Fi が動かなかったので、動くようにしたメモです.

cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"

カーネル

uname -r
4.4.0-22-generic

lspci, Qualcomm です.

lspci
05:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)

lshw を確認すると,オンボードの Intel のイーサネット NIC は有効になっているものの,Qualcomm の Wi-Fi が無効になっていました.

sudo lshw -C network
  *-network DISABLED      
       description: Wireless interface
       product: QCA6174 802.11ac Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:05:00.0
       logical name: wlp5s0
       version: 32
       serial: xx:xx:xx:xx:xx:xx
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath10k_pci driverversion=4.4.0-22-generic firmware=WLAN.RM.2.0-00180-QCARMSWPZ-1 latency=0 link=no multicast=yes wireless=IEEE 802.11abgn
       resources: irq:131 memory:f7000000-f71fffff
  *-network
       description: Ethernet interface
       product: Ethernet Connection (2) I219-V
       vendor: Intel Corporation
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       logical name: enp0s31f6
       version: 31
       serial: xx:xx:xx:xx:xx:xx
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.8-4 ip=192.168.xxx.xxx latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:128 memory:f7300000-f731ffff

dmesg を見てみると,

dmesg | grep ath10k
[    2.069212] ath10k_pci 0000:05:00.0: enabling device (0000 -> 0002)
[    2.069503] ath10k_pci 0000:05:00.0: pci irq msi interrupts 1 irq_mode 0 reset_mode 0
[    2.305787] ath10k_pci 0000:05:00.0: Direct firmware load for ath10k/cal-pci-0000:05:00.0.bin failed with error -2
[    2.305934] ath10k_pci 0000:05:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/firmware-5.bin failed with error -2
[    2.305936] ath10k_pci 0000:05:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -2
[    2.370361] ath10k_pci 0000:05:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/board-2.bin failed with error -2
[    4.496035] ath10k_pci 0000:05:00.0: qca6174 hw3.2 (0x05030000, 0x00340aff sub 1043:86cd) fw WLAN.RM.2.0-00180-QCARMSWPZ-1 fwapi 4 bdapi 1 htt-ver 3.26 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1 features wowlan,ignore-otp,no-4addr-pad
[    4.496037] ath10k_pci 0000:05:00.0: debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[    4.579032] ath10k_pci 0000:05:00.0 wlp5s0: renamed from wlan0
[    9.836006] ath10k_pci 0000:05:00.0: failed to enable dynamic BW: -11
[   15.836094] ath10k_pci 0000:05:00.0: could not suspend target (-11)
[   21.156082] ath10k_pci 0000:05:00.0: failed to enable dynamic BW: -11
[   27.156260] ath10k_pci 0000:05:00.0: could not suspend target (-11)
[   32.492259] ath10k_pci 0000:05:00.0: failed to set rx-chainmask: -11, req 0x3
[   35.492384] ath10k_pci 0000:05:00.0: failed to set arp ac override parameter: -11
[   41.492466] ath10k_pci 0000:05:00.0: could not suspend target (-11)
[   56.232693] ath10k_pci 0000:05:00.0: failed to enable dynamic BW: -11
[   62.232762] ath10k_pci 0000:05:00.0: could not suspend target (-11)
[   67.548827] ath10k_pci 0000:05:00.0: failed to enable dynamic BW: -11
[   73.548844] ath10k_pci 0000:05:00.0: could not suspend target (-11)
[   89.245153] ath10k_pci 0000:05:00.0: failed to enable dynamic BW: -11
[   95.245186] ath10k_pci 0000:05:00.0: could not suspend target (-11)
[  100.597297] ath10k_pci 0000:05:00.0: failed to set tx-chainmask: -11, req 0x3
[  103.597332] ath10k_pci 0000:05:00.0: failed to set arp ac override parameter: -11
[  109.597426] ath10k_pci 0000:05:00.0: could not suspend target (-11)
[  114.917503] ath10k_pci 0000:05:00.0: failed to enable dynamic BW: -11
[  120.917583] ath10k_pci 0000:05:00.0: could not suspend target (-11)
[  126.233651] ath10k_pci 0000:05:00.0: failed to enable dynamic BW: -11
[  132.233751] ath10k_pci 0000:05:00.0: could not suspend target (-11)

ひとまず現状のファームウェアをどこかにバックアップしておきます.

sudo mv /lib/firmware/ath10k/QCA6174 ~/QCA6174.org

GitHub でファームウェアが公開されているので,ダウンロードします.

https://github.com/kvalo/ath10k-firmware

展開したものをファームウェア用のディレクトリに移し,バイナリのファイル名を変更し,OS を再起動します.

unzip ath10k-firmware-master.zip 
sudo cp -r ath10k-firmware-master/QCA6174 /lib/firmware/ath10k/
sudo cp /lib/firmware/ath10k/QCA6174/hw2.1/firmware-5.bin_SW_RM.1.1.1-00157-QCARMSWPZ-1 /lib/firmware/ath10k/QCA6174/hw2.1/firmware-5.bin
sudo cp /lib/firmware/ath10k/QCA6174/hw3.0/firmware-4.bin_WLAN.RM.2.0-00180-QCARMSWPZ-1 /lib/firmware/ath10k/QCA6174/hw3.0/firmware-4.bin 
sudo reboot

再起動後,Wi-Fi も有効になっています.

AirMac Time Capsule に無事に接続もできました.

sudo lshw -C network
  *-network               
       description: Wireless interface
       product: QCA6174 802.11ac Wireless Network Adapter
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:05:00.0
       logical name: wlp5s0
       version: 32
       serial: xx:xx:xx:xx:xx:xx
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath10k_pci driverversion=4.4.0-22-generic firmware=WLAN.RM.2.0-00180-QCARMSWPZ-1 ip=192.168.xxx.xxx latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
       resources: irq:131 memory:f7000000-f71fffff
  *-network
       description: Ethernet interface
       product: Ethernet Connection (2) I219-V
       vendor: Intel Corporation
       physical id: 1f.6
       bus info: pci@0000:00:1f.6
       logical name: enp0s31f6
       version: 31
       serial: xx:xx:xx:xx:xx:xx
       size: 1Gbit/s
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k duplex=full firmware=0.8-4 ip=192.168.xxx.xxx latency=0 link=yes multicast=yes port=twisted pair speed=1Gbit/s
       resources: irq:128 memory:f7300000-f731ffff

参考
http://askubuntu.com/questions/607707/ath10k-installation

-Ubuntu 16.04

Copyright© hirooka.pro , 2013-2018 All Rights Reserved.