Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Loading Firmware?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
zebbedi
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2003
Posts: 118

PostPosted: Fri Dec 15, 2017 1:30 pm    Post subject: Loading Firmware? Reply with quote

I've just installed a fresh system on a new dell xps15 laptop. The livecd had a fully working wireless card, but my install doesn't.

The card is:

Code:
02:00.0 Network controller: Qualcomm Atheros QCA6174 802.11ac Wireless Network Adapter (rev 32)


LiveCD:

Code:

[   12.626398] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   13.063338] ath10k_pci 0000:02:00.0: qca6174 hw3.2 target 0x05030000 chip_id 0x00340aff sub 1a56:1535
[   13.063339] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[   13.063681] 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
[   13.129510] ath10k_pci 0000:02:00.0: board_file api 2 bmi_id N/A crc32 19644295
[   13.831121] ath10k_pci 0000:02:00.0 wlp2s0: renamed from wlan0


Install:

Code:

[    0.702302] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    0.912281] ath10k_pci 0000:02:00.0: Failed to find firmware-N.bin (N between 2 and 6) from ath10k/QCA6174/hw3.0: -2
[    0.912282] ath10k_pci 0000:02:00.0: could not fetch firmware files (-2)
[    0.912282] ath10k_pci 0000:02:00.0: could not probe fw (-2)


Now i've installed linux-firmware and checked that /lib/firmware/ath10k/QCA6174/hw3.0/ have the exact same set of files.

Code:

-rw-r--r-- 1 root root 361924 Dec 14 16:26 board-2.bin
-rw-r--r-- 1 root root   8124 Dec 15 12:04 board.bin
-rw-r--r-- 1 root root 733784 Dec 14 16:26 firmware-4.bin
-rw-r--r-- 1 root root  79689 Dec 14 16:26 notice_ath10k_firmware-4.txt



Can someone explain how i get the kernel to load that firmware? Do i need to do something extra other than just install linux-firmware? Do i have to actually add the modules to CONFIG_EXTRA_FIRMWARE or set the CONFIG_EXTRA_FIRMWARE_DIR to /lib/firmware or something? It doesn't seem to want to detect the firmware files.

I've got the same problem with an intel gfx driver not detecting firmware either.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7092
Location: Saint Amant, Acadiana

PostPosted: Fri Dec 15, 2017 1:39 pm    Post subject: Reply with quote

To load it from /lib/firmaware/.. the driver which is looking for it must be built as module, built-in drivers load before the root partition is mounted.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
zebbedi
Tux's lil' helper
Tux's lil' helper


Joined: 05 Sep 2003
Posts: 118

PostPosted: Fri Dec 15, 2017 1:48 pm    Post subject: Reply with quote

Arrggg i've spent ages trying to sort that. Thank you so much. Switched to a kernel module and it's worked.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7092
Location: Saint Amant, Acadiana

PostPosted: Fri Dec 15, 2017 1:52 pm    Post subject: Reply with quote

Good. You can build the driver into kernel, but then you must build the firmware into kernel, too.
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
xaviermiller
Administrator
Administrator


Joined: 23 Jul 2004
Posts: 7972
Location: ~Brussels - Belgique

PostPosted: Fri Dec 15, 2017 1:52 pm    Post subject: Reply with quote

If the driver is built internally, the firmware has to be loaded into the kernel too.
It is easier to build the driver as module, and let the kernel find the right firmware to load.
_________________
Kind regards,
Xavier Miller
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
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