Firmware Verständnisfrage

Welches Modul/Treiber für welche Hardware, Kernel compilieren...
Benutzeravatar
Emess
Beiträge: 3662
Registriert: 07.11.2006 15:02:26
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Im schönen Odenwald
Kontaktdaten:

Re: Firmware Verständnisfrage

Beitrag von Emess » 10.05.2019 20:37:10

Die Firmware ist da

Code: Alles auswählen

root@buster:~# cd /lib/firmware/ath10k
root@buster:/lib/firmware/ath10k# find -type f
./QCA4019/hw1.0/firmware-5.bin
./QCA4019/hw1.0/board-2.bin
./QCA9888/hw2.0/firmware-5.bin
./QCA9888/hw2.0/board-2.bin
./QCA99X0/hw2.0/firmware-5.bin
./QCA99X0/hw2.0/board.bin
./QCA9984/hw1.0/firmware-5.bin
./QCA9984/hw1.0/board-2.bin
./QCA6174/hw2.1/firmware-5.bin
./QCA6174/hw2.1/board-2.bin
./QCA6174/hw2.1/board.bin
./QCA6174/hw3.0/firmware-4.bin
./QCA6174/hw3.0/board-2.bin
./QCA6174/hw3.0/firmware-6.bin
./QCA6174/hw3.0/board.bin
./QCA9887/hw1.0/firmware-5.bin
./QCA9887/hw1.0/board.bin
./QCA9377/hw1.0/firmware-5.bin
./QCA9377/hw1.0/board-2.bin
./QCA9377/hw1.0/board.bin
./QCA988X/hw2.0/firmware-4.bin
./QCA988X/hw2.0/firmware-5.bin
./QCA988X/hw2.0/board.bin
root@buster:/lib/firmware/ath10k# 
ich versteh das nicht mehr
Debian Testing (bleibt es auch)
Debian Bullseye KDE Plasma 5x Kernel 5.10.0-12-amd64
Notebook HP ZBook 17 G2

http://www.emess62.de

Benutzeravatar
MSfree
Beiträge: 10686
Registriert: 25.09.2007 19:59:30

Re: Firmware Verständnisfrage

Beitrag von MSfree » 10.05.2019 21:27:29

Emess hat geschrieben: ↑ zum Beitrag ↑
10.05.2019 20:37:10
ich versteh das nicht mehr
Das ist in der Tat rätselhaft.

Was sagt denn lsmod nach dem Booten? Einige Kernelmodul werden nämlich schon von der initrd geladen, und wenn dann auf der initrd keine Firmware steckt, wird das Modul (vielleicht) geladen, aber nicht mehr entfernt.

Versuch mal (als root) auf der Kommandozeile ein:

Code: Alles auswählen

rmmod -f ath10k
lsmod
Wenn nach dem rmmod ath10k nicht mehr in der Liste auftaucht, die von lsmod ausgegeben wird, gib anschließend

Code: Alles auswählen

modprobe ath10k
ein. dmesg sollte dann den Ladevorgang ausgeben und ggfls auch das (nochmalige) Laden der Firmware.

JTH
Moderator
Beiträge: 3014
Registriert: 13.08.2008 17:01:41
Wohnort: Berlin

Re: Firmware Verständnisfrage

Beitrag von JTH » 10.05.2019 21:39:36

MSfree hat geschrieben: ↑ zum Beitrag ↑
10.05.2019 21:27:29
und wenn dann auf der initrd keine Firmware steckt, wird das Modul (vielleicht) geladen, aber nicht mehr entfernt.
Solche Firmware sollte normalerweise auch in der initrd stecken. Es sollte damit kein Problem sein, wenn ein Modul schon aus der initrd geladen wurde.

Code: Alles auswählen

$ lsinitramfs /boot/initrd.img-$(uname -r) | grep firmware
Manchmal bekannt als Just (another) Terminal Hacker.

Benutzeravatar
Emess
Beiträge: 3662
Registriert: 07.11.2006 15:02:26
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Im schönen Odenwald
Kontaktdaten:

Re: Firmware Verständnisfrage

Beitrag von Emess » 10.05.2019 22:11:55

@MStree

Code: Alles auswählen

root@buster:~# rmmod -f ath10k
rmmod: ERROR: ../libkmod/libkmod-module.c:793 kmod_module_remove_module() could not remove 'ath10k': No such file or directory
rmmod: ERROR: could not remove module ath10k: No such file or directory
root@buster:~# modprobe ath10k
modprobe: FATAL: Module ath10k not found in directory /lib/modules/4.19.0-4-amd64
root@buster:~# cd /lib/modules/4.19.0-4-amd64
aber

Code: Alles auswählen

root@buster:/lib/modules/4.19.0-4-amd64# find | grep ath10k
./kernel/drivers/net/wireless/ath/ath10k
./kernel/drivers/net/wireless/ath/ath10k/ath10k_usb.ko
./kernel/drivers/net/wireless/ath/ath10k/ath10k_pci.ko
./kernel/drivers/net/wireless/ath/ath10k/ath10k_core.ko
root@buster:/lib/modules/4.19.0-4-amd64#
@JTH

Code: Alles auswählen

root@buster:/lib/modules/4.19.0-4-amd64# lsinitramfs /boot/initrd.img-$(uname -r) | grep ath10k
root@buster:/lib/modules/4.19.0-4-amd64# 
wird nicht geladen

Geht aber schon hier hervor

Code: Alles auswählen

root@buster:/home/michael# dmesg | grep ath10k
[   11.083783] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   11.414419] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/pre-cal-pci-0000:02:00.0.bin (-2)
[   11.414525] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/cal-pci-0000:02:00.0.bin (-2)
[   11.414573] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/QCA9377/hw1.0/firmware-6.bin (-2)
[   11.414619] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/QCA9377/hw1.0/firmware-5.bin (-2)
[   11.414665] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/QCA9377/hw1.0/firmware-4.bin (-2)
[   11.414711] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/QCA9377/hw1.0/firmware-3.bin (-2)
[   11.414757] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/QCA9377/hw1.0/firmware-2.bin (-2)
[   11.414797] ath10k_pci 0000:02:00.0: Failed to find firmware-N.bin (N between 2 and 6) from ath10k/QCA9377/hw1.0: -2
[   11.414837] ath10k_pci 0000:02:00.0: could not fetch firmware files (-2)
[   11.414874] ath10k_pci 0000:02:00.0: could not probe fw (-2)
root@buster:/home/michael#
nur wieso?
Debian Testing (bleibt es auch)
Debian Bullseye KDE Plasma 5x Kernel 5.10.0-12-amd64
Notebook HP ZBook 17 G2

http://www.emess62.de

JTH
Moderator
Beiträge: 3014
Registriert: 13.08.2008 17:01:41
Wohnort: Berlin

Re: Firmware Verständnisfrage

Beitrag von JTH » 10.05.2019 22:30:10

Emess hat geschrieben: ↑ zum Beitrag ↑
10.05.2019 22:11:55
wird nicht geladen
Tatsache, Wirelesskrams scheint generell nicht in der initrd zu landen. Damit (und weil das Kernelmodul deinem grep nach auch nicht drin ist) wird fehlende Firmware in der initrd bei dir nicht das Problem sein.
Manchmal bekannt als Just (another) Terminal Hacker.

Benutzeravatar
Emess
Beiträge: 3662
Registriert: 07.11.2006 15:02:26
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Im schönen Odenwald
Kontaktdaten:

Re: Firmware Verständnisfrage

Beitrag von Emess » 10.05.2019 22:33:45

JTH hat geschrieben: ↑ zum Beitrag ↑
10.05.2019 22:30:10

Tatsache, Wirelesskrams scheint generell nicht in der initrd zu landen. Damit (und weil das Kernelmodul deinem grep nach auch nicht drin ist) wird fehlende Firmware in der initrd bei dir nicht das Problem sein.
und was könnte es sein?
Debian Testing (bleibt es auch)
Debian Bullseye KDE Plasma 5x Kernel 5.10.0-12-amd64
Notebook HP ZBook 17 G2

http://www.emess62.de

JTH
Moderator
Beiträge: 3014
Registriert: 13.08.2008 17:01:41
Wohnort: Berlin

Re: Firmware Verständnisfrage

Beitrag von JTH » 10.05.2019 22:51:43

Gute Frage ;)

Deinem ersten Beitrag nach benutzt du Buster/Noch-Testing? Das Paket Debianfirmware-atheros hat vor ein paar Tagen in Sid/Unstable ein Update bekommen, mit Bezug zu Atheros QCA9377:
https://metadata.ftp-master.debian.org/changelogs//non-free/f/firmware-nonfree/firmware-nonfree_20190502-1_changelog hat geschrieben: * atheros: Add Qualcomm Atheros QCA9377 rev 1.0 firmware version
WLAN.TF.2.1-00021-QCARMSWP-1 (Closes: #903437, #919632, #927917)
Das soll drei angegebene Bugs damit beheben, vielleicht ist dein Problem dabei. Du kannst probieren, ob die Änderungen dir helfen.

Entweder packst du dafür kurz Sid in deine sources.list, updatest dann nur Debianfirmware-atheros und nimmst Sid dann wieder raus. Oder, wenn du dir beim ersten nicht sicher bist, lädst das Paket selbst herunter, http://ftp.de.debian.org/debian/pool/no ... -1_all.deb, und installierst es mit

Code: Alles auswählen

# dpkg -i firmware-atheros_20190502-1_all.deb
Das Paket hat keine großen Abhängigkeiten. Du kannst es also aus Sid installieren, ohne dein System kaputtzubasteln.
Manchmal bekannt als Just (another) Terminal Hacker.

Benutzeravatar
Emess
Beiträge: 3662
Registriert: 07.11.2006 15:02:26
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Im schönen Odenwald
Kontaktdaten:

Re: Firmware Verständnisfrage

Beitrag von Emess » 10.05.2019 23:08:28

das teste ich mal


Hat leider wegen einiger Abhängigkeit nicht geklappt. ist aber eine Frage der Zeit bis die Pakete nach testing migriren
Debian Testing (bleibt es auch)
Debian Bullseye KDE Plasma 5x Kernel 5.10.0-12-amd64
Notebook HP ZBook 17 G2

http://www.emess62.de

willy4711

Re: Firmware Verständnisfrage

Beitrag von willy4711 » 11.05.2019 07:38:28

Emess hat geschrieben: ↑ zum Beitrag ↑
10.05.2019 22:11:55

Code: Alles auswählen

[ 11.414619] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/QCA9377/hw1.0/firmware-5.bin (-2) 
[ 11.414665] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/QCA9377/hw1.0/firmware-4.bin (-2) 
[ 11.414711] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/QCA9377/hw1.0/firmware-3.bin (-2)
[ 11.414757] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/QCA9377/hw1.0/firmware-2.bin (-2) 
[ 11.414797] ath10k_pci 0000:02:00.0: Failed to find firmware-N.bin (N between 2 and 6) from ath10k/QCA9377/hw1.0: -2 
[ 11.414837] ath10k_pci 0000:02:00.0: could not fetch firmware files (-2) [ 11.414874] ath10k_pci 0000:02:00.0: could not probe fw (-2) root@buster:/home
/michael#
Bei mir (Buster / Xfce / Sparkylinux):

Code: Alles auswählen

dpkg -l firmware-atheros
ii  firmware-atheros 20190114-1   all          Binary firmware for Atheros wireless cards
dmesg:

Code: Alles auswählen

# dmesg | grep ath10k
[    4.874923] ath10k_pci 0000:03:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[    5.201646] ath10k_pci 0000:03:00.0: firmware: failed to load ath10k/pre-cal-pci-0000:03:00.0.bin (-2)
[    5.201742] ath10k_pci 0000:03:00.0: firmware: failed to load ath10k/cal-pci-0000:03:00.0.bin (-2)
[    5.205032] ath10k_pci 0000:03:00.0: firmware: failed to load ath10k/QCA9377/hw1.0/firmware-6.bin (-2)
[    5.207282] ath10k_pci 0000:03:00.0: firmware: direct-loading firmware ath10k/QCA9377/hw1.0/firmware-5.bin
[    5.207289] ath10k_pci 0000:03:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 11ad:08a6
[    5.207292] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[    5.207814] ath10k_pci 0000:03:00.0: firmware ver WLAN.TF.1.0-00002-QCATFSWPZ-5 api 5 features ignore-otp crc32 c3e0d04f
[    5.350512] ath10k_pci 0000:03:00.0: firmware: direct-loading firmware ath10k/QCA9377/hw1.0/board-2.bin
[    5.350706] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a
[    6.129094] ath10k_pci 0000:03:00.0: htt-ver 3.44 wmi-op 4 htt-op 3 cal otp max-sta 32 raw 0 hwcrypto 1


Andere Karte ?

Code: Alles auswählen

inxi -v8
Device-1: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter vendor: Lite-On driver: ath10k_pci v: kernel 
           port: 4000 bus ID: 03:00.0 chip ID: 168c:0042 
           IF: wlan0 state: up mac: 94:e9:79:ab:0a:fd 
           IP v4: 192.168.0.13/24 type: dynamic noprefixroute scope: global broadcast: 192.168.0.255 
           IP v6: fd00::701f:191e:a661:6e48/64 type: dynamic noprefixroute scope: global 
           IP v6: fe80::b895:5931:9f7:174a/64 type: noprefixroute scope: link 

           [..........]

Code: Alles auswählen

lspci -nnk
03:00.0 Network controller [0280]: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter [168c:0042] (rev 31)
	Subsystem: Lite-On Communications Inc QCA9377 802.11ac Wireless Network Adapter [11ad:08a6]
	Kernel driver in use: ath10k_pci
	Kernel modules: ath10k_pci
Fehlt da was ? Wenn nicht, wäre die Frage warum es bei mir funktioniert ?

Code: Alles auswählen

ls -alR /lib/firmware/ath10k/QCA9377
/lib/firmware/ath10k/QCA9377:
insgesamt 12
drwxr-xr-x  3 root root 4096 Okt  5  2016 .
drwxr-xr-x 10 root root 4096 Okt  5  2016 ..
drwxr-xr-x  2 root root 4096 Jan 27 11:20 hw1.0

/lib/firmware/ath10k/QCA9377/hw1.0:
insgesamt 1084
drwxr-xr-x 2 root root   4096 Jan 27 11:20 .
drwxr-xr-x 3 root root   4096 Okt  5  2016 ..
-rw-r--r-- 1 root root 304308 Jan 15 23:51 board-2.bin
-rw-r--r-- 1 root root   8124 Jan 15 23:51 board.bin
-rw-r--r-- 1 root root 783336 Jan 15 23:51 firmware-5.bin
Sehe auch nicht dass da an Sparky liegen könnte:

dpkg -l |grep sparky NoPaste-Eintrag40717

Benutzeravatar
Emess
Beiträge: 3662
Registriert: 07.11.2006 15:02:26
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Im schönen Odenwald
Kontaktdaten:

Re: Firmware Verständnisfrage

Beitrag von Emess » 11.05.2019 10:55:05

Ich schau mir das heute Nachmittag an
Debian Testing (bleibt es auch)
Debian Bullseye KDE Plasma 5x Kernel 5.10.0-12-amd64
Notebook HP ZBook 17 G2

http://www.emess62.de

JTH
Moderator
Beiträge: 3014
Registriert: 13.08.2008 17:01:41
Wohnort: Berlin

Re: Firmware Verständnisfrage

Beitrag von JTH » 11.05.2019 11:05:54

Emess hat geschrieben: ↑ zum Beitrag ↑
10.05.2019 23:08:28
Hat leider wegen einiger Abhängigkeit nicht geklappt. ist aber eine Frage der Zeit bis die Pakete nach testing migriren
Das darf eigentlich nicht sein. Debianfirmware-atheros hängt nur unversioniert von einem anderen Paket ab und kein anderes Paket von Debianfirmware-atheros. Aber ja, spätestens nach Buster-Release rutscht das auch nach Testint.
Manchmal bekannt als Just (another) Terminal Hacker.

willy4711

Re: Firmware Verständnisfrage

Beitrag von willy4711 » 11.05.2019 15:08:18

JTH hat geschrieben: ↑ zum Beitrag ↑
11.05.2019 11:05:54
Das darf eigentlich nicht sein. Debianfirmware-atheros hängt nur unversioniert von einem anderen Paket ab und kein anderes Paket von Debianfirmware-atheros. Aber ja, spätestens nach Buster-Release rutscht das auch nach Testint.
Stimmt. Bei Emess scheint noch einiges Andere nicht im Lot zu sein

Code: Alles auswählen

root@debianxfce:/home/willy/Downloads# dpkg -i --simulate firmware-atheros_20190502-1_all.deb
(Lese Datenbank ... 354478 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von firmware-atheros_20190502-1_all.deb ...
root@debianxfce:/home/willy/Downloads# 

Benutzeravatar
Emess
Beiträge: 3662
Registriert: 07.11.2006 15:02:26
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Im schönen Odenwald
Kontaktdaten:

Re: Firmware Verständnisfrage

Beitrag von Emess » 11.05.2019 20:08:48

Bei mir

Code: Alles auswählen

inxi -v8
Network:   Device-1: Silicon Integrated Systems [SiS] 191 Gigabit Ethernet Adapter vendor: Micro-Star MSI 
           driver: sis190 v: 1.4 port: cc00 bus ID: 00:04.0 chip ID: 1039:0191 
           IF: enp0s4 state: up speed: 100 Mbps duplex: full mac: 40:61:86:13:80:99 
           IP v4: 192.168.178.49/24 type: dynamic noprefixroute scope: global broadcast: 192.168.178.255 
           IP v6: 2001:16b8:2a60:1300:8cea:cd34:9de9:2182/64 type: temporary dynamic scope: global 
           IP v6: 2001:16b8:2a60:1300:4261:86ff:fe13:8099/64 type: dynamic mngtmpaddr noprefixroute scope: global 
           IP v6: fe80::4261:86ff:fe13:8099/64 type: noprefixroute scope: link 
           Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter vendor: Samsung Co driver: ath10k_pci 
           v: kernel port: d800 bus ID: 02:00.0 chip ID: 168c:0042 
           WAN IP: No WAN IP data found. Connected to the web? SSL issues? 
Drives:    Local Storage: total: 931.51 GiB used: 21.08 GiB (2.3%) 
           ID-1: /dev/sda vendor: Seagate model: ST1000LM024 HN-M101MBB size: 931.51 GiB block size: physical: 4096 B 
           logical: 512 B speed: <unknown> rotation: 5400 rpm serial: S2ZWJ9DG806904 rev: 0001 temp: 39 C scheme: MBR 
           Optical-1: /dev/sr0 vendor: Optiarc model: DVD RW AD-7740H rev: A842 dev-links: cdrom,cdrw,dvd,dvdrw 
           Features: speed: 24 multisession: yes audio: yes dvd: yes rw: cd-r,cd-rw,dvd-r,dvd-ram state: running 
RAID:      Message: No RAID data was found. 

Code: Alles auswählen

lspci -nnk
02:00.0 Network controller [0280]: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter [168c:0042] (rev 31)
        Subsystem: Samsung Electronics Co Ltd QCA9377 802.11ac Wireless Network Adapter [144d:4133]
        Kernel driver in use: ath10k_pci
        Kernel modules: ath10k_pci
root@buster:~# 
und

Code: Alles auswählen

root@buster:~# ls -alR /lib/firmware/ath10k/QCA9377
/lib/firmware/ath10k/QCA9377:
insgesamt 12
drwxr-xr-x  3 root root 4096 Mai 10 23:43 .
drwxr-xr-x 10 root root 4096 Mai 10 23:43 ..
drwxr-xr-x  2 root root 4096 Mai 10 23:55 hw1.0

/lib/firmware/ath10k/QCA9377/hw1.0:
insgesamt 1820
drwxr-xr-x 2 root root   4096 Mai 10 23:55 .
drwxr-xr-x 3 root root   4096 Mai 10 23:43 ..
-rw-r--r-- 1 root root 304308 Mai  6 23:02 board-2.bin
-rw-r--r-- 1 root root   8124 Mai  6 23:02 board.bin
-rw-r--r-- 1 root root 783336 Mai  6 23:02 firmware-5.bin
-rw-r--r-- 1 root root 751436 Mai  6 23:02 firmware-6.bin
root@buster:~# 
Was bedeutet das jetzt?
Debian Testing (bleibt es auch)
Debian Bullseye KDE Plasma 5x Kernel 5.10.0-12-amd64
Notebook HP ZBook 17 G2

http://www.emess62.de

willy4711

Re: Firmware Verständnisfrage

Beitrag von willy4711 » 11.05.2019 20:35:37

Was mir gleich auffällt:
Emess hat geschrieben: ↑ zum Beitrag ↑
11.05.2019 20:08:48

Code: Alles auswählen

lib/firmware/ath10k/QCA9377/hw1.0:
insgesamt 1820 
drwxr-xr-x 2 root root 4096 Mai 10 23:55 . 
drwxr-xr-x 3 root root 4096 Mai 10 23:43 
-rw-r--r-- 1 root root 304308 Mai 6 23:02 board-2.bin 
-rw-r--r-- 1 root root 8124 Mai 6 23:02 board.bin 
-rw-r--r-- 1 root root 783336 Mai 6 23:02 firmware-5.bin 
-rw-r--r-- 1 root root 751436 Mai 6 23:02 firmware-6.bin
Die letzte Zeile (firmware-6.bin) ist nicht im Debian- Paket enthalten.

Die Chip- ID scheint ja wohl bei uns identisch zu sein (168c:0042 )

Was meinen Rechner nun dazu bewegt, nach der Suche diese Zeilen zu produzieren,

Code: Alles auswählen

5.207289] ath10k_pci 0000:03:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 11ad:08a6
[    5.207292] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[    5.207814] ath10k_pci 0000:03:00.0: firmware ver WLAN.TF.1.0-00002-QCATFSWPZ-5 api 5 features ignore-otp crc32 c3e0d04f
[    5.350512] ath10k_pci 0000:03:00.0: firmware: direct-loading firmware ath10k/QCA9377/hw1.0/board-2.bin
[    5.350706] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a
kann ich dir nicht beantworten. Ich bin auch überfragt, was diese Zeilen bedeuten. Eventuell können unsere Profis
was damit anfangen.

Benutzeravatar
Emess
Beiträge: 3662
Registriert: 07.11.2006 15:02:26
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Im schönen Odenwald
Kontaktdaten:

Re: Firmware Verständnisfrage

Beitrag von Emess » 11.05.2019 20:53:54

willy4711 hat geschrieben: ↑ zum Beitrag ↑
11.05.2019 20:35:37


Was meinen Rechner nun dazu bewegt, nach der Suche diese Zeilen zu produzieren,

Code: Alles auswählen

5.207289] ath10k_pci 0000:03:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 11ad:08a6
[    5.207292] ath10k_pci 0000:03:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[    5.207814] ath10k_pci 0000:03:00.0: firmware ver WLAN.TF.1.0-00002-QCATFSWPZ-5 api 5 features ignore-otp crc32 c3e0d04f
[    5.350512] ath10k_pci 0000:03:00.0: firmware: direct-loading firmware ath10k/QCA9377/hw1.0/board-2.bin
[    5.350706] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a
kann ich dir nicht beantworten. Ich bin auch überfragt, was diese Zeilen bedeuten. Eventuell können unsere Profis
was damit anfangen.
Da bin ich aber mal gespannt

Noch ein Auszug aus dmesg. Vielleicht sagt das jemand was?

Code: Alles auswählen

 13.073144] ath10k_pci 0000:02:00.0: pci irq msi oper_irq_mode 2 irq_mode 0 reset_mode 0
[   14.110225] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/pre-cal-pci-0000:02:00.0.bin (-2)
[   14.110283] firmware_class: See https://wiki.debian.org/Firmware for information about missing firmware
[   14.110487] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/cal-pci-0000:02:00.0.bin (-2)
[   14.255840] ath10k_pci 0000:02:00.0: firmware: failed to load ath10k/QCA9377/hw1.0/firmware-6.bin (-2)
[   14.353917] ath10k_pci 0000:02:00.0: firmware: direct-loading firmware ath10k/QCA9377/hw1.0/firmware-5.bin
[   14.353936] ath10k_pci 0000:02:00.0: qca9377 hw1.1 target 0x05020001 chip_id 0x003821ff sub 144d:4133
[   14.353939] ath10k_pci 0000:02:00.0: kconfig debug 0 debugfs 0 tracing 0 dfs 0 testmode 0
[   14.354740] ath10k_pci 0000:02:00.0: firmware ver WLAN.TF.1.0-00002-QCATFSWPZ-5 api 5 features ignore-otp crc32 c3e0d04f
[   14.677285] ath10k_pci 0000:02:00.0: firmware: direct-loading firmware ath10k/QCA9377/hw1.0/board-2.bin
[   14.677615] ath10k_pci 0000:02:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a
[   15.108339] snd_hda_intel 0000:01:00.1: azx_get_response timeout, switching to polling mode: last cmd=0x000f0001
[   15.178615] input: HDA ATI HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input18
[   15.443632] Adding 2046972k swap on /dev/sda9.  Priority:-2 extents:1 across:2046972k FS
[   16.308354] ath10k_pci 0000:02:00.0: failed to receive control response completion, polling..
[   16.701005] EXT4-fs (sda8): mounted filesystem with ordered data mode. Opts: (null)
[   17.332365] ath10k_pci 0000:02:00.0: Service connect timeout
[   17.332431] ath10k_pci 0000:02:00.0: failed to connect htt (-110)
[   17.334390] ath10k_pci 0000:02:00.0: could not init core (-110)
[   17.334528] ath10k_pci 0000:02:00.0: could not probe fw (-110)
Debian Testing (bleibt es auch)
Debian Bullseye KDE Plasma 5x Kernel 5.10.0-12-amd64
Notebook HP ZBook 17 G2

http://www.emess62.de

Benutzeravatar
habakug
Moderator
Beiträge: 4313
Registriert: 23.10.2004 13:08:41
Lizenz eigener Beiträge: MIT Lizenz

Re: Firmware Verständnisfrage

Beitrag von habakug » 12.05.2019 12:31:29

Hallo,

damit an verschiedenen Versionen des Moduls Veränderungen vorgenommen werden können, gibt es die APIs 1 bis 6 [1].
Hier wird API 5 geladen:

Code: Alles auswählen

firmware ver WLAN.TF.1.0-00002-QCATFSWPZ-5 api 5
Es gibt aber auf [1] einen Hinweis:
Firmware API 6
[...]
Also for QCA9377 hw1.0 fix IRAM bank compatibility starting from firmware release WLAN.TF.2.1-00014-QCARMSWP-1. Added in commit fc8b92635f79 February 2018, first release v4.17-rc1.
Es wird also API 6 benötigt, Kernel >4.17. Siehe auch [3].
Dazu eine neue Firmware-Version von hier [2].

Gruss, habakug

[1] https://wireless.wiki.kernel.org/en/use ... k/firmware
[2] https://git.kernel.org/pub/scm/linux/ke ... mware.git/
[3] https://github.com/kvalo/ath10k-firmwar ... 79bf431972

edit:
Hier der Debian Bugreport903437 dazu
( # = root | $ = user | !! = mod ) (Vor der PN) (Debianforum-Wiki) (NoPaste)

willy4711

Re: Firmware Verständnisfrage

Beitrag von willy4711 » 12.05.2019 13:25:36

Emess hat geschrieben: ↑ zum Beitrag ↑
11.05.2019 20:53:54

Code: Alles auswählen

[ 14.354740] ath10k_pci 0000:02:00.0: firmware ver WLAN.TF.1.0-00002-QCATFSWPZ-5 api 5 features ignore-otp crc32 c3e0d04f
[ 14.677285] ath10k_pci 0000:02:00.0: firmware: direct-loading firmware ath10k/QCA9377/hw1.0/board-2.bin 
[ 14.677615]ath10k_pci 0000:02:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a
willy4711 hat geschrieben: ↑ zum Beitrag ↑
11.05.2019 20:35:37

Code: Alles auswählen

[ 5.207814] ath10k_pci 0000:03:00.0: firmware ver WLAN.TF.1.0-00002-QCATFSWPZ-5 api 5 features ignore-otp crc32 c3e0d04f
[ 5.350512] ath10k_pci 0000:03:00.0: firmware: direct-loading firmware ath10k/QCA9377/hw1.0/board-2.bin 
[ 5.350706] ath10k_pci 0000:03:00.0: board_file api 2 bmi_id N/A crc32 8aedfa4a
Bis hierher ist doch das Laden der Firmware in beiden Rechnern identisch.
Der Rest - so verstehe ich das - ist doch ein Kommunikations- Problem mit dem Router oder sonst irgendwas?
Oder versteh ich das falsch ?
Emess hat geschrieben: ↑ zum Beitrag ↑
11.05.2019 20:53:54

Code: Alles auswählen

[ 16.308354] ath10k_pci 0000:02:00.0: failed to receive control response completion, polling..
[ 17.332365] ath10k_pci 0000:02:00.0: Service connect timeout 
[ 17.332431] ath10k_pci 0000:02:00.0: failed to connect htt (-110)
[ 17.334390] ath10k_pci 0000:02:00.0: could not init core (-110) 
[ 17.334528] ath10k_pci 0000:02:00.0: could not probe fw (-110)
Vielleicht mal:

Code: Alles auswählen

journalctl -b |grep "network\|wpa"
habakug hat geschrieben: ↑ zum Beitrag ↑
12.05.2019 12:31:29
Es wird also API 6 benötigt, Kernel >4.17. Siehe auch [3].
Dazu eine neue Firmware-Version von hier [2].
[1] https://wireless.wiki.kernel.org/en/use ... k/firmware
[2] https://git.kernel.org/pub/scm/linux/ke ... mware.git/
[3] https://github.com/kvalo/ath10k-firmwa ... 79bf431972
Uff ..... 170 MB für 1.9 MB, die man braucht. Vielleicht hilft es ja

Benutzeravatar
habakug
Moderator
Beiträge: 4313
Registriert: 23.10.2004 13:08:41
Lizenz eigener Beiträge: MIT Lizenz

Re: Firmware Verständnisfrage

Beitrag von habakug » 12.05.2019 13:50:41

Hallo,

es wird zuerst versucht firmware-6.bin zu laden, dann aber firmware-5.bin:

Code: Alles auswählen

[    5.205032] ath10k_pci 0000:03:00.0: firmware: failed to load ath10k/QCA9377/hw1.0/firmware-6.bin (-2)
[    5.207282] ath10k_pci 0000:03:00.0: firmware: direct-loading firmware ath10k/QCA9377/hw1.0/firmware-5.bin
Dieser Patch [1] "Subject: [PATCH] firmware-atheros: ship ath10k/QCA9377/hw1.0/firmware-6.bin" bindet die neue Firmware ein.
Daher sind die Dateien aus dem Verzeichnis für den QCA9377 erforderlich und nicht das ganze Zip. Das kann man sich da rauspicken...

Gruss, habakug

[1] https://bugs.debian.org/cgi-bin/bugrepo ... atch;msg=5
( # = root | $ = user | !! = mod ) (Vor der PN) (Debianforum-Wiki) (NoPaste)

willy4711

Re: Firmware Verständnisfrage

Beitrag von willy4711 » 12.05.2019 13:58:50

Emess hat geschrieben: ↑ zum Beitrag ↑
11.05.2019 20:08:48

Code: Alles auswählen

/lib/firmware/ath10k/QCA9377/hw1.0:
insgesamt 1820
drwxr-xr-x 2 root root   4096 Mai 10 23:55 .
drwxr-xr-x 3 root root   4096 Mai 10 23:43 ..
-rw-r--r-- 1 root root 304308 Mai  6 23:02 board-2.bin
-rw-r--r-- 1 root root   8124 Mai  6 23:02 board.bin
-rw-r--r-- 1 root root 783336 Mai  6 23:02 firmware-5.bin
-rw-r--r-- 1 root root 751436 Mai  6 23:02 firmware-6.bin
root@buster:~# 
Was bedeutet das jetzt?
habakug hat geschrieben: ↑ zum Beitrag ↑
12.05.2019 13:50:41
Dieser Patch [1] "Subject: [PATCH] firmware-atheros: ship ath10k/QCA9377/hw1.0/firmware-6.bin" bindet die neue Firmware ein.
Daher sind die Dateien aus dem Verzeichnis für den QCA9377 erforderlich und nicht das ganze Zip. Das kann man sich da rauspicken..
Aber Emmes hat ja die firmware-6.bin, woher auch immer. In den Debian-Paketen ist sie nicht.
Meiner kommt dann mit firmware-5.bin klar, seiner nicht.
firmware-6.bin wahrscheinlich auch in einer falschen / buggy Version ?

Benutzeravatar
habakug
Moderator
Beiträge: 4313
Registriert: 23.10.2004 13:08:41
Lizenz eigener Beiträge: MIT Lizenz

Re: Firmware Verständnisfrage

Beitrag von habakug » 12.05.2019 14:15:45

Hallo,

das Subsystem spielt hier eine Rolle:

Code: Alles auswählen

lspci -nnk
02:00.0 Network controller [0280]: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter [168c:0042] (rev 31)
        Subsystem: Samsung Electronics Co Ltd QCA9377 802.11ac Wireless Network Adapter [144d:4133]
Hier also "144d:4133", ein anderes Beispiel:

Code: Alles auswählen

03:00.0 Network controller [0280]: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter [168c:0042] (rev 31)
  Subsystem: Lite-On Communications Inc QCA9377 802.11ac Wireless Network Adapter [11ad:08a6]
Was ist es denn bei dir? Man kann das leider nicht einfach vergleichen (sogar die Gleiche "rev").

Gruss, habakug
( # = root | $ = user | !! = mod ) (Vor der PN) (Debianforum-Wiki) (NoPaste)

Benutzeravatar
Emess
Beiträge: 3662
Registriert: 07.11.2006 15:02:26
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Im schönen Odenwald
Kontaktdaten:

Re: Firmware Verständnisfrage

Beitrag von Emess » 12.05.2019 14:19:01

habakug hat geschrieben: ↑ zum Beitrag ↑
12.05.2019 12:31:29
Hallo,


Es wird also API 6 benötigt, Kernel >4.17. Siehe auch [3].
Dazu eine neue Firmware-Version von hier [2].

Gruss, habakug

[1] https://wireless.wiki.kernel.org/en/use ... k/firmware
[2] https://git.kernel.org/pub/scm/linux/ke ... mware.git/
[3] https://github.com/kvalo/ath10k-firmwar ... 79bf431972

edit:
Hier der Debian Bugreport903437 dazu
Kannst du das genauer beschreiben bin nur User
Achja

Code: Alles auswählen

Linux buster 4.19.0-4-amd64 #1 SMP Debian 4.19.28-2 (2019-03-15) x86_64 GNU/Linux
Debian Testing (bleibt es auch)
Debian Bullseye KDE Plasma 5x Kernel 5.10.0-12-amd64
Notebook HP ZBook 17 G2

http://www.emess62.de

Benutzeravatar
Emess
Beiträge: 3662
Registriert: 07.11.2006 15:02:26
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Im schönen Odenwald
Kontaktdaten:

Re: Firmware Verständnisfrage

Beitrag von Emess » 12.05.2019 14:24:13

habakug hat geschrieben: ↑ zum Beitrag ↑
12.05.2019 13:50:41
Hallo,

es wird zuerst versucht firmware-6.bin zu laden, dann aber firmware-5.bin:

Code: Alles auswählen

[    5.205032] ath10k_pci 0000:03:00.0: firmware: failed to load ath10k/QCA9377/hw1.0/firmware-6.bin (-2)
[    5.207282] ath10k_pci 0000:03:00.0: firmware: direct-loading firmware ath10k/QCA9377/hw1.0/firmware-5.bin
Dieser Patch [1] "Subject: [PATCH] firmware-atheros: ship ath10k/QCA9377/hw1.0/firmware-6.bin" bindet die neue Firmware ein.
Daher sind die Dateien aus dem Verzeichnis für den QCA9377 erforderlich und nicht das ganze Zip. Das kann man sich da rauspicken...

Gruss, habakug

[1] https://bugs.debian.org/cgi-bin/bugrepo ... atch;msg=5
Wie wende ich den Patch an???
Debian Testing (bleibt es auch)
Debian Bullseye KDE Plasma 5x Kernel 5.10.0-12-amd64
Notebook HP ZBook 17 G2

http://www.emess62.de

willy4711

Re: Firmware Verständnisfrage

Beitrag von willy4711 » 12.05.2019 14:33:10

Emess hat geschrieben: ↑ zum Beitrag ↑
12.05.2019 14:19:01
Kannst du das genauer beschreiben bin nur User
du sollst dir das runter laden (Direktlink ---> 170 MB !)
https://git.kernel.org/pub/scm/linux/ke ... 416.tar.gz

dann entpackst du das darin enthaltene Verzeichnis ~/Downloads/linux-firmware-20190416.tar.gz/ath10k/QCA9377 separat oder halt alles
und kopierst den ganzen Krempel s.U. nach /lib/firmware/ath10k/QCA9377/hw1.0

dann freust du dich ----- oder auch nicht :mrgreen:

Code: Alles auswählen

$ ls -alR /home/willy/Downloads/QCA9377
/home/willy/Downloads/QCA9377:
insgesamt 12
drwxrwxr-x  3 willy willy 4096 Apr  9 12:41 .
drwxr-xr-x 16 willy willy 4096 Mai 12 13:28 ..
drwxrwxr-x  2 willy willy 4096 Apr  9 12:41 hw1.0


/home/willy/Downloads/QCA9377/hw1.0:
insgesamt 1924
drwxrwxr-x 2 willy willy   4096 Apr  9 12:41 .
drwxrwxr-x 3 willy willy   4096 Apr  9 12:41 ..
-rw-rw-r-- 1 willy willy 304308 Apr  9 12:41 board-2.bin
-rw-rw-r-- 1 willy willy   8124 Apr  9 12:41 board.bin
-rw-rw-r-- 1 willy willy 783336 Apr  9 12:41 firmware-5.bin
-rw-rw-r-- 1 willy willy 751436 Apr  9 12:41 firmware-6.bin
-rw-rw-r-- 1 willy willy  46143 Apr  9 12:41 notice_ath10k_firmware-5.txt
-rw-rw-r-- 1 willy willy  53425 Apr  9 12:41 notice_ath10k_firmware-6.txt
Zuletzt geändert von willy4711 am 12.05.2019 14:34:01, insgesamt 1-mal geändert.

JTH
Moderator
Beiträge: 3014
Registriert: 13.08.2008 17:01:41
Wohnort: Berlin

Re: Firmware Verständnisfrage

Beitrag von JTH » 12.05.2019 14:33:33

willy4711 hat geschrieben: ↑ zum Beitrag ↑
12.05.2019 13:58:50
Aber Emmes hat ja die firmware-6.bin, woher auch immer. In den Debian-Paketen ist sie nicht.
Doch, in der Version von Debianfirmware-atheros aus Sid gibts die Datei. Anscheinend hat Emess es doch probiert, die Version zu installieren?!
Manchmal bekannt als Just (another) Terminal Hacker.

Benutzeravatar
Emess
Beiträge: 3662
Registriert: 07.11.2006 15:02:26
Lizenz eigener Beiträge: MIT Lizenz
Wohnort: Im schönen Odenwald
Kontaktdaten:

Re: Firmware Verständnisfrage

Beitrag von Emess » 12.05.2019 14:38:08

JTH hat geschrieben: ↑ zum Beitrag ↑
12.05.2019 14:33:33
willy4711 hat geschrieben: ↑ zum Beitrag ↑
12.05.2019 13:58:50
Aber Emmes hat ja die firmware-6.bin, woher auch immer. In den Debian-Paketen ist sie nicht.
Doch, in der Version von Debianfirmware-atheros aus Sid gibts die Datei. Anscheinend hat Emess es doch probiert, die Version zu installieren?!
Hatte die Firmware aus sid probiert hat aber auch nicht geklappt und bin wieder zurück auf testing

Werde die Sache von @Habakuk und @Willi4711 mal testen
Debian Testing (bleibt es auch)
Debian Bullseye KDE Plasma 5x Kernel 5.10.0-12-amd64
Notebook HP ZBook 17 G2

http://www.emess62.de

Antworten