Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Wifi install - ATH10K
View unanswered posts
View posts from last 24 hours

Goto page 1, 2, 3  Next  
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Thu Jul 13, 2017 4:17 am    Post subject: Wifi install - ATH10K Reply with quote

I am following the Qualcom wiki page and think I have all the basics in place...



Code:
xps15 /home/will # zgrep 'ATH10K' /proc/config.gz
CONFIG_ATH10K=y
CONFIG_ATH10K_PCI=y
# CONFIG_ATH10K_DEBUG is not set
# CONFIG_ATH10K_DEBUGFS is not set
# CONFIG_ATH10K_TRACING is not set

xps15 /home/will # lspci -k
02:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
        Subsystem: Bigfoot Networks, Inc. QCA6174 802.11ac Wireless Network Adapter
        Kernel driver in use: ath10k_pci


But I note that the wiki page says that the Qualcomm must be loaded as a module and therefore I, having built it in, don't have the additional line:
Quote:
root #lspci -k

3a:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)
Subsystem: Bigfoot Networks, Inc. QCA6174 802.11ac Wireless Network Adapter
Kernel driver in use: ath10k_pci
Kernel modules: ath10k_pci


nevertheless the device is showing up in lspci associated with a driver, so I went about the instructions for firmware which are a little outdated describing the need to replace board.bin with a wget of board-2.bin after backing board.bin up. However my firmware directory comes with the board-2.bin included so I backed up board.bin and moved board-2.bin to board.bin

Code:
xps15 /home/will # mv /lib/firmware/ath10k/QCA6174/hw3.0/board.bin /lib/firmware/ath10k/QCA6174/hw3.0/board.bin.bak
xps15 /home/will # mv /lib/firmware/ath10k/QCA6174/hw3.0/board-2.bin /lib/firmware/ath10k/QCA6174/hw3.0/board.bin


probably because the board-2.bin is newer still than when written the sha hash is different now than expected for the board-2.bin instance as board.bin but the board.bin.bak is correct:

Code:
xps15 /home/will # sha256sum /lib/firmware/ath10k/QCA6174/hw3.0/board.bin*   fa4a58086a7545717a20e2a507fce6e3ce097865ef8744af412e2c482346bbbb  /lib/firmware/ath10k/QCA6174/hw3.0/board.bin
1a8d225818b46986fc4f615594fbe448fa820618590d6902c8f844bb37cda667  /lib/firmware/ath10k/QCA6174/hw3.0/board.bin.bak


Tree does not then show the wifi as an available interface so something has not happened - I didn't think I'd need to reboot because the driver was built in - but maybe because I've not done it as a mudule and changed the firmware I do need to reboot to load the firmware...

I'll do that next but wanted to ask if someone can see anything wrong with my approach.
_________________
]8P
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Thu Jul 13, 2017 5:01 am    Post subject: Re: Wifi install - ATH10K Reply with quote

stardotstar wrote:
nevertheless the device is showing up in lspci associated with a driver, so I went about the instructions for firmware ...

See the Important note in that wiki article.

stardotstar wrote:
... which are a little outdated describing the need to replace board.bin with a wget of board-2.bin after backing board.bin up.

As you know it is outdated, please update it to the current state of firmware.

Please also show your grepped output of https://wiki.gentoo.org/wiki/Wifi#dmesg.
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Thu Jul 13, 2017 7:05 am    Post subject: Re: Wifi install - ATH10K Reply with quote

charles17 wrote:
stardotstar wrote:
nevertheless the device is showing up in lspci associated with a driver, so I went about the instructions for firmware ...

See the Important note in that wiki article.

stardotstar wrote:
... which are a little outdated describing the need to replace board.bin with a wget of board-2.bin after backing board.bin up.

As you know it is outdated, please update it to the current state of firmware.

Please also show your grepped output of https://wiki.gentoo.org/wiki/Wifi#dmesg.



So, I'm not sure that it's outdated what firmware I have since I emerged the latest and it comes with board-2 rather than having to wget board-2 as the wiki states - and the version mentioned is a 2016 one. Is it therefore reasonable to assume that the package now provides the board-2 instead of needing to wget it and given that the original board.bin is same Sha and the board-2 is different to the Sha mentioned in the wiki it is a more recent board-2?

I'll grep dmesg in a little while. I have rebooted to no effect.

Edit thank you for drawing my attention to that important note - I feel like a >1d10t and things are making more sense by the hour.
_________________
]8P


Last edited by stardotstar on Thu Jul 13, 2017 7:24 am; edited 1 time in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Thu Jul 13, 2017 7:19 am    Post subject: Reply with quote

Are you on https://wireless.wiki.kernel.org/en/users/drivers/ath10k/firmware?s%5b%5d=qca6174 as mentioned in the "External resources"?
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Thu Jul 13, 2017 7:26 am    Post subject: Reply with quote

I am now...
Excellent. I'm going to recompile as a module and sort the firmware as described. Thank you.
_________________
]8P
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Thu Jul 13, 2017 9:28 am    Post subject: Reply with quote

Dmesg nothing
Code:
xps15 /home/will # dmesg | grep -i -E 'xx:xx.x|wlan|iwl|80211'
xps15 /home/will #


Ill reboot after rebuilding with firmware onboard
_________________
]8P
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Thu Jul 13, 2017 9:36 am    Post subject: Reply with quote

stardotstar wrote:
Dmesg nothing
Code:
xps15 /home/will # dmesg | grep -i -E 'xx:xx.x|wlan|iwl|80211'
xps15 /home/will #

Did you mean to replace xx:xx.x with 02:00.0 and so on?
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Thu Jul 13, 2017 9:39 am    Post subject: Reply with quote

of course I *meant* to do that :oops:

Code:
xps15 /home/will # dmesg | grep -i -E '02:00.0|wlan|iwl|80211'
[    5.812453] pci 0000:02:00.0: [168c:003e] type 00 class 0x028000
[    5.812571] pci 0000:02:00.0: reg 0x10: [mem 0xed200000-0xed3fffff 64bit]
[    5.813111] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    5.813228] pci 0000:02:00.0: System wakeup disabled by ACPI
[    9.238470] ath10k_pci 0000:02:00.0: enabling device (0000 -> 0002)
[    9.239543] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    9.452678] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:02:00.0.bin failed with error -2
[    9.452687] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[    9.453405] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/firmware-5.bin failed with error -2
[    9.453407] ath10k_pci 0000:02:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -2
[    9.454840] ath10k_pci 0000:02:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1a56:1535
[    9.454842] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[    9.455331] ath10k_pci 0000:02:00.0: firmware ver WLAN.RM.2.0-00180-QCARMSWPZ-1 api 4 features wowlan,ignore-otp,no-4addr-pad crc32 75dee6c5
[    9.518113] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/board-2.bin failed with error -2
[    9.519079] ath10k_pci 0000:02:00.0: board_file api 1 bmi_id N/A crc32 19644295
[   11.629113] ath10k_pci 0000:02:00.0: firmware crashed! (uuid n/a)
[   11.629116] ath10k_pci 0000:02:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1a56:1535
[   11.629118] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[   11.629630] ath10k_pci 0000:02:00.0: firmware ver WLAN.RM.2.0-00180-QCARMSWPZ-1 api 4 features wowlan,ignore-otp,no-4addr-pad crc32 75dee6c5
[   11.629883] ath10k_pci 0000:02:00.0: board_file api 1 bmi_id N/A crc32 19644295
[   11.629885] ath10k_pci 0000:02:00.0: htt-ver 0.0 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[   11.631919] ath10k_pci 0000:02:00.0: firmware register dump:
[   11.631921] ath10k_pci 0000:02:00.0: [00]: 0x05030000 0x000015B3 0x0094AF7F 0x00955B31
[   11.631922] ath10k_pci 0000:02:00.0: [04]: 0x0094AF7F 0x00060730 0x0000001E 0x00404580
[   11.631923] ath10k_pci 0000:02:00.0: [08]: 0x00401FC0 0x0040E988 0x0040E990 0x00408794
[   11.631924] ath10k_pci 0000:02:00.0: [12]: 0x00000009 0x00000000 0x00952A41 0x00952A4F
[   11.631925] ath10k_pci 0000:02:00.0: [16]: 0x00952CC4 0x00910712 0x00000000 0x00000000
[   11.631926] ath10k_pci 0000:02:00.0: [20]: 0x4094AF7F 0x0040E908 0x00000000 0x0040A2E0
[   11.631927] ath10k_pci 0000:02:00.0: [24]: 0x8093F091 0x0040E968 0x00000000 0xC094AF7F
[   11.631928] ath10k_pci 0000:02:00.0: [28]: 0x8093F0E6 0x0040E988 0x00401FC0 0x0040EA3C
[   11.631929] ath10k_pci 0000:02:00.0: [32]: 0x80926B65 0x0040E9C8 0x00401FC0 0x0040EA3C
[   11.631929] ath10k_pci 0000:02:00.0: [36]: 0x800A13C4 0x0040E9E8 0x0040EA38 0x00426BDC
[   11.631930] ath10k_pci 0000:02:00.0: [40]: 0x800A0864 0x0040EA28 0x0041F1D0 0x0041E1D0
[   11.631931] ath10k_pci 0000:02:00.0: [44]: 0x800A0C5A 0x0040EA98 0x0041DDD0 0x00400000
[   11.631932] ath10k_pci 0000:02:00.0: [48]: 0x800A061B 0x0040EAB8 0x0041D7A0 0x0041DDD0
[   11.631933] ath10k_pci 0000:02:00.0: [52]: 0x80910829 0x0040EAD8 0x00000000 0x00400600
[   11.631934] ath10k_pci 0000:02:00.0: [56]: 0x80910927 0x0040EB08 0x00000000 0xFFF08040
[   12.681631] ath10k_pci 0000:02:00.0: failed to receive control response completion, polling..
[   13.705627] ath10k_pci 0000:02:00.0: ctl_resp never came in (-110)
[   13.705629] ath10k_pci 0000:02:00.0: failed to connect to HTC: -110
[   13.739777] ath10k_pci 0000:02:00.0: device has crashed during init
[   13.761842] ath10k_pci 0000:02:00.0: device has crashed during init
[   13.761844] ath10k_pci 0000:02:00.0: failed to wait for target init: -70
[   13.762933] ath10k_pci 0000:02:00.0: could not init core (-110)
[   13.762956] ath10k_pci 0000:02:00.0: could not probe fw (-110)
[   13.768548] ath10k_pci 0000:02:00.0: cannot restart a device that hasn't been started
xps15 /home/will #


So this is a kernel rebuilt with this as a module. and it looks like it is failing on the firmware - so I'll dive into the latest on that front now I have net again.
W
_________________
]8P
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Thu Jul 13, 2017 9:46 am    Post subject: Reply with quote

Confused now as my error is:

Code:
[  400.498290] ath10k_pci 0000:02:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -2


but the git repo has only:
Code:
..       
   4.4.1    QCA6174 hw3.0: 4.4.1: add firmware-6.bin_WLAN.RM.4.4.1-00014-QCARMSWP-1    Jul 6, 2017
   4.4    QCA6174 hw3.0: change 4.4 branch to use FW API 6    Apr 20, 2017
   board-2.bin    QCA6174 hw3.0: update board-2.bin    Jun 6, 2017
   board.bin    QCA6174 hw3.0: move board.bin from ath10k to the new directory    Nov 10, 2015
   firmware-4.bin_WLAN.RM.2.0-00180-QCARMSWPZ-1    QCA6174 hw3.0: move WLAN.RM.2.0-00180-QCARMSWPZ-1 to the new directory    Nov 10, 2015
   notice.txt_WLAN.RM.2.0-00180-QCARMSWPZ-1    Fix UTF-8 issues in notice.txt files    Nov 11, 2015



and in the 4.4 and 4.4.1 directories only a firmware 6! no firmware 5 and no response working with the board-2.bin file...
_________________
]8P
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Thu Jul 13, 2017 9:51 am    Post subject: Reply with quote

stardotstar wrote:
of course I *meant* to do that :oops:

Code:
xps15 /home/will # dmesg | grep -i -E '02:00.0|wlan|iwl|80211'

... and to replace "iwl" with ath10k_pci which is your "kernel driver in use"?
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Thu Jul 13, 2017 9:56 am    Post subject: Reply with quote

Thank you sir:

Code:
xps15 /lib/firmware/ath10k/QCA6174/hw3.0 # dmesg | grep -i -E '02:00.0|wlan|ath10k_pci|80211'
[    5.812453] pci 0000:02:00.0: [168c:003e] type 00 class 0x028000
[    5.812571] pci 0000:02:00.0: reg 0x10: [mem 0xed200000-0xed3fffff 64bit]
[    5.813111] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    5.813228] pci 0000:02:00.0: System wakeup disabled by ACPI
[    9.238470] ath10k_pci 0000:02:00.0: enabling device (0000 -> 0002)
[    9.239543] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    9.452678] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:02:00.0.bin failed with error -2
[    9.452687] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[    9.453405] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/firmware-5.bin failed with error -2
[    9.453407] ath10k_pci 0000:02:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -2
[    9.454840] ath10k_pci 0000:02:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1a56:1535
[    9.454842] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[    9.455331] ath10k_pci 0000:02:00.0: firmware ver WLAN.RM.2.0-00180-QCARMSWPZ-1 api 4 features wowlan,ignore-otp,no-4addr-pad crc32 75dee6c5
[    9.518113] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/board-2.bin failed with error -2
[    9.519079] ath10k_pci 0000:02:00.0: board_file api 1 bmi_id N/A crc32 19644295
[   11.629113] ath10k_pci 0000:02:00.0: firmware crashed! (uuid n/a)
[   11.629116] ath10k_pci 0000:02:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1a56:1535
[   11.629118] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[   11.629630] ath10k_pci 0000:02:00.0: firmware ver WLAN.RM.2.0-00180-QCARMSWPZ-1 api 4 features wowlan,ignore-otp,no-4addr-pad crc32 75dee6c5
[   11.629883] ath10k_pci 0000:02:00.0: board_file api 1 bmi_id N/A crc32 19644295
[   11.629885] ath10k_pci 0000:02:00.0: htt-ver 0.0 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[   11.631919] ath10k_pci 0000:02:00.0: firmware register dump:
[   11.631921] ath10k_pci 0000:02:00.0: [00]: 0x05030000 0x000015B3 0x0094AF7F 0x00955B31
[   11.631922] ath10k_pci 0000:02:00.0: [04]: 0x0094AF7F 0x00060730 0x0000001E 0x00404580
[   11.631923] ath10k_pci 0000:02:00.0: [08]: 0x00401FC0 0x0040E988 0x0040E990 0x00408794
[   11.631924] ath10k_pci 0000:02:00.0: [12]: 0x00000009 0x00000000 0x00952A41 0x00952A4F
[   11.631925] ath10k_pci 0000:02:00.0: [16]: 0x00952CC4 0x00910712 0x00000000 0x00000000
[   11.631926] ath10k_pci 0000:02:00.0: [20]: 0x4094AF7F 0x0040E908 0x00000000 0x0040A2E0
[   11.631927] ath10k_pci 0000:02:00.0: [24]: 0x8093F091 0x0040E968 0x00000000 0xC094AF7F
[   11.631928] ath10k_pci 0000:02:00.0: [28]: 0x8093F0E6 0x0040E988 0x00401FC0 0x0040EA3C
[   11.631929] ath10k_pci 0000:02:00.0: [32]: 0x80926B65 0x0040E9C8 0x00401FC0 0x0040EA3C
[   11.631929] ath10k_pci 0000:02:00.0: [36]: 0x800A13C4 0x0040E9E8 0x0040EA38 0x00426BDC
[   11.631930] ath10k_pci 0000:02:00.0: [40]: 0x800A0864 0x0040EA28 0x0041F1D0 0x0041E1D0
[   11.631931] ath10k_pci 0000:02:00.0: [44]: 0x800A0C5A 0x0040EA98 0x0041DDD0 0x00400000
[   11.631932] ath10k_pci 0000:02:00.0: [48]: 0x800A061B 0x0040EAB8 0x0041D7A0 0x0041DDD0
[   11.631933] ath10k_pci 0000:02:00.0: [52]: 0x80910829 0x0040EAD8 0x00000000 0x00400600
[   11.631934] ath10k_pci 0000:02:00.0: [56]: 0x80910927 0x0040EB08 0x00000000 0xFFF08040
[   12.681631] ath10k_pci 0000:02:00.0: failed to receive control response completion, polling..
[   13.705627] ath10k_pci 0000:02:00.0: ctl_resp never came in (-110)
[   13.705629] ath10k_pci 0000:02:00.0: failed to connect to HTC: -110
[   13.739777] ath10k_pci 0000:02:00.0: device has crashed during init
[   13.761842] ath10k_pci 0000:02:00.0: device has crashed during init
[   13.761844] ath10k_pci 0000:02:00.0: failed to wait for target init: -70
[   13.762933] ath10k_pci 0000:02:00.0: could not init core (-110)
[   13.762956] ath10k_pci 0000:02:00.0: could not probe fw (-110)
[   13.768548] ath10k_pci 0000:02:00.0: cannot restart a device that hasn't been started
[  400.286954] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[  400.498272] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:02:00.0.bin failed with error -2
[  400.498280] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[  400.498288] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/firmware-5.bin failed with error -2
[  400.498290] ath10k_pci 0000:02:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -2
[  400.498511] ath10k_pci 0000:02:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1a56:1535
[  400.498512] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[  400.498996] ath10k_pci 0000:02:00.0: firmware ver WLAN.RM.2.0-00180-QCARMSWPZ-1 api 4 features wowlan,ignore-otp,no-4addr-pad crc32 75dee6c5
[  400.561922] ath10k_pci 0000:02:00.0: board_file api 2 bmi_id N/A crc32 07ee144e
[  402.696541] ath10k_pci 0000:02:00.0: htt-ver 3.26 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[  402.756462] ath10k_pci 0000:02:00.0 wlp2s0: renamed from wlan0
[ 1046.622040] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[ 1046.834661] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:02:00.0.bin failed with error -2
[ 1046.834669] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[ 1046.834676] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/firmware-5.bin failed with error -2
[ 1046.834677] ath10k_pci 0000:02:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -2
[ 1046.834859] ath10k_pci 0000:02:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1a56:1535
[ 1046.834860] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[ 1046.835353] ath10k_pci 0000:02:00.0: firmware ver WLAN.RM.2.0-00180-QCARMSWPZ-1 api 4 features wowlan,ignore-otp,no-4addr-pad crc32 75dee6c5
[ 1046.898391] ath10k_pci 0000:02:00.0: board_file api 2 bmi_id N/A crc32 07ee144e
[ 1049.032616] ath10k_pci 0000:02:00.0: htt-ver 3.26 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[ 1049.092061] ath10k_pci 0000:02:00.0 wlp2s0: renamed from wlan0


is this saying that the firmware I merged is for 5 and the current git release is 6?
_________________
]8P
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Thu Jul 13, 2017 10:08 am    Post subject: Reply with quote

The firmware stuff is really confusing for me. Your output of modinfo ath10k_pci should tell something about firmware, I guess.

Edit:
From linux-firmware-20170314 you should have something like:
$ tree /lib64/firmware/ath10k/QCA6174/:
/lib64/firmware/ath10k/QCA6174/
├── hw2.1
│   ├── board-2.bin
│   ├── board.bin
│   ├── firmware-5.bin
│   └── notice_ath10k_firmware-5.txt
└── hw3.0
    ├── board-2.bin
    ├── board.bin
    ├── firmware-4.bin
    └── notice_ath10k_firmware-4.txt

2 directories, 8 files


Last edited by charles17 on Thu Jul 13, 2017 10:14 am; edited 1 time in total
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Thu Jul 13, 2017 10:12 am    Post subject: Reply with quote

From what I can see board-2.bin is ok but the system is expecting firmwarer-5.bin for the api version 5 but only 4 and 6 are available in the repo...

Code:
xps15 /lib/firmware/ath10k/QCA6174/hw3.0 # modinfo ath10k_pci
filename:       /lib/modules/4.9.34-gentoo/kernel/drivers/net/wireless/ath/ath10k/ath10k_pci.ko
firmware:       ath10k/QCA9377/hw1.0/board.bin
firmware:       ath10k/QCA9377/hw1.0/firmware-5.bin
firmware:       ath10k/QCA6174/hw3.0/board-2.bin
firmware:       ath10k/QCA6174/hw3.0/board.bin
firmware:       ath10k/QCA6174/hw3.0/firmware-5.bin
firmware:       ath10k/QCA6174/hw3.0/firmware-4.bin
firmware:       ath10k/QCA6174/hw2.1/board-2.bin
firmware:       ath10k/QCA6174/hw2.1/board.bin
firmware:       ath10k/QCA6174/hw2.1/firmware-5.bin
firmware:       ath10k/QCA6174/hw2.1/firmware-4.bin
firmware:       ath10k/QCA9887/hw1.0/board-2.bin
firmware:       ath10k/QCA9887/hw1.0/board.bin
firmware:       ath10k/QCA9887/hw1.0/firmware-5.bin
firmware:       ath10k/QCA988X/hw2.0/board-2.bin
firmware:       ath10k/QCA988X/hw2.0/board.bin
firmware:       ath10k/QCA988X/hw2.0/firmware-5.bin
firmware:       ath10k/QCA988X/hw2.0/firmware-4.bin
firmware:       ath10k/QCA988X/hw2.0/firmware-3.bin
firmware:       ath10k/QCA988X/hw2.0/firmware-2.bin
license:        Dual BSD/GPL
description:    Driver support for Qualcomm Atheros 802.11ac WLAN PCIe/AHB devices
author:         Qualcomm Atheros
srcversion:     929B9BA46E66A1490373F53
alias:          pci:v0000168Cd00000050sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000042sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000046sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000056sv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000040sv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000003Esv*sd*bc*sc*i*
alias:          pci:v0000168Cd00000041sv*sd*bc*sc*i*
alias:          pci:v0000168Cd0000003Csv*sd*bc*sc*i*
depends:        ath10k_core
intree:         Y
vermagic:       4.9.34-gentoo SMP preempt mod_unload modversions
signat:         PKCS#7
signer:         
sig_key:       
sig_hashalgo:   md4
parm:           irq_mode:0: auto, 1: legacy, 2: msi (default: 0) (uint)
parm:           reset_mode:0: auto, 1: warm only (default: 0) (uint)


Interestingly despite the mentions above there is only a
Code:
xps15 /lib/firmware/ath10k/QCA6174 # ls
hw2.1  hw3.0

available in the firmware directory - do I need to ~x64 or something my firmware?
_________________
]8P
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Thu Jul 13, 2017 10:16 am    Post subject: Reply with quote

EDIT:
Forget what I said.


Last edited by charles17 on Thu Jul 13, 2017 10:52 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43221
Location: 56N 3W

PostPosted: Thu Jul 13, 2017 10:31 am    Post subject: Reply with quote

stardotstar,

Code:
ls /lib/firmware/ath10k/QCA6174/hw3.0/ -l
total 2056
-rw-r--r-- 1 root root 477060 Jun 28 12:34 board-2.bin
-rw-r--r-- 1 root root   8124 Jun 28 12:34 board.bin
-rw-r--r-- 1 root root 733784 Jun 28 12:34 firmware-4.bin
-rw-r--r-- 1 root root 711408 Jun 28 12:34 firmware-6.bin
-rw-r--r-- 1 root root  79689 Jun 28 12:34 notice_ath10k_firmware-4.txt
-rw-r--r-- 1 root root  82663 Jun 28 12:34 notice_ath10k_firmware-6.txt


Hmm, firmware-5.bin is not included in
Code:
sys-kernel/linux-firmware-20170622

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Thu Jul 13, 2017 10:53 am    Post subject: Reply with quote

Sorry Charles - how to select specific firmware with portage?
_________________
]8P
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Thu Jul 13, 2017 10:56 am    Post subject: Reply with quote

All the trouble I guess because someone successfully omitted the most important step documented by Rayan Then download the working one.:
Code:
Then download the working one.
wget https://github.com/FireWalkerX/ath10k-firmware/raw/master/QCA6174/hw3.0/board-2.bin -O /lib/firmware/ath10k/QCA6174/hw3.0/board.bin
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Thu Jul 13, 2017 11:08 am    Post subject: Reply with quote

So, if what i've done loads board-2 as board.bin then that is where I was at at the start but then again I may not have applied it correctly - I have done the following:


Code:
xps15 /home/will # wget https://github.com/FireWalkerX/ath10k-firmware/raw/master/QCA6174/hw3.0/board-2.bin -O /lib/firmware/ath10k/QCA6174/hw3.0/board.bin
--2017-07-13 21:04:06--  https://github.com/FireWalkerX/ath10k-firmware/raw/master/QCA6174/hw3.0/board-2.bin
Resolving github.com... 192.30.255.113, 192.30.255.112
Connecting to github.com|192.30.255.113|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/FireWalkerX/ath10k-firmware/master/QCA6174/hw3.0/board-2.bin [following]
--2017-07-13 21:04:07--  https://raw.githubusercontent.com/FireWalkerX/ath10k-firmware/master/QCA6174/hw3.0/board-2.bin
Resolving raw.githubusercontent.com... 151.101.80.133
Connecting to raw.githubusercontent.com|151.101.80.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8124 (7.9K) [application/octet-stream]
Saving to: ‘/lib/firmware/ath10k/QCA6174/hw3.0/board.bin’

/lib/firmware/ath10k/QCA6174/ 100%[===============================================>]   7.93K  --.-KB/s    in 0.004s 

2017-07-13 21:04:08 (1.97 MB/s) - ‘/lib/firmware/ath10k/QCA6174/hw3.0/board.bin’ saved [8124/8124]

xps15 /home/will # modprobe -r ath10k_pci
xps15 /home/will # modprobe  ath10k_pci
xps15 /home/will # ifconfig
enp10s0u1u4: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.24  netmask 255.255.255.0  broadcast 192.168.0.255
        ether d4:81:d7:38:33:0c  txqueuelen 1000  (Ethernet)
        RX packets 130662  bytes 189660193 (180.8 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 70385  bytes 5312592 (5.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        loop  txqueuelen 1  (Local Loopback)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 0  bytes 0 (0.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

xps15 /home/will # dmesg | grep -i -E 'xx:xx.x|wlan|iwl|80211'
[    9.231508] ath10k_pci 0000:02:00.0: firmware ver WLAN.RM.2.0-00180-QCARMSWPZ-1 api 4 features wowlan,ignore-otp,no-4addr-pad crc32 75dee6c5
[   11.485943] ath10k_pci 0000:02:00.0 wlp2s0: renamed from wlan0
[  995.116213] ath10k_pci 0000:02:00.0: firmware ver WLAN.RM.2.0-00180-QCARMSWPZ-1 api 4 features wowlan,ignore-otp,no-4addr-pad crc32 75dee6c5
[  997.370942] ath10k_pci 0000:02:00.0 wlp2s0: renamed from wlan0
xps15 /home/will # dmesg | grep -i -E 'xx:xx.x|wlan|ath10k_pci|80211'
[    9.014473] ath10k_pci 0000:02:00.0: enabling device (0000 -> 0002)
[    9.015597] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    9.228711] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:02:00.0.bin failed with error -2
[    9.228722] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[    9.229496] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/firmware-5.bin failed with error -2
[    9.229498] ath10k_pci 0000:02:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -2
[    9.231017] ath10k_pci 0000:02:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1a56:1535
[    9.231019] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[    9.231508] ath10k_pci 0000:02:00.0: firmware ver WLAN.RM.2.0-00180-QCARMSWPZ-1 api 4 features wowlan,ignore-otp,no-4addr-pad crc32 75dee6c5
[    9.295173] ath10k_pci 0000:02:00.0: board_file api 2 bmi_id N/A crc32 07ee144e
[   11.426431] ath10k_pci 0000:02:00.0: htt-ver 3.26 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[   11.485943] ath10k_pci 0000:02:00.0 wlp2s0: renamed from wlan0
[  994.904581] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[  995.115436] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/pre-cal-pci-0000:02:00.0.bin failed with error -2
[  995.115448] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[  995.115460] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/firmware-5.bin failed with error -2
[  995.115463] ath10k_pci 0000:02:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -2
[  995.115700] ath10k_pci 0000:02:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1a56:1535
[  995.115701] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[  995.116213] ath10k_pci 0000:02:00.0: firmware ver WLAN.RM.2.0-00180-QCARMSWPZ-1 api 4 features wowlan,ignore-otp,no-4addr-pad crc32 75dee6c5
[  995.179085] ath10k_pci 0000:02:00.0: board_file api 2 bmi_id N/A crc32 07ee144e
[  997.311530] ath10k_pci 0000:02:00.0: htt-ver 3.26 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1
[  997.370942] ath10k_pci 0000:02:00.0 wlp2s0: renamed from wlan0


Thank you for pursuing this - I know how hard it is without access to a machine to troubleshoot - that is kind of a charm of Gentoo I guess - we learn to do it all by the (source)Book

I still think I need firmware 5


edit being lazy - that console command contained the xxxx
_________________
]8P
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43221
Location: 56N 3W

PostPosted: Thu Jul 13, 2017 11:26 am    Post subject: Reply with quote

stardotstar,

Code:
--2017-07-13 21:04:07--  https://raw.githubusercontent.com/FireWalkerX/ath10k-firmware/master/QCA6174/hw3.0/board-2.bin
Resolving raw.githubusercontent.com... 151.101.80.133
Connecting to raw.githubusercontent.com|151.101.80.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8124 (7.9K) [application/octet-stream]
Saving to: ‘/lib/firmware/ath10k/QCA6174/hw3.0/board.bin’


It seems to have downloaded the file you asked for then saved it under a different name.
Try renaming the file to board-2.bin
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Thu Jul 13, 2017 11:47 am    Post subject: Reply with quote

NeddySeagoon wrote:
It seems to have downloaded the file you asked for then saved it under a different name.
Try renaming the file to board-2.bin
That's exactly according the documentation, see https://wiki.gentoo.org/index.php?title=Dell_XPS_13_9360&oldid=581812#Wireless.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7553
Location: Goose Creek SC

PostPosted: Thu Jul 13, 2017 11:49 am    Post subject: Reply with quote

Hmmm??
Even after renaming /lib64/firmware/ath10k to /lib64/firmware/ath10k.old, emerge linux-firmware (`amd64) has provided several firmware5.bin for me as shown by:
Code:
I7-6700K ~ # find /lib/firmware/ath10k qca
/lib/firmware/ath10k
/lib/firmware/ath10k/QCA4019
/lib/firmware/ath10k/QCA4019/hw1.0
/lib/firmware/ath10k/QCA4019/hw1.0/board-2.bin
/lib/firmware/ath10k/QCA4019/hw1.0/firmware-5.bin
/lib/firmware/ath10k/QCA4019/hw1.0/notice_ath10k_firmware-5.txt
/lib/firmware/ath10k/QCA6174
/lib/firmware/ath10k/QCA6174/hw2.1
/lib/firmware/ath10k/QCA6174/hw2.1/board-2.bin
/lib/firmware/ath10k/QCA6174/hw2.1/firmware-5.bin
/lib/firmware/ath10k/QCA6174/hw2.1/notice_ath10k_firmware-5.txt
/lib/firmware/ath10k/QCA6174/hw2.1/board.bin
/lib/firmware/ath10k/QCA6174/hw3.0
/lib/firmware/ath10k/QCA6174/hw3.0/board-2.bin
/lib/firmware/ath10k/QCA6174/hw3.0/firmware-4.bin
/lib/firmware/ath10k/QCA6174/hw3.0/firmware-6.bin
/lib/firmware/ath10k/QCA6174/hw3.0/notice_ath10k_firmware-4.txt
/lib/firmware/ath10k/QCA6174/hw3.0/notice_ath10k_firmware-6.txt
/lib/firmware/ath10k/QCA6174/hw3.0/board.bin
/lib/firmware/ath10k/QCA9377
/lib/firmware/ath10k/QCA9377/hw1.0
/lib/firmware/ath10k/QCA9377/hw1.0/board-2.bin
/lib/firmware/ath10k/QCA9377/hw1.0/firmware-5.bin
/lib/firmware/ath10k/QCA9377/hw1.0/notice_ath10k_firmware-5.txt
/lib/firmware/ath10k/QCA9377/hw1.0/board.bin
/lib/firmware/ath10k/QCA9887
/lib/firmware/ath10k/QCA9887/hw1.0
/lib/firmware/ath10k/QCA9887/hw1.0/firmware-5.bin
/lib/firmware/ath10k/QCA9887/hw1.0/notice_ath10k_firmware-5.txt
/lib/firmware/ath10k/QCA9887/hw1.0/board.bin
/lib/firmware/ath10k/QCA9888
/lib/firmware/ath10k/QCA9888/hw2.0
/lib/firmware/ath10k/QCA9888/hw2.0/board-2.bin
/lib/firmware/ath10k/QCA9888/hw2.0/firmware-5.bin
/lib/firmware/ath10k/QCA9888/hw2.0/notice_ath10k_firmware-5.txt
/lib/firmware/ath10k/QCA988X
/lib/firmware/ath10k/QCA988X/hw2.0
/lib/firmware/ath10k/QCA988X/hw2.0/firmware-4.bin
/lib/firmware/ath10k/QCA988X/hw2.0/firmware-5.bin
/lib/firmware/ath10k/QCA988X/hw2.0/notice_ath10k_firmware-4.txt
/lib/firmware/ath10k/QCA988X/hw2.0/notice_ath10k_firmware-5.txt
/lib/firmware/ath10k/QCA988X/hw2.0/board.bin
/lib/firmware/ath10k/QCA9984
/lib/firmware/ath10k/QCA9984/hw1.0
/lib/firmware/ath10k/QCA9984/hw1.0/board-2.bin
/lib/firmware/ath10k/QCA9984/hw1.0/firmware-5.bin
/lib/firmware/ath10k/QCA9984/hw1.0/notice_ath10k_firmware-5.txt
/lib/firmware/ath10k/QCA99X0
/lib/firmware/ath10k/QCA99X0/hw2.0
/lib/firmware/ath10k/QCA99X0/hw2.0/firmware-5.bin
/lib/firmware/ath10k/QCA99X0/hw2.0/notice_ath10k_firmware-5.txt
/lib/firmware/ath10k/QCA99X0/hw2.0/board.bin

Perhaps renaming /lib64/firmware/ath10k/QCA6174/hw3.0 (if present) to /lib64/firmware/ath10k/QCA6174/hw3.0.old will allow the kernel to choose and use a firmware5.bin?
_________________
Defund the FCC.


Last edited by DONAHUE on Thu Jul 13, 2017 3:23 pm; edited 1 time in total
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Thu Jul 13, 2017 11:49 am    Post subject: Reply with quote

stardotstar wrote:
I still think I need firmware 5


edit being lazy - that console command contained the xxxx

Did you reboot before dmesg?
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Fri Jul 14, 2017 3:43 am    Post subject: Reply with quote

@DONAHUE, so I followed your lead here and end up with the same subset.

Code:
xps15 /lib/firmware # mv ath10k/ ath10k.old
xps15 /lib/firmware # emerge --ask linux-firmware

 * IMPORTANT: 14 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R    ] sys-kernel/linux-firmware-20170314

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-kernel/linux-firmware-20170314::gentoo
 * linux-firmware-20170314.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                             [ ok ]
>>> Unpacking source...
>>> Unpacking linux-firmware-20170314.tar.xz to /var/tmp/portage/sys-kernel/linux-firmware-20170314/work
>>> Source unpacked in /var/tmp/portage/sys-kernel/linux-firmware-20170314/work
>>> Preparing source in /var/tmp/portage/sys-kernel/linux-firmware-20170314/work/linux-firmware-20170314 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-kernel/linux-firmware-20170314/work/linux-firmware-20170314 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-kernel/linux-firmware-20170314/work/linux-firmware-20170314 ...
make -j8
make: Nothing to be done for 'all'.
>>> Source compiled.
>>> Test phase [not enabled]: sys-kernel/linux-firmware-20170314

>>> Install linux-firmware-20170314 into /var/tmp/portage/sys-kernel/linux-firmware-20170314/image/ category sys-kernel
 * Your configuration for sys-kernel/linux-firmware-20170314 has been saved in
 * /etc/portage/savedconfig/sys-kernel/linux-firmware-20170314 for your editing pleasure.
 * You can edit these files by hand and remerge this package with
 * USE=savedconfig to customise the configuration.
 * You can rename this file/directory to one of the following for
 * its configuration to apply to multiple versions:
 * ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
 * [${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
>>> Completed installing linux-firmware-20170314 into /var/tmp/portage/sys-kernel/linux-firmware-20170314/image/

 * Final size of build directory: 184532 KiB
 * Final size of installed tree: 184540 KiB


>>> Installing (1 of 1) sys-kernel/linux-firmware-20170314::gentoo
 * If you are only interested in particular firmware files, edit the saved
 * configfile and remove those that you do not want.

 * Messages for package sys-kernel/linux-firmware-20170314:

 * Your configuration for sys-kernel/linux-firmware-20170314 has been saved in
 * /etc/portage/savedconfig/sys-kernel/linux-firmware-20170314 for your editing pleasure.
 * You can edit these files by hand and remerge this package with
 * USE=savedconfig to customise the configuration.
 * You can rename this file/directory to one of the following for
 * its configuration to apply to multiple versions:
 * ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
 * [${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
 * If you are only interested in particular firmware files, edit the saved
 * configfile and remove those that you do not want.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

 * IMPORTANT: 14 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

...

xps15 /lib/firmware # cd ath10k
xps15 /lib/firmware/ath10k # ls
QCA4019  QCA6174  QCA9377  QCA9887  QCA9888  QCA988X  QCA9984  QCA99X0
xps15 /lib/firmware/ath10k # cd QCA6174/
xps15 /lib/firmware/ath10k/QCA6174 # ls
hw2.1  hw3.0
xps15 /lib/firmware/ath10k/QCA6174 # cd hw3.0/
xps15 /lib/firmware/ath10k/QCA6174/hw3.0 # ls
board-2.bin  board.bin  firmware-4.bin  notice_ath10k_firmware-4.txt
xps15 /lib/firmware/ath10k/QCA6174/hw3.0 #


so can I get a lead on how to change my config somehow to get the correct set of firmware?

Another thing I noticed which is very strange is when I booted into my Mint environment and checked the firmware and dmesg!

Code:
xps15 /home/will/Downloads # cat mint_dmesg |grep '02:00.0'
[    0.296968] pci 0000:02:00.0: [168c:003e] type 00 class 0x028000
[    0.297206] pci 0000:02:00.0: reg 0x10: [mem 0xed200000-0xed3fffff 64bit]
[    0.297753] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[    0.298089] pci 0000:02:00.0: System wakeup disabled by ACPI
[    5.367861] ath10k_pci 0000:02:00.0: enabling device (0000 -> 0002)
[    5.369528] ath10k_pci 0000:02:00.0: pci irq msi-x interrupts 8 irq_mode 0 reset_mode 0
[    5.618333] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/cal-pci-0000:02:00.0.bin failed with error -2
[    5.625608] ath10k_pci 0000:02:00.0: Direct firmware load for ath10k/QCA6174/hw3.0/firmware-5.bin failed with error -2
[    5.625609] ath10k_pci 0000:02:00.0: could not fetch firmware file 'ath10k/QCA6174/hw3.0/firmware-5.bin': -2
[    7.859740] ath10k_pci 0000:02:00.0: qca6174 hw3.2 (0x05030000, 0x00340aff sub 1a56:1535) fw WLAN.RM.2.0-00180-QCARMSWPZ-1 fwapi 4 bdapi 2 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
[    7.859752] ath10k_pci 0000:02:00.0: debug 0 debugfs 1 tracing 1 dfs 0 testmode 0
[    7.930117] ath10k_pci 0000:02:00.0 wlp2s0: renamed from wlan0


so this is like the same issue - and yet on Mint the wifi card initialises and works just fine.
_________________
]8P
Back to top
View user's profile Send private message
stardotstar
l33t
l33t


Joined: 10 Feb 2006
Posts: 887
Location: 2074/SYD/NSW/AU

PostPosted: Fri Jul 14, 2017 4:10 am    Post subject: Reply with quote

I don't know what's going on but I've tried to use the ~amd64 version (latest) and downgraded to last stable but firmware-5 isn't in either...

Code:
xps15 /home/will/Downloads # echo "=sys-kernel/linux-firmware-20170622 ~amd64" >> /etc/portage/package.accept_keywords
xps15 /home/will/Downloads # emerge --ask =sys-kernel/linux-firmware-20170622
 * IMPORTANT: 14 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


 * IMPORTANT: config file '/etc/portage/package.accept_keywords' needs updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U ~] sys-kernel/linux-firmware-20170622 [20170314]

Would you like to merge these packages? [Yes/No] yes

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-kernel/linux-firmware-20170622::gentoo
>>> Downloading 'http://ftp.swin.edu.au/gentoo/distfiles/linux-firmware-20170622.tar.gz'
--2017-07-14 14:05:04--  http://ftp.swin.edu.au/gentoo/distfiles/linux-firmware-20170622.tar.gz
Resolving ftp.swin.edu.au... 136.186.1.76, 2001:388:6080:64::dc41:1cf
Connecting to ftp.swin.edu.au|136.186.1.76|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 104302528 (99M) [application/x-gzip]
Saving to: ‘/usr/portage/distfiles/linux-firmware-20170622.tar.gz’

/usr/portage/distfi 100%[===================>]  99.47M  3.03MB/s    in 33s     

2017-07-14 14:05:37 (3.03 MB/s) - ‘/usr/portage/distfiles/linux-firmware-20170622.tar.gz’ saved [104302528/104302528]

 * linux-firmware-20170622.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                             [ ok ]
>>> Unpacking source...
>>> Unpacking linux-firmware-20170622.tar.gz to /var/tmp/portage/sys-kernel/linux-firmware-20170622/work
>>> Source unpacked in /var/tmp/portage/sys-kernel/linux-firmware-20170622/work
>>> Preparing source in /var/tmp/portage/sys-kernel/linux-firmware-20170622/work/linux-firmware-20170622 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-kernel/linux-firmware-20170622/work/linux-firmware-20170622 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-kernel/linux-firmware-20170622/work/linux-firmware-20170622 ...
make -j8
make: Nothing to be done for 'all'.
>>> Source compiled.
>>> Test phase [not enabled]: sys-kernel/linux-firmware-20170622

>>> Install linux-firmware-20170622 into /var/tmp/portage/sys-kernel/linux-firmware-20170622/image/ category sys-kernel
 * Your configuration for sys-kernel/linux-firmware-20170622 has been saved in
 * /etc/portage/savedconfig/sys-kernel/linux-firmware-20170622 for your editing pleasure.
 * You can edit these files by hand and remerge this package with
 * USE=savedconfig to customise the configuration.
 * You can rename this file/directory to one of the following for
 * its configuration to apply to multiple versions:
 * ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
 * [${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
>>> Completed installing linux-firmware-20170622 into /var/tmp/portage/sys-kernel/linux-firmware-20170622/image/

 * Final size of build directory: 210508 KiB
 * Final size of installed tree: 210568 KiB


 * QA Notice: The following files contain writable and executable sections
 *  Files with such sections will not work properly (or at all!) on some
 *  architectures/operating systems.  A bug should be filed at
 *  https://bugs.gentoo.org/ to make sure the issue is fixed.
 *  For more information, see:
 *
 *    https://wiki.gentoo.org/wiki/Hardened/GNU_stack_quickstart
 *
 *  Please include the following list of files in your report:
 *  Note: Bugs should be filed for the respective maintainers
 *  of the package in question and not hardened@g.o.
 * !WX --- --- lib/firmware/netronome/nic_AMDA0099-0001_2x10.nffw
 * !WX --- --- lib/firmware/netronome/nic_AMDA0081-0001_4x10.nffw
 * !WX --- --- lib/firmware/netronome/nic_AMDA0097-0001_2x40.nffw
 * !WX --- --- lib/firmware/netronome/nic_AMDA0099-0001_2x25.nffw
 * !WX --- --- lib/firmware/netronome/nic_AMDA0081-0001_1x40.nffw
 * !WX --- --- lib/firmware/netronome/nic_AMDA0097-0001_4x10_1x40.nffw
 * !WX --- --- lib/firmware/netronome/nic_AMDA0096-0001_2x10.nffw
 * !WX --- --- lib/firmware/netronome/nic_AMDA0097-0001_8x10.nffw



 * QA Notice: Pre-stripped files found:
 * /lib/firmware/qcom/venus-1.8/venus.b00
 * /lib/firmware/qcom/venus-1.8/venus.mdt
strip: x86_64-pc-linux-gnu-strip --strip-unneeded -R .comment -R .GCC.command.line -R .note.gnu.gold-version
   lib/firmware/netronome/nic_AMDA0096-0001_2x10.nffw
   lib/firmware/netronome/nic_AMDA0099-0001_2x10.nffw
   lib/firmware/netronome/nic_AMDA0097-0001_8x10.nffw
   lib/firmware/netronome/nic_AMDA0099-0001_2x25.nffw
   lib/firmware/netronome/nic_AMDA0097-0001_4x10_1x40.nffw
   lib/firmware/netronome/nic_AMDA0097-0001_2x40.nffw
   lib/firmware/netronome/nic_AMDA0081-0001_4x10.nffw
   lib/firmware/netronome/nic_AMDA0081-0001_1x40.nffw
x86_64-pc-linux-gnu-strip: Unable to recognise the format of the input file `/var/tmp/portage/sys-kernel/linux-firmware-20170622/image/lib/firmware/netronome/nic_AMDA0099-0001_2x10.nffw'
x86_64-pc-linux-gnu-strip: Unable to recognise the format of the input file `/var/tmp/portage/sys-kernel/linux-firmware-20170622/image/lib/firmware/netronome/nic_AMDA0097-0001_8x10.nffw'
x86_64-pc-linux-gnu-strip: x86_64-pc-linux-gnu-strip: Unable to recognise the format of the input file `/var/tmp/portage/sys-kernel/linux-firmware-20170622/image/lib/firmware/netronome/nic_AMDA0099-0001_2x25.nffw'
Unable to recognise the format of the input file `/var/tmp/portage/sys-kernel/linux-firmware-20170622/image/lib/firmware/netronome/nic_AMDA0096-0001_2x10.nffw'
x86_64-pc-linux-gnu-strip: Unable to recognise the format of the input file `/var/tmp/portage/sys-kernel/linux-firmware-20170622/image/lib/firmware/netronome/nic_AMDA0097-0001_4x10_1x40.nffw'
x86_64-pc-linux-gnu-strip: Unable to recognise the format of the input file `/var/tmp/portage/sys-kernel/linux-firmware-20170622/image/lib/firmware/netronome/nic_AMDA0097-0001_2x40.nffw'
x86_64-pc-linux-gnu-strip: Unable to recognise the format of the input file `/var/tmp/portage/sys-kernel/linux-firmware-20170622/image/lib/firmware/netronome/nic_AMDA0081-0001_4x10.nffw'
x86_64-pc-linux-gnu-strip: Unable to recognise the format of the input file `/var/tmp/portage/sys-kernel/linux-firmware-20170622/image/lib/firmware/netronome/nic_AMDA0081-0001_1x40.nffw'

>>> Installing (1 of 1) sys-kernel/linux-firmware-20170622::gentoo
 * If you are only interested in particular firmware files, edit the saved
 * configfile and remove those that you do not want.

 * Messages for package sys-kernel/linux-firmware-20170622:

 * Your configuration for sys-kernel/linux-firmware-20170622 has been saved in
 * /etc/portage/savedconfig/sys-kernel/linux-firmware-20170622 for your editing pleasure.
 * You can edit these files by hand and remerge this package with
 * USE=savedconfig to customise the configuration.
 * You can rename this file/directory to one of the following for
 * its configuration to apply to multiple versions:
 * ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
 * [${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
 * If you are only interested in particular firmware files, edit the saved
 * configfile and remove those that you do not want.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

 * IMPORTANT: config file '/etc/portage/package.accept_keywords' needs updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

 * IMPORTANT: 14 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

xps15 /home/will/Downloads # cd /lib/
Display all 147 possibilities? (y or n)
xps15 /home/will/Downloads # cd /lib/firmware/ath
ath10k/     ath10k.old/ ath3k-1.fw  ath6k/      ath9k_htc/ 
xps15 /home/will/Downloads # cd /lib/firmware/ath10k
ath10k/     ath10k.old/
xps15 /home/will/Downloads # cd /lib/firmware/ath10k
xps15 /lib/firmware/ath10k # ks
bash: ks: command not found
xps15 /lib/firmware/ath10k # ls
QCA4019  QCA6174  QCA9377  QCA9887  QCA9888  QCA988X  QCA9984  QCA99X0
xps15 /lib/firmware/ath10k # cd QCA6174/
xps15 /lib/firmware/ath10k/QCA6174 # ls
hw2.1  hw3.0
xps15 /lib/firmware/ath10k/QCA6174 # cd hw3.0/
xps15 /lib/firmware/ath10k/QCA6174/hw3.0 # ks
bash: ks: command not found
xps15 /lib/firmware/ath10k/QCA6174/hw3.0 # ks
bash: ks: command not found
xps15 /lib/firmware/ath10k/QCA6174/hw3.0 # ls
board-2.bin  firmware-4.bin  notice_ath10k_firmware-4.txt
board.bin    firmware-6.bin  notice_ath10k_firmware-6.txt
xps15 /lib/firmware/ath10k/QCA6174/hw3.0 # ls -l
total 2056
-rw-r--r-- 1 root root 477060 Jul 14 14:05 board-2.bin
-rw-r--r-- 1 root root   8124 Jul 14 14:05 board.bin
-rw-r--r-- 1 root root 733784 Jul 14 14:05 firmware-4.bin
-rw-r--r-- 1 root root 711408 Jul 14 14:05 firmware-6.bin
-rw-r--r-- 1 root root  79689 Jul 14 14:05 notice_ath10k_firmware-4.txt
-rw-r--r-- 1 root root  82663 Jul 14 14:05 notice_ath10k_firmware-6.txt
xps15 /lib/firmware/ath10k/QCA6174/hw3.0 # emerge --ask =sys-kernel/linux-firmware-20161205

 * IMPORTANT: 14 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


 * IMPORTANT: config file '/etc/portage/package.accept_keywords' needs updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     UD ] sys-kernel/linux-firmware-20161205 [20170622]

Would you like to merge these packages? [Yes/No] y

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-kernel/linux-firmware-20161205::gentoo
>>> Downloading 'http://ftp.swin.edu.au/gentoo/distfiles/linux-firmware-20161205.tar.xz'
--2017-07-14 14:07:50--  http://ftp.swin.edu.au/gentoo/distfiles/linux-firmware-20161205.tar.xz
Resolving ftp.swin.edu.au... 136.186.1.76, 2001:388:6080:64::dc41:1cf
Connecting to ftp.swin.edu.au|136.186.1.76|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 40891260 (39M) [application/x-xz]
Saving to: ‘/usr/portage/distfiles/linux-firmware-20161205.tar.xz’

/usr/portage/distfi 100%[===================>]  39.00M  2.55MB/s    in 13s     

2017-07-14 14:08:03 (3.04 MB/s) - ‘/usr/portage/distfiles/linux-firmware-20161205.tar.xz’ saved [40891260/40891260]

 * linux-firmware-20161205.tar.xz SHA256 SHA512 WHIRLPOOL size ;-) ...                             [ ok ]
>>> Unpacking source...
>>> Unpacking linux-firmware-20161205.tar.xz to /var/tmp/portage/sys-kernel/linux-firmware-20161205/work
>>> Source unpacked in /var/tmp/portage/sys-kernel/linux-firmware-20161205/work
>>> Preparing source in /var/tmp/portage/sys-kernel/linux-firmware-20161205/work/linux-firmware-20161205 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-kernel/linux-firmware-20161205/work/linux-firmware-20161205 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-kernel/linux-firmware-20161205/work/linux-firmware-20161205 ...
make -j8
make: Nothing to be done for 'all'.
>>> Source compiled.
>>> Test phase [not enabled]: sys-kernel/linux-firmware-20161205

>>> Install linux-firmware-20161205 into /var/tmp/portage/sys-kernel/linux-firmware-20161205/image/ category sys-kernel
 * Your configuration for sys-kernel/linux-firmware-20161205 has been saved in
 * /etc/portage/savedconfig/sys-kernel/linux-firmware-20161205 for your editing pleasure.
 * You can edit these files by hand and remerge this package with
 * USE=savedconfig to customise the configuration.
 * You can rename this file/directory to one of the following for
 * its configuration to apply to multiple versions:
 * ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
 * [${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
>>> Completed installing linux-firmware-20161205 into /var/tmp/portage/sys-kernel/linux-firmware-20161205/image/

 * Final size of build directory: 171748 KiB
 * Final size of installed tree: 171804 KiB


>>> Installing (1 of 1) sys-kernel/linux-firmware-20161205::gentoo
 * If you are only interested in particular firmware files, edit the saved
 * configfile and remove those that you do not want.

 * Messages for package sys-kernel/linux-firmware-20161205:

 * Your configuration for sys-kernel/linux-firmware-20161205 has been saved in
 * /etc/portage/savedconfig/sys-kernel/linux-firmware-20161205 for your editing pleasure.
 * You can edit these files by hand and remerge this package with
 * USE=savedconfig to customise the configuration.
 * You can rename this file/directory to one of the following for
 * its configuration to apply to multiple versions:
 * ${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
 * [${CTARGET}|${CHOST}|""]/${CATEGORY}/[${PF}|${P}|${PN}]
 * If you are only interested in particular firmware files, edit the saved
 * configfile and remove those that you do not want.
>>> Auto-cleaning packages...

>>> No outdated packages were found on your system.

 * GNU info directory index is up-to-date.

 * IMPORTANT: config file '/etc/portage/package.accept_keywords' needs updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

 * IMPORTANT: 14 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

xps15 /lib/firmware/ath10k/QCA6174/hw3.0 # ls
board-2.bin  board.bin  firmware-4.bin  notice_ath10k_firmware-4.txt
xps15 /lib/firmware/ath10k/QCA6174/hw3.0 #

_________________
]8P
Back to top
View user's profile Send private message
charles17
Advocate
Advocate


Joined: 02 Mar 2008
Posts: 2617

PostPosted: Fri Jul 14, 2017 4:30 am    Post subject: Reply with quote

stardotstar

The Qualcomm has been described to be working. Try again exactly step-by-step what's written in https://wiki.gentoo.org/index.php?title=Dell_XPS_13_9360&oldid=581812#Wireless. Then reboot and grep the dmesg.

EDIT:
Sorry, that article was written regarding =sys-kernel/linux-firmware-20161205 whereas the presently stable version is =sys-kernel/linux-firmware-20170314. And also the kernel version seems to have been an older one. I think it is necessary to find out what d63955b33b3b, ca996ec56608 stated in https://wireless.wiki.kernel.org/en/users/drivers/ath10k/firmware?s%5b%5d=qca6174 means.


Last edited by charles17 on Fri Jul 14, 2017 5:17 am; edited 1 time in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Goto page 1, 2, 3  Next
Page 1 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum